Searched refs:globalThis (Results 1 – 25 of 2908) sorted by relevance
12345678910>>...117
/test/xts/acts/graphic/windowStage/entry/src/main/ets/test/ |
D | List.test.ets | 26 …parameterVerificationIsOptional(globalThis.abilityContext,globalThis.windowStage,globalThis.abilit… 27 windowCallbackTest(globalThis.abilityContext,globalThis.windowStage,globalThis.abilityStorage) 28 windowPromiseTest(globalThis.abilityContext,globalThis.windowStage,globalThis.abilityStorage) 29 …windowRefactorInterfaceTest(globalThis.abilityContext,globalThis.windowStage,globalThis.abilitySto… 30 …displayAndWindowRefactorInterfaceTest(globalThis.abilityContext,globalThis.windowStage,globalThis.… 31 windowRichScene(globalThis.abilityContext,globalThis.windowStage,globalThis.abilityStorage) 32 pipWindowTest(globalThis.abilityContext) 33 …interfaceSupportSessionManagerTest(globalThis.abilityContext,globalThis.windowStage,globalThis.abi… 35 windowRecoverTest(globalThis.abilityContext,globalThis.windowStage,globalThis.abilityStorage)
|
/test/xts/acts/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility2/ |
D | MainAbility2.ts | 20 globalThis.abilityWant = want; 22 globalThis.mainAbility2ListKey = []; 28 globalThis.mainAbility2ListKey.push(abilityName + " onAbilityCreate"); 29 console.log("listKey is :" + globalThis.mainAbility2ListKey); 34 globalThis.mainAbility2ListKey.push(abilityName + " onWindowStageCreate"); 35 console.log("listKey is :" + globalThis.mainAbility2ListKey); 48 globalThis.mainAbility2ListKey.push(abilityName + " onAbilityForeground"); 49 console.log("listKey is :" + globalThis.mainAbility2ListKey); 54 globalThis.mainAbility2ListKey.push(abilityName + " onAbilityBackground"); 55 console.log("listKey is :" + globalThis.mainAbility2ListKey); [all …]
|
/test/xts/acts/ability/crossplatform/ability_runtime/ActsLifeCycleEtsTest/src/main/ets/MainAbility13/ |
D | MainAbility13.ts | 20 globalThis.abilityWant1 = want; 22 globalThis.list13 = []; 31 globalThis.list13.push(abilityname + " onAbilityCreate"); 32 console.log("[Demo] 1listKey1:" + JSON.stringify(globalThis.list13)); 41 globalThis.list13.push(abilityname + " onWindowStageCreate"); 42 console.log("[Demo] 2listKey1:" + JSON.stringify(globalThis.list13)); 56 globalThis.list13.push(abilityname + " onWindowStageDestroy"); 57 console.log("[Demo] 3listKey1:" + JSON.stringify(globalThis.list13)); 66 globalThis.list13.push(abilityname + " onAbilityDestroy"); 67 console.log("[Demo] 4listKey1:" + JSON.stringify(globalThis.list13)); [all …]
|
/test/xts/acts/ability/ability_runtime/stage/actsbatchuripermission/actsbatchuripermissionhaptest/entry/src/main/ets/entryability/ |
D | EntryAbility.ts | 22 globalThis.UIAbilityContext1 = this.context; 23 globalThis.page = 'pages/Index'; 24 if (globalThis.testcase !== undefined) { 25 globalThis.page = 'pages/UIExtensionPage'; 27 … console.info('SUB_Ability_AbilityRuntime_Uri_BatchAuthorization_Test: page = ' + globalThis.page); 32 globalThis.UIAbilityContext1 = this.context; 33 globalThis.page = 'pages/Index'; 34 if (globalThis.testcase !== undefined) { 35 globalThis.page = 'pages/UIExtensionPage'; 37 if (globalThis.testcase === 'SUB_Ability_AbilityRuntime_Uri_BatchAuthorization_0601') { [all …]
|
/test/xts/acts/ability/ability_runtime/stage/actsbatchuripermission/actsbacthuripermissionuiexthap/entry/src/main/ets/uiextensionability/ |
D | UIExtensionAbility.ts | 43 globalThis.session.terminateSelfWithResult({ 69 globalThis.session.terminateSelfWithResult({ 95 globalThis.session.terminateSelfWithResult({ 121 globalThis.session.terminateSelfWithResult({ 134 globalThis.context = this.context; 139 if (globalThis.testcase === 'SUB_Ability_AbilityRuntime_Uri_BatchAuthorization_0600' || 140 globalThis.testcase === 'SUB_Ability_AbilityRuntime_Uri_BatchAuthorization_1000') { 141 readTemp(globalThis.filesDir, globalThis.tempCount); 142 } else if (globalThis.testcase === 'SUB_Ability_AbilityRuntime_Uri_BatchAuthorization_0700') { 143 writeTemp(globalThis.filesDir, globalThis.tempCount); [all …]
|
/test/xts/acts/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility4/ |
D | MainAbility4.ts | 20 globalThis.abilityWant = want; 22 globalThis.mainAbility4ListKey = []; 32 globalThis.mainAbility4ListKey.push(abilityName + " onWindowStageCreate"); 33 console.log("listKey is :" + globalThis.mainAbility4ListKey); 38 globalThis.mainAbility4ListKey.push(abilityName + " onWindowStageActive"); 39 console.log("listKey is :" + globalThis.mainAbility4ListKey); 44 globalThis.mainAbility4ListKey.push(abilityName + " onWindowStageInactive"); 45 console.log("listKey is :" + globalThis.mainAbility4ListKey); 50 globalThis.mainAbility4ListKey.push(abilityName + " onWindowStageDestroy"); 51 console.log("listKey is :" + globalThis.mainAbility4ListKey); [all …]
|
/test/xts/acts/ability/crossplatform/ability_runtime/ActsLifeCycleEtsTest/src/main/ets/MainAbility1/ |
D | MainAbility1.ts | 20 globalThis.abilityWant1 = want; 22 globalThis.list1 = []; 26 globalThis.list1.push(abilityname + " onAbilityCreate"); 30 globalThis.list1.push(abilityname + " onWindowStageCreate"); 42 globalThis.list1.push(abilityname + " onWindowStageDestroy"); 46 globalThis.list1.push(abilityname + " onAbilityDestroy"); 50 globalThis.list1.push(abilityname + " onAbilityForeground"); 54 globalThis.list1.push(abilityname + " onAbilityBackground"); 58 globalThis.list1.push(abilityname + " onAbilityContinue"); 61 globalThis.applicationContext1 = this.context.getApplicationContext(); [all …]
|
/test/xts/acts/ability/crossplatform/ability_runtime/ActsLifeCycleEtsTest/src/main/ets/MainAbility3/ |
D | MainAbility3.ts | 20 globalThis.abilityWant3 = want; 23 globalThis.list3 = []; 32 globalThis.list3.push(abilityname + " onAbilityCreate"); 33 console.log("[Demo] 1listKey3:" + JSON.stringify(globalThis.list3)); 42 globalThis.list3.push(abilityname + " onWindowStageCreate"); 43 console.log("[Demo] 2listKey3:" + JSON.stringify(globalThis.list3)); 60 globalThis.list3.push(abilityname + " onWindowStageDestroy"); 61 console.log("[Demo] 3listKey3:" + JSON.stringify(globalThis.list3)); 70 globalThis.list3.push(abilityname + " onAbilityDestroy"); 71 console.log("[Demo] 4listKey3:" + JSON.stringify(globalThis.list3)); [all …]
|
/test/xts/acts/ability/ability_runtime/getrunningprocessinformation/ApplicationStateChangeOneReply/entry/src/main/ets/entryability/ |
D | EntryAbility.ts | 56 …if (globalThis.want.action === 'NeedBackGroundOff' || globalThis.want.action === 'MultiAppRegister… 58 … globalThis.applicationContext.off('applicationStateChange', applicationStateChangeCallbackFir); 71 if (globalThis.want.action === 'doubleNeedBackGroundOff') { 73 … globalThis.applicationContext.off('applicationStateChange', applicationStateChangeCallbackSec); 76 else if (globalThis.want.action === 'DoubleRegisterOff') { 79 globalThis.applicationContext.off('applicationStateChange'); 95 globalThis.abilityContext = this.context; 96 globalThis.want = want; 97 globalThis.applicationContext = this.context.getApplicationContext(); 98 if (globalThis.want.action === 'RegisterOnOffOn') { [all …]
|
/test/xts/acts/ability/ability_runtime/stage/actsbatchuripermission/actsbatchuripermissionrecvhap/entry/src/main/ets/batchuripermissionability/ |
D | BatchUriPermissionAbility.ts | 26 globalThis.abilityWant = want; 28 globalThis.testcase = want.parameters.testcase; 31 globalThis.filesDir = want.parameters.filesDir; 33 globalThis.preCount = want.parameters.preCount; 34 globalThis.tempCount = want.parameters.tempCount; 35 globalThis.context = this.context; 40 globalThis.abilityWant = want; 42 globalThis.testcase = want.parameters.testcase; 45 globalThis.filesDir = want.parameters.filesDir; 47 globalThis.preCount = want.parameters.preCount; [all …]
|
/test/xts/acts/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility6/ |
D | MainAbility6.ts | 21 globalThis.abilityWant = want; 23 globalThis.mainAbility6ListKey = []; 33 globalThis.mainAbility6ListKey.push(abilityName + " onWindowStageCreate"); 34 console.log("listKey is :" + globalThis.mainAbility6ListKey); 39 globalThis.mainAbility6ListKey.push(abilityName + " onWindowStageActive"); 40 console.log("listKey is :" + globalThis.mainAbility6ListKey); 45 globalThis.mainAbility6ListKey.push(abilityName + " onWindowStageInactive"); 46 console.log("listKey is :" + globalThis.mainAbility6ListKey); 51 globalThis.mainAbility6ListKey.push(abilityName + " onWindowStageDestroy"); 52 console.log("listKey is :" + globalThis.mainAbility6ListKey); [all …]
|
/test/xts/acts/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility7/ |
D | MainAbility7.ts | 21 globalThis.abilityWant = want; 31 globalThis.ability7context = this.context; 44 globalThis.mainAbility7ListKey = []; 50 globalThis.mainAbility7ListKey.push(abilityName + " onAbilityCreate"); 55 globalThis.mainAbility7ListKey.push(abilityName + " onWindowStageCreate"); 68 globalThis.mainAbility7ListKey.push(abilityName + " onAbilityForeground"); 73 globalThis.mainAbility7ListKey.push(abilityName + " onAbilityBackground"); 78 globalThis.mainAbility7ListKey.push(abilityName + " onWindowStageDestroy"); 83 globalThis.mainAbility7ListKey.push(abilityName + " onAbilityDestroy"); 88 globalThis.mainAbility7ListKey.push(abilityName + " onAbilityContinue"); [all …]
|
/test/xts/acts/ability/ability_runtime/stage/actswindowstagelifecyclemultihaptest/entry/src/main/ets/MainAbility2/ |
D | MainAbility2.ts | 20 globalThis.abilityWant = want; 22 globalThis.mainAbility2ListKey = []; 32 globalThis.mainAbility2ListKey.push(abilityName + ' onWindowStageCreate'); 33 console.log("listKey is :" + globalThis.mainAbility2ListKey); 38 globalThis.mainAbility2ListKey.push(abilityName + ' onWindowStageActive'); 39 console.log("listKey is :" + globalThis.mainAbility2ListKey); 44 globalThis.mainAbility2ListKey.push(abilityName + ' onWindowStageInactive'); 45 console.log("listKey is :" + globalThis.mainAbility2ListKey); 50 globalThis.mainAbility2ListKey.push(abilityName + ' onWindowStageDestroy'); 51 console.log("listKey is :" + globalThis.mainAbility2ListKey); [all …]
|
/test/xts/acts/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility4/ |
D | MainAbility4.ts | 20 globalThis.abilityWant = want; 22 globalThis.mainAbility4ListKey = []; 28 globalThis.mainAbility4ListKey.push(abilityName + " onAbilityCreate"); 33 globalThis.mainAbility4ListKey.push(abilityName + " onWindowStageCreate"); 46 globalThis.mainAbility4ListKey.push(abilityName + " onAbilityForeground"); 51 globalThis.mainAbility4ListKey.push(abilityName + " onAbilityBackground"); 56 globalThis.mainAbility4ListKey.push(abilityName + " onWindowStageDestroy"); 61 globalThis.mainAbility4ListKey.push(abilityName + " onAbilityDestroy"); 66 globalThis.mainAbility4ListKey.push(abilityName + " onAbilityContinue"); 69 globalThis.ApplicationContext4 = this.context.getApplicationContext(); [all …]
|
/test/xts/acts/ability/ability_runtime/stage/actslifecyclemultihaptest/entry/src/main/ets/MainAbility6/ |
D | MainAbility6.ts | 21 globalThis.abilityWant = want; 23 globalThis.mainAbility6ListKey = []; 29 globalThis.mainAbility6ListKey.push(abilityName + " onAbilityCreate"); 34 globalThis.mainAbility6ListKey.push(abilityName + " onWindowStageCreate"); 47 globalThis.mainAbility6ListKey.push(abilityName + " onAbilityForeground"); 52 globalThis.mainAbility6ListKey.push(abilityName + " onAbilityBackground"); 57 globalThis.mainAbility6ListKey.push(abilityName + " onWindowStageDestroy"); 62 globalThis.mainAbility6ListKey.push(abilityName + " onAbilityDestroy"); 67 globalThis.mainAbility6ListKey.push(abilityName + " onAbilityContinue"); 70 globalThis.ApplicationContext6 = this.context.getApplicationContext(); [all …]
|
/test/xts/acts/ability/crossplatform/ability_runtime/ActsLifeCycleEtsTest/src/main/ets/MainAbility9/ |
D | MainAbility9.ts | 20 globalThis.abilityWant9 = want; 21 globalThis.mainAbility9ListKey = []; 26 globalThis.mainAbility9ListKey.push(abilityName + " onAbilityCreate"); 30 globalThis.mainAbility9ListKey.push(abilityName + " onWindowStageCreate"); 40 globalThis.mainAbility9ListKey.push(abilityName + " onAbilityForeground"); 44 globalThis.mainAbility9ListKey.push(abilityName + " onAbilityBackground"); 48 globalThis.mainAbility9ListKey.push(abilityName + " onWindowStageDestroy"); 52 globalThis.mainAbility9ListKey.push(abilityName + " onAbilityDestroy"); 56 globalThis.mainAbility9ListKey.push(abilityName + " onAbilityContinue"); 59 globalThis.applicationContext9 = this.context.getApplicationContext(); [all …]
|
/test/xts/acts/ability/ability_runtime/getrunningprocessinformation/GetRunningProcessInformationOneReply/entry/src/main/ets/pages/ |
D | Index.ets | 36 if (globalThis.want.action == 'Callback') { 38 globalThis.StartNormalAbility() 42 globalThis.GetRunningProcessInfoCallback() 46 globalThis.PublishStateArray() 49 else if (globalThis.want.action == 'Promise') { 51 globalThis.StartNormalAbility() 55 globalThis.GetRunningProcessInfoPromise() 59 globalThis.PublishStateArray() 77 if (globalThis.want.action == 'Callback') { 79 globalThis.StartFloatingAbility() [all …]
|
/test/xts/acts/ability/crossplatform/ability_runtime/ActsLifeCycleEtsTest/src/main/ets/MultiMainability1/ |
D | MultiMainability1.ts | 20 globalThis.abilityWant1 = want; 22 globalThis.mlist1 = [] 31 globalThis.mlist1.push(abilityname + " onAbilityCreate"); 32 console.log("[Demo] 1listKey1:" + JSON.stringify(globalThis.mlist1)); 41 globalThis.mlist1.push(abilityname + " onWindowStageCreate"); 42 console.log("[Demo] 2listKey1:" + JSON.stringify(globalThis.mlist1)); 56 globalThis.mlist1.push(abilityname + " onWindowStageDestroy"); 57 console.log("[Demo] 3listKey1:" + JSON.stringify(globalThis.mlist1)); 66 globalThis.mlist1.push(abilityname + " onAbilityDestroy"); 67 console.log("[Demo] 4listKey1:" + JSON.stringify(globalThis.mlist1)); [all …]
|
/test/xts/acts/ability/ability_runtime/amscontextualinforquery/actsamsstaticquerytesttwohap/entry/src/main/ets/MainAbility/ |
D | MainAbility.ts | 24 globalThis.abilityWant = want; 35 globalThis.abilityContext = this.context 46 if (globalThis.abilityWant.action == 'getglobalThis.abilityContext') { 49 hapModuleInfo: JSON.stringify(globalThis.abilityContext.currentHapModuleInfo), 50 applicationInfo: JSON.stringify(globalThis.abilityContext.applicationInfo), 51 abilityInfo: JSON.stringify(globalThis.abilityContext.abilityInfo) 56 globalThis.abilityContext.startAbility({ 68 if (globalThis.abilityWant.action == 'startmultiple') { 69 globalThis.abilityContext.startAbility({ 79 … hapModuleInfo: JSON.stringify(globalThis.abilityContext.currentHapModuleInfo), [all …]
|
/test/xts/acts/ability/crossplatform/ability_runtime/ActsLifeCycleEtsTest/src/main/ets/Application/ |
D | AbilityStage.ts | 21 globalThis.list = []; 30 globalThis.list.push(abilityname + " onAbilityCreate"); 31 console.log("[Demo] 1listKey:" + JSON.stringify(globalThis.list)); 40 globalThis.list.push(abilityname + " onWindowStageCreate"); 41 console.log("[Demo] 2listKey:" + JSON.stringify(globalThis.list)); 58 globalThis.list.push(abilityname + " onWindowStageDestroy"); 59 console.log("[Demo] 3listKey:" + JSON.stringify(globalThis.list)); 68 globalThis.list.push(abilityname + " onAbilityDestroy"); 69 console.log("[Demo] 4listKey:" + JSON.stringify(globalThis.list)); 78 globalThis.list.push(abilityname + " onAbilityForeground"); [all …]
|
/test/xts/acts/ability/ability_runtime/amscontextualinforquery/actsamsstatichapa/entry/src/main/ets/MainAbility/ |
D | MainAbility.ts | 22 globalThis.abilityWant = want; 33 globalThis.abilityContext = this.context 45 if (globalThis.abilityWant.action == 'startHapA') { 46 globalThis.abilityContext.startAbility({ 56 hapModuleInfo: JSON.stringify(globalThis.abilityContext.currentHapModuleInfo), 57 applicationInfo: JSON.stringify(globalThis.abilityContext.applicationInfo), 58 abilityInfo: JSON.stringify(globalThis.abilityContext.abilityInfo) 66 if (globalThis.abilityWant.action == 'multiple') { 69 hapModuleInfo: JSON.stringify(globalThis.abilityContext.currentHapModuleInfo), 70 applicationInfo: JSON.stringify(globalThis.abilityContext.applicationInfo), [all …]
|
/test/xts/acts/ability/crossplatform/ability_runtime/ActsUiAbilityEtsTest/src/main/ets/MainAbility1/ |
D | MainAbility1.ts | 26 globalThis.onNewWantStr = abilityName + ' ' + 'onNewWant'; 31 globalThis.launchParam1 = launchParam; 33 globalThis.list1 = []; 34 recordLife(globalThis.list1, abilityName, 'onCreate'); 39 recordLife(globalThis.list1, abilityName, 'onDestroy'); 45 globalThis.ability1context = this.context; 46 recordLife(globalThis.list1, abilityName, 'onWindowStageCreate'); 60 recordLife(globalThis.list1, abilityName, 'onWindowStageDestroy'); 65 recordLife(globalThis.list1, abilityName, 'onForeground'); 71 recordLife(globalThis.list1, abilityName, 'onBackground');
|
/test/xts/acts/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/MainAbility/ |
D | MainAbility.ts | 21 globalThis.abilityWant = want; 22 globalThis.applicationContext = this.context.getApplicationContext(); 32 globalThis.abilityContext = this.context; 67 if (globalThis.UpdateConfiguration_0200_prepare_resolve) { 68 globalThis.UpdateConfiguration_0200_prepare_resolve(); 71 if (!globalThis.UpdateConfiguration_0200_resolve) { 76 if (!globalThis.UpdateConfiguration_0200_reject) { 82 globalThis.UpdateConfiguration_0200_resolve(); 84 globalThis.UpdateConfiguration_0200_reject();
|
/test/xts/acts/ability/ability_runtime/stage/actswindowstagelifecyclesinglehaptest/entry/src/main/ets/MainAbility11/ |
D | MainAbility11.ts | 21 globalThis.abilityWant = want; 22 globalThis.ability11 = this.context; 23 globalThis.list11 = []; 36 globalThis.list11.push(abilityname + " onWindowStageCreate"); 37 console.log("[Demo] 1listKey11:" + JSON.stringify(globalThis.list11)); 46 globalThis.list11.push(abilityname + " onWindowStageActive"); 47 console.log("[Demo] 2listKey11:" + JSON.stringify(globalThis.list11)); 56 globalThis.list11.push(abilityname + " onWindowStageInactive"); 57 console.log("[Demo] 3listKey11:" + JSON.stringify(globalThis.list11)); 66 globalThis.list11.push(abilityname + " onWindowStageDestroy"); [all …]
|
/test/xts/acts/ability/ability_runtime/newwant/actsnewwantrelyhap/entry/src/main/ets/SecondAbility/ |
D | SecondAbility.ts | 33 globalThis.abilityWant = want; 47 globalThis.abilityContext = this.context 64 if (globalThis.abilityWant.action == 'startSingleton0400') 66 globalThis.abilityContext.startAbility({ 75 if (globalThis.abilityWant.action == 'startSingleton0300') 77 globalThis.abilityContext.startAbility({ 86 if (globalThis.abilityWant.action == 'startHapA0500') { 87 globalThis.abilityContext.startAbility({ 96 if (globalThis.abilityWant.action == 'startHapA0600') { 97 globalThis.abilityContext.startAbility({ [all …]
|
12345678910>>...117