/base/security/access_token/frameworks/accesstoken/src/ |
D | permission_state_change_scope_parcel.cpp | 24 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/ |
D | devicestatus_event.cpp | 43 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/ |
D | locator_callback_host.cpp | 109 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 …]
|
D | gnss_status_callback_host.cpp | 106 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()
|
D | location_switch_callback_host.cpp | 107 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()
|
D | nmea_message_callback_host.cpp | 114 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()
|
D | country_code_callback_host.cpp | 102 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()
|
D | cached_locations_callback_host.cpp | 109 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/ |
D | webview_web_inited_callback.cpp | 49 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/ |
D | send_callback.cpp | 70 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()
|
D | delivery_callback.cpp | 52 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/ |
D | audit_log_parser_test.cpp | 52 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/ |
D | sensor_napi_error.cpp | 54 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/ |
D | vibrator_napi_error.cpp | 54 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/ |
D | upload_task_napiV5.cpp | 119 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()
|
D | header_receive_callback.cpp | 61 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/ |
D | napi_app_event_watcher.cpp | 111 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/ |
D | session_manager.cpp | 113 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/ |
D | webview_hasimage_callback.cpp | 77 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()
|
D | webview_javascript_execute_callback.cpp | 79 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/ |
D | napi_web_async_controller.cpp | 221 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/ |
D | napi_geolocation_permission.cpp | 172 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/ |
D | js_callback_manager.cpp | 65 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/ |
D | screenlock_system_ability_callback.cpp | 50 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/ |
D | napi_web_storage.cpp | 168 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 …]
|