From 42f03137bf960006d002fd2e222bce18982df3df Mon Sep 17 00:00:00 2001 From: xinking129 Date: Wed, 5 Jul 2023 16:31:00 +0800 Subject: [PATCH] add getrunningprocessinformation Signed-off-by: xinking129 --- ability/ability_runtime/BUILD.gn | 2 + .../AppScope/app.json | 20 + .../resources/base/element/string.json | 8 + .../resources/base/media/app_icon.png | Bin 0 -> 6790 bytes .../ApplicationStateChangeOneReply/BUILD.gn | 43 ++ .../src/main/ets/entryability/EntryAbility.ts | 129 +++++ .../entry/src/main/ets/pages/Index.ets | 17 + .../entry/src/main/module.json | 37 ++ .../main/resources/base/element/color.json | 8 + .../main/resources/base/element/string.json | 16 + .../src/main/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../resources/base/profile/main_pages.json | 5 + .../main/resources/en_US/element/string.json | 16 + .../main/resources/zh_CN/element/string.json | 16 + .../signature/openharmony_sx.p7b | Bin 0 -> 3556 bytes .../AppScope/app.json | 19 + .../resources/base/element/string.json | 8 + .../resources/base/media/app_icon.png | Bin 0 -> 6790 bytes .../ApplicationStateChangeTwoReply/BUILD.gn | 43 ++ .../src/main/ets/entryability/EntryAbility.ts | 74 +++ .../entry/src/main/ets/pages/Index.ets | 17 + .../entry/src/main/module.json | 37 ++ .../main/resources/base/element/color.json | 8 + .../main/resources/base/element/string.json | 16 + .../src/main/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../resources/base/profile/main_pages.json | 5 + .../main/resources/en_US/element/string.json | 16 + .../main/resources/zh_CN/element/string.json | 16 + .../signature/openharmony_sx.p7b | Bin 0 -> 3555 bytes .../getrunningprocessinformation/BUILD.gn | 26 + .../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 | 197 +++++++ .../entry/src/main/ets/pages/Index.ets | 17 + .../entry/src/main/module.json | 37 ++ .../main/resources/base/element/color.json | 8 + .../main/resources/base/element/string.json | 16 + .../src/main/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../resources/base/profile/main_pages.json | 5 + .../main/resources/en_US/element/string.json | 16 + .../main/resources/zh_CN/element/string.json | 16 + .../signature/openharmony_sx.p7b | Bin 0 -> 3561 bytes .../AppScope/app.json | 19 + .../resources/base/element/string.json | 8 + .../resources/base/media/app_icon.png | Bin 0 -> 6790 bytes .../GetRunningProcessInformationTest/BUILD.gn | 43 ++ .../Test.json | 34 ++ .../ets/TestRunner/OpenHarmonyTestRunner.ts | 71 +++ .../entry/src/main/ets/test/Ability.test.ets | 505 ++++++++++++++++++ .../entry/src/main/ets/test/List.test.ets | 5 + .../src/main/ets/testability/TestAbility.ets | 58 ++ .../src/main/ets/testability/pages/Index.ets | 35 ++ .../entry/src/main/module.json | 45 ++ .../main/resources/base/element/color.json | 8 + .../main/resources/base/element/string.json | 16 + .../src/main/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../resources/base/profile/test_pages.json | 5 + .../signature/openharmony_sx.p7b | Bin 0 -> 3739 bytes 60 files changed, 1836 insertions(+) create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/AppScope/app.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/AppScope/resources/base/element/string.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/AppScope/resources/base/media/app_icon.png create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/BUILD.gn create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/ets/entryability/EntryAbility.ts create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/ets/pages/Index.ets create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/module.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/resources/base/element/color.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/resources/base/element/string.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/resources/base/media/icon.png create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/resources/base/profile/main_pages.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/resources/en_US/element/string.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/resources/zh_CN/element/string.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/signature/openharmony_sx.p7b create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/AppScope/app.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/AppScope/resources/base/element/string.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/AppScope/resources/base/media/app_icon.png create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/BUILD.gn create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/ets/entryability/EntryAbility.ts create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/ets/pages/Index.ets create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/module.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/resources/base/element/color.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/resources/base/element/string.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/resources/base/media/icon.png create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/resources/base/profile/main_pages.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/resources/en_US/element/string.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/resources/zh_CN/element/string.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/signature/openharmony_sx.p7b create mode 100644 ability/ability_runtime/getrunningprocessinformation/BUILD.gn create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/AppScope/app.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/AppScope/resources/base/element/string.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/AppScope/resources/base/media/app_icon.png create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/BUILD.gn create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/ets/entryability/EntryAbility.ts create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/ets/pages/Index.ets create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/module.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/resources/base/element/color.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/resources/base/element/string.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/resources/base/media/icon.png create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/resources/base/profile/main_pages.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/resources/en_US/element/string.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/resources/zh_CN/element/string.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/signature/openharmony_sx.p7b create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/AppScope/app.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/AppScope/resources/base/element/string.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/AppScope/resources/base/media/app_icon.png create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/BUILD.gn create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/Test.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/TestRunner/OpenHarmonyTestRunner.ts create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/test/Ability.test.ets create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/test/List.test.ets create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/testability/TestAbility.ets create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/testability/pages/Index.ets create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/module.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/resources/base/element/color.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/resources/base/element/string.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/resources/base/media/icon.png create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/resources/base/profile/test_pages.json create mode 100644 ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/signature/openharmony_sx.p7b diff --git a/ability/ability_runtime/BUILD.gn b/ability/ability_runtime/BUILD.gn index df8cea63a..c9bd58f4a 100644 --- a/ability/ability_runtime/BUILD.gn +++ b/ability/ability_runtime/BUILD.gn @@ -31,6 +31,7 @@ group("ability_runtime") { "actsdataabilityaccessdatasharetest:dataabilityaccessdatashare", "actsfwkdataaccessortest:dataability", "actsmultiplecall:actsmultiplecall", + "actsparsingparameterstest:actsparsingparameterstest", "actsqueryfunctiontest:actsqueryfunctiontest", "actsrequestdialogtest:actsrequestdialogtest", "actsrevokequickfixtest:ActsRevokeQuickFixApp", @@ -53,6 +54,7 @@ group("ability_runtime") { "featureability:featureability", "formmanager:formmanager", "freeinstalltest:freeinstalltest", + "getrunningprocessinformation:getrunningprocessinformation", "newwant:newwant", "non_concurrent:non_concurrent", "registerjserror:registerjserror", diff --git a/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/AppScope/app.json b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/AppScope/app.json new file mode 100644 index 000000000..9087707bf --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/AppScope/app.json @@ -0,0 +1,20 @@ +{ + "app": { + "bundleName": "com.example.applicationstatechangeonereply", + "vendor": "example", + "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/getrunningprocessinformation/ApplicationStateChangeOneReply/AppScope/resources/base/element/string.json b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/AppScope/resources/base/element/string.json new file mode 100644 index 000000000..b4d147945 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/AppScope/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string": [ + { + "name": "app_name", + "value": "ApplicationStateChangeOneReply" + } + ] +} diff --git a/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/AppScope/resources/base/media/app_icon.png b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/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$0v5mkobriU!H<@mVJHLlmQqzQ3d6Rh_-|%Yy2li*tHO>_vcnuZ7OR_xkAIuIU&x z-|8Y0wj|6|a6_I(v91y%k_kNw6pnkNdxjqG8!%Vz_d%c_!X+6-;1`GC9_FpjoHev5fEV7RhJ>r=mh-jp$fqbqRJ=obwdgLDVP5+s zy1=_DWG0Y-Jb3t^WXmkr(d9~08k-|#Ly zaNOmT(^9tIb&eb4%CzIT zAm3CUtWSr1t4?h1kk#NBi{U|pJslvME{q|_eS^3En>SOqSxyuN1x;Is@8~m?*>}** znrRFArP!K_52RpX*&JHMR<^lVdm8ypJ}0R(SD(51j;6@ni$6bQ+2XL+R^|NnSp5}(kzvMZ^(@4fD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1L+8fUKJLo%P>4I&$}y { + console.info('Enter onApplicationForeground publish!') + commonEvent.publish('processState',commonEventData, (err) => { + console.info("====>processState publish err: " + JSON.stringify(err)) + }) + },1000) + + }, + onApplicationBackground() { + console.log(TAG,'ApplicationStateChangeCallbackFir onApplicationBackground') + commonEventData.parameters.commonStateArr[1] = 1 + + if (globalThis.want.action == 'NeedBackGroundOff' || globalThis.want.action == 'MultiAppRegister' + || globalThis.want.action == 'DoubleRegisterOff') { + console.info('entered needbackgroundoff!') + globalThis.applicationContext.off('applicationStateChange', ApplicationStateChangeCallbackFir) + } + } +} + +let ApplicationStateChangeCallbackSec = { + onApplicationForeground() { + console.log(TAG,'ApplicationStateChangeCallbackSec onApplicationForeground') + commonEventData.parameters.commonStateArr[2] = 1 + }, + onApplicationBackground() { + console.log(TAG,'ApplicationStateChangeCallbackSec onApplicationBackground') + commonEventData.parameters.commonStateArr[3] = 1 + if (globalThis.want.action == 'doubleNeedBackGroundOff') { + setTimeout(() => { + globalThis.applicationContext.off('applicationStateChange',ApplicationStateChangeCallbackSec) + },500) + } + else if(globalThis.want.action == 'DoubleRegisterOff') { + setTimeout(() => { + console.info('entered DoubleRegisterOff') + globalThis.applicationContext.off('applicationStateChange') + },500) + } + } +} +export default class EntryAbility extends Ability { + onCreate(want, launchParam) { + onForeGroundTAG = -1 + for (let i = 0; i < 4; i++) { + commonStateArr[i] = -1 + } + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onCreate'); + hilog.info(0x0000, 'testTag', '%{public}s', 'want param:' + JSON.stringify(want) ?? ''); + hilog.info(0x0000, 'testTag', '%{public}s', 'launchParam:' + JSON.stringify(launchParam) ?? ''); + globalThis.abilityContext = this.context + globalThis.want = want + globalThis.applicationContext = this.context.getApplicationContext(); + globalThis.applicationContext.on('applicationStateChange', ApplicationStateChangeCallbackFir) + if (globalThis.want.action == 'doubleRegister' || globalThis.want.action == 'doubleNeedBackGroundOff' + || globalThis.want.action == 'DoubleRegisterOff') { + console.info("double in action is logic entered!") + globalThis.applicationContext.on('applicationStateChange', ApplicationStateChangeCallbackSec) + } + + } + + 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', 'Abilityone onForeground'); + onForeGroundTAG += 1 + if(onForeGroundTAG == 1 && (globalThis.want.action == 'NeedBackGroundOff' || globalThis.want.action == 'MultiAppRegister' + || globalThis.want.action == 'DoubleRegisterOff')) { + setTimeout(() => { + commonEvent.publish('processState',commonEventData, (err) => { + console.info("====>processState publish err: " + JSON.stringify(err)) + }) + },2000) + + } + } + + onBackground() { + // Ability has back to background + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Abilityone onBackground'); + } +} diff --git a/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/ets/pages/Index.ets b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/ets/pages/Index.ets new file mode 100644 index 000000000..d6ca48cf4 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/ets/pages/Index.ets @@ -0,0 +1,17 @@ +@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/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/module.json b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/module.json new file mode 100644 index 000000000..744de4947 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/module.json @@ -0,0 +1,37 @@ +{ + "module": { + "name": "entry", + "type": "entry", + "description": "$string:module_desc", + "mainElement": "EntryAbility", + "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", + "visible": true, + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/resources/base/element/color.json b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/resources/base/element/color.json new file mode 100644 index 000000000..d66f9a7d4 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/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/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/resources/base/element/string.json b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/resources/base/element/string.json new file mode 100644 index 000000000..f94595515 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/resources/base/element/string.json @@ -0,0 +1,16 @@ +{ + "string": [ + { + "name": "module_desc", + "value": "module description" + }, + { + "name": "EntryAbility_desc", + "value": "description" + }, + { + "name": "EntryAbility_label", + "value": "label" + } + ] +} \ No newline at end of file diff --git a/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/resources/base/media/icon.png b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/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$u5H4g6DIm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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 { + 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'); + setTimeout(() => { + globalThis.abilityContext.terminateSelf((err) => { + console.log('terminateSelf result:' + JSON.stringify(err)); + }) + },3000) + } + + 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/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/ets/pages/Index.ets b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/ets/pages/Index.ets new file mode 100644 index 000000000..d6ca48cf4 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/ets/pages/Index.ets @@ -0,0 +1,17 @@ +@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/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/module.json b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/module.json new file mode 100644 index 000000000..744de4947 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/module.json @@ -0,0 +1,37 @@ +{ + "module": { + "name": "entry", + "type": "entry", + "description": "$string:module_desc", + "mainElement": "EntryAbility", + "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", + "visible": true, + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/resources/base/element/color.json b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/resources/base/element/color.json new file mode 100644 index 000000000..d66f9a7d4 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/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/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/resources/base/element/string.json b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/resources/base/element/string.json new file mode 100644 index 000000000..f94595515 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/resources/base/element/string.json @@ -0,0 +1,16 @@ +{ + "string": [ + { + "name": "module_desc", + "value": "module description" + }, + { + "name": "EntryAbility_desc", + "value": "description" + }, + { + "name": "EntryAbility_label", + "value": "label" + } + ] +} \ No newline at end of file diff --git a/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/entry/src/main/resources/base/media/icon.png b/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeTwoReply/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~|L~ z7$0v5mkobriU!H<@mVJHLlmQqzQ3d6Rh_-|%Yy2li*tHO>_vcnuZ7OR_xkAIuIU&x z-|8Y0wj|6|a6_I(v91y%k_kNw6pnkNdxjqG8!%Vz_d%c_!X+6-;1`GC9_FpjoHev5fEV7RhJ>r=mh-jp$fqbqRJ=obwdgLDVP5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O_Ge)j^x%B8dnz0t^>Tvg|<}O+s!DN}gkY z!O;E+H3ZZ^4XK5%w!FVWqleV_P`e1&Uzr2|6WWrX_tC1M3j5V`^ozpBQAfqIcYz0@~vI3UQNGu zyHX)>cJ7%hoCX3?C~e!49hoU_-44sh-pJM8llwv$JD+RF;!Q8yySi>=(>KUc|GB`A z7dPL!xHzL==KVi42um90RV6Rn?@$O>lt@mSdTK?5*mw+FmfS;r7_~~^~x3F_AAoMF+HwKJuYu&J?wa&>f++!euG?193{S9#a9sYlOd-y2K+Y3{xLHO2Y88`s^f?0a|g zu!Yg)oacw&F^_dlVHfj_^$3^@dWk^E7J-uvWWuL2k|Y@&kkr2@Ywf!Of7g=c*mi1V z?#`9ve9z;ZyC(~#0lyUR<$Nx5{3m|P3o9DVmhE1;BX?7`#V330E!sEqwfeEzWW~m{ zgH>zJ9Ae}n!k%1il@yG8cjW8LjBO*jIQwi^e5-L0u)SDk{BIm>VK>w^tiAYXO(-s4-lQm z>4_NmKQQ)0a_e-%$UwXJrP+ZjM~lUM zVSfFBs2yKEjbSk0;mape1_`zY?GY8c40tYxLzH?~zpwDdjnn*-^Xn)WQMxKRNpR!S@{{+m>^u zZ+u-)cf6}y0lGcB$)$2LK&8Xe_WXI({T=nMFUrTSebuD;;aj?R%|DLqztmFl%3{8L r;xAXEIq*Hrn7H+Jqigf-!b8(v>bbwVw%ZGDh4NOt`YDrY*mCH9!Ucxr literal 0 HcmV?d00001 diff --git a/ability/ability_runtime/getrunningprocessinformation/BUILD.gn b/ability/ability_runtime/getrunningprocessinformation/BUILD.gn new file mode 100644 index 000000000..9de09b041 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/BUILD.gn @@ -0,0 +1,26 @@ +# 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. + +import("//test/xts/tools/build/suite.gni") + +group("getrunningprocessinformation") { + testonly = true + if (is_standard_system) { + deps = [ + "ApplicationStateChangeOneReply:ApplicationStateChangeOneReply", + "ApplicationStateChangeTwoReply:ApplicationStateChangeTwoReply", + "GetRunningProcessInformationOneReply:GetRunningProcessInformationOneReply", + "GetRunningProcessInformationTest:GetRunningProcessInformationTest", + ] + } +} diff --git a/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/AppScope/app.json b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/AppScope/app.json new file mode 100644 index 000000000..10c9ecef4 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/AppScope/app.json @@ -0,0 +1,19 @@ +{ + "app": { + "bundleName": "com.example.getrunningprocessinformationonereply", + "vendor": "example", + "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/getrunningprocessinformation/GetRunningProcessInformationOneReply/AppScope/resources/base/element/string.json b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/AppScope/resources/base/element/string.json new file mode 100644 index 000000000..fbd5f1ad5 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/AppScope/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string": [ + { + "name": "app_name", + "value": "GetRunningProcessInformationOneReply" + } + ] +} diff --git a/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/AppScope/resources/base/media/app_icon.png b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/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$0v5mkobriU!H<@mVJHLlmQqzQ3d6Rh_-|%Yy2li*tHO>_vcnuZ7OR_xkAIuIU&x z-|8Y0wj|6|a6_I(v91y%k_kNw6pnkNdxjqG8!%Vz_d%c_!X+6-;1`GC9_FpjoHev5fEV7RhJ>r=mh-jp$fqbqRJ=obwdgLDVP5+s zy1=_DWG0Y-Jb3t^WXmkr(d9~08k-|#Ly zaNOmT(^9tIb&eb4%CzIT zAm3CUtWSr1t4?h1kk#NBi{U|pJslvME{q|_eS^3En>SOqSxyuN1x;Is@8~m?*>}** znrRFArP!K_52RpX*&JHMR<^lVdm8ypJ}0R(SD(51j;6@ni$6bQ+2XL+R^|NnSp5}(kzvMZ^(@4fD_{QVu$(&K6H|C37TG1Am9Re{<<3gd zh@`>;BqkXMW&p0T6rt|iB$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JSON.stringify(err)); + } + else { + console.log(TAG,'Oncreate Callback State: ' + JSON.stringify(data[0].state)); + commonStateArr[0] = data[0].state + } + }) + } + else if (globalThis.want.action == 'Promise') { + globalThis.applicationContext.getRunningProcessInformation().then((data) => { + console.log(TAG,'Oncreate Promise State: ' + JSON.stringify(data[0].state)); + commonStateArr[0] = data[0].state + }).catch((err) => { + console.log(TAG,`getRunningProcessInformation err: ` + JSON.stringify(err)); + }); + } + } + + onDestroy() { + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onDestroy'); + + if (globalThis.want.action == 'Callback') { + globalThis.applicationContext.getRunningProcessInformation((err,data) => { + if (err) { + console.log(TAG,'Ondestroy Callback State: ' + JSON.stringify(err)); + } + else { + console.log(TAG,'Ondestroy Callback State: ' + JSON.stringify(data[0].state)); + commonStateArr[5] = data[0].state + + commonEvent.publish('processState',commonEventData, (err) => { + console.info("====>processState publish err: " + JSON.stringify(err)) + }) + } + }) + } + else if (globalThis.want.action == 'Promise') { + globalThis.applicationContext.getRunningProcessInformation().then((data) => { + console.log(TAG,'Ondestroy Promise State: ' + JSON.stringify(data[0].state)); + commonStateArr[5] = data[0].state + commonEvent.publish('processState',commonEventData, (err) => { + console.info("====>processState publish err: " + JSON.stringify(err)) + }) + }).catch((err) => { + console.log(TAG,`getRunningProcessInformation err: ` + JSON.stringify(err)); + }); + } + } + 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'); + + if (globalThis.want.action == 'Callback') { + globalThis.applicationContext.getRunningProcessInformation((err,data) => { + if (err) { + console.log(TAG,`getRunningProcessInformation err: ` + JSON.stringify(err)); + } + else { + console.log(TAG,'Onwindowstagecreate Callback State: ' + JSON.stringify(data[0].state)); + commonStateArr[1] = data[0].state + } + }) + } + else if (globalThis.want.action == 'Promise') { + globalThis.applicationContext.getRunningProcessInformation().then((data) => { + console.log(TAG,'Onwindowstagecreate Promise State: ' + JSON.stringify(data[0].state)); + commonStateArr[1] = data[0].state + }).catch((err) => { + console.log(TAG,`getRunningProcessInformation err: ` + JSON.stringify(err)); + }); + } + + 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) ?? ''); + }); + } + + async onWindowStageDestroy() { + // Main window is destroyed, release UI related resources + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageDestroy'); + + if (globalThis.want.action == 'Callback') { + globalThis.applicationContext.getRunningProcessInformation((err,data) => { + if (err) { + console.log(TAG,`getRunningProcessInformation err: ` + JSON.stringify(err)); + } + else { + console.log(TAG,'Onwindowstagedestroy Callback State: ' + JSON.stringify(data[0].state)); + commonStateArr[4] = data[0].state + } + }) + } + else if (globalThis.want.action == 'Promise') { + await globalThis.applicationContext.getRunningProcessInformation().then((data) => { + console.log(TAG,'Onwindowstagedestroy Promise State: ' + JSON.stringify(data[0].state)); + commonStateArr[2] = data[4].state + }).catch((err) => { + console.log(TAG,`getRunningProcessInformation err: ` + JSON.stringify(err)); + }); + } + } + + async onForeground() { + // Ability has brought to foreground + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onForeground'); + + if (globalThis.want.action == 'Callback') { + globalThis.applicationContext.getRunningProcessInformation((err,data) => { + if (err) { + console.log(TAG,`getRunningProcessInformation err: ` + JSON.stringify(err)); + } + else { + console.log(TAG,'Onforeground Callback State: ' + JSON.stringify(data[0].state)); + commonStateArr[2] = data[0].state + globalThis.abilityContext.terminateSelf((err) => { + console.log(TAG,'terminateSelf result:' + JSON.stringify(err)); + }); + } + }) + } + else if (globalThis.want.action == 'Promise') { + await globalThis.applicationContext.getRunningProcessInformation().then((data) => { + console.log(TAG,'Onforeground Promise State: ' + JSON.stringify(data[0].state)); + commonStateArr[2] = data[0].state + }).catch((err) => { + console.log(TAG,`getRunningProcessInformation err: ` + JSON.stringify(err)); + }); + } + await setTimeout(() => { + globalThis.abilityContext.terminateSelf((err) => { + console.log(TAG,'terminateSelf result:' + JSON.stringify(err)); + }); + },4000) + } + + async onBackground() { + // Ability has back to background + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onBackground'); + if (globalThis.want.action == 'Callback') { + globalThis.applicationContext.getRunningProcessInformation((err,data) => { + if (err) { + console.log(TAG,`getRunningProcessInformation err: ` + JSON.stringify(err)); + } + else { + console.log(TAG,'Onbackground Callback State: ' + JSON.stringify(data[0].state)); + commonStateArr[3] = data[0].state + } + }) + } +// else if (globalThis.want.action == 'Promise') { + await globalThis.applicationContext.getRunningProcessInformation().then((data) => { + console.log(TAG,'Onbackground Promise State: ' + JSON.stringify(data[0].state)); + commonStateArr[3] = data[0].state + }).catch((err) => { + console.log(TAG,`getRunningProcessInformation err: ` + JSON.stringify(err)); + }); +// } + } +} diff --git a/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/ets/pages/Index.ets b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/ets/pages/Index.ets new file mode 100644 index 000000000..d6ca48cf4 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/ets/pages/Index.ets @@ -0,0 +1,17 @@ +@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/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/module.json b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/module.json new file mode 100644 index 000000000..744de4947 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/module.json @@ -0,0 +1,37 @@ +{ + "module": { + "name": "entry", + "type": "entry", + "description": "$string:module_desc", + "mainElement": "EntryAbility", + "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", + "visible": true, + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/resources/base/element/color.json b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/resources/base/element/color.json new file mode 100644 index 000000000..d66f9a7d4 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/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/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/resources/base/element/string.json b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/resources/base/element/string.json new file mode 100644 index 000000000..f94595515 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/resources/base/element/string.json @@ -0,0 +1,16 @@ +{ + "string": [ + { + "name": "module_desc", + "value": "module description" + }, + { + "name": "EntryAbility_desc", + "value": "description" + }, + { + "name": "EntryAbility_label", + "value": "label" + } + ] +} \ No newline at end of file diff --git a/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/resources/base/media/icon.png b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/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~|L~ z7$0v5mkobriU!H<@mVJHLlmQqzQ3d6Rh_-|%Yy2li*tHO>_vcnuZ7OR_xkAIuIU&x z-|8Y0wj|6|a6_I(v91y%k_kNw6pnkNdxjqG8!%Vz_d%c_!X+6-;1`GC9_FpjoHev5fEV7RhJ>r=mh-jp$fqbqRJ=obwdgLDVP5+s zy1=_DWG0Y-Jb3t^WXmkr(d9~08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m<+r^#>gQcq zjy+$r6zy-R<_CS&_w;0;ED(?azM3zBKKqW}_3Zl1omFqI-B+|@!0HnNJIW4@duhou zZK`H_+Zferr#@li6C>UtZle@TdUMh*nfZGr_Hzy0w)#fvDqwrA$#^?~cCp(UH*dND z);BoTHFfSBaccUG&&?y7vjrXz0*|_Scr=duV0K?5Pw@15i4mkNR`=$SXg(Q5d<=yq zy!Q3c&2Np+?p<+wTkYR3!;_2Tmqx#S{Y!4CVc)KtZ}(m+8vSYKD~jKDlx|zhRxLle z_$TcC#vSke$ptFkKD~ZwiSwQIw?5i9deipn%a`Y0|Dt8W@>?$~czgQzTUU-C-czv;-DNHd}aha= zLhSojlLU-;VB}^)gM~}67?c7Hq!w;NPz`21jLIRUyzu6+OK;i_^}q66qx0f3*S{LM zqT}TQ9eGCwwVigq()qhx?|}giZgQ#I3{Yv|6z9b;dyibTzW3psHSNw5@7%ukR*S;4 zrDF)YuFW#<)_m!NtX2BSpB3U2Z+yIAH+A&(Ht6cI*Vlh~yzM-lJil&(bn@{30V1A_ Ai2wiq literal 0 HcmV?d00001 diff --git a/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/AppScope/app.json b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/AppScope/app.json new file mode 100644 index 000000000..80dd558de --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/AppScope/app.json @@ -0,0 +1,19 @@ +{ + "app": { + "bundleName": "com.example.getrunningprocessinformationtest", + "vendor": "example", + "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/getrunningprocessinformation/GetRunningProcessInformationTest/AppScope/resources/base/element/string.json b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/AppScope/resources/base/element/string.json new file mode 100644 index 000000000..c50a35fde --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/AppScope/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string": [ + { + "name": "app_name", + "value": "GetRunningProcessInformationTest" + } + ] +} diff --git a/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/AppScope/resources/base/media/app_icon.png b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/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$0v5mkobriU!H<@mVJHLlmQqzQ3d6Rh_-|%Yy2li*tHO>_vcnuZ7OR_xkAIuIU&x z-|8Y0wj|6|a6_I(v91y%k_kNw6pnkNdxjqG8!%Vz_d%c_!X+6-;1`GC9_FpjoHev5fEV7RhJ>r=mh-jp$fqbqRJ=obwdgLD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(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 { + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', 'executeShellCommand : err : %{public}s', JSON.stringify(err) ?? ''); + hilog.info(0x0000, 'testTag', 'executeShellCommand : data : %{public}s', d.stdResult ?? ''); + hilog.info(0x0000, 'testTag', 'executeShellCommand : data : %{public}s', d.exitCode ?? ''); + }) + hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner onRun end'); + } +} \ No newline at end of file diff --git a/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/test/Ability.test.ets new file mode 100644 index 000000000..d1fdf2c67 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/test/Ability.test.ets @@ -0,0 +1,505 @@ +import hilog from '@ohos.hilog' +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import commonEvent from '@ohos.commonEvent' +import appManager from '@ohos.app.ability.appManager' +import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' +let ACTS_ProcessState = { + events: ["processState"] +}; + +export default function abilityTest() { + describe('GetRunningProcessInformationTest', function () { + // Defines a test suite. Two parameters are supported: test suite name and test suite function. + beforeAll(function () { + // Presets an action, which is performed only once before all test cases of the test suite start. + // This API supports only one parameter: preset action function. + }) + beforeEach(async function () { + var abilityDelegator; + abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); + let cmd1 = 'hilog -r' + await abilityDelegator.executeShellCommand(cmd1, (err : any, data : any) => { + console.info("executeShellCommand1 callback"); + }); + await abilityDelegator.executeShellCommand("hilog -G 20M", async (err, data) => {}) + }) + afterEach(async function () { + var abilityDelegator; + abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); + let cmd1 = 'aa force-stop com.example.applicationstatechangeonereply' + let cmd2 = 'aa force-stop com.example.applicationstatechangetworeply' + let cmd4 = 'aa force-stop com.example.getrunningprocessinformationonereply' + let cmd3 = 'hilog -r' + await abilityDelegator.executeShellCommand(cmd1, (err : any, data : any) => { + console.info("executeShellCommand1 callback"); + }); + await abilityDelegator.executeShellCommand(cmd2, (err : any, data : any) => { + console.info("executeShellCommand2 callback"); + }); + await abilityDelegator.executeShellCommand(cmd3, (err : any, data : any) => { + console.info("executeShellCommand3 callback"); + }); + await abilityDelegator.executeShellCommand(cmd4, (err : any, data : any) => { + console.info("executeShellCommand3 callback"); + }); + + }) + afterAll(function () { + // Presets a clear action, which is performed after all test cases of the test suite end. + // This API supports only one parameter: clear action function. + }) + + it('Acts_ApplicationStateChange_0100',0, function (done) { + let want = { + "deviceId": "", + "bundleName": "com.example.applicationstatechangeonereply", + "abilityName": "EntryAbility", + "action": "Normal" + } + let wantAuxiliary = { + "deviceId": "", + "bundleName": "com.example.applicationstatechangetworeply", + "abilityName": "EntryAbility", + "action": "Normal" + } + let subscriber + function unSubscribeCallback() { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 unSubscribeCallback"); + } + function subscribeCallBack(err, data) { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 data: " + JSON.stringify(data)); + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 err: " + JSON.stringify(err)); + if(data.event == "processState") { + try{ + expect(data.parameters.commonStateArr[0]).assertEqual(1) + expect(data.parameters.commonStateArr[1]).assertEqual(1) + expect(data.parameters.commonStateArr[2]).assertEqual(-1) + expect(data.parameters.commonStateArr[3]).assertEqual(-1) + } + catch(error) { + console.log("An error is generated") + } + commonEvent.unsubscribe(subscriber, unSubscribeCallback); + } + } + setTimeout(() => { + commonEvent.createSubscriber(ACTS_ProcessState).then((data) => { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0100 Create Subscribe"); + subscriber = data; + commonEvent.subscribe(subscriber, subscribeCallBack); + + globalThis.abilityContext.startAbility(want, (error) => { + console.log("ability error.code = " + error.code) + }) + + setTimeout(() => { + globalThis.abilityContext.startAbility(wantAuxiliary, (error) => { + console.log("auxiliary ability error.code = " + error.code) + }) + },2500) + + }) + },500) + + setTimeout(()=>{ + done(); + }, 14000); + }) + + + it('Acts_ApplicationStateChange_0200',0, async function (done) { + let want = { + "deviceId": "", + "bundleName": "com.example.applicationstatechangeonereply", + "abilityName": "EntryAbility", + "action": "NeedBackGroundOff" + } + let wantAuxiliary = { + "deviceId": "", + "bundleName": "com.example.applicationstatechangetworeply", + "abilityName": "EntryAbility", + "action": "Normal" + } + let subscriber + function unSubscribeCallback() { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 unSubscribeCallback"); + } + function subscribeCallBack(err, data) { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 data: " + JSON.stringify(data)); + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 err: " + JSON.stringify(err)); + if(data.event == "processState") { + console.info("entered assert zone!") + try{ + expect(data.parameters.commonStateArr[0]).assertEqual(-1) + expect(data.parameters.commonStateArr[1]).assertEqual(1) + expect(data.parameters.commonStateArr[2]).assertEqual(-1) + expect(data.parameters.commonStateArr[3]).assertEqual(-1) + } + catch{ + console.log("An error is generated") + } + + commonEvent.unsubscribe(subscriber, unSubscribeCallback); + } + } + setTimeout(() => { + commonEvent.createSubscriber(ACTS_ProcessState).then(async (data) => { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 Create Subscribe"); + subscriber = data; + commonEvent.subscribe(subscriber, subscribeCallBack); + + globalThis.abilityContext.startAbility(want, (error) => { + console.log("ability error.code = " + error.code) + }) + + setTimeout(() => { + globalThis.abilityContext.startAbility(wantAuxiliary, (error) => { + console.log("auxiliary ability error.code = " + error.code) + }) + },2500) + }) + },500) + + setTimeout(()=>{ + done(); + }, 14000); + }) + + + it('Acts_ApplicationStateChange_0300',0, async function (done) { + let want = { + "deviceId": "", + "bundleName": "com.example.applicationstatechangeonereply", + "abilityName": "EntryAbility", + "action": "doubleRegister" + } + let wantAuxiliary = { + "deviceId": "", + "bundleName": "com.example.applicationstatechangetworeply", + "abilityName": "EntryAbility", + "action": "Normal" + } + + let subscriber + function unSubscribeCallback() { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 unSubscribeCallback"); + } + function subscribeCallBack(err, data) { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 data: " + JSON.stringify(data)); + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 err: " + JSON.stringify(err)); + if(data.event == "processState") { + console.info("entered assert zone!") + try{ + expect(data.parameters.commonStateArr[0]).assertEqual(1) + expect(data.parameters.commonStateArr[1]).assertEqual(1) + expect(data.parameters.commonStateArr[2]).assertEqual(1) + expect(data.parameters.commonStateArr[3]).assertEqual(1) + } + catch(error){ + console.log("An error is generated") + } + commonEvent.unsubscribe(subscriber, unSubscribeCallback); + } + } + setTimeout(() => { + commonEvent.createSubscriber(ACTS_ProcessState).then(async (data) => { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0300 Create Subscribe"); + subscriber = data; + commonEvent.subscribe(subscriber, subscribeCallBack); + + globalThis.abilityContext.startAbility(want, (error) => { + console.log("ability error.code = " + error.code) + }) + setTimeout(() => { + globalThis.abilityContext.startAbility(wantAuxiliary, (error) => { + console.log("auxiliary ability error.code = " + error.code) + }) + },2500) + }) + },500) + + setTimeout(()=>{ + done(); + }, 14000); + + }) + + + it('Acts_ApplicationStateChange_0400',0, async function (done) { + let abilityDelegator; + abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); + let want = { + "deviceId": "", + "bundleName": "com.example.applicationstatechangeonereply", + "abilityName": "EntryAbility", + "action": "doubleNeedBackGroundOff" + } + let wantAuxiliary = { + "deviceId": "", + "bundleName": "com.example.applicationstatechangetworeply", + "abilityName": "EntryAbility", + "action": "Normal" + } + + let subscriber + function unSubscribeCallback() { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 unSubscribeCallback"); + } + function subscribeCallBack(err, data) { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 data: " + JSON.stringify(data)); + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 err: " + JSON.stringify(err)); + if(data.event == "processState") { + console.info("entered assert zone!") + try{ + expect(data.parameters.commonStateArr[0]).assertEqual(1) + expect(data.parameters.commonStateArr[1]).assertEqual(1) + expect(data.parameters.commonStateArr[2]).assertEqual(-1) + expect(data.parameters.commonStateArr[3]).assertEqual(1) + } + catch(error){ + console.log("An error is generated") + } + commonEvent.unsubscribe(subscriber, unSubscribeCallback); + } + } + setTimeout(() => { + commonEvent.createSubscriber(ACTS_ProcessState).then(async (data) => { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 Create Subscribe"); + subscriber = data; + commonEvent.subscribe(subscriber, subscribeCallBack); + + globalThis.abilityContext.startAbility(want, (error) => { + console.log("ability error.code = " + error.code) + }) + setTimeout(() => { + globalThis.abilityContext.startAbility(wantAuxiliary, (error) => { + console.log("auxiliary ability error.code = " + error.code) + }) + },2500) + }) + },500) + + setTimeout(()=>{ + done(); + }, 14000); + }) + + + it('Acts_ApplicationStateChange_0500',0, async function (done) { + let abilityDelegator; + abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); + let want = { + "deviceId": "", + "bundleName": "com.example.applicationstatechangeonereply", + "abilityName": "EntryAbility", + "action": "MultiAppRegister" + } + let wantAuxiliary = { + "deviceId": "", + "bundleName": "com.example.applicationstatechangetworeply", + "abilityName": "EntryAbility", + "action": "MultiAppRegister" + } + + let subscriber + function unSubscribeCallback() { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 unSubscribeCallback"); + } + function subscribeCallBack(err, data) { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 data: " + JSON.stringify(data)); + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 err: " + JSON.stringify(err)); + if(data.event == "processState") { + console.info("entered assert zone!") + try{ + expect(data.parameters.commonStateArr[0]).assertEqual(-1) + expect(data.parameters.commonStateArr[1]).assertEqual(1) + expect(data.parameters.commonStateArr[2]).assertEqual(-1) + expect(data.parameters.commonStateArr[3]).assertEqual(-1) + } + catch(error){ + console.log("An error is generated") + } + commonEvent.unsubscribe(subscriber, unSubscribeCallback); + } + } + setTimeout(() => { + commonEvent.createSubscriber(ACTS_ProcessState).then(async (data) => { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 Create Subscribe"); + subscriber = data; + commonEvent.subscribe(subscriber, subscribeCallBack); + + globalThis.abilityContext.startAbility(want, (error) => { + console.log("ability error.code = " + error.code) + }) + setTimeout(() => { + globalThis.abilityContext.startAbility(wantAuxiliary, (error) => { + console.log("auxiliary ability error.code = " + error.code) + }) + },2500) + }) + },500) + + setTimeout(()=>{ + done(); + }, 14000); + }) + + it('Acts_ApplicationStateChange_0600',0, async function (done) { + let abilityDelegator; + abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); + let want = { + "deviceId": "", + "bundleName": "com.example.applicationstatechangeonereply", + "abilityName": "EntryAbility", + "action": "DoubleRegisterOff" + } + let wantAuxiliary = { + "deviceId": "", + "bundleName": "com.example.applicationstatechangetworeply", + "abilityName": "EntryAbility", + "action": "DoubleRegisterOff" + } + + let subscriber + function unSubscribeCallback() { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 unSubscribeCallback"); + } + function subscribeCallBack(err, data) { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 data: " + JSON.stringify(data)); + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 err: " + JSON.stringify(err)); + if(data.event == "processState") { + console.info("entered assert zone!") + try{ + expect(data.parameters.commonStateArr[0]).assertEqual(-1) + expect(data.parameters.commonStateArr[1]).assertEqual(1) + expect(data.parameters.commonStateArr[2]).assertEqual(-1) + expect(data.parameters.commonStateArr[3]).assertEqual(1) + } + catch(error){ + console.log("An error is generated") + } + commonEvent.unsubscribe(subscriber, unSubscribeCallback); + } + } + setTimeout(() => { + commonEvent.createSubscriber(ACTS_ProcessState).then(async (data) => { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 Create Subscribe"); + subscriber = data; + commonEvent.subscribe(subscriber, subscribeCallBack); + + globalThis.abilityContext.startAbility(want, (error) => { + console.log("ability error.code = " + error.code) + }) + setTimeout(() => { + globalThis.abilityContext.startAbility(wantAuxiliary, (error) => { + console.log("auxiliary ability error.code = " + error.code) + }) + },2500) + }) + },500) + + setTimeout(()=>{ + done(); + }, 14000); + + }) + it('Acts_GetRunningProcessInformation_AsyncCallback_0200',0, function (done) { + + console.info("=====>Acts_GetRunningProcessInformation_AsyncCallback_0200 start<=====") + let want = { + "deviceId": "", + "bundleName": "com.example.getrunningprocessinformationonereply", + "abilityName": "EntryAbility", + "action": "Callback" + } + let subscriber + function unSubscribeCallback() { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 unSubscribeCallback"); + } + function subscribeCallBack(err, data) { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 data: " + JSON.stringify(data)); + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 err: " + JSON.stringify(err)); + if(data.event == "processState") { + try{ + expect(data.parameters.commonStateArr[0]).assertEqual(2||1) + expect(data.parameters.commonStateArr[1]).assertEqual(2||1) + expect(data.parameters.commonStateArr[2]).assertEqual(2||1) + expect(data.parameters.commonStateArr[3]).assertEqual(3) + expect(data.parameters.commonStateArr[4]).assertEqual(3) + expect(data.parameters.commonStateArr[5]).assertEqual(3) + } + catch(error) { + console.log("An error is generated") + } + commonEvent.unsubscribe(subscriber, unSubscribeCallback); + } + } + setTimeout(() => { + commonEvent.createSubscriber(ACTS_ProcessState).then(async (data) => { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 Create Subscribe"); + subscriber = data; + commonEvent.subscribe(subscriber, subscribeCallBack); + + await globalThis.abilityContext.startAbility(want, (error) => { + console.log("ability error.code = " + error.code) + }) + }) + },500) + + setTimeout(()=>{ + done(); + }, 14000); + + }) + + it('Acts_GetRunningProcessInformation_Promise_0200',0, function (done) { + console.info("=====>Acts_GetRunningProcessInformation_AsyncCallback_0200 start<=====") + let want = { + "deviceId": "", + "bundleName": "com.example.getrunningprocessinformationonereply", + "abilityName": "EntryAbility", + "action": "Promise" + } + let subscriber + function unSubscribeCallback() { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 unSubscribeCallback"); + } + function subscribeCallBack(err, data) { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 data: " + JSON.stringify(data)); + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 err: " + JSON.stringify(err)); + if(data.event == "processState") { + try{ + expect(data.parameters.commonStateArr[0]).assertEqual(2||1) + expect(data.parameters.commonStateArr[1]).assertEqual(2||1) + expect(data.parameters.commonStateArr[2]).assertEqual(2||1) + expect(data.parameters.commonStateArr[3]).assertEqual(3) + expect(data.parameters.commonStateArr[4]).assertEqual(3) + expect(data.parameters.commonStateArr[5]).assertEqual(3) + } + catch(error) { + console.log("An error is generated") + } + commonEvent.unsubscribe(subscriber, unSubscribeCallback); + } + } + setTimeout(() => { + commonEvent.createSubscriber(ACTS_ProcessState).then(async (data) => { + console.debug("====>Acts_GetRunningProcessInformation_AsyncCallback_0200 Create Subscribe"); + subscriber = data; + commonEvent.subscribe(subscriber, subscribeCallBack); + + await globalThis.abilityContext.startAbility(want, (error) => { + console.log("ability error.code = " + error.code) + }) + }) + },500) + + setTimeout(()=>{ + done(); + }, 14000); + + }) + + + }) +} \ No newline at end of file diff --git a/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/test/List.test.ets b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/test/List.test.ets new file mode 100644 index 000000000..d766fe249 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/test/List.test.ets @@ -0,0 +1,5 @@ +import abilityTest from './Ability.test' + +export default function testsuite() { + abilityTest() +} \ No newline at end of file diff --git a/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/testability/TestAbility.ets b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/testability/TestAbility.ets new file mode 100644 index 000000000..c9e9dc5f9 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/testability/TestAbility.ets @@ -0,0 +1,58 @@ +import hilog from '@ohos.hilog'; +import Ability from '@ohos.app.ability.UIAbility' +import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' +import { Hypium } from '@ohos/hypium' +import testsuite from '../test/List.test' +import Window from '@ohos.window' + +export default class TestAbility extends Ability { + onCreate(want, launchParam) { + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onCreate'); + hilog.info(0x0000, 'testTag', '%{public}s', 'want param:' + JSON.stringify(want) ?? ''); + hilog.info(0x0000, 'testTag', '%{public}s', 'launchParam:'+ JSON.stringify(launchParam) ?? ''); + globalThis.abilityContext = this.context + var abilityDelegator: any + abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() + var abilityDelegatorArguments: any + abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'start run testcase!!!'); + Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) + } + + onDestroy() { + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onDestroy'); + } + + onWindowStageCreate(windowStage: Window.WindowStage) { + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onWindowStageCreate'); + windowStage.loadContent('testability/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() { + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onWindowStageDestroy'); + } + + onForeground() { + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onForeground'); + } + + onBackground() { + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onBackground'); + } +} \ No newline at end of file diff --git a/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/testability/pages/Index.ets b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/testability/pages/Index.ets new file mode 100644 index 000000000..954dfe0e2 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/ets/testability/pages/Index.ets @@ -0,0 +1,35 @@ +import hilog from '@ohos.hilog'; + +@Entry +@Component +struct Index { + aboutToAppear() { + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility index aboutToAppear'); + } + @State message: string = 'Hello World' + 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/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/module.json b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/module.json new file mode 100644 index 000000000..d37222041 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/module.json @@ -0,0 +1,45 @@ +{ + "module": { + "name": "entry_test", + "type": "feature", + "description": "$string:module_test_desc", + "mainElement": "TestAbility", + "deviceTypes": [ + "default", + "tablet" + ], + "deliveryWithInstall": true, + "installationFree": false, + "pages": "$profile:test_pages", + "abilities": [ + { + "name": "TestAbility", + "srcEntrance": "./ets/testability/TestAbility.ets", + "description": "$string:TestAbility_desc", + "icon": "$media:icon", + "label": "$string:TestAbility_label", + "visible": true, + "startWindowIcon": "$media:icon", + "startWindowBackground": "$color:start_window_background", + "skills": [ + { + "actions": [ + "action.system.home" + ], + "entities": [ + "entity.system.home" + ] + } + ] + } + ], + "requestPermissions": [ + { + "name": "ohos.permission.START_INVISIBLE_ABILITY" + }, + { + "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND" + } + ] + } +} diff --git a/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/resources/base/element/color.json b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/resources/base/element/color.json new file mode 100644 index 000000000..3c712962d --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/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/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/resources/base/element/string.json b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/resources/base/element/string.json new file mode 100644 index 000000000..65d8fa5a7 --- /dev/null +++ b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/resources/base/element/string.json @@ -0,0 +1,16 @@ +{ + "string": [ + { + "name": "module_test_desc", + "value": "test ability description" + }, + { + "name": "TestAbility_desc", + "value": "the test ability" + }, + { + "name": "TestAbility_label", + "value": "test label" + } + ] +} \ No newline at end of file diff --git a/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/entry/src/main/resources/base/media/icon.png b/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationTest/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{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