/test/xts/acts/ability/ability_runtime/want/actsgetwantalltest/src/main/js/test/ |
D | ActsGetWantAllTest.js | 39 want: { property 55 expect(data.want.parameters.hasOwnProperty("wantRemoteOjbect")).assertEqual(false); 71 want: { property 90 expect(data.want.deviceId).assertEqual(""); 91 expect(data.want.bundleName).assertEqual("com.example.actsgetwantalltesthap"); 92 … expect(data.want.abilityName).assertEqual("com.example.actsgetwantalltesthap.MainAbility"); 93 expect(data.want.action).assertEqual("action1"); 94 expect(data.want.parameters.mykey0).assertEqual(1); 95 expect(data.want.parameters.mykey1[0]).assertEqual(1); 96 expect(data.want.parameters.mykey1[1]).assertEqual(2); [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_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_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/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/ability_runtime/stage/actsbatchuripermission/actsbatchuripermissionrecvhap/entry/src/main/ets/batchuripermissionability/ |
D | BatchUriPermissionAbility.ts | 24 onCreate(want, launchParam) { 26 globalThis.abilityWant = want; 27 if (want.parameters.testcase !== undefined) { 28 globalThis.testcase = want.parameters.testcase; 30 if (want.parameters.filesDir !== undefined) { 31 globalThis.filesDir = want.parameters.filesDir; 33 globalThis.preCount = want.parameters.preCount; 34 globalThis.tempCount = want.parameters.tempCount; 38 onNewWant(want, launchParam) { 40 globalThis.abilityWant = want; [all …]
|
/test/xts/acts/ability/ability_runtime/actsactionextensionability/actsactionextensionabilityself/entry/src/main/ets/entryability/ |
D | EntryAbility.ts | 20 onCreate(want, launchParam) { 33 if (want.action === 'Acts_ActionExtensionAbility_0100') { 44 if (want.action === 'Acts_ActionExtensionAbility_0300') { 55 if (want.action === 'Acts_ActionExtensionAbility_0400') { 67 if (want.action === 'Acts_ActionExtensionAbility_0500') { 78 if (want.action === 'Acts_ActionExtensionAbility_0600') { 89 if (want.action === 'Acts_ActionExtensionAbility_0700') { 97 if (want.action === 'Acts_ActionExtensionAbility_DEFAULT') { 108 if (want.action === 'Acts_ActionExtensionAbility_1000') { 120 if (want.action === 'Acts_ActionExtensionAbility_1100') { [all …]
|
/test/xts/acts/ability/ability_runtime/shareextensionability/actsshareextensionabilityself/entry/src/main/ets/entryability/ |
D | EntryAbility.ts | 20 onCreate(want, launchParam) { 33 if (want.action === 'Acts_ShareExtensionAbility_0100') { 44 if (want.action === 'Acts_ShareExtensionAbility_0300') { 55 if (want.action === 'Acts_ShareExtensionAbility_0400') { 67 if (want.action === 'Acts_ShareExtensionAbility_0500') { 78 if (want.action === 'Acts_ShareExtensionAbility_0600') { 89 if (want.action === 'Acts_ShareExtensionAbility_0700') { 97 if (want.action === 'Acts_ShareExtensionAbility_DEFAULT') { 108 if (want.action === 'Acts_ShareExtensionAbility_1000') { 120 if (want.action === 'Acts_ShareExtensionAbility_1100') { [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/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/aacommand/AttachDebugExtensionTest/entry/src/main/ets/serviceextability/ |
D | ServiceExtAbility.ts | 28 onCreate(want) { 29 console.info(TAG, `onCreate, want: ${want.abilityName}`); 30 if (want.action === 'abnormal') { 31 console.info(TAG, `abnormal: ${want.abilityName}`); 36 onRequest(want, startId) { 37 console.info(TAG, `onRequest, want: ${want.abilityName}`); 40 onConnect(want) { 41 console.info(TAG, `onConnect, want: ${want.abilityName}`); 45 onDisconnect(want) { 46 console.info(TAG, `onDisconnect, want: ${want.abilityName}`);
|
/test/xts/acts/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/Application/ |
D | AbilityStage.ts | 25 onAcceptWant(want) { 26 console.log("AbilityMultiInstanceAppA onAcceptWant called want:" + JSON.stringify(want)); 27 if ((want.parameters == undefined) || (want.parameters.startId == undefined)) { 32 var abilityId = want.parameters.startId.toString(); 38 if (want.parameters.startId == ONACCEPTWANT_KEY_NOTSET_ID) { 40 } else if (want.parameters.startId == ONACCEPTWANT_KEY_UNDEFINED_ID) { 44 globalThis.abilityWant = want; 53 onNewProcessRequest(want) { 54 console.log("onNewProcesssRequest called want:" + JSON.stringify(want));
|
/test/xts/acts/ability/ability_runtime/aacommand/ServiceExtensionDemo/entry/src/main/ets/serviceextability/ |
D | ServiceExtAbility.ts | 28 onCreate(want) { 29 console.info(TAG, `onCreate, want: ${want.abilityName}`); 32 onRequest(want, startId) { 33 console.info(TAG, `onRequest, want: ${want.abilityName}`); 36 onConnect(want) { 37 console.info(TAG, `onConnect, want: ${want.abilityName}`); 41 onDisconnect(want) { 42 console.info(TAG, `onDisconnect, want: ${want.abilityName}`);
|
/test/xts/acts/ability/ability_runtime/actsuiextensiontest/uiextensionprovider/entry/src/main/ets/testServiceExtAbility/ |
D | SubServiceExtAbility.ts | 31 onCreate(want) { 32 Logger.info(`___SubServiceExtAbility onCreate, want: ${want.abilityName}`) 35 onRequest(want, startId) { 36 Logger.info(`___SubServiceExtAbility onRequest, want: ${want.abilityName}`) 39 onConnect(want) { 40 Logger.info(`___SubServiceExtAbility onConnect , want: ${want.abilityName}`) 44 onDisconnect(want) { 45 Logger.info(`___SubServiceExtAbility onDisconnect, want: ${want.abilityName}`)
|
D | TestServiceExtAbility.ts | 31 onCreate(want) { 32 Logger.info(`___TestServiceExtAbility onCreate, want: ${want.abilityName}`) 35 onRequest(want, startId) { 36 Logger.info(`___TestServiceExtAbility onRequest, want: ${want.abilityName}`) 39 onConnect(want) { 40 Logger.info(`___TestServiceExtAbility onConnect , want: ${want.abilityName}`) 44 onDisconnect(want) { 45 Logger.info(`___TestServiceExtAbility onDisconnect, want: ${want.abilityName}`)
|
D | MultipServiceExtAbility.ts | 31 onCreate(want) { 32 Logger.info(`___MultipServiceExtAbility onCreate, want: ${want.abilityName}`) 35 onRequest(want, startId) { 36 Logger.info(`___MultipServiceExtAbility onRequest, want: ${want.abilityName}`) 39 onConnect(want) { 40 Logger.info(`___MultipServiceExtAbility onConnect , want: ${want.abilityName}`) 44 onDisconnect(want) { 45 Logger.info(`___MultipServiceExtAbility onDisconnect, want: ${want.abilityName}`)
|
/test/xts/acts/ability/ability_runtime/actsuiextensiontest/uiextensionprovider3/entry/src/main/ets/testServiceExtAbility/ |
D | SubServiceExtAbility.ts | 31 onCreate(want) { 32 Logger.info(`tss onCreate, want: ${want.abilityName}`) 35 onRequest(want, startId) { 36 Logger.info(`tss onRequest, want: ${want.abilityName}`) 39 onConnect(want) { 40 Logger.info(`onConnect , want: ${want.abilityName}`) 44 onDisconnect(want) { 45 Logger.info(`onDisconnect, want: ${want.abilityName}`)
|
D | MultipServiceExtAbility.ts | 31 onCreate(want) { 32 Logger.info(`tss onCreate, want: ${want.abilityName}`) 35 onRequest(want, startId) { 36 Logger.info(`tss onRequest, want: ${want.abilityName}`) 39 onConnect(want) { 40 Logger.info(`onConnect , want: ${want.abilityName}`) 44 onDisconnect(want) { 45 Logger.info(`onDisconnect, want: ${want.abilityName}`)
|
D | TestServiceExtAbility.ts | 31 onCreate(want) { 32 Logger.info(`tss onCreate, want: ${want.abilityName}`) 35 onRequest(want, startId) { 36 Logger.info(`tss onRequest, want: ${want.abilityName}`) 39 onConnect(want) { 40 Logger.info(`onConnect , want: ${want.abilityName}`) 44 onDisconnect(want) { 45 Logger.info(`onDisconnect, want: ${want.abilityName}`)
|
/test/xts/acts/ability/ability_runtime/actsuiextensiontest/uiextensionservice/entry/src/main/ets/testServiceExtAbility/ |
D | TestServiceExtAbilityUnvisible.ts | 31 onCreate(want) { 32 Logger.info(`tss onCreate, want: ${want.abilityName}`) 35 onRequest(want, startId) { 36 Logger.info(`tss onRequest, want: ${want.abilityName}`) 39 onConnect(want) { 40 Logger.info(`onConnect , want: ${want.abilityName}`) 44 onDisconnect(want) { 45 Logger.info(`onDisconnect, want: ${want.abilityName}`)
|
D | TestServiceExtAbility.ts | 31 onCreate(want) { 32 Logger.info(`onCreate, want: ${want.abilityName}`) 35 onRequest(want, startId) { 36 Logger.info(`onRequest, want: ${want.abilityName}`) 39 onConnect(want) { 40 Logger.info(`TestServiceExtAbility___onConnect , want: ${want.abilityName}`) 44 onDisconnect(want) { 45 Logger.info(`TestServiceExtAbility___onDisconnect, want: ${want.abilityName}`)
|
D | MultipServiceExtAbility.ts | 31 onCreate(want) { 32 Logger.info(`tss onCreate, want: ${want.abilityName}`) 35 onRequest(want, startId) { 36 Logger.info(`tss onRequest, want: ${want.abilityName}`) 39 onConnect(want) { 40 Logger.info(`onConnect , want: ${want.abilityName}`) 44 onDisconnect(want) { 45 Logger.info(`onDisconnect, want: ${want.abilityName}`)
|
/test/xts/acts/ability/ability_runtime/actsuiextensiontest/uiextensionprovider2/entry/src/main/ets/testServiceExtAbility/ |
D | MultipServiceExtAbility.ts | 31 onCreate(want) { 32 Logger.info(`tss onCreate, want: ${want.abilityName}`) 35 onRequest(want, startId) { 36 Logger.info(`tss onRequest, want: ${want.abilityName}`) 39 onConnect(want) { 40 Logger.info(`onConnect , want: ${want.abilityName}`) 44 onDisconnect(want) { 45 Logger.info(`onDisconnect, want: ${want.abilityName}`)
|
D | TestServiceExtAbility.ts | 31 onCreate(want) { 32 Logger.info(`tss onCreate, want: ${want.abilityName}`) 35 onRequest(want, startId) { 36 Logger.info(`tss onRequest, want: ${want.abilityName}`) 39 onConnect(want) { 40 Logger.info(`onConnect , want: ${want.abilityName}`) 44 onDisconnect(want) { 45 Logger.info(`onDisconnect, want: ${want.abilityName}`)
|