/test/xts/acts/ability/ability_runtime/want/actsgetwantalltest/src/main/js/test/ |
D | ActsGetWantAllTest.js | 45 want: { property 63 expect(data.want.deviceId).assertEqual(""); 64 expect(data.want.bundleName).assertEqual("com.example.actsgetwantalltesthap"); 65 … expect(data.want.abilityName).assertEqual("com.example.actsgetwantalltesthap.MainAbility"); 66 expect(data.want.action).assertEqual("action1"); 67 expect(data.want.parameters.mykey0).assertEqual(1); 68 expect(data.want.parameters.mykey1[0]).assertEqual(1); 69 expect(data.want.parameters.mykey1[1]).assertEqual(2); 70 expect(data.want.parameters.mykey1[2]).assertEqual(3); 71 expect(data.want.parameters.mykey2).assertEqual("[1, 2, 3]"); [all …]
|
/test/xts/acts/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityclienttest/src/main/js/ServiceAbility1/ |
D | service.js | 62 onStart(want) { 64 + want + " , JSON." + JSON.stringify(want)); 71 onCommand(want, restart, startId) { 73 + "JSON(want)=" + JSON.stringify(want) 75 if (want.action == 'ServiceStartService_0900') { 78 want: property 87 } else if (want.action == 'ServiceStartService_1000') { 90 want: property 102 … commonEvent.publish("ACTS_SerivceAbilityServer_onCommand" + "_" + want.action, (err) => { 104 … if (want.action == 'PageStartService_0100' || want.action == 'PageStartService_0200' [all …]
|
/test/xts/acts/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityclienttest/src/main/js/ServiceAbility2/ |
D | service.js | 56 onStart(want) { 58 + want + " , JSON." + JSON.stringify(want)); 65 onCommand(want, restart, startId) { 67 + "JSON(want)=" + JSON.stringify(want) 69 … commonEvent.publish("ACTS_SerivceAbilityServerSecond_onCommand" + "_" + want.action, (err) => { 70 console.debug("ACTS_SerivceAbilityServerSecond_onCommand" + "_" + want.action + 75 onConnect(want) { 79 + want + " , JSON." + JSON.stringify(want)); 82 + JSON.stringify(want.action) + " , " + want.action); 87 … if (want.action == 'ServiceConnectService_1500' || want.action == 'ServiceConnectService_1600') { [all …]
|
/test/xts/acts/ability_lite/ability_hal/src/ |
D | ability_mgr_test.c | 113 Want want = { 0 }; variable 119 bool ret = SetWantElement(&want, element); 121 TEST_ASSERT_EQUAL_STRING(want.element->deviceId, "0001000"); 122 TEST_ASSERT_EQUAL_STRING(want.element->abilityName, "SecondAbility"); 123 TEST_ASSERT_EQUAL_STRING(want.element->bundleName, "com.openharmony.testnative"); 127 ClearWant(&want); 128 TEST_ASSERT_EQUAL_STRING(want.element, NULL); 140 Want want = { 0 }; variable 142 bool ret = SetWantElement(&want, element); 144 TEST_ASSERT_EQUAL_STRING(want.element->deviceId, NULL); [all …]
|
/test/xts/acts/ability_lite/ability_posix/src/ |
D | AbilityMgrTest2.cpp | 207 Want want = { nullptr }; variable 213 bool setResult = SetWantElement(&want, element); 215 EXPECT_STREQ(want.element->deviceId, "0001000"); 216 EXPECT_STREQ(want.element->abilityName, "ServiceAbility"); 217 EXPECT_STREQ(want.element->bundleName, "com.openharmony.testnative"); 221 ClearWant(&want); 233 Want want = { nullptr }; variable 235 bool setResult = SetWantElement(&want, element); 237 EXPECT_STREQ(want.element->deviceId, nullptr); 238 EXPECT_STREQ(want.element->abilityName, nullptr); [all …]
|
D | AbilityMgrTest.cpp | 209 Want want = { nullptr }; variable 215 bool setResult = SetWantElement(&want, element); 217 EXPECT_STREQ(want.element->deviceId, "0001000"); 218 EXPECT_STREQ(want.element->abilityName, "SecondAbility"); 219 EXPECT_STREQ(want.element->bundleName, "com.openharmony.testnative"); 223 ClearWant(&want); 235 Want want = { nullptr }; variable 237 bool setResult = SetWantElement(&want, element); 239 EXPECT_STREQ(want.element->deviceId, nullptr); 240 EXPECT_STREQ(want.element->abilityName, nullptr); [all …]
|
/test/xts/acts/ability/ability_runtime/newwant/actsnewwantarelyhap/entry/src/main/ets/MainAbility/ |
D | MainAbility.ts | 29 onCreate(want, launchParam) { 32 globalThis.abilityWant = want; 83 onNewWant(want) { 86 globalThis.abilityWant = want; 87 console.log("ACTS_NewWant MainAbility onNewWant deviceId :" + want) 88 console.log("ACTS_NewWant MainAbility onNewWant deviceId :" + want.deviceId) 89 console.log("ACTS_NewWant MainAbility onNewWant bundleName :" + want.bundleName) 90 console.log("ACTS_NewWant MainAbility onNewWant abilityName :" + want.abilityName) 91 console.log("ACTS_NewWant MainAbility onNewWant uri :" + want.uri) 92 console.log("ACTS_NewWant MainAbility onNewWant type :" + want.type) [all …]
|
/test/xts/acts/ability/ability_runtime/newwant/actsnewwantbrelyhap/entry/src/main/ets/MainAbility/ |
D | MainAbility.ts | 29 onCreate(want, launchParam) { 32 globalThis.abilityWant = want; 83 onNewWant(want) { 86 globalThis.abilityWant = want; 87 console.log("ACTS_NewWant MainAbility onNewWant deviceId :" + want) 88 console.log("ACTS_NewWant MainAbility onNewWant deviceId :" + want.deviceId) 89 console.log("ACTS_NewWant MainAbility onNewWant bundleName :" + want.bundleName) 90 console.log("ACTS_NewWant MainAbility onNewWant abilityName :" + want.abilityName) 91 console.log("ACTS_NewWant MainAbility onNewWant uri :" + want.uri) 92 console.log("ACTS_NewWant MainAbility onNewWant type :" + want.type) [all …]
|
/test/xts/acts/ability/ability_runtime/abilitymultiinstance/amsabilitymultiinstanceappa/entry/src/main/ets/Application/ |
D | AbilityStage.ts | 28 onAcceptWant(want) { 29 console.log("AbilityMultiInstanceAppA onAcceptWant called want:" + JSON.stringify(want)); 30 if ((want.parameters == undefined) || (want.parameters.startId == undefined)) { 35 var abilityId = want.parameters.startId.toString(); 41 if (want.parameters.startId == ONACCEPTWANT_KEY_NOTSET_ID) { 43 } else if (want.parameters.startId == ONACCEPTWANT_KEY_UNDEFINED_ID) { 47 globalThis.abilityWant = want;
|
/test/xts/acts/ability/ability_runtime/newwant/actsnewwantrelyhap/entry/src/main/ets/MainAbility/ |
D | MainAbility.ts | 29 onCreate(want, launchParam) { 32 globalThis.abilityWant = want; 113 onNewWant(want) { 116 globalThis.abilityWant = want; 117 console.log("ACTS_NewWant MainAbility onNewWant deviceId :" + want) 118 console.log("ACTS_NewWant MainAbility onNewWant deviceId :" + want.deviceId) 119 console.log("ACTS_NewWant MainAbility onNewWant bundleName :" + want.bundleName) 120 console.log("ACTS_NewWant MainAbility onNewWant abilityName :" + want.abilityName) 121 console.log("ACTS_NewWant MainAbility onNewWant uri :" + want.uri) 122 console.log("ACTS_NewWant MainAbility onNewWant type :" + want.type) [all …]
|
/test/xts/acts/account/appaccount/sceneProject/actsaccountoauthtoken/entry/src/main/js/default/pages/index/ |
D | index.js | 55 onStart(want) { 61 onConnect(want) { 64 console.info("ServiceAbility want: " + typeof(want)); 65 console.info("ServiceAbility want: " + JSON.stringify(want)); 66 console.info("ServiceAbility want name: " + want.bundleName); 73 onReconnect(want) { 76 onDisconnect(want) { 78 console.info("ServiceAbility want: " + JSON.stringify(want)); 80 onCommand(want, startId) { 82 console.info("ServiceAbility want: " + JSON.stringify(want));
|
/test/xts/dcts/distributeddatamgr/jstest/distributed_kv_store/server/hap/src/main/js/ServiceAbility/ |
D | service.js | 25 onCommand(want, startId) { 26 console.log('RpcServer: onCommand, want: ' + JSON.stringify(want) + ', startId: ' + startId) 28 onConnect(want) { 32 onDisconnect(want) { 35 onReconnect(want) {
|
/test/xts/dcts/distributeddatamgr/jstest/distributed_rdb_store/server/hap/src/main/js/ServiceAbility/ |
D | service.js | 25 onCommand(want, startId) { 26 console.log('RpcServer: onCommand, want: ' + JSON.stringify(want) + ', startId: ' + startId) 28 onConnect(want) { 32 onDisconnect(want) { 35 onReconnect(want) {
|
/test/xts/acts/appexecfwk_lite/appexecfwk_hal/src/ |
D | bundle_mgr_test.c | 194 Want want = { 0 }; variable 197 SetWantElement(&want, element); 199 TEST_ASSERT_EQUAL_STRING(want.element->abilityName, aName); 201 ClearWant(&want); 213 Want want = { 0 }; variable 217 SetWantElement(&want, element); 218 TEST_ASSERT_EQUAL_STRING(want.element->abilityName, ""); 220 SetWantElement(&want, element); 221 TEST_ASSERT_EQUAL_STRING(want.element->abilityName, NULL); 225 ClearWant(&want); [all …]
|
/test/xts/acts/ability/ability_runtime/newwant/actsnewwantrelyhap/entry/src/main/ets/SecondAbility/ |
D | SecondAbility.ts | 30 onCreate(want, launchParam) { 33 globalThis.abilityWant = want; 138 onNewWant(want) { 141 globalThis.abilityWant = want; 142 console.log("ACTS_NewWant SecondAbility onNewWant deviceId :" + want.deviceId) 143 console.log("ACTS_NewWant SecondAbility onNewWant bundleName :" + want.bundleName) 144 console.log("ACTS_NewWant SecondAbility onNewWant abilityName :" + want.abilityName) 145 console.log("ACTS_NewWant SecondAbility onNewWant uri :" + want.uri) 146 console.log("ACTS_NewWant SecondAbility onNewWant type :" + want.type) 147 console.log("ACTS_NewWant SecondAbility onNewWant flags :" + want.flags) [all …]
|
/test/xts/acts/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostnoperm/entry/src/main/ets/MainAbility/pages/ |
D | index.ets | 58 .then((want: any) => { 59 this.formId = parseInt(want.parameters.formId); 60 this.name = want.parameters.name; 61 this.bundle = want.parameters.bundle; 62 this.ability = want.parameters.ability; 63 if(want.parameters.moduleName) { 64 this.moduleName = want.parameters.moduleName; 66 if(want.parameters.temporary) { 67 this.temporary = want.parameters.temporary; 69 if(want.parameters.dimension) { [all …]
|
/test/xts/acts/ability/ability_runtime/abilitymultiinstance/amsabilitymultiinstanceappd/entry/src/main/ets/Application/ |
D | AbilityStage.ts | 26 onAcceptWant(want) { 27 console.log("AbilityMultiInstanceAppD onAcceptWant called want:" + JSON.stringify(want)); 28 var abilityId = want.parameters.startId.toString(); 33 globalThis.abilityWant = want;
|
/test/xts/acts/appexecfwk_lite/appexecfwk_posix/src/ |
D | BundleMgrTest.cpp | 159 Want want = { nullptr }; variable 162 SetWantElement(&want, element); 163 printf("element is %s \n", want.element->abilityName); 166 EXPECT_STREQ(want.element->abilityName, aName); 168 ClearWant(&want); 180 Want want = { nullptr }; variable 183 SetWantElement(&want, element); 184 printf("AbilityName1 is %s \n", want.element->abilityName); 185 EXPECT_STREQ(want.element->abilityName, nullptr); 188 SetWantElement(&want, element); [all …]
|
/test/xts/acts/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostl/entry/src/main/ets/MainAbility/pages/ |
D | index.ets | 74 .then((want: any) => { 75 console.info(`${this.TAG} getWant: ${JSON.stringify(want)}`); 76 this.formId = want.parameters.formId; 77 this.name = want.parameters.name; 78 this.bundle = want.parameters.bundle; 79 this.ability = want.parameters.ability; 80 if (want.parameters.moduleName) { 81 this.moduleName = want.parameters.moduleName; 83 if (want.parameters.temporary) { 84 this.temporary = want.parameters.temporary; [all …]
|
/test/xts/dcts/ability/dmsfwk/dmsfwkserver/src/main/js/ServiceAbility/ |
D | service.js | 25 onCommand(want, startId) { 26 console.info('DmsServer: onCommand, want: ' + JSON.stringify(want) +', startId: ' + startId) 28 onConnect(want) { 32 onDisconnect(want) { 35 onReconnect(want) {
|
/test/xts/acts/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostf/entry/src/main/ets/MainAbility/pages/ |
D | index.ets | 102 .then((want: any) => { 103 this.formId = parseInt(want.parameters.formId); 104 this.name = want.parameters.name; 105 this.bundle = want.parameters.bundle; 106 this.ability = want.parameters.ability; 107 if(want.parameters.moduleName) { 108 this.moduleName = want.parameters.moduleName; 110 if(want.parameters.temporary) { 111 this.temporary = want.parameters.temporary; 113 if(want.parameters.dimension) { [all …]
|
/test/xts/acts/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhoste/entry/src/main/ets/MainAbility/pages/ |
D | index.ets | 101 .then((want: any) => { 102 this.formId = parseInt(want.parameters.formId); 103 this.name = want.parameters.name; 104 this.bundle = want.parameters.bundle; 105 this.ability = want.parameters.ability; 106 if (want.parameters.moduleName) { 107 this.moduleName = want.parameters.moduleName; 109 if (want.parameters.temporary) { 110 this.temporary = want.parameters.temporary; 112 if (want.parameters.dimension) { [all …]
|
/test/xts/acts/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostk/entry/src/main/ets/MainAbility/pages/ |
D | index.ets | 126 .then(async (want: any) => { 127 console.info(`${this.TAG} ===> getWant: ${JSON.stringify(want)}`); 128 this.formId = want.parameters.formId; 129 this.name = want.parameters.name; 130 this.bundle = want.parameters.bundle; 131 this.ability = want.parameters.ability; 132 if (want.parameters.moduleName) { 133 this.moduleName = want.parameters.moduleName; 135 if (want.parameters.temporary) { 136 this.temporary = want.parameters.temporary; [all …]
|
/test/xts/acts/ability/ability_runtime/apicover/formmodule/entry/src/main/ets/Application/ |
D | AbilityStage.ts | 9 onAcceptWant(want) { 10 console.log("[Demo] MyAbilityStage onAcceptWant called want:" + JSON.stringify(want)); 11 let abilityId = want.parameters.startId.toString();
|
/test/xts/acts/ability/ability_runtime/formmanager/fa/formhostst_ets/formsystemhostb/entry/src/main/ets/MainAbility/pages/ |
D | index.ets | 81 .then((want: any) => { 82 this.formId = parseInt(want.parameters.formId); 83 this.name = want.parameters.name; 84 this.bundle = want.parameters.bundle; 85 this.ability = want.parameters.ability; 86 if(want.parameters.moduleName) { 87 this.moduleName = want.parameters.moduleName; 89 if(want.parameters.temporary) { 90 this.temporary = want.parameters.temporary; 92 if(want.parameters.dimension) { [all …]
|