/foundation/multimodalinput/input/frameworks/napi/input_device/src/ |
H A D | js_event_target.cpp | 64 napi_handle_scope scope = nullptr; in EmitAddedDeviceEvent() local 65 napi_open_handle_scope(item->env, &scope); in EmitAddedDeviceEvent() 66 CHKPV(scope); in EmitAddedDeviceEvent() 69 CREATE_STRING_UTF8, scope); in EmitAddedDeviceEvent() 71 CHKRV_SCOPE_DEL(item->env, napi_create_object(item->env, &object), CREATE_OBJECT, scope); in EmitAddedDeviceEvent() 73 scope); in EmitAddedDeviceEvent() 76 scope); in EmitAddedDeviceEvent() 78 CHKRV_SCOPE_DEL(item->env, napi_create_int32(item->env, reportData->deviceId, &deviceId), CREATE_INT32, scope); in EmitAddedDeviceEvent() 80 scope); in EmitAddedDeviceEvent() 86 scope); in EmitAddedDeviceEvent() 107 napi_handle_scope scope = nullptr; EmitRemoveDeviceEvent() local 207 napi_handle_scope scope = nullptr; CallIdsAsyncWork() local 243 napi_handle_scope scope = nullptr; CallIdsPromiseWork() local 321 napi_handle_scope scope = nullptr; CallDevAsyncWork() local 349 napi_handle_scope scope = nullptr; CallDevPromiseWork() local 425 napi_handle_scope scope = nullptr; CallKeystrokeAbilityPromise() local 477 napi_handle_scope scope = nullptr; CallKeystrokeAbilityAsync() local 606 napi_handle_scope scope = nullptr; CallKeyboardTypeAsync() local 656 napi_handle_scope scope = nullptr; CallKeyboardTypePromise() local 700 napi_handle_scope scope = nullptr; CallDevListAsyncWork() local 753 napi_handle_scope scope = nullptr; CallDevListPromiseWork() local 803 napi_handle_scope scope = nullptr; CallDevInfoPromiseWork() local 851 napi_handle_scope scope = nullptr; CallDevInfoAsyncWork() local 973 napi_handle_scope scope = nullptr; CallKeyboardRepeatDelayAsync() local 1026 napi_handle_scope scope = nullptr; CallKeyboardRepeatDelayPromise() local 1144 napi_handle_scope scope = nullptr; CallKeyboardRepeatRateAsync() local 1197 napi_handle_scope scope = nullptr; CallKeyboardRepeatRatePromise() local 1360 napi_handle_scope scope = nullptr; CallIntervalSinceLastInputPromise() local [all...] |
/foundation/distributedhardware/device_manager/interfaces/kits/js4.0/src/ |
H A D | dm_native_event.cpp | 53 napi_handle_scope scope = nullptr; in Off() local 54 napi_open_handle_scope(env_, &scope); in Off() 55 if (scope == nullptr) { in Off() 56 LOGE("scope is nullptr"); in Off() 64 napi_close_handle_scope(env_, scope); in Off() 70 napi_close_handle_scope(env_, scope); in Off() 76 napi_handle_scope scope = nullptr; in OnEvent() local 77 napi_open_handle_scope(env_, &scope); in OnEvent() 78 if (scope == nullptr) { in OnEvent() 79 LOGE("scope i in OnEvent() [all...] |
/foundation/distributedhardware/device_manager/interfaces/kits/js/src/ |
H A D | dm_native_event.cpp | 54 napi_handle_scope scope = nullptr; in Off() local 55 napi_open_handle_scope(env_, &scope); in Off() 56 if (scope == nullptr) { in Off() 57 LOGE("scope is nullptr"); in Off() 65 napi_close_handle_scope(env_, scope); in Off() 71 napi_close_handle_scope(env_, scope); in Off() 77 napi_handle_scope scope = nullptr; in OnEvent() local 78 napi_open_handle_scope(env_, &scope); in OnEvent() 79 if (scope == nullptr) { in OnEvent() 80 LOGE("scope i in OnEvent() [all...] |
/foundation/distributeddatamgr/data_share/frameworks/native/provider/src/ |
H A D | js_datashare_ext_ability.cpp | 123 napi_handle_scope scope = nullptr; in OnStart() local 124 napi_open_handle_scope(env, &scope); in OnStart() 125 if (scope == nullptr) { in OnStart() 133 napi_close_handle_scope(env, scope); in OnStart() 459 napi_handle_scope scope = nullptr; in GetFileTypes() local 460 napi_open_handle_scope(env, &scope); in GetFileTypes() 461 if (scope == nullptr) { in GetFileTypes() 468 napi_close_handle_scope(env, scope); in GetFileTypes() 475 napi_close_handle_scope(env, scope); in GetFileTypes() 481 napi_close_handle_scope(env, scope); in GetFileTypes() 490 napi_handle_scope scope = nullptr; OpenFile() local 521 napi_handle_scope scope = nullptr; OpenRawFile() local 553 napi_handle_scope scope = nullptr; Insert() local 585 napi_handle_scope scope = nullptr; Update() local 624 napi_handle_scope scope = nullptr; BatchUpdate() local 668 napi_handle_scope scope = nullptr; Delete() local 702 napi_handle_scope scope = nullptr; Query() local 740 napi_handle_scope scope = nullptr; GetType() local 766 napi_handle_scope scope = nullptr; BatchInsert() local 865 napi_handle_scope scope = nullptr; NormalizeUri() local 889 napi_handle_scope scope = nullptr; DenormalizeUri() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/ |
H A D | gesture_referee.cpp | 257 RefPtr<GestureScope> scope; in AddGestureToScope() local 260 scope = iter->second; in AddGestureToScope() 262 scope = MakeRefPtr<GestureScope>(touchId); in AddGestureToScope() 263 gestureScopes_.try_emplace(touchId, scope); in AddGestureToScope() 267 scope->AddMember(DynamicCast<NGGestureRecognizer>(item)); in AddGestureToScope() 268 scope->SetQueryStateFunc(queryStateFunc_); in AddGestureToScope() 277 const auto& scope = iter->second; in CleanGestureScope() local 278 if (scope->IsPending(touchId)) { in CleanGestureScope() 279 scope->SetDelayClose(); in CleanGestureScope() 282 scope in CleanGestureScope() 292 const auto& scope = iter->second; QueryAllDone() local 366 const auto& scope = iter->second; HasFailRecognizer() local 394 const auto& scope = iter->second; CleanGestureRefereeState() local 505 const auto& scope = iter->second; HasGestureAccepted() local [all...] |
/foundation/multimodalinput/input/util/napi/include/ |
H A D | util_napi.h | 65 #define CHKRV_SCOPE(env, state, desc, scope) \ 69 napi_close_handle_scope(env, scope); \ 74 #define CHKRV_SCOPE_DEL(env, state, desc, scope) \ 78 napi_close_handle_scope(env, scope); \ 83 #define CHECK_SCOPE_BEFORE_BREAK(env, state, desc, scope, pointerEvent) \ 88 napi_close_handle_scope(env, scope); \ 93 #define CHKNRV_SCOPE(env, cond, desc, scope) \ 97 napi_close_handle_scope(env, scope); \
|
/foundation/arkui/ace_engine/interfaces/inner_api/drawable_descriptor/ |
H A D | js_drawable_descriptor.cpp | 96 napi_escapable_handle_scope scope = nullptr; in AnimatedConstructor() local 97 napi_open_escapable_handle_scope(env, &scope); in AnimatedConstructor() 126 napi_escape_handle(env, scope, thisVar, &thisVar); in AnimatedConstructor() 127 napi_close_escapable_handle_scope(env, scope); in AnimatedConstructor() 133 napi_escapable_handle_scope scope = nullptr; in Constructor() local 134 napi_open_escapable_handle_scope(env, &scope); in Constructor() 141 napi_escape_handle(env, scope, thisVar, &thisVar); in Constructor() 142 napi_close_escapable_handle_scope(env, scope); in Constructor() 148 napi_escapable_handle_scope scope = nullptr; in PixelMapConstructor() local 149 napi_open_escapable_handle_scope(env, &scope); in PixelMapConstructor() 181 napi_escapable_handle_scope scope = nullptr; LayeredConstructor() local 367 napi_escapable_handle_scope scope = nullptr; GetPixelMap() local 384 napi_escapable_handle_scope scope = nullptr; GetForeground() local 404 napi_escapable_handle_scope scope = nullptr; GetBackground() local 424 napi_escapable_handle_scope scope = nullptr; GetMask() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/web/resource/ |
H A D | web_client_impl.cpp | 126 ContainerScope scope(delegate->GetInstanceId()); in OnDownloadStart() 134 ContainerScope scope(delegate->GetInstanceId()); in OnAccessibilityEvent() 145 ContainerScope scope(delegate->GetInstanceId()); in OnFindResultReceived() 151 ContainerScope scope(instanceId_); in SpanstringConvertHtml() 165 ContainerScope scope(delegate->GetInstanceId()); in OnPageLoadEnd() 173 ContainerScope scope(delegate->GetInstanceId()); in OnFocus() 185 ContainerScope scope(delegate->GetInstanceId()); in OnFocus() 197 ContainerScope scope(delegate->GetInstanceId()); in OnConsoleLog() 223 ContainerScope scope(delegate->GetInstanceId()); in OnPageLoadBegin() 233 ContainerScope scope(delegat in OnLoadingProgress() [all...] |
/foundation/arkui/napi/callback_scope_manager/ |
H A D | native_callback_scope_manager.cpp | 25 [[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()
|
/foundation/ability/ability_runtime/frameworks/cj/ffi/ark_interop_helper/ |
H A D | ark_interop_helper.cpp | 125 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
|
/foundation/arkui/napi/interfaces/inner_api/cjffi/ark_interop/ |
H A D | ark_interop_module.cpp | 79 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()
|
/foundation/arkui/ace_engine/interfaces/napi/kits/inspector/ |
H A D | js_inspector.cpp | 74 napi_handle_scope scope = nullptr; in callUserFunction() local 75 napi_open_handle_scope(env, &scope); in callUserFunction() 76 if (scope == nullptr) { in callUserFunction() 91 napi_close_handle_scope(env, scope); in callUserFunction() 116 napi_value cb, std::list<napi_ref>& cbList, CalloutType calloutType, napi_env env, napi_handle_scope scope) 120 napi_close_handle_scope(env, scope); 126 napi_close_handle_scope(env, scope); 156 napi_handle_scope scope = nullptr; 157 napi_open_handle_scope(env, &scope); 158 CHECK_NULL_RETURN(scope, nullpt [all...] |
/foundation/multimedia/av_session/frameworks/js/napi/session/src/ |
H A D | napi_async_callback.cpp | 55 napi_handle_scope scope = nullptr; in AfterWorkCallback() local 56 napi_open_handle_scope(context->env, &scope); in AfterWorkCallback() 75 napi_close_handle_scope(context->env, scope); in AfterWorkCallback() 89 napi_handle_scope scope = nullptr; in AfterWorkCallbackWithFlag() local 90 napi_open_handle_scope(context->env, &scope); in AfterWorkCallbackWithFlag() 106 napi_close_handle_scope(context->env, scope); in AfterWorkCallbackWithFlag() 116 napi_close_handle_scope(context->env, scope); in AfterWorkCallbackWithFlag() 130 napi_handle_scope scope = nullptr; in AfterWorkCallbackWithFunc() local 131 napi_open_handle_scope(context->env, &scope); in AfterWorkCallbackWithFunc() 143 napi_close_handle_scope(context->env, scope); in AfterWorkCallbackWithFunc() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/ |
H A D | uv_queue.cpp | 73 napi_handle_scope scope = nullptr; in Work() local 74 napi_open_handle_scope(entry->env, &scope); in Work() 78 if (scope != nullptr) { in Work() 79 napi_close_handle_scope(entry->env, scope); in Work() 97 if (scope != nullptr) { in Work() 98 napi_close_handle_scope(entry->env, scope); in Work()
|
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/ |
H A D | uv_queue.cpp | 73 napi_handle_scope scope = nullptr; in Work() local 74 napi_open_handle_scope(entry->env, &scope); in Work() 78 if (scope != nullptr) { in Work() 79 napi_close_handle_scope(entry->env, scope); in Work() 97 if (scope != nullptr) { in Work() 98 napi_close_handle_scope(entry->env, scope); in Work()
|
/foundation/arkui/ace_engine/interfaces/napi/kits/drag_controller/ |
H A D | drag_preview.h | 51 napi_handle_scope scope = nullptr; in SetForegroundColor() local 52 napi_open_handle_scope(env, &scope); in SetForegroundColor() 53 CHECK_NULL_RETURN(scope, nullptr); in SetForegroundColor() 64 napi_close_handle_scope(env, scope); in SetForegroundColor() 72 napi_close_handle_scope(env, scope); in SetForegroundColor() 93 napi_close_handle_scope(env, scope); in SetForegroundColor() 99 napi_handle_scope scope = nullptr; in Animate() local 100 napi_open_handle_scope(env, &scope); in Animate() 101 CHECK_NULL_RETURN(scope, nullptr); in Animate() 113 napi_close_handle_scope(env, scope); in Animate() [all...] |
H A D | js_drag_controller.cpp | 197 napi_handle_scope scope = nullptr; in On() local 198 napi_open_handle_scope(env, &scope); in On() 199 CHECK_NULL_RETURN(scope, nullptr); in On() 208 napi_close_handle_scope(env, scope); in On() 214 napi_close_handle_scope(env, scope); in On() 220 napi_close_handle_scope(env, scope); in On() 226 napi_close_handle_scope(env, scope); in On() 233 napi_handle_scope scope = nullptr; in Off() local 234 napi_open_handle_scope(env, &scope); in Off() 235 CHECK_NULL_RETURN(scope, nullpt in Off() 268 napi_escapable_handle_scope scope = nullptr; StartDrag() local 501 napi_handle_scope scope = nullptr; GetCallBackDataForJs() local 736 napi_handle_scope scope = nullptr; EnvelopedDragData() local 777 napi_handle_scope scope = nullptr; StartDragService() local 799 napi_handle_scope scope = nullptr; StartDragService() local 813 napi_handle_scope scope = nullptr; StartDragService() local 911 napi_handle_scope scope = nullptr; ExecuteHandleOnDragStart() local 965 napi_handle_scope scope = nullptr; TryToStartDrag() local 1064 napi_escapable_handle_scope scope = nullptr; GetPixelMapByCustom() local 1103 napi_escapable_handle_scope scope = nullptr; GetPixelMapArrayByCustom() local 1392 napi_handle_scope scope = nullptr; ParsePreviewOptions() local 1619 napi_escapable_handle_scope scope = nullptr; JSExecuteDrag() local 1665 napi_escapable_handle_scope scope = nullptr; JSCreateDragAction() local 1725 napi_escapable_handle_scope scope = nullptr; JSGetDragPreview() local 1735 napi_escapable_handle_scope scope = nullptr; JSExecuteDrag() local 1745 napi_escapable_handle_scope scope = nullptr; JSCreateDragAction() local [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | ark_js_runtime.cpp | 202 LocalScope scope(vm_); in IsExecuteModuleInAbcFile() 212 LocalScope scope(vm_); in ExecuteModuleBuffer() 227 LocalScope scope(vm_); in EvaluateJsCode() 238 LocalScope scope(vm_); in ExecuteJsBin() 249 LocalScope scope(vm_); in ExecuteJsBinForAOT() 258 LocalScope scope(vm_); in GetGlobal() 265 LocalScope scope(vm_); in RunGC() 272 LocalScope scope(vm_); in RunFullGC() 278 LocalScope scope(vm_); in NewInt32() 284 LocalScope scope(vm in NewBoolean() [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/ |
H A D | zlib_callback_info.cpp | 62 napi_handle_scope scope = nullptr; in ExcuteWork() 63 napi_open_handle_scope(asyncCallbackInfo->env, &scope); in ExcuteWork() 64 if (scope == nullptr) { in ExcuteWork() 71 CHKRV_SCOPE(asyncCallbackInfo->env, napi_get_null(asyncCallbackInfo->env, &result[0]), scope); in ExcuteWork() 84 callback, sizeof(result) / sizeof(result[0]), result, &placeHolder), scope); in ExcuteWork() 91 asyncCallbackInfo->deferred, result[0]), scope); in ExcuteWork() 94 asyncCallbackInfo->deferred, result[0]), scope); in ExcuteWork() 104 napi_close_handle_scope(asyncCallbackInfo->env, scope); in ExcuteWork()
|
/foundation/ai/ai_engine/services/common/platform/threadpool/source/ |
H A D | aie_thread_unix.cpp | 55 attr.scope = THREAD_SCOPE_SYSTEM; in InitThreadAttr() 63 void SetThreadAttrScope(PthreadAttr &attr, int32_t scope) in SetThreadAttrScope() argument 65 attr.scope = scope; in SetThreadAttrScope() 77 if (attr != nullptr && attr->scope == THREAD_SCOPE_PROCESS) { in CreateOneThread()
|
/foundation/CastEngine/castengine_cast_framework/interfaces/kits/js/src/ |
H A D | napi_callback.cpp | 54 napi_handle_scope scope = nullptr; in AfterWorkCallback() local 55 napi_open_handle_scope(context->env, &scope); in AfterWorkCallback() 65 napi_close_handle_scope(context->env, scope); in AfterWorkCallback() 71 napi_close_handle_scope(context->env, scope); in AfterWorkCallback() 78 napi_close_handle_scope(context->env, scope); in AfterWorkCallback()
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/ |
H A D | uv_queue.cpp | 67 napi_handle_scope scope = nullptr; in Work() local 68 napi_open_handle_scope(entry->env, &scope); in Work() 69 if (scope == nullptr) { in Work() 75 napi_close_handle_scope(entry->env, scope); in Work() 92 napi_close_handle_scope(entry->env, scope); in Work()
|
/foundation/arkui/ace_engine/interfaces/napi/kits/component_snapshot/ |
H A D | js_component_snapshot.cpp | 57 napi_handle_scope scope = nullptr; in OnComplete() 58 napi_open_handle_scope(ctx->env, &scope); in OnComplete() 89 napi_close_handle_scope(ctx->env, scope); in OnComplete() 277 napi_escapable_handle_scope scope = nullptr; in JSSnapshotGet() local 278 napi_open_escapable_handle_scope(env, &scope); in JSSnapshotGet() 286 napi_close_escapable_handle_scope(env, scope); in JSSnapshotGet() 310 napi_escape_handle(env, scope, result, &result); in JSSnapshotGet() 311 napi_close_escapable_handle_scope(env, scope); in JSSnapshotGet() 317 napi_escapable_handle_scope scope = nullptr; in JSSnapshotFromBuilder() local 318 napi_open_escapable_handle_scope(env, &scope); in JSSnapshotFromBuilder() 351 napi_escapable_handle_scope scope = nullptr; JSSnapshotGetSync() local [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/mediaquery/ |
H A D | js_media_query.cpp | 49 napi_handle_scope scope = nullptr; in NapiSerializer() local 50 napi_open_handle_scope(env, &scope); in NapiSerializer() 51 if (scope == nullptr) { in NapiSerializer() 62 napi_close_handle_scope(env, scope); in NapiSerializer() 140 napi_handle_scope scope = nullptr; in TriggerAllCallbacks() local 141 napi_open_handle_scope(listener->env_, &scope); in TriggerAllCallbacks() 142 if (scope == nullptr) { in TriggerAllCallbacks() 154 napi_close_handle_scope(listener->env_, scope); in TriggerAllCallbacks() 167 napi_handle_scope scope = nullptr; in On() local 168 napi_open_handle_scope(env, &scope); in On() 300 napi_handle_scope scope = nullptr; Initialize() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/form/resource/ |
H A D | form_callback_client.h | 34 ContainerScope scope(instanceId_); 51 ContainerScope scope(instanceId_); 68 ContainerScope scope(instanceId_); 85 ContainerScope scope(instanceId_); 112 ContainerScope scope(instanceId_); 130 ContainerScope scope(instanceId_);
|