From 90297e5e9ad780d22a9be1299b78b3b9cea02284 Mon Sep 17 00:00:00 2001 From: xinking129 Date: Mon, 17 Jul 2023 21:26:43 +0800 Subject: [PATCH] merge xts test Signed-off-by: xinking129 --- .../context/actsstagecontext/BUILD.gn | 4 +- .../AppScope/app.json | 19 +++ .../resources/base/element/string.json | 8 ++ .../resources/base/media/app_icon.png | Bin 0 -> 6790 bytes .../BUILD.gn | 43 +++++++ .../src/main/ets/entryability/EntryAbility.ts | 69 +++++++++++ .../entry/src/main/ets/pages/Index.ets | 31 +++++ .../entry/src/main/ets/pages/Index2.ets | 31 +++++ .../entry/src/main/module.json | 38 ++++++ .../main/resources/base/element/color.json | 8 ++ .../main/resources/base/element/string.json | 32 +++++ .../src/main/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../resources/base/profile/main_pages.json | 8 ++ .../main/resources/en_US/element/string.json | 32 +++++ .../main/resources/zh_CN/element/string.json | 32 +++++ .../signature/openharmony_sx.p7b | Bin 0 -> 3518 bytes .../AppScope/app.json | 21 ++++ .../resources/base/element/string.json | 8 ++ .../resources/base/media/app_icon.png | Bin 0 -> 6790 bytes .../ReportDrawnCompletedReply/BUILD.gn | 43 +++++++ .../main/ets/Application/MyAbilityStage.ts | 23 ++++ .../src/main/ets/MainAbility/DrawnAbility.ts | 51 ++++++++ .../entry/src/main/ets/pages/index.ets | 49 ++++++++ .../entry/src/main/module.json | 38 ++++++ .../main/resources/base/element/string.json | 24 ++++ .../src/main/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../resources/base/profile/main_pages.json | 5 + .../signature/openharmony_sx.p7b | Bin 0 -> 3654 bytes .../ets/test/StageContextProperties.test.ets | 111 +++++++++++++++++- 29 files changed, 726 insertions(+), 2 deletions(-) create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/AppScope/app.json create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/AppScope/resources/base/element/string.json create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/AppScope/resources/base/media/app_icon.png create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/BUILD.gn create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/ets/entryability/EntryAbility.ts create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/ets/pages/Index.ets create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/ets/pages/Index2.ets create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/module.json create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/resources/base/element/color.json create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/resources/base/element/string.json create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/resources/base/media/icon.png create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/resources/base/profile/main_pages.json create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/resources/en_US/element/string.json create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/resources/zh_CN/element/string.json create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/signature/openharmony_sx.p7b create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/AppScope/app.json create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/AppScope/resources/base/element/string.json create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/AppScope/resources/base/media/app_icon.png create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/BUILD.gn create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/ets/Application/MyAbilityStage.ts create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/ets/MainAbility/DrawnAbility.ts create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/ets/pages/index.ets create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/module.json create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/resources/base/element/string.json create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/resources/base/media/icon.png create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/resources/base/profile/main_pages.json create mode 100644 ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/signature/openharmony_sx.p7b diff --git a/ability/ability_runtime/context/actsstagecontext/BUILD.gn b/ability/ability_runtime/context/actsstagecontext/BUILD.gn index 47abc75e2..51141d65d 100644 --- a/ability/ability_runtime/context/actsstagecontext/BUILD.gn +++ b/ability/ability_runtime/context/actsstagecontext/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2021-2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -20,6 +20,8 @@ group("actsstagecontext") { "actsstagecontextassistone:ActsStageContextAssistOne", "actsstagecontextassisttwo:ActsStageContextAssistTwo", "actsstagecontextpropertiestest:ActsStageContextPropertiesTest", + "ReportDrawnCompletedManualTestRely:ReportDrawnCompletedManualTestRely", + "ReportDrawnCompletedReply:ReportDrawnCompletedReply", ] } } diff --git a/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/AppScope/app.json b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/AppScope/app.json new file mode 100644 index 000000000..9caca201c --- /dev/null +++ b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/AppScope/app.json @@ -0,0 +1,19 @@ +{ + "app": { + "bundleName": "com.example.reportdrawncompletedmanualtest", + "vendor": "huawei", + "versionCode": 1000000, + "versionName": "1.0.0", + "icon": "$media:app_icon", + "label": "$string:app_name", + "distributedNotificationEnabled": true, + "keepAlive" : true, + "singleUser": true, + "minAPIVersion": 10, + "targetAPIVersion": 10, + "car": { + "apiCompatibleVersion": 10, + "singleUser": false + } + } +} diff --git a/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/AppScope/resources/base/element/string.json b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/AppScope/resources/base/element/string.json new file mode 100644 index 000000000..6251b0e61 --- /dev/null +++ b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/AppScope/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string": [ + { + "name": "app_name", + "value": "ReportDrawnCompletedManualTest" + } + ] +} diff --git a/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/AppScope/resources/base/media/app_icon.png b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/AppScope/resources/base/media/app_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78Z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x|*1GU?tbBx23weFLz5H?y_Q%N&t$}k?w+``2A=aotj0;2v$~AL z{scF-cL{wsdrmPvf#a9OHyYLcwQD4Kcm)`LLwMh4WT~p29f7M!iafJSU`IV}QY5Wa z(n44-9oA}?J{a+ah*@31WTs#&J#o1`H98#6IQf;Wv0N_!);f&9g7o-k(lW5rWnDUR zQBFIRG+X=6NnsI@mxnwm;tf5;_Uxg?jZ8m-m0}&6+DA!qam(p$mN5R})yA_7m$q@| zFEd|dpS595rxQr-n#GjI5i-AhnUE>Cr;jpCqSrD~EwK_DqI^7%3#p5)%T_od!t3SOmH9MyXeeGO2(UQL;ax|x?Ncixmeo1=$ z{-);Au{*tfzOG?KQ~K|ak8-HQ?`Pekhe2WM(8s{xv-p>Zmu_6{G!-oE$7$mY`MOJorI=+mMx?H;`pr!;fVYz?5~yXBACruWB`Ph zZM}90_<^OBxIhyZ9BW$`>6JvO;%VFpqVr8|7t3~AmxYak6?`Pp#c;**_SYmi`&z23 z`p6_~ePvH)C6x-G9$hgL=eVALq`-AiamN>!3~Lxw&{H(b{B(7xSRm6<3<{%{yXiH# zos5Rv1L+8fUKJLo%P>4I&$}y { + console.info('The call to the reportDrawnCompleted interface succeeded'); + }); + } + + onDestroy() { + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onDestroy'); + } + + onWindowStageCreate(windowStage: Window.WindowStage) { + // Main window is created, set main page for this ability + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate'); + + windowStage.loadContent('pages/Index', (err, data) => { + if (err.code) { + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.ERROR); + hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); + return; + } + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', 'Succeeded in loading the content. Data: %{public}s', JSON.stringify(data) ?? ''); + }); + } + + onWindowStageDestroy() { + // Main window is destroyed, release UI related resources + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageDestroy'); + } + + onForeground() { + // Ability has brought to foreground + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onForeground'); + } + + onBackground() { + // Ability has back to background + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onBackground'); + } +} diff --git a/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/ets/pages/Index.ets b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/ets/pages/Index.ets new file mode 100644 index 000000000..96c5e32af --- /dev/null +++ b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/ets/pages/Index.ets @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct Index { + @State message: string = 'Hello World'; + + build() { + Row() { + Column() { + Text(this.message) + .fontSize(50) + .fontWeight(FontWeight.Bold) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/ets/pages/Index2.ets b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/ets/pages/Index2.ets new file mode 100644 index 000000000..0adf9b0f0 --- /dev/null +++ b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/ets/pages/Index2.ets @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct Index2 { + @State message: string = 'Hello World'; + + build() { + Row() { + Column() { + Text(this.message) + .fontSize(50) + .fontWeight(FontWeight.Bold) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/module.json b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/module.json new file mode 100644 index 000000000..432d0540e --- /dev/null +++ b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/module.json @@ -0,0 +1,38 @@ +{ + "module": { + "name": "entry", + "type": "entry", + "description": "$string:module_desc", + "mainElement": "MainAbility", + "deviceTypes": [ + "default", + "tablet" + ], + "deliveryWithInstall": true, + "installationFree": false, + "pages": "$profile:main_pages", + "abilities": [ + { + "name": "EntryAbility", + "srcEntrance": "./ets/entryability/EntryAbility.ts", + "description": "$string:EntryAbility_desc", + "icon": "$media:icon", + "label": "$string:EntryAbility_label", + "startWindowIcon": "$media:icon", + "startWindowBackground": "$color:start_window_background", + "launchType": "standard", + "visible": true, + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/resources/base/element/color.json b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/resources/base/element/color.json new file mode 100644 index 000000000..d66f9a7d4 --- /dev/null +++ b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/resources/base/element/color.json @@ -0,0 +1,8 @@ +{ + "color": [ + { + "name": "start_window_background", + "value": "#FFFFFF" + } + ] +} \ No newline at end of file diff --git a/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/resources/base/element/string.json b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/resources/base/element/string.json new file mode 100644 index 000000000..e8e9bfe32 --- /dev/null +++ b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/resources/base/element/string.json @@ -0,0 +1,32 @@ +{ + "string": [ + { + "name": "module_desc", + "value": "module description" + }, + { + "name": "EntryAbility_desc", + "value": "description" + }, + { + "name": "EntryAbility_label", + "value": "label" + }, + { + "name": "UIAbility2_desc", + "value": "description" + }, + { + "name": "UIAbility2_label", + "value": "label" + }, + { + "name": "MainAbility_desc", + "value": "description" + }, + { + "name": "MainAbility_label", + "value": "label" + } + ] +} \ No newline at end of file diff --git a/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/resources/base/media/icon.png b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedManualTestRely/entry/src/main/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbb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9K${k>9$@SyJwR+C%)}rbk3E(WbYC9qZjyd ztcyR{mo$re)&fF5aO=i{ah+Q?>RDUoplR+25SV(cykj1 zrhx1eQF2qnNe2?)uP2j48QqvPxGZPG_Mtzyl4jd+YIXkZ)ir$IPkQd2B$x*LV!+q% z`Oqid@mpVAweC#y-etS;TYE1#*=K)Q`^fooC#VyimJP!d>rWr1rDMYGd~S^xjNLx= zXY`C6V|qCTY+iDw`AuM%+@$|^486i^Zd|wa4p`M-Ti$eL%iz-!TTd8=EJzo4gbO^n z(#4~Z#0RhRtmHZFUN^uoKZ&D=Y2)ZJ^xE-k&MaBcDdyoWeFl_UQL$DS%~J#H9DC=C!| z5IO&2&AeZ8H(vYg-Lg>awxcEMFCWY~dM5Ys>_Cp~ipllG!ns33ZRUTSzScJI(`#q? z31W5R1)ASh#%^%5jZ@s;SH0u#%9S~X$VnFlC5JzFFPdZl! zB}G#NlD#ZEH9-Ay*~YFLwfn24ISht8devk~Ai?+jTSx?kKQc1Yp={w&EC!`OxDbU; zQv-?~d!>+En#bmzeOPd$e$4#W{TJO?(_7|@82`%`J?BBes;kSDx_zyn_oJI!EHwbV zI4?T$=E=WiQa3+Lwzw}!ZFJE+=*$1?>p%I>pX()OGuIv#=MC#CiChjYYq(pZjb!ir Y{8s;>zHKW;PI`FY+}yy~%f~OV literal 0 HcmV?d00001 diff --git a/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/AppScope/app.json b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/AppScope/app.json new file mode 100644 index 000000000..3eedf8c9d --- /dev/null +++ b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/AppScope/app.json @@ -0,0 +1,21 @@ +{ + "app": { + "bundleName": "com.example.stagecontextpropertiestest", + "vendor": "huawei", + "versionCode": 1000000, + "versionName": "1.0.0", + "debug": false, + "icon" : "$media:icon", + "label" : "$string:app_name", + "description" : "$string:description_application", + "distributedNotificationEnabled": true, + "keepAlive" : true, + "singleUser": true, + "minAPIVersion": 9, + "targetAPIVersion": 9, + "car": { + "apiCompatibleVersion": 9, + "singleUser": false + } + } +} \ No newline at end of file diff --git a/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/AppScope/resources/base/element/string.json b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/AppScope/resources/base/element/string.json new file mode 100644 index 000000000..0341464a8 --- /dev/null +++ b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/AppScope/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string": [ + { + "name": "app_name", + "value": "ActsStageContextAssistOne" + } + ] +} diff --git a/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/AppScope/resources/base/media/app_icon.png b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/AppScope/resources/base/media/app_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)0qc{ESp z|LuG1{QnBUJRg_E=h1#XMWt2%fcoN@l7eAS!Es?Q+;XsRNPhiiE=@AqlLkJzF`O18 zbsbSmKN=aaq8k3NFYZfDWpKmM!coBU0(XnL8R{4=i|wi{!uWYM2je{U{B*K2PVdu&=E zTq*-XsEsJ$u5H4g6DIm2Y!DN`>^v|AqlwuCD;w45K0@eqauiqWf7l&o)+YLHm~|L~ z7$0v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}&6+DA!qam(p$mN5R})yA_7m$q@| zFEd|dpS595rxQr-n#GjI5i-AhnUE>Cr;jpCqSrD~EwK_DqI^7%3#p5)%T_od!t3SOmH9MyXeeGO2(UQL;ax|x?Ncixmeo1=$ z{-);Au{*tfzOG?KQ~K|ak8-HQ?`Pekhe2WM(8s{xv-p>Zmu_6{G!-oE$7$mY`MOJorI=+mMx?H;`pr!;fVYz?5~yXBACruWB`Ph zZM}90_<^OBxIhyZ9BW$`>6JvO;%VFpqVr8|7t3~AmxYak6?`Pp#c;**_SYmi`&z23 z`p6_~ePvH)C6x-G9$hgL=eVALq`-AiamN>!3~Lxw&{H(b{B(7xSRm6<3<{%{yXiH# zos5Rv1L+8fUKJLo%P>4I&$}y { + console.info('The call to the reportDrawnCompleted interface succeeded'); + }); + } + + onDestroy() { + console.info('ActsStageContextAssistOne DrawnAbility onDestroy') + } + + onWindowStageCreate(windowStage) { + console.info('ActsStageContextAssistOne DrawnAbility onWindowStageCreate'); + windowStage.setUIContent(this.context, 'pages/index', null) + } + + onWindowStageDestroy() { + console.info('ActsStageContextAssistOne DrawnAbility onWindowStageDestroy') + } + + onForeground() { + console.info('ActsStageContextAssistOne DrawnAbility onForeground'); + globalThis.abilityContextA = this.context; + commonEvent.publish("StartDrawnAbility_CommonEvent_ContextOne", () => { + console.log("Publish StartDrawnAbility_CommonEvent_ContextOne callback"); + }) + } + + onBackground() { + console.info('ActsStageContextAssistOne DrawnAbility onBackground'); + } +} \ No newline at end of file diff --git a/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/ets/pages/index.ets b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/ets/pages/index.ets new file mode 100644 index 000000000..46cbf8478 --- /dev/null +++ b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/ets/pages/index.ets @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2022 Huawei Device Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +@Entry +@Component +struct Index { + aboutToAppear() { + console.info('MainAbility index aboutToAppear') + console.info('start run testcase!!!') + } + + @State message: string = 'MainAbility3 Hello' + build() { + Row() { + Column() { + Text(this.message) + .fontSize(50) + .fontWeight(FontWeight.Bold) + Button() { + Text('next page') + .fontSize(20) + .fontWeight(FontWeight.Bold) + }.type(ButtonType.Capsule) + .margin({ + top: 20 + }) + .backgroundColor('#0D9FFB') + .width('35%') + .height('5%') + .onClick(() => { + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/module.json b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/module.json new file mode 100644 index 000000000..824aa13e6 --- /dev/null +++ b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/module.json @@ -0,0 +1,38 @@ +{ + "module": { + "name": "drawn", + "type": "feature", + "srcEntrance": "./ets/Application/MyAbilityStage.ts", + "description": "$string:entry_test_desc", + "mainElement": "DrawnAbility", + "deviceTypes": [ + "default", + "tablet" + ], + "deliveryWithInstall": true, + "installationFree": false, + "pages": "$profile:main_pages", + "uiSyntax": "ets", + "abilities": [ + { + "name": "DrawnAbility", + "srcEntrance": "./ets/MainAbility/DrawnAbility.ts", + "description": "$string:MainAbility_desc", + "icon": "$media:icon", + "label": "$string:MainAbility_label", + "launchType": "specified", + "visible": true, + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/resources/base/element/string.json b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/resources/base/element/string.json new file mode 100644 index 000000000..605115b2e --- /dev/null +++ b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/resources/base/element/string.json @@ -0,0 +1,24 @@ +{ + "string": [ + { + "name": "entry_test_desc", + "value": "description" + }, + { + "name": "MainAbility_desc", + "value": "description" + }, + { + "name": "MainAbility_label", + "value": "feature_MainAbility" + }, + { + "name": "app_name", + "value": "ActsStageContextAssistOne" + }, + { + "name": "description_application", + "value": "demo for test" + } + ] +} \ No newline at end of file diff --git a/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/resources/base/media/icon.png b/ability/ability_runtime/context/actsstagecontext/ReportDrawnCompletedReply/entry/src/main/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)0qc{ESp z|LuG1{QnBUJRg_E=h1#XMWt2%fcoN@l7eAS!Es?Q+;XsRNPhiiE=@AqlLkJzF`O18 zbsbSmKN=aaq8k3NFYZfDWpKmM!coBU0(XnL8R{4=i|wi{!uWYM2je{U{B*K2PVdu&=E zTq*-XsEsJ$u5H4g6DIm2Y!DN`>^v|AqlwuCD;w45K0@eqauiqWf7l&o)+YLHm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5re*ROx?;)9<16K;9H9(z4Q)u{?!fN zn0sHIe=@k_R8-i!XfC+^(oL?_JAp%6={+vGrxhAkdS3fmm)w&RE0P1%`#oX5ROIPtv8O literal 0 HcmV?d00001 diff --git a/ability/ability_runtime/context/actsstagecontext/actsstagecontextpropertiestest/entry/src/main/ets/test/StageContextProperties.test.ets b/ability/ability_runtime/context/actsstagecontext/actsstagecontextpropertiestest/entry/src/main/ets/test/StageContextProperties.test.ets index e5854cc0e..68b721e1f 100644 --- a/ability/ability_runtime/context/actsstagecontext/actsstagecontextpropertiestest/entry/src/main/ets/test/StageContextProperties.test.ets +++ b/ability/ability_runtime/context/actsstagecontext/actsstagecontextpropertiestest/entry/src/main/ets/test/StageContextProperties.test.ets @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2022-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -15,6 +15,7 @@ import { describe, it, expect, afterEach, beforeAll } from '@ohos/hypium' import commonEvent from '@ohos.commonEvent' +import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' let Subscriber; let TAG; @@ -64,6 +65,15 @@ export default function stageContextPropertiesTest(abilityContext) { }, 1500); }) + function beforeEachLoadmanagement() { + let abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); + abilityDelegator.executeShellCommand("hilog -r", async (err, data) => {}); + abilityDelegator.executeShellCommand("hilog -Q pidoff", async (err, data) => {}); + abilityDelegator.executeShellCommand("hilog -Q domainoff", async (err, data) => {}); + abilityDelegator.executeShellCommand("hilog -b D", async (err, data) => {}); + abilityDelegator.executeShellCommand("hilog -G 20M", async (err, data) => {}); + } + /** * @tc.number: SUB_AA_OpenHarmony_Context_0100 * @tc.name: Check that context paths of different Ability in the same hap are the same. @@ -498,6 +508,105 @@ export default function stageContextPropertiesTest(abilityContext) { } }); + /** + * @tc.number: Acts_ReportDrawnCompleted_AsyncCallback_1400 + * @tc.name: Load management + * @tc.desc: The uiability of this application use asyncCallback way call reportDrawnCompleted interface + * viewing console output information. + * @tc.level 1 + */ + it('Acts_ReportDrawnCompleted_AsyncCallback_1400', 0, function (done) { + beforeEachLoadmanagement(); + setTimeout(function () { + let want = { + "deviceId": "", + "bundleName": "com.example.stagecontextpropertiestest", + "abilityName": "DrawnAbility", + "moduleName": "drawn", + }; + globalThis.abilityContext.startAbility(want, () => {}); + + let abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); + setTimeout(function () { + console.log('====>ReportDrawnCompleted_1400 expect start '); + let grepLog = "'\"name_\":\"DRAWN_COMPLETED\"'"; + let cmd = "hilog -x | grep " + grepLog; + abilityDelegator.executeShellCommand(cmd, (err, data) => { + console.log('====>ReportDrawnCompleted_0100 executeShellCommand err : ' + JSON.stringify(err)); + if (data.stdResult) { + console.log('====>ReportDrawnCompleted_1400 data.stdResult : ' + JSON.stringify(data.stdResult)); + try { + expect(data.stdResult).assertContain("\"domain_\":\"AAFWK\""); + expect(data.stdResult).assertContain("\"name_\":\"DRAWN_COMPLETED\""); + expect(data.stdResult).assertContain("\"type_\":4"); + expect(data.stdResult).assertContain("\"tz_\":\"+0800\""); + expect(data.stdResult).assertContain( + "\"BUNDLE_NAME\":\"com.example.stagecontextpropertiestest\""); + expect(data.stdResult).assertContain("\"MODULE_NAME\":\"drawn\""); + expect(data.stdResult).assertContain("\"ABILITY_NAME\":\"DrawnAbility\""); + } catch { + expect().assertFail(); + done(); + } + done(); + } else { + expect().assertFail(); + done(); + } + }); + }, 200); + }, 4000); + }) + + /* + * @tc.number: Acts_ReportDrawnCompleted_AsyncCallback_1500 + * @tc.name: Load management + * @tc.desc: The uiAbility of this external application use asyncCallback way call reportDrawnCompleted interface + * viewing console output information. + * @tc.level 1 + */ + it('Acts_ReportDrawnCompleted_AsyncCallback_1500', 0, function (done) { + beforeEachLoadmanagement(); + setTimeout(function () { + let want = { + "deviceId": "", + "bundleName": "com.example.reportdrawncompletedmanualtest", + "abilityName": "EntryAbility" + }; + globalThis.abilityContext.startAbility(want, () => {}); + + let abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); + setTimeout(function () { + console.log('====>ReportDrawnCompleted_1500 expect start '); + let grepLog = "'\"name_\":\"DRAWN_COMPLETED\"'"; + let cmd = "hilog -x | grep " + grepLog; + abilityDelegator.executeShellCommand(cmd, (err, data) => { + console.log('====>ReportDrawnCompleted_1500 executeShellCommand err : ' + JSON.stringify(err)); + if (data.stdResult) { + console.log('====>ReportDrawnCompleted_1500 data.stdResult : ' + JSON.stringify(data.stdResult)); + try { + expect(data.stdResult).assertContain("\"domain_\":\"AAFWK\""); + expect(data.stdResult).assertContain("\"name_\":\"DRAWN_COMPLETED\""); + expect(data.stdResult).assertContain("\"type_\":4"); + expect(data.stdResult).assertContain("\"tz_\":\"+0800\""); + expect(data.stdResult).assertContain( + "\"BUNDLE_NAME\":\"com.example.reportdrawncompletedmanualtest\""); + expect(data.stdResult).assertContain("\"MODULE_NAME\":\"entry\""); + expect(data.stdResult).assertContain("\"ABILITY_NAME\":\"EntryAbility\""); + } catch { + expect().assertFail(); + done(); + } + done(); + } else { + expect().assertFail(); + done(); + } + }); + }, 1000); + }, 4000); + }) + function checkApplicationContextDir(applicationContext) { expect(applicationContext.cacheDir).assertEqual("/data/storage/el2/base/cache"); expect(applicationContext.tempDir).assertEqual("/data/storage/el2/base/temp"); -- GitLab