Home
last modified time | relevance | path

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

/base/powermgr/thermal_manager/frameworks/napi/common/
Dthermal_manager_native_event.cpp50 napi_handle_scope scope = nullptr; in Off() local
51 napi_open_handle_scope(env_, &scope); in Off()
52 if (scope == nullptr) { in Off()
65 napi_close_handle_scope(env_, scope); in Off()
71 napi_handle_scope scope = nullptr; in OnEvent() local
72 napi_open_handle_scope(env_, &scope); in OnEvent()
73 if (scope == nullptr) { in OnEvent()
108 napi_close_handle_scope(env_, scope); in OnEvent()
/base/msdp/device_status/frameworks/js/napi/src/
Ddevicestatus_event.cpp73 napi_handle_scope scope = nullptr; in Off() local
74 napi_open_handle_scope(env_, &scope); in Off()
75 if (scope == nullptr) { in Off()
102 napi_close_handle_scope(env_, scope); in Off()
109 napi_handle_scope scope = nullptr; in OnEvent() local
110 napi_open_handle_scope(env_, &scope); in OnEvent()
111 if (scope == nullptr) { in OnEvent()
162 napi_close_handle_scope(env_, scope); in OnEvent()
/base/telephony/sms_mms/frameworks/js/napi/src/
Dsend_callback.cpp62 napi_handle_scope scope = nullptr; in CompleteSmsSendWork() local
63 napi_open_handle_scope(env_, &scope); in CompleteSmsSendWork()
64 if (scope == nullptr) { in CompleteSmsSendWork()
66 napi_close_handle_scope(env_, scope); in CompleteSmsSendWork()
82 napi_close_handle_scope(env_, scope); in CompleteSmsSendWork()
Ddelivery_callback.cpp44 napi_handle_scope scope = nullptr; in CompleteSmsDeliveryWork() local
45 napi_open_handle_scope(env_, &scope); in CompleteSmsDeliveryWork()
46 if (scope == nullptr) { in CompleteSmsDeliveryWork()
48 napi_close_handle_scope(env_, scope); in CompleteSmsDeliveryWork()
80 napi_close_handle_scope(env_, scope); in CompleteSmsDeliveryWork()
/base/hiviewdfx/hiview/base/test/unittest/common/
Daudit_log_parser_test.cpp52 auto scope = parser.GetAuditLogTimeScope(); variable
53 ASSERT_GT(scope.length(), 10ul);
89 auto scope = parser.GetAuditLogTimeScope(); variable
90 ASSERT_GT(scope.length(), 10ul);
132 auto scope = parser.GetAuditLogTimeScope(); variable
133 ASSERT_GT(scope.length(), 10ul);
/base/location/interfaces/innerkits/locator_standard/src/
Dlocator_callback_host.cpp100 napi_handle_scope scope = nullptr; in DoSendWork() local
101 NAPI_CALL_RETURN_VOID(context->env, napi_open_handle_scope(context->env, &scope)); in DoSendWork()
102 if (scope == nullptr || context->loc == nullptr) { in DoSendWork()
132 NAPI_CALL_RETURN_VOID(context->env, napi_close_handle_scope(context->env, scope)); in DoSendWork()
143 napi_handle_scope scope = nullptr; in DoSendErrorCode() local
154 napi_open_handle_scope(context->env, &scope); in DoSendErrorCode()
155 if (scope == nullptr) { in DoSendErrorCode()
173 napi_close_handle_scope(context->env, scope); in DoSendErrorCode()
Dlocation_switch_callback_host.cpp116 napi_handle_scope scope = nullptr; in UvQueueWork() local
127 napi_open_handle_scope(context->env, &scope); in UvQueueWork()
130 if (scope == nullptr) { in UvQueueWork()
146 napi_close_handle_scope(context->env, scope); in UvQueueWork()
Dcached_locations_callback_host.cpp112 napi_handle_scope scope = nullptr; in UvQueueWork() local
123 napi_open_handle_scope(context->env, &scope); in UvQueueWork()
124 if (scope == nullptr) { in UvQueueWork()
143 napi_close_handle_scope(context->env, scope); in UvQueueWork()
Dnmea_message_callback_host.cpp118 napi_handle_scope scope = nullptr; in UvQueueWork() local
129 napi_open_handle_scope(context->env, &scope); in UvQueueWork()
130 if (scope == nullptr) { in UvQueueWork()
148 napi_close_handle_scope(context->env, scope); in UvQueueWork()
Dgnss_status_callback_host.cpp110 napi_handle_scope scope = nullptr; in UvQueueWork() local
121 napi_open_handle_scope(context->env, &scope); in UvQueueWork()
122 if (scope == nullptr) { in UvQueueWork()
143 napi_close_handle_scope(context->env, scope); in UvQueueWork()
/base/hiviewdfx/hiview/plugins/freeze_detector/
Drule_cluster.h51 FreezeResult(unsigned long code, const std::string& scope) in FreezeResult() argument
52 : code_(code), scope_(scope), domain_(""), stringId_(""), relevances_({}) {}; in FreezeResult()
60 void SetScope(const std::string& scope) { scope_ = scope; }; in SetScope() argument
Drule_cluster.cpp188 std::string scope = GetAttributeStringValue(tag, ATTRIBUTE_SCOPE); in ParseTagResult() local
209 result.SetScope(scope); in ParseTagResult()
/base/user_iam/face_auth/ui/Settings_FaceAuth/
Dgradlew.bat24 @rem Set local scope for the variables with windows NT shell
91 @rem End local scope for the variables with windows NT shell
/base/security/access_token/frameworks/com.ohos.permissionmanager/
Dgradlew.bat24 @rem Set local scope for the variables with windows NT shell
91 @rem End local scope for the variables with windows NT shell
/base/miscservices/wallpaper/interfaces/kits/napi/
Dnapi_wallpaper_ability.cpp405 napi_handle_scope scope = nullptr; in onColorsChange() local
406 napi_open_handle_scope(eventDataInner->listener->env_, &scope); in onColorsChange()
407 if (scope == nullptr) { in onColorsChange()
428 napi_close_handle_scope(eventDataInner->listener->env_, scope); in onColorsChange()
/base/compileruntime/js_worker_module/jsapi/worker/
Dworker.cpp487 [[maybe_unused]] ObjectScope<napi_value> scope(argv, true); in PostMessage() local
530 [[maybe_unused]] ObjectScope<napi_value> scope(argv, true); in PostMessageToHost() local
684 [[maybe_unused]] ObjectScope<napi_value> scope(args, true); in WorkerConstructor() local
785 [[maybe_unused]] ObjectScope<napi_value> scope(args, true); in AddListener() local
903 [[maybe_unused]] ObjectScope<napi_value> scope(args, true); in RemoveListener() local
959 [[maybe_unused]] ObjectScope<napi_value> scope(args, true); in DispatchEvent() local
1213 [[maybe_unused]] ObjectScope<napi_value> scope(args, true); in ParentPortAddEventListener() local
1289 [[maybe_unused]] ObjectScope<napi_value> scope(args, true); in ParentPortDispatchEvent() local
1349 [[maybe_unused]] ObjectScope<napi_value> scope(args, true); in ParentPortRemoveEventListener() local
/base/security/device_security_level/test/
DBUILD.gn67 # cflags += [ "-fsanitize-address-use-after-scope" ]
/base/startup/syspara_lite/interfaces/kits/js/src/
Dnative_parameters_watch.cpp413 napi_handle_scope scope = nullptr; in ProcessParamChange() local
414 napi_status status = napi_open_handle_scope(watcher->env, &scope); in ProcessParamChange()
421 PARAM_JS_CHECK(status == 0 && thisVar != nullptr, napi_close_handle_scope(watcher->env, scope); in ProcessParamChange()
429 napi_close_handle_scope(watcher->env, scope); in ProcessParamChange()
/base/miscservices/time/interfaces/kits/js/napi/system_timer/src/
Dsystem_timer.cpp228 napi_handle_scope scope = nullptr; in OnTrigger() local
229 napi_open_handle_scope(dataWorkerData->env, &scope); in OnTrigger()
230 if (scope == nullptr) { in OnTrigger()
237 napi_close_handle_scope(dataWorkerData->env, scope); in OnTrigger()
/base/update/updateservice/client/
Dupdate_client.cpp484 napi_handle_scope scope; in ProcessUnsubscribe() local
485 napi_status status = napi_open_handle_scope(env_, &scope); in ProcessUnsubscribe()
513 napi_close_handle_scope(env_, scope); in ProcessUnsubscribe()
575 napi_handle_scope scope; in PublishToJS() local
576 napi_status status = napi_open_handle_scope(env_, &scope); in PublishToJS()
606 napi_close_handle_scope(env_, scope); in PublishToJS()
/base/compileruntime/js_util_module/util/src/
Dutil_js.ts896 public contains(scope: Scope): boolean;
923 public intersect(scope: Scope): Scope;
959 public expand(scope: Scope): Scope;
/base/update/updateservice/test/unittest/update_client/
Dclient_stub.cpp457 napi_status napi_close_handle_scope(napi_env env, napi_handle_scope scope) in napi_close_handle_scope() argument
/base/security/access_token/frameworks/com.ohos.permissionmanager/permissionmanager/src/main/ets/MainAbility/common/utils/
Dutils.ets355 …// If it is not within the scope of Chinese character processing, return the original character, a…
/base/compileruntime/js_util_module/
DREADME.md184 …pe) | Creates and returns a Scope object that creates a constructor for a scope instance that spec…
188 | getUpper(): ScopeType | Gets the upper bound of the current scope. |
189 | getLower(): ScopeType | Gets the lower bound of the current scope. |