Home
last modified time | relevance | path

Searched refs:globalThis (Results 1 – 25 of 563) sorted by relevance

12345678910>>...23

/ohos5.0/foundation/distributeddatamgr/data_share/test/native/resource/datashare_ext_bundle/entry/src/main/ets/MainAbility/
H A DMainAbility.ts35 globalThis.abilityWant = want;
79 globalThis.dsHelper = null;
86 globalThis.on = (async () => {
88 if (globalThis.dsHelper == null) {
98 globalThis.off = (async () => {
111 globalThis.openFile = (async () => {
124 globalThis.query = (async () => {
147 globalThis.insert = (async () => {
163 globalThis.update = (async () => {
185 globalThis.delete = (async () => {
[all …]
/ohos5.0/foundation/ability/ability_runtime/services/dialog_ui/ams_system_dialog/entry/src/main/ets/ServiceExtAbility/
H A DSelectorServiceExtAbility.ts79 globalThis.jsonIconMap = jsonIconMap;
90 globalThis.jsonIconMap = jsonIconMap;
156 globalThis.abilityWant = want;
161 if (globalThis.params && globalThis.params.hapList && globalThis.params.hapList.length) {
170 …if (position.width !== globalThis.position.width || position.height !== globalThis.position.height…
173 globalThis.position = position;
184 globalThis.modelFlag = Boolean(globalThis.params.modelFlag);
185 globalThis.action = Boolean(globalThis.params.action);
205 …let windowType = (typeof(globalThis.callerToken) === 'object' && globalThis.callerToken !== null) ?
287 globalThis.position = globalThis.verticalPosition;
[all …]
H A DJumpInterceptorServiceExtAbility.ts33 globalThis.abilityWant = want;
48 left: globalThis.position.offsetX,
49 top: globalThis.position.offsetY,
50 width: globalThis.position.width,
51 height: globalThis.position.height
69 globalThis.interceptor_callerBundleName,
70 globalThis.interceptor_callerModuleName,
71 globalThis.interceptor_callerLabelId
74 globalThis.params.bundleName,
75 globalThis.interceptor_targetModuleName,
[all …]
H A DTipsServiceExtAbility.ts30 globalThis.tipsExtensionContext = this.context;
35 globalThis.abilityWant = want;
39 globalThis.callerToken = want.parameters.callerToken;
42 …if (position.offsetX !== globalThis.position.offsetX || position.offsetY !== globalThis.position.o…
45 …if (position.width !== globalThis.position.width || position.height !== globalThis.position.height…
48 globalThis.position = position;
56 left: globalThis.position.offsetX,
57 top: globalThis.position.offsetY,
58 width: globalThis.position.width,
59 height: globalThis.position.height
[all …]
/ohos5.0/base/update/update_app/product/oh/base/src/main/ets/MainAbility/
H A DMainAbility.ts39 globalThis.abilityWant = want;
41 globalThis.AbilityStatus = null;
49 globalThis.AbilityStatus = null;
53 globalThis.AbilityStatus = null;
65 globalThis.newPage = want.uri;
81 globalThis.AbilityStatus = null;
96 globalThis.AbilityStatus = null;
101 if (globalThis.newPage && globalThis.currentPage) {
102 if (globalThis.currentPage !== globalThis.newPage) {
105 url: globalThis.newPage,
[all …]
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/test/ndktest/camera_ndk_demo/entry/src/main/ets/common/
H A DsettingItem.ets29 globalThis.settingDataObj.videoStabilizationMode = this.index
33 globalThis.settingDataObj.exposureMode = this.index
37 globalThis.settingDataObj.focusMode = this.index
38 cameraDemo.isFocusModeSupported(globalThis.settingDataObj.focusMode)
41 globalThis.settingDataObj.photoQuality = this.index
44 globalThis.settingDataObj.photoFormat = this.index
47 globalThis.settingDataObj.photoOrientation = this.index
51 globalThis.settingDataObj.photoResolution = this.index
58 globalThis.settingDataObj.videoResolution = this.index
64 globalThis.settingDataObj.videoFrame = this.index
[all …]
H A DsettingRightLayout.ets41 this.isIndex = globalThis.settingDataObj.videoStabilizationMode
44 this.isIndex = globalThis.settingDataObj.exposureMode
47 this.isIndex = globalThis.settingDataObj.focusMode
50 this.isIndex = globalThis.settingDataObj.photoQuality
53 this.isIndex = globalThis.settingDataObj.photoFormat
56 this.isIndex = globalThis.settingDataObj.photoOrientation
59 this.isIndex = globalThis.settingDataObj.photoResolution
62 this.isIndex = globalThis.settingDataObj.videoResolution
65 this.isIndex = globalThis.settingDataObj.videoFrame
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/test/samples/StageManualTestSuite/entry/src/main/ets/MainAbility/
H A DMainAbility.ts39 deviceId: globalThis.selectDevice
41 connectedAbility = globalThis.context.connectAbility(want, {
64 await globalThis.context.disconnectAbility(connectedAbility)
82 globalThis.receiveMessage = reply.readString();
146 globalThis.abilityWant = want;
147 globalThis.context = this.context;
148 globalThis.DeviceIdList = [];
149 globalThis.selectDevice;
150 globalThis.receiveMessage = "";
161 globalThis.ConnectRemoteAbility = ConnectRemoteAbility();
[all …]
/ohos5.0/foundation/ability/ability_runtime/services/dialog_ui/ams_system_dialog/entry/src/main/ets/pages/
H A DjumpInterceptorDialog.ets29 this.isDefaultSelector = globalThis.params.isDefaultSelector
36 globalThis.jumpInterceptorExtensionContext.terminateSelf();
40 globalThis.abilityWant.bundleName = globalThis.params.bundleName;
41 globalThis.abilityWant.abilityName = globalThis.params.abilityName;
42 globalThis.abilityWant.moduleName = globalThis.params.moduleName;
43globalThis.jumpInterceptorExtensionContext.startAbilityAsCaller(globalThis.abilityWant, (data, err…
49 globalThis.jumpInterceptorExtensionContext.terminateSelf();
56 …Text($r('app.string.message_title_jump_interceptor', globalThis.callerAppName, globalThis.targetAp…
H A DselectorPcDialog.ets58 this.hapList = globalThis.params.hapList;
59 this.action = globalThis.params.action;
79 globalThis.abilityWant.bundleName = item.split('#')[0];
83globalThis.selectExtensionContext.startAbilityAsCaller(globalThis.abilityWant, (data, error) => {
92 bundleName: globalThis.abilityWant.bundleName,
93 moduleName: globalThis.abilityWant.moduleName,
94 abilityName: globalThis.abilityWant.abilityName,
101 globalThis.selectExtensionContext.terminateSelf();
106 globalThis.bundleManager.queryAbilityInfo({
224 if (globalThis.modelFlag == true) {
[all …]
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/test/samples/continuationManagerTestSuite/eTSContinuationManager/entry/src/main/ets/MainAbility/
H A DMainAbility.ts550 globalThis.token = data;
582 globalThis.context.startAbility(want).then((data) => {
593 globalThis.token = data;
648 connectedAbility = globalThis.context.connectAbility(
712 globalThis.abilityWant = want;
713 globalThis.context = this.context;
730 globalThis.onDeviceConnect = (()=>{ onDeviceConnect(); })
732 globalThis.onDeviceDisconnect = (()=>{ onDeviceDisconnect(); })
744 globalThis.offDeviceConnect = (()=>{ offDeviceConnect(); })
750 globalThis.startRemoteAbility = (()=>{ startRemoteAbility(); })
[all …]
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_delegator/runner_runtime/
H A Ddelegator_mgmt.js17 const plugin = moduleType === 'ohos' ? globalThis.ohosplugin : globalThis.systemplugin;
31 let global = globalThis;
32 globalThis.exports = { default: {} };
33 globalThis.$app_define$ = function (page, packageName, parseContent) {
36 globalThis.exports.default = module.exports;
39 globalThis.$app_bootstrap$ = function () { };
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ets/ets/utils/
H A DglobalThis.ts18 export default class globalThis {
20 private static instance:globalThis
24 public static getInstance(): globalThis {
25 if (!globalThis.instance) {
26 globalThis.instance = new globalThis()
28 return globalThis.instance
/ohos5.0/base/inputmethod/imf/test/unittest/resource/bundle_dependencies/newTestIme/entry/src/main/ets/InputMethodExtAbility/model/
H A DKeyboardController.ts18 globalThis.inputEngine = inputMethodEngine.getInputMethodAbility()
39 globalThis.inputEngine.on('inputStart', (kbController, textInputClient) => {
40 globalThis.textInputClient = textInputClient;
41 globalThis.keyboardController = kbController;
43 globalThis.inputEngine.on('inputStop', (imeId) => {
53 globalThis.inputEngine.off('inputStart');
54 globalThis.inputEngine.off('inputStop');
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/
H A Dindex.js29 globalThis.gl = canvas.getContext('webgl', {
33 globalThis.gl = canvas.getContext('webgl2', {
37 globalThis.gl.width = canvas.getBoundingClientRect().width;
38 globalThis.gl.height = canvas.getBoundingClientRect().height;
39 let gl = globalThis.gl;
40 globalThis.gl.closed = false;
44 globalThis.gl.closed = true;
/ohos5.0/base/inputmethod/imf/test/unittest/resource/bundle_dependencies/extImfBundle/entry/src/main/ets/InputMethodExtAbility/model/
H A DKeyboardController.ts117 if (globalThis.textInputClient === undefined) {
122 globalThis.textInputClient.insertTextSync("text");
125 globalThis.textInputClient.moveCursorSync(DEFAULT_DIRECTION);
140 globalThis.textInputClient.deleteForwardSync(DEFAULT_LENGTH);
143 globalThis.textInputClient.deleteBackwardSync(DEFAULT_LENGTH);
173 globalThis.keyboardController = kbController;
187 let backward: string = globalThis.textInputClient.getBackwardSync(1);
196 let forward: string = globalThis.textInputClient.getForwardSync(1);
206 let editAttribute = globalThis.textInputClient.getEditorAttributeSync();
207 let editAttribute1 = await globalThis.textInputClient.getEditorAttribute();
[all …]
/ohos5.0/base/usb/usb_manager/frameworks/dialog/dialog_ui/usb_right_dialog/src/main/ets/pages/
H A DUsbDialog.ets25 …content: $r('app.string.usb_right_content', globalThis.want?.parameters?.['appName'], globalThis.w…
38 if (globalThis.want.parameters['accessory'] === undefined) {
40 let res = usbMgr.addDeviceAccessRight(globalThis.want.parameters['tokenId'],
41 globalThis.want.parameters['deviceName'])
44 … let accessoryInfo: usbMgr.USBAccessory = JSON.parse(globalThis.want.parameters['accessory']);
45 … console.info('USB accessory right allowed: ' + globalThis.want.parameters['accessory']);
46 … usbMgr.addAccessoryRight(parseInt(globalThis.want.parameters['tokenId']), accessoryInfo)
67 globalThis.window.destroy()
68 globalThis.extensionContext.terminateSelf()
75 console.info('USBRight show dialog', JSON.stringify(globalThis.want));
/ohos5.0/base/powermgr/power_manager/power_dialog/entry/src/main/ets/ServiceExtAbility/
H A DThermalHighDialogAbility.ts38 globalThis.abilityWant = want;
61 if (globalThis.g_thermalHighWindowFirst !== undefined) {
63 globalThis.g_thermalHighWindowFirst.destroy();
64 globalThis.g_thermalHighWindowFirst = undefined;
66 const thermalHighWin = await window.create(globalThis.extensionContext, name, windowType);
67 if (globalThis.g_thermalHighWindowFirst === undefined) {
69 globalThis.g_thermalHighWindowFirst = thermalHighWindowFirst;
H A DThermalLowDialogAbility.ts38 globalThis.abilityWant = want;
61 if (globalThis.g_thermalLowWindowFirst !== undefined) {
63 globalThis.g_thermalLowWindowFirst.destroy();
64 globalThis.g_thermalLowWindowFirst = undefined;
66 const thermalLowWin = await window.create(globalThis.extensionContext, name, windowType);
67 if (globalThis.g_thermalLowWindowFirst === undefined) {
69 globalThis.g_thermalLowWindowFirst = thermalLowWindowFirst;
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/test/ndktest/camera_ndk_demo/entry/src/main/ets/Dialog/
H A DsettingDialog.ets33 globalThis.settingDataObj.mirrorBol = bol
37 globalThis.settingDataObj.locationBol = bol
41 globalThis.settingDataObj.referenceLineBol = bol
46 console.info('zyk globalThis onPageShow:' + JSON.stringify(globalThis.settingDataObj))
50 console.info('zyk globalThis onPageHide:' + JSON.stringify(globalThis.settingDataObj))
76 setModeBol: globalThis.settingDataObj.mirrorBol,
120 setModeBol: globalThis.settingDataObj.locationBol,
183 setModeBol: globalThis.settingDataObj.referenceLineBol,
206 console.info('zyk globalThis onPageHide:' + JSON.stringify(globalThis.settingDataObj))
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/pa_engine/engine/jsi/
H A DpaMgmt.js17 const plugin = moduleType === 'ohos' ? globalThis.ohosplugin : globalThis.systemplugin;
30 var global = globalThis;
31 globalThis.exports = {default: {}};
35 globalThis.exports.default = module.exports;
/ohos5.0/foundation/distributeddatamgr/data_share/test/native/resource/datashareproxy_bundle/proxydatas_with_permission/entry/src/main/ets/MainAbility/
H A DMainAbility.ts36 globalThis.abilityWant = want;
37 globalThis.abilityContext = this.context;
55 globalThis.abilityContext = this.context;
57 globalThis.connectDataShareExtAbility = (async () => {
63 globalThis.disconnectDataShareExtAbility = (async () => {
69 globalThis.insert = (async () => {
/ohos5.0/docs/zh-cn/application-dev/arkts-utils/
H A Darkts-module-side-effects.md66 globalThis.someGlobalVar = 100; // 改变了全局状态
70 globalThis.someGlobalVar = 200; // 也变了全局状态
76 …console.log(globalThis.someGlobalVar); // 此时由于main.ets中加载了sideEffectModule模块,someGlobalVar的值已经被改为2…
97 模块加载时直接改变全局变量globalThis.someGlobalVar的值,**影响其他使用该变量的模块或代码**。
106 globalThis.someGlobalVar = 100;
112 globalThis.someGlobalVar = 200;
120 console.log(globalThis.someGlobalVar);
279 globalThis.someGlobalVar = 100;
283 console.log(globalThis.someGlobalVar); // 此时由于lazy特性,module模块还未执行,someGlobalVar的值为undefined
302 globalThis.someGlobalVar = 100; // 延迟到函数调用时执行
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DjsUIContext.js25 this.ohos_font = globalThis.requireNapi('font');
295 let vp2pxResult = globalThis.vp2px(value);
302 let px2vpResult = globalThis.px2vp(value);
309 let fp2pxResult = globalThis.fp2px(value);
316 let px2fpResult = globalThis.px2fp(value);
323 let lpx2pxResult = globalThis.lpx2px(value);
330 let px2lpxResult = globalThis.px2lpx(value);
529 let xNode = globalThis.__getArkUINode__();
545 let xNode = globalThis.__getArkUINode__();
557 let xNode = globalThis.__getArkUINode__();
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/test/sceneProject/unittest/test_bundle/previewTest/entry/src/main/ets/MainAbility/
H A DGlobalContext.ts23 console.info('parameters---->' + JSON.stringify(globalThis.abilityWant.parameters))
24 globalThis.abilityWant.parameters.timeout = 70000;
25 configService.setConfig(globalThis.abilityWant.parameters)
26 testsuite(globalThis.abilityContext)

12345678910>>...23