Home
last modified time | relevance | path

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

123

/base/security/access_token/frameworks/accesstoken/src/
Dpermission_state_change_scope_parcel.cpp24 RETURN_IF_FALSE(out.WriteUint32((this->scope.tokenIDs.size()))); in Marshalling()
25 for (const auto& tokenID : this->scope.tokenIDs) { in Marshalling()
29 RETURN_IF_FALSE(out.WriteUint32((this->scope.permList.size()))); in Marshalling()
30 for (const auto& permissionName : this->scope.permList) { in Marshalling()
48 permStateChangeScopeParcel->scope.tokenIDs.emplace_back(tokenID); in Unmarshalling()
57 permStateChangeScopeParcel->scope.permList.emplace_back(permName); in Unmarshalling()
/base/msdp/device_status/frameworks/js/napi/src/
Ddevicestatus_event.cpp43 napi_handle_scope scope = nullptr; in On() local
44 napi_open_handle_scope(env_, &scope); in On()
45 if (scope == nullptr) { in On()
61 napi_close_handle_scope(env_, scope); in On()
77 napi_close_handle_scope(env_, scope); in On()
84 napi_close_handle_scope(env_, scope); in On()
158 napi_handle_scope scope = nullptr; in CheckRet() local
159 napi_open_handle_scope(env_, &scope); in CheckRet()
160 if (scope == nullptr) { in CheckRet()
169 napi_close_handle_scope(env_, scope); in CheckRet()
[all …]
/base/location/frameworks/native/source/
Dlocator_callback_host.cpp109 napi_handle_scope scope = nullptr; in DoSendWork() local
110 NAPI_CALL_RETURN_VOID(context->env, napi_open_handle_scope(context->env, &scope)); in DoSendWork()
111 if (scope == nullptr || context->loc == nullptr) { in DoSendWork()
118 scope, context, work); in DoSendWork()
128 scope, context, work); in DoSendWork()
131 scope, context, work); in DoSendWork()
140 scope, context, work); in DoSendWork()
144 scope, context, work); in DoSendWork()
147 NAPI_CALL_RETURN_VOID(context->env, napi_close_handle_scope(context->env, scope)); in DoSendWork()
158 napi_handle_scope scope = nullptr; in DoSendErrorCode() local
[all …]
Dgnss_status_callback_host.cpp106 napi_handle_scope scope = nullptr; in UvQueueWork() local
117 NAPI_CALL_RETURN_VOID(context->env, napi_open_handle_scope(context->env, &scope)); in UvQueueWork()
118 if (scope == nullptr) { in UvQueueWork()
127 scope, context, work); in UvQueueWork()
134 scope, context, work); in UvQueueWork()
136 … napi_get_reference_value(context->env, context->callback[0], &handler), scope, context, work); in UvQueueWork()
142 NAPI_CALL_RETURN_VOID(context->env, napi_close_handle_scope(context->env, scope)); in UvQueueWork()
Dlocation_switch_callback_host.cpp107 napi_handle_scope scope = nullptr; in UvQueueWork() local
118 NAPI_CALL_RETURN_VOID(context->env, napi_open_handle_scope(context->env, &scope)); in UvQueueWork()
121 scope, context, work); in UvQueueWork()
122 if (scope == nullptr) { in UvQueueWork()
132 scope, context, work); in UvQueueWork()
134 … napi_get_reference_value(context->env, context->callback[0], &handler), scope, context, work); in UvQueueWork()
140 NAPI_CALL_RETURN_VOID(context->env, napi_close_handle_scope(context->env, scope)); in UvQueueWork()
Dnmea_message_callback_host.cpp114 napi_handle_scope scope = nullptr; in UvQueueWork() local
125 NAPI_CALL_RETURN_VOID(context->env, napi_open_handle_scope(context->env, &scope)); in UvQueueWork()
126 if (scope == nullptr) { in UvQueueWork()
135 scope, context, work); in UvQueueWork()
140 scope, context, work); in UvQueueWork()
143 scope, context, work); in UvQueueWork()
149 NAPI_CALL_RETURN_VOID(context->env, napi_close_handle_scope(context->env, scope)); in UvQueueWork()
Dcountry_code_callback_host.cpp102 napi_handle_scope scope = nullptr; in UvQueueWork() local
113 NAPI_CALL_RETURN_VOID(context->env, napi_open_handle_scope(context->env, &scope)); in UvQueueWork()
114 if (scope == nullptr) { in UvQueueWork()
122 scope, context, work); in UvQueueWork()
131 …I_ERR_CLOSE_SCOPE(context->env, napi_get_undefined(context->env, &undefine), scope, context, work); in UvQueueWork()
133 …eference_value(context->env, context->callback[SUCCESS_CALLBACK], &handler), scope, context, work); in UvQueueWork()
139 NAPI_CALL_RETURN_VOID(context->env, napi_close_handle_scope(context->env, scope)); in UvQueueWork()
Dcached_locations_callback_host.cpp109 napi_handle_scope scope = nullptr; in UvQueueWork() local
120 NAPI_CALL_RETURN_VOID(context->env, napi_open_handle_scope(context->env, &scope)); in UvQueueWork()
121 if (scope == nullptr) { in UvQueueWork()
129 scope, context, work); in UvQueueWork()
135 scope, context, work); in UvQueueWork()
137 … napi_get_reference_value(context->env, context->callback[0], &handler), scope, context, work); in UvQueueWork()
143 NAPI_CALL_RETURN_VOID(context->env, napi_close_handle_scope(context->env, scope)); in UvQueueWork()
/base/web/webview/interfaces/kits/napi/webfunction/
Dwebview_web_inited_callback.cpp49 napi_handle_scope scope = nullptr; in RunInitedCallback() local
50 napi_open_handle_scope(data->env_, &scope); in RunInitedCallback()
51 if (scope == nullptr) { in RunInitedCallback()
59 napi_close_handle_scope(data->env_, scope); in RunInitedCallback()
/base/telephony/sms_mms/frameworks/js/napi/src/
Dsend_callback.cpp70 napi_handle_scope scope = nullptr; in CompleteSmsSendWork() local
71 napi_open_handle_scope(env_, &scope); in CompleteSmsSendWork()
72 if (scope == nullptr) { in CompleteSmsSendWork()
74 napi_close_handle_scope(env_, scope); in CompleteSmsSendWork()
90 napi_close_handle_scope(env_, scope); in CompleteSmsSendWork()
Ddelivery_callback.cpp52 napi_handle_scope scope = nullptr; in CompleteSmsDeliveryWork() local
53 napi_open_handle_scope(env_, &scope); in CompleteSmsDeliveryWork()
54 if (scope == nullptr) { in CompleteSmsDeliveryWork()
56 napi_close_handle_scope(env_, scope); in CompleteSmsDeliveryWork()
86 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/sensors/sensor/interfaces/plugin/src/
Dsensor_napi_error.cpp54 napi_handle_scope scope = nullptr; in ThrowErr() local
55 napi_open_handle_scope(env, &scope); in ThrowErr()
58 napi_close_handle_scope(env, scope); in ThrowErr()
/base/sensors/miscdevice/interfaces/plugin/vibrator/src/
Dvibrator_napi_error.cpp54 napi_handle_scope scope = nullptr; in ThrowErr() local
55 napi_open_handle_scope(env, &scope); in ThrowErr()
58 napi_close_handle_scope(env, scope); in ThrowErr()
/base/request/request/upload/interfaces/kits/napi/src/
Dupload_task_napiV5.cpp119 napi_handle_scope scope = nullptr; in OnSystemSuccess() local
120 napi_open_handle_scope(successCallback->env, &scope); in OnSystemSuccess()
129 napi_close_handle_scope(successCallback->env, scope); in OnSystemSuccess()
147 napi_handle_scope scope = nullptr; in OnSystemFail() local
148 napi_open_handle_scope(failCallback->env, &scope); in OnSystemFail()
160 napi_close_handle_scope(failCallback->env, scope); in OnSystemFail()
177 napi_handle_scope scope = nullptr; in OnSystemComplete() local
178 napi_open_handle_scope(completeCallback->env, &scope); in OnSystemComplete()
186 napi_close_handle_scope(completeCallback->env, scope); in OnSystemComplete()
Dheader_receive_callback.cpp61 napi_handle_scope scope = nullptr; in UvOnHeaderReceive() local
62 napi_open_handle_scope(headerReceiveWorker->observer->GetEnv(), &scope); in UvOnHeaderReceive()
82 napi_close_handle_scope(headerReceiveWorker->observer->GetEnv(), scope); in UvOnHeaderReceive()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_app_event_watcher.cpp111 napi_handle_scope scope = nullptr; in OnTrigger() local
112 napi_open_handle_scope(context->env, &scope); in OnTrigger()
113 if (scope == nullptr) { in OnTrigger()
122 napi_close_handle_scope(context->env, scope); in OnTrigger()
134 napi_close_handle_scope(context->env, scope); in OnTrigger()
/base/update/updateservice/frameworks/js/napi/base/src/
Dsession_manager.cpp113 napi_handle_scope scope; in ProcessUnsubscribe() local
114 napi_status status = napi_open_handle_scope(env_, &scope); in ProcessUnsubscribe()
142 napi_close_handle_scope(env_, scope); in ProcessUnsubscribe()
224 napi_handle_scope scope; in PublishToJS() local
225 napi_status status = napi_open_handle_scope(env_, &scope); in PublishToJS()
229 PARAM_CHECK_NAPI_CALL(env_, status == napi_ok, napi_close_handle_scope(env_, scope); return, in PublishToJS()
265 napi_close_handle_scope(env_, scope); in PublishToJS()
270 napi_handle_scope scope; in PublishToJS() local
271 napi_status status = napi_open_handle_scope(env_, &scope); in PublishToJS()
275 PARAM_CHECK_NAPI_CALL(env_, status == napi_ok, napi_close_handle_scope(env_, scope); return, in PublishToJS()
[all …]
/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dwebview_hasimage_callback.cpp77 napi_handle_scope scope = nullptr; in UvAfterWorkCb() local
78 napi_open_handle_scope(param->env_, &scope); in UvAfterWorkCb()
79 if (scope == nullptr) { in UvAfterWorkCb()
89 napi_close_handle_scope(param->env_, scope); in UvAfterWorkCb()
Dwebview_javascript_execute_callback.cpp79 napi_handle_scope scope = nullptr; in UvAfterWorkCb() local
80 napi_open_handle_scope(param->env_, &scope); in UvAfterWorkCb()
81 if (scope == nullptr) { in UvAfterWorkCb()
91 napi_close_handle_scope(param->env_, scope); in UvAfterWorkCb()
/base/web/webview/interfaces/kits/napi/webasynccontroller/
Dnapi_web_async_controller.cpp221 napi_handle_scope scope = nullptr; in StoreWebArchiveCallback() local
222 napi_open_handle_scope(env, &scope); in StoreWebArchiveCallback()
223 if (scope == nullptr) { in StoreWebArchiveCallback()
240 napi_close_handle_scope(env, scope); in StoreWebArchiveCallback()
269 napi_handle_scope scope = nullptr; in StoreWebArchivePromise() local
270 napi_open_handle_scope(env, &scope); in StoreWebArchivePromise()
271 if (scope == nullptr) { in StoreWebArchivePromise()
283 napi_close_handle_scope(env, scope); in StoreWebArchivePromise()
/base/web/webview/interfaces/kits/napi/webdatabase/
Dnapi_geolocation_permission.cpp172 napi_handle_scope scope = nullptr; in GetPermissionStateComplete() local
173 napi_open_handle_scope(env, &scope); in GetPermissionStateComplete()
174 if (scope == nullptr) { in GetPermissionStateComplete()
193 napi_close_handle_scope(env, scope); in GetPermissionStateComplete()
201 napi_handle_scope scope = nullptr; in GetPermissionStatePromiseComplete() local
202 napi_open_handle_scope(env, &scope); in GetPermissionStatePromiseComplete()
203 if (scope == nullptr) { in GetPermissionStatePromiseComplete()
217 napi_close_handle_scope(env, scope); in GetPermissionStatePromiseComplete()
334 napi_handle_scope scope = nullptr; in GetOriginComplete() local
335 napi_open_handle_scope(env, &scope); in GetOriginComplete()
[all …]
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
Djs_callback_manager.cpp65 napi_handle_scope scope = nullptr; in RunCallback() local
70 napi_open_handle_scope(context->env, &scope); in RunCallback()
71 if (scope == nullptr) { in RunCallback()
79 napi_close_handle_scope(context->env, scope); in RunCallback()
/base/theme/screenlock_mgr/interfaces/kits/napi/src/
Dscreenlock_system_ability_callback.cpp50 napi_handle_scope scope = nullptr; in __anonde5bc0f60102() local
51 napi_open_handle_scope(screenlockOnCallBackPtr->env, &scope); in __anonde5bc0f60102()
73 napi_close_handle_scope(screenlockOnCallBackPtr->env, scope); in __anonde5bc0f60102()
/base/web/webview/interfaces/kits/napi/webstorage/
Dnapi_web_storage.cpp168 napi_handle_scope scope = nullptr; in GetOriginComplete() local
169 napi_open_handle_scope(env, &scope); in GetOriginComplete()
170 if (scope == nullptr) { in GetOriginComplete()
189 napi_close_handle_scope(env, scope); in GetOriginComplete()
196 napi_handle_scope scope = nullptr; in GetOriginsPromiseComplete() local
197 napi_open_handle_scope(env, &scope); in GetOriginsPromiseComplete()
198 if (scope == nullptr) { in GetOriginsPromiseComplete()
212 napi_close_handle_scope(env, scope); in GetOriginsPromiseComplete()
320 napi_handle_scope scope = nullptr; in GetOriginUsageOrQuotaComplete() local
321 napi_open_handle_scope(env, &scope); in GetOriginUsageOrQuotaComplete()
[all …]

123