Home
last modified time | relevance | path

Searched refs:scope (Results 1 – 25 of 756) sorted by relevance

12345678910>>...31

/ohos5.0/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/resources/dumpfile/
H A Dinput.txt1 xxx)-(10000:10000:scope)] EventTreeDumpInfo: WindowName: EntryView
2 xxx)-(10000:10000:scope)] EventTreeDumpInfo: DisplayId: 0
3 xxx)-(10000:10000:scope)] EventTreeDumpInfo: WinId: 8
4 xxx)-(10000:10000:scope)] EventTreeDumpInfo: Pid: 1550
5 xxx)-(10000:10000:scope)] EventTreeDumpInfo: Type: 2001
6 xxx)-(10000:10000:scope)] EventTreeDumpInfo: Mode: 1
7 xxx)-(10000:10000:scope)] EventTreeDumpInfo: Flag: 0
8 xxx)-(10000:10000:scope)] EventTreeDumpInfo: Orientation: 8
12 xxx)-(10000:10000:scope)] EventTreeDumpInfo: Focusable: true
21 xxx)-(10000:10000:scope)] EventTreeDumpInfo: touch points:
[all …]
/ohos5.0/foundation/multimodalinput/input/frameworks/napi/input_device/src/
H A Djs_event_target.cpp73 scope); in EmitAddedDeviceEvent()
76 scope); in EmitAddedDeviceEvent()
80 scope); in EmitAddedDeviceEvent()
83 scope); in EmitAddedDeviceEvent()
209 CHKPV(scope); in CallIdsAsyncWork()
245 CHKPV(scope); in CallIdsPromiseWork()
323 CHKPV(scope); in CallDevAsyncWork()
351 CHKPV(scope); in CallDevPromiseWork()
427 CHKPV(scope); in CallKeystrokeAbilityPromise()
1008 scope); in CallKeyboardRepeatDelayAsync()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_theme/theme_manager/src/theme/
H A DArkThemeScopeManager.ts88 let scope: ArkThemeScope = undefined;
96 scope = currentLocalScope;
100 scope = currentIfElseScope;
106 scope = parentScope;
113 if (scope === undefined) {
114 scope = this.scopeForElmtId(elmtId);
125 this.ifElseLastScope = scope;
161 this.forceRerenderScope(scope);
223 const scope = this.ifElseScopes.pop();
224 if (removedElmtIds && scope) {
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/web/resource/
H A Dweb_client_impl.cpp129 ContainerScope scope(delegate->GetInstanceId()); in OnDownloadStart() local
137 ContainerScope scope(delegate->GetInstanceId()); in OnAccessibilityEvent() local
148 ContainerScope scope(delegate->GetInstanceId()); in OnFindResultReceived() local
154 ContainerScope scope(instanceId_); in SpanstringConvertHtml() local
168 ContainerScope scope(delegate->GetInstanceId()); in OnPageLoadEnd() local
176 ContainerScope scope(delegate->GetInstanceId()); in OnFocus() local
188 ContainerScope scope(delegate->GetInstanceId()); in OnFocus() local
200 ContainerScope scope(delegate->GetInstanceId()); in OnConsoleLog() local
226 ContainerScope scope(delegate->GetInstanceId()); in OnPageLoadBegin() local
236 ContainerScope scope(delegate->GetInstanceId()); in OnLoadingProgress() local
[all …]
/ohos5.0/base/msdp/device_status/frameworks/js/napi/interaction/cooperate/src/
H A Djs_event_cooperate_target.cpp285 napi_handle_scope scope = nullptr; in CallEnablePromiseWork() local
287 if (scope == nullptr) { in CallEnablePromiseWork()
328 napi_handle_scope scope = nullptr; in CallEnableAsyncWork() local
330 if (scope == nullptr) { in CallEnableAsyncWork()
365 if (scope == nullptr) { in CallStartPromiseWork()
408 if (scope == nullptr) { in CallStartAsyncWork()
487 if (scope == nullptr) { in CallStopAsyncWork()
522 if (scope == nullptr) { in CallGetStatePromiseWork()
554 if (scope == nullptr) { in CallGetStateAsyncWork()
572 CALL_FUNCTION, scope); in CallGetStateAsyncWork()
[all …]
/ohos5.0/foundation/distributeddatamgr/data_share/frameworks/native/provider/src/
H A Djs_datashare_ext_ability.cpp125 if (scope == nullptr) { in OnStart()
461 if (scope == nullptr) { in GetFileTypes()
492 if (scope == nullptr) { in OpenFile()
523 if (scope == nullptr) { in OpenRawFile()
555 if (scope == nullptr) { in Insert()
587 if (scope == nullptr) { in Update()
626 if (scope == nullptr) { in BatchUpdate()
670 if (scope == nullptr) { in Delete()
704 if (scope == nullptr) { in Query()
742 if (scope == nullptr) { in GetType()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/
H A Dgesture_referee.cpp263 RefPtr<GestureScope> scope; in AddGestureToScope() local
266 scope = iter->second; in AddGestureToScope()
285 scope->SetDelayClose(); in CleanGestureScope()
288 scope->Close(); in CleanGestureScope()
372 const auto& scope = iter->second; in HasFailRecognizer() local
373 CHECK_NULL_RETURN(scope, false); in HasFailRecognizer()
400 const auto& scope = iter->second; in CleanGestureRefereeState() local
401 CHECK_NULL_VOID(scope); in CleanGestureRefereeState()
403 scope->CleanGestureScopeState(); in CleanGestureRefereeState()
511 const auto& scope = iter->second; in HasGestureAccepted() local
[all …]
/ohos5.0/foundation/arkui/ace_engine/interfaces/inner_api/drawable_descriptor/
H A Djs_drawable_descriptor.cpp103 napi_escapable_handle_scope scope = nullptr; in AnimatedConstructor() local
104 napi_open_escapable_handle_scope(env, &scope); in AnimatedConstructor()
134 napi_close_escapable_handle_scope(env, scope); in AnimatedConstructor()
140 napi_escapable_handle_scope scope = nullptr; in Constructor() local
141 napi_open_escapable_handle_scope(env, &scope); in Constructor()
149 napi_close_escapable_handle_scope(env, scope); in Constructor()
155 napi_escapable_handle_scope scope = nullptr; in PixelMapConstructor() local
156 napi_open_escapable_handle_scope(env, &scope); in PixelMapConstructor()
188 napi_escapable_handle_scope scope = nullptr; in LayeredConstructor() local
374 napi_escapable_handle_scope scope = nullptr; in GetPixelMap() local
[all …]
/ohos5.0/foundation/distributedhardware/device_manager/interfaces/kits/js/src/
H A Ddm_native_event.cpp52 napi_handle_scope scope = nullptr; in Off() local
53 napi_open_handle_scope(env_, &scope); in Off()
54 if (scope == nullptr) { in Off()
63 napi_close_handle_scope(env_, scope); in Off()
69 napi_close_handle_scope(env_, scope); in Off()
75 napi_handle_scope scope = nullptr; in OnEvent() local
76 napi_open_handle_scope(env_, &scope); in OnEvent()
77 if (scope == nullptr) { in OnEvent()
86 napi_close_handle_scope(env_, scope); in OnEvent()
94 napi_close_handle_scope(env_, scope); in OnEvent()
[all …]
/ohos5.0/foundation/distributedhardware/device_manager/interfaces/kits/js4.0/src/
H A Ddm_native_event.cpp52 napi_handle_scope scope = nullptr; in Off() local
53 napi_open_handle_scope(env_, &scope); in Off()
54 if (scope == nullptr) { in Off()
63 napi_close_handle_scope(env_, scope); in Off()
69 napi_close_handle_scope(env_, scope); in Off()
75 napi_handle_scope scope = nullptr; in OnEvent() local
76 napi_open_handle_scope(env_, &scope); in OnEvent()
77 if (scope == nullptr) { in OnEvent()
86 napi_close_handle_scope(env_, scope); in OnEvent()
94 napi_close_handle_scope(env_, scope); in OnEvent()
[all …]
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Duse-jsvm-life-cycle.md8 框架层的scope通常用于管理JSVM_Value的生命周期。在JSVM-API中,可以使用OH_JSVM_OpenHandleScope和OH_JSVM_CloseHandleScope函数来创建…
31 | OH_JSVM_OpenHandleScope | 打开一个Handle scope,确保scope范围内的JSVM_Value不被GC回收 |
32 | OH_JSVM_CloseHandleScope | 关闭Handle scope|
33 | OH_JSVM_OpenEscapableHandleScope | 打开一个新的scope逃逸Handle scope,在关闭该scope之前创建的对象与父作用域有相同的生命周期 |
34 | OH_JSVM_CloseEscapableHandleScope | 关闭一个scope,在此scope范围外创建的对象不受父作用域保护 |
61 JSVM_HandleScope scope = nullptr;
63 if (status != JSVM_OK || scope == nullptr) {
70 status = OH_JSVM_CloseHandleScope(env, scope);
109 JSVM_EscapableHandleScope scope = nullptr;
124 OH_JSVM_EscapeHandle(env, scope, obj, &escapedObj);
[all …]
H A Djsvm-optimizations.md135 OH_JSVM_CloseHandleScope(*env, scope);
171 // (1) open handle scope
172 JSVM_HandleScope scope;
173 OH_JSVM_OpenHandleScope(*env, &scope);
182 // (4) close handle scope
183 OH_JSVM_CloseHandleScope(*env, scope);
189 // (1) open handle scope
190 JSVM_HandleScope scope;
191 OH_JSVM_OpenHandleScope(*env, &scope);
197 // (4) close handle scope
[all …]
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/inspector/
H A Djs_inspector.cpp81 napi_handle_scope scope = nullptr; in callUserFunction() local
82 napi_open_handle_scope(env, &scope); in callUserFunction()
83 if (scope == nullptr) { in callUserFunction()
98 napi_close_handle_scope(env, scope); in callUserFunction()
133 napi_close_handle_scope(env, scope); in AddCallbackToList()
221 napi_handle_scope scope = nullptr; in NapiSerializer() local
222 napi_open_handle_scope(env, &scope); in NapiSerializer()
223 if (scope == nullptr) { in NapiSerializer()
244 napi_close_handle_scope(env, scope); in NapiSerializer()
267 napi_handle_scope scope = nullptr; in Initialize() local
[all …]
/ohos5.0/base/msdp/device_status/frameworks/js/napi/interaction/coordination/src/
H A Djs_event_target.cpp491 napi_handle_scope scope = nullptr; in CallPrepareAsyncWork() local
493 if (scope == nullptr) { in CallPrepareAsyncWork()
569 napi_handle_scope scope = nullptr; in CallActivateAsyncWork() local
571 if (scope == nullptr) { in CallActivateAsyncWork()
650 if (scope == nullptr) { in CallDeactivateAsyncWork()
685 if (scope == nullptr) { in CallGetCrossingSwitchStatePromiseWork()
717 if (scope == nullptr) { in CallGetCrossingSwitchStateAsyncWork()
735 CALL_FUNCTION, scope); in CallGetCrossingSwitchStateAsyncWork()
773 CREATE_INT32, scope); in EmitCoordinationMessageEvent()
823 CREATE_INT32, scope); in EmitMouseLocationEvent()
[all …]
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/drag_controller/
H A Djs_drag_controller.cpp195 napi_handle_scope scope = nullptr; in On() local
196 napi_open_handle_scope(env, &scope); in On()
197 CHECK_NULL_RETURN(scope, nullptr); in On()
224 napi_close_handle_scope(env, scope); in On()
266 CHECK_NULL_RETURN(scope, nullptr); in StartDrag()
497 napi_handle_scope scope = nullptr; in GetCallBackDataForJs() local
737 napi_handle_scope scope = nullptr; in EnvelopedDragData() local
775 napi_handle_scope scope = nullptr; in StartDragService() local
789 napi_handle_scope scope = nullptr; in StartDragService() local
795 napi_handle_scope scope = nullptr; in StartDragService() local
[all …]
/ohos5.0/docs/en/application-dev/napi/
H A Duse-napi-life-cycle.md31 | napi_open_escapable_handle_scope | Opens a scope from which one object can be prompted to the out…
61 napi_handle_scope scope;
62 napi_open_handle_scope(env, &scope);
73 // Close the scope. Then, the object handle created within the scope is automatically released.
74 napi_close_handle_scope(env, scope);
82 napi_handle_scope scope;
83 napi_open_handle_scope(env, &scope);
91 // Close the scope. Then, the object handle created within the scope is automatically released.
92 napi_close_handle_scope(env, scope);
136 // Create an escapable scope.
[all …]
H A Duse-jsvm-life-cycle.md31 | OH_JSVM_OpenHandleScope | Opens a handle scope. **JSVM_Value** within the scope will not be g…
33 …n escapable handle scope. Before this scope is closed, the object created within the scope has the…
79 JSVM_HandleScope scope = nullptr;
106 JSVM_HandleScope scope = nullptr;
112 // Create an object within the handle scope.
119 …// Close the handle scope. Then, the object handles created within the scope are automatically rel…
132 JSVM_HandleScope scope = nullptr;
138 // Create an object within the handle scope.
145 …// Close the handle scope. Then, the object handles created within the scope are automatically rel…
218 // Create an escapeable handle scope.
[all …]
/ohos5.0/base/print/print_fwk/frameworks/innerkitsimpl/print_impl/src/
H A Dprint_callback.cpp64 napi_handle_scope scope = nullptr; in ~PrintCallback() local
66 if (scope == nullptr) { in ~PrintCallback()
100 if (scope == nullptr) { in InitUvWorkCallbackEnv()
114 napi_handle_scope scope = nullptr; in PrintTaskAfterCallFun() local
115 if (!InitUvWorkCallbackEnv(work, scope)) { in PrintTaskAfterCallFun()
141 napi_handle_scope scope = nullptr; in PrinterAfterCallFun() local
169 napi_handle_scope scope = nullptr; in PrintJobAfterCallFun() local
199 napi_handle_scope scope = nullptr; in ExtensionAfterCallFun() local
229 napi_handle_scope scope = nullptr; in PrintAdapterAfterCallFun() local
282 napi_handle_scope scope = nullptr; in PrintAdapterJobStateChangedAfterCallFun() local
[all …]
/ohos5.0/foundation/ability/ability_runtime/frameworks/cj/ffi/ark_interop_helper/
H A Dark_interop_helper.cpp125 void ARKTS_DestroyContainerScope(ContainerScope scope) in ARKTS_DestroyContainerScope() argument
127 delete scope; in ARKTS_DestroyContainerScope()
130 void ARKTS_EnterContainerScope(ContainerScope scope) in ARKTS_EnterContainerScope() argument
132 scope->Enter(); in ARKTS_EnterContainerScope()
135 void ARKTS_ExitContainerScope(ContainerScope scope) in ARKTS_ExitContainerScope() argument
137 scope->Exit(); in ARKTS_ExitContainerScope()
142 void ARKTS_DestroyContainerScope(ContainerScope scope) {} in ARKTS_DestroyContainerScope() argument
143 void ARKTS_EnterContainerScope(ContainerScope scope) {} in ARKTS_EnterContainerScope() argument
144 void ARKTS_ExitContainerScope(ContainerScope scope) {} in ARKTS_ExitContainerScope() argument
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/
H A Dark_js_runtime.cpp203 LocalScope scope(vm_); in IsExecuteModuleInAbcFile() local
213 LocalScope scope(vm_); in ExecuteModuleBuffer() local
228 LocalScope scope(vm_); in EvaluateJsCode() local
239 LocalScope scope(vm_); in ExecuteJsBin() local
250 LocalScope scope(vm_); in ExecuteJsBinForAOT() local
259 LocalScope scope(vm_); in GetGlobal() local
266 LocalScope scope(vm_); in RunGC() local
273 LocalScope scope(vm_); in RunFullGC() local
279 LocalScope scope(vm_); in NewInt32() local
285 LocalScope scope(vm_); in NewBoolean() local
[all …]
/ohos5.0/foundation/multimedia/av_session/frameworks/js/napi/session/src/
H A Dnapi_async_callback.cpp53 napi_handle_scope scope = nullptr; in AfterWorkCallback() local
54 napi_open_handle_scope(context->env, &scope); in AfterWorkCallback()
73 napi_close_handle_scope(context->env, scope); in AfterWorkCallback()
85 napi_handle_scope scope = nullptr; in AfterWorkCallbackWithFlag() local
86 napi_open_handle_scope(context->env, &scope); in AfterWorkCallbackWithFlag()
102 napi_close_handle_scope(context->env, scope); in AfterWorkCallbackWithFlag()
112 napi_close_handle_scope(context->env, scope); in AfterWorkCallbackWithFlag()
124 napi_handle_scope scope = nullptr; in AfterWorkCallbackWithFunc() local
125 napi_open_handle_scope(context->env, &scope); in AfterWorkCallbackWithFunc()
137 napi_close_handle_scope(context->env, scope); in AfterWorkCallbackWithFunc()
[all …]
/ohos5.0/base/msdp/device_status/frameworks/js/napi/interaction/drag/src/
H A Djs_drag_manager.cpp40 napi_handle_scope scope = nullptr; in IsSameHandle() local
41 napi_open_handle_scope(env, &scope); in IsSameHandle()
42 CHKPF(scope); in IsSameHandle()
44 CHKRF_SCOPE(env, napi_get_reference_value(env, ref, &handlerTemp), GET_REFERENCE_VALUE, scope); in IsSameHandle()
46 CHKRF_SCOPE(env, napi_strict_equals(env, handle, handlerTemp, &isEqual), STRICT_EQUALS, scope); in IsSameHandle()
47 napi_close_handle_scope(env, scope); in IsSameHandle()
178 napi_handle_scope scope = nullptr; in CallDragMsg() local
179 napi_open_handle_scope(item->env, &scope); in CallDragMsg()
180 CHKPC(scope); in CallDragMsg()
183 CREATE_INT32, scope); in CallDragMsg()
[all …]
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/component_snapshot/
H A Djs_component_snapshot.cpp64 napi_handle_scope scope = nullptr; in OnComplete() local
65 napi_open_handle_scope(ctx->env, &scope); in OnComplete()
284 napi_escapable_handle_scope scope = nullptr; in JSSnapshotGet() local
285 napi_open_escapable_handle_scope(env, &scope); in JSSnapshotGet()
318 napi_close_escapable_handle_scope(env, scope); in JSSnapshotGet()
324 napi_escapable_handle_scope scope = nullptr; in JSSnapshotFromBuilder() local
325 napi_open_escapable_handle_scope(env, &scope); in JSSnapshotFromBuilder()
352 napi_close_escapable_handle_scope(env, scope); in JSSnapshotFromBuilder()
358 napi_escapable_handle_scope scope = nullptr; in JSSnapshotGetSync() local
359 napi_open_escapable_handle_scope(env, &scope); in JSSnapshotGetSync()
[all …]
/ohos5.0/foundation/arkui/napi/interfaces/inner_api/cjffi/ark_interop/
H A Dark_interop_module.cpp79 auto scope = ARKTS_OpenScope(env); in ARKTS_LoadModule() local
84 return ARKTSInner_Escape(env, scope, undefined); in ARKTS_LoadModule()
89 return ARKTSInner_Escape(env, scope, undefined); in ARKTS_LoadModule()
94 return ARKTSInner_Escape(env, scope, undefined); in ARKTS_LoadModule()
100 return ARKTSInner_Escape(env, scope, undefined); in ARKTS_LoadModule()
107 return ARKTSInner_Escape(env, scope, exports); in ARKTS_LoadModule()
135 auto scope = ARKTS_OpenScope(env); in ARKTSInner_CJLambdaInvoker() local
139 return ARKTS_Return(env, scope, ARKTS_CreateUndefined()); in ARKTSInner_CJLambdaInvoker()
143 return ARKTS_Return(env, scope, result); in ARKTSInner_CJLambdaInvoker()
/ohos5.0/foundation/arkui/napi/callback_scope_manager/
H A Dnative_callback_scope_manager.cpp25 [[maybe_unused]] panda::LocalScope scope(env_->GetEcmaVm()); in NativeCallbackScope()
86 NativeCallbackScope* scope = new (std::nothrow)NativeCallbackScope(env, object, asyncIdInfo); in Open() local
88 if (scope) { in Open()
90 return scope; in Open()
96 void NativeCallbackScopeManager::Close(NativeCallbackScope* scope) in Close() argument
98 if (scope != nullptr) { in Close()
99 delete scope; in Close()

12345678910>>...31