/base/telephony/sms_mms/frameworks/js/napi/src/ |
D | delivery_callback.cpp | 26 : hasCallback_(hasCallback), env_(env), thisVarRef_(thisVarRef), callbackRef_(callbackRef) in DeliveryCallback() 31 env_ = nullptr; in ~DeliveryCallback() 40 napi_env env_ = pContext->env; in CompleteSmsDeliveryWork() local 45 napi_open_handle_scope(env_, &scope); in CompleteSmsDeliveryWork() 48 napi_close_handle_scope(env_, scope); in CompleteSmsDeliveryWork() 52 napi_get_reference_value(env_, callbackRef_, &callbackFunc); in CompleteSmsDeliveryWork() 55 callbackValues[0] = NapiUtil::CreateUndefined(env_); in CompleteSmsDeliveryWork() 56 napi_create_object(env_, &callbackValues[1]); in CompleteSmsDeliveryWork() 60 napi_create_array(env_, &arrayValue); in CompleteSmsDeliveryWork() 64 napi_create_int32(env_, intValue, &element); in CompleteSmsDeliveryWork() [all …]
|
D | send_callback.cpp | 44 : hasCallback_(hasCallback), env_(env), thisVarRef_(thisVarRef), callbackRef_(callbackRef) in SendCallback() 49 env_ = nullptr; in ~SendCallback() 58 napi_env env_ = pContext->env; in CompleteSmsSendWork() local 63 napi_open_handle_scope(env_, &scope); in CompleteSmsSendWork() 66 napi_close_handle_scope(env_, scope); in CompleteSmsSendWork() 70 napi_get_reference_value(env_, callbackRef_, &callbackFunc); in CompleteSmsSendWork() 72 callbackValues[0] = NapiUtil::CreateUndefined(env_); in CompleteSmsSendWork() 73 napi_create_object(env_, &callbackValues[1]); in CompleteSmsSendWork() 75 napi_create_int32(env_, wrapResult, &sendResultValue); in CompleteSmsSendWork() 76 napi_set_named_property(env_, callbackValues[1], "result", sendResultValue); in CompleteSmsSendWork() [all …]
|
/base/powermgr/thermal_manager/frameworks/napi/common/ |
D | thermal_manager_native_event.cpp | 23 env_ = env; in ThermalManagerNativeEvent() 32 napi_delete_reference(env_, listener->handlerRef); in ~ThermalManagerNativeEvent() 35 napi_delete_reference(env_, thisVarRef_); in ~ThermalManagerNativeEvent() 43 napi_create_reference(env_, handler, 1, &listener->handlerRef); in On() 51 napi_open_handle_scope(env_, &scope); in Off() 63 napi_delete_reference(env_, listener->handlerRef); in Off() 65 napi_close_handle_scope(env_, scope); in Off() 72 napi_open_handle_scope(env_, &scope); in OnEvent() 85 napi_status status = napi_get_reference_value(env_, thisVarRef_, &thisVar); in OnEvent() 93 status = napi_get_reference_value(env_, listener->handlerRef, &handler); in OnEvent() [all …]
|
D | thermal_napi_context.cpp | 29 int32_t callbackArg, napi_value object) : env_(env), in ThermalNapiContext() 54 napi_get_undefined(env_, &outValue_); in ThermalNapiContext() 55 napi_get_undefined(env_, &outError_); in ThermalNapiContext() 66 napi_delete_async_work(env_, asyncWork_); in ~ThermalNapiContext() 75 napi_create_string_latin1(this->env_, workName, NAPI_AUTO_LENGTH, &resourceName); in StartAsyncWork() 81 this->env_, in StartAsyncWork() 92 napi_queue_async_work(this->env_, asyncWork_); in StartAsyncWork()
|
/base/msdp/device_status/frameworks/js/napi/src/ |
D | devicestatus_event.cpp | 24 env_ = env; in DevicestatusEvent() 33 napi_delete_reference(env_, listener->handlerRef); in ~DevicestatusEvent() 36 napi_delete_reference(env_, thisVarRef_); in ~DevicestatusEvent() 60 napi_create_reference(env_, handler, 1, &listener->handlerRef); in On() 74 napi_open_handle_scope(env_, &scope); in Off() 96 napi_delete_reference(env_, listener->handlerRef); in Off() 102 napi_close_handle_scope(env_, scope); in Off() 110 napi_open_handle_scope(env_, &scope); in OnEvent() 133 napi_status status = napi_get_reference_value(env_, thisVarRef_, &thisVar); in OnEvent() 140 status = napi_get_reference_value(env_, listener->handlerRef, &handler); in OnEvent() [all …]
|
/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/common/napi/ |
D | n_val.cpp | 25 NVal::NVal(napi_env nEnv, napi_value nVal = nullptr) : env_(nEnv), val_(nVal) {} in NVal() 29 return env_ && val_; in operator bool() 39 napi_typeof(env_, val_, &valueType); in TypeIs() 50 napi_status status = napi_is_array(env_, val_, &res); in IsArray() 57 napi_status status = napi_get_value_string_utf8(env_, val_, nullptr, -1, &strLen); in ToUTF8String() 64 status = napi_get_value_string_utf8(env_, val_, str.get(), bufLen, &strLen); in ToUTF8String() 72 napi_status status = napi_get_value_string_utf16(env_, val_, nullptr, -1, &strLen); in ToUTF16String() 78 status = napi_get_value_string_utf16(env_, val_, str.get(), strLen, nullptr); in ToUTF16String() 95 napi_status status = napi_get_value_external(env_, val_, &res); in ToPointer() 102 napi_status status = napi_is_typedarray(env_, val_, &res); in IsTypeArray() [all …]
|
D | n_func_arg.cpp | 22 NFuncArg::NFuncArg(napi_env env, napi_callback_info info) : env_(env), info_(info) {} in NFuncArg() 63 napi_status status = napi_get_cb_info(env_, info_, &argc, nullptr, &thisVar, nullptr); in InitArgs() 69 status = napi_get_cb_info(env_, info_, &argc, argv_.get(), &thisVar, nullptr); in InitArgs()
|
/base/miscservices/request/upload/interfaces/kits/napi/src/ |
D | progress_callback.cpp | 21 : env_(env) in ProgressCallback() 30 napi_delete_reference(env_, callback_); in ~ProgressCallback() 63 napi_env tmpEnv = progressWorkerInner->callback->env_; in Progress() 65 if (progressWorkerInner->callback->env_ == tmpEnv && in Progress() 67 napi_create_int64(progressWorkerInner->callback->env_, in Progress() 70 napi_create_int64(progressWorkerInner->callback->env_, in Progress() 76 if (progressWorkerInner->callback->env_ == tmpEnv && in Progress() 79 napi_get_reference_value(progressWorkerInner->callback->env_, in Progress() 81 napi_get_global(progressWorkerInner->callback->env_, &global); in Progress() 82 calStatus = napi_call_function(progressWorkerInner->callback->env_, in Progress()
|
D | header_receive_callback.cpp | 21 : env_(env) in HeaderReceiveCallback() 29 napi_delete_reference(env_, callback_); in ~HeaderReceiveCallback() 60 napi_env tmpEnv = headerReceiveWorkerInner->callback->env_; in HeaderReceive() 62 if (headerReceiveWorkerInner->callback->env_ == tmpEnv && in HeaderReceive() 64 … jsHeader = UploadNapi::JSUtil::Convert2JSString(headerReceiveWorkerInner->callback->env_, in HeaderReceive() 70 if (headerReceiveWorkerInner->callback->env_ == tmpEnv && in HeaderReceive() 73 napi_get_reference_value(headerReceiveWorkerInner->callback->env_, in HeaderReceive() 75 napi_get_global(headerReceiveWorkerInner->callback->env_, &global); in HeaderReceive() 77 … headerReceiveWorkerInner->callback->env_, global, callback, 1, args, &result); in HeaderReceive()
|
D | fail_callback.cpp | 21 : env_(env) in FailCallback() 29 napi_delete_reference(env_, callback_); in ~FailCallback() 59 napi_env tmpEnv = failWorkerInner->callback->env_; in Fail() 61 … if (failWorkerInner->callback->env_ != tmpEnv || failWorkerInner->callback->status_ != napi_ok) { in Fail() 64 … napi_create_uint32(failWorkerInner->callback->env_, failWorkerInner->error, &jsError); in Fail() 66 …if (failWorkerInner->callback->env_ != tmpEnv || failWorkerInner->callback->callback_ == nullptr || in Fail() 70 napi_get_reference_value(failWorkerInner->callback->env_, in Fail() 72 napi_get_global(failWorkerInner->callback->env_, &global); in Fail() 73 …callStatus = napi_call_function(failWorkerInner->callback->env_, global, callback, 1, args, &resul… in Fail()
|
/base/powermgr/display_manager/frameworks/napi/ |
D | brightness.cpp | 52 : env_(env), runningLock_(runningLock) in Brightness() 79 if (napi_ok != napi_get_value_int32(env_, number, &value)) { in SetValue() 94 napi_get_reference_value(env_, napiValRef_, &napiVal); in SystemSetValue() 95 napi_get_value_int32(env_, napiVal, &brightness); in SystemSetValue() 117 napi_get_reference_value(env_, napiValRef_, &napiMode); in SetMode() 118 napi_get_value_int32(env_, napiMode, &mode); in SetMode() 134 napi_get_reference_value(env_, napiValRef_, &napiKeep); in SetKeepScreenOn() 136 napi_get_value_bool(env_, napiKeep, &screenOn); in SetKeepScreenOn() 149 if (napi_ok != napi_get_cb_info(env_, info, &argc, argv, &thisVar, &data)) { in GetCallbackInfo() 170 napi_create_reference(env_, succCallBack, 1, &successRef_); in CreateCallbackRef() [all …]
|
/base/miscservices/request/download/interfaces/kits/js/napi/download_single/src/legacy/ |
D | download_manager.cpp | 59 data->env_ = env; in CallFunctionAsync() 69 data->generator_(data->env_, &recv, argc, argv); in CallFunctionAsync() 71 napi_get_reference_value(data->env_, data->func_, &callback); in CallFunctionAsync() 73 napi_get_reference_value(data->env_, recv, &thiz); in CallFunctionAsync() 75 napi_call_function(data->env_, thiz, callback, argc, argv, &result); in CallFunctionAsync() 76 napi_delete_reference(data->env_, data->func_); in CallFunctionAsync() 77 napi_delete_reference(data->env_, recv); in CallFunctionAsync() 98 CallFunctionAsync(descriptor.env_, descriptor.successCb_, in OnTaskDone() 102 argv[0] = NapiUtils::CreateObject(descriptor.env_); in OnTaskDone() 103 …NapiUtils::SetStringPropertyUtf8(descriptor.env_, argv[0], "uri", URI_PREFIX + descriptor.filename… in OnTaskDone() [all …]
|
/base/update/updater/services/applypatch/ |
D | data_writer.cpp | 28 UpdaterEnv *DataWriter::env_ = nullptr; member in updater::DataWriter 74 return env_; in GetUpdaterEnv() 80 env_ = env; in CreateDataWriter()
|
/base/miscservices/request/download/interfaces/kits/js/napi/download_single/src/ |
D | download_base_notify.cpp | 25 … : DownloadNotifyStub(), env_(env), type_(type), task_(const_cast<DownloadTask *>(task)), ref_(ref) in DownloadBaseNotify() 38 napi_get_uv_event_loop(env_, &loop); in OnCallBack() 50 notifyData->env = env_; in OnCallBack()
|
D | download_fail_notify.cpp | 36 napi_get_uv_event_loop(env_, &loop); in OnCallBack() 48 notifyData->env = env_; in OnCallBack()
|
D | download_progress_notify.cpp | 39 napi_get_uv_event_loop(env_, &loop); in OnCallBack() 51 notifyData->env = env_; in OnCallBack()
|
/base/account/os_account/interfaces/kits/napi/appaccount/src/ |
D | napi_app_account_authenticator.cpp | 38 env_ = env; in NapiAppAccountAuthenticator() 47 napi_status status = napi_delete_reference(env_, addAccountImplicitlyRef_); in ~NapiAppAccountAuthenticator() 48 …NAPI_ASSERT_RETURN_VOID(env_, status == napi_ok, "failed to delete addAccountImplicitlyRef to js R… in ~NapiAppAccountAuthenticator() 52 napi_status status = napi_delete_reference(env_, authenticateRef_); in ~NapiAppAccountAuthenticator() 53 …NAPI_ASSERT_RETURN_VOID(env_, status == napi_ok, "failed to delete authenticateRef_ to js RemoteOb… in ~NapiAppAccountAuthenticator() 79 .env = env_, in AddAccountImplicitly() 104 .env = env_, in Authenticate() 208 napi_get_uv_event_loop(env_, &loop); in CallJsFunction()
|
/base/accessibility/interfaces/kits/napi/include/ |
D | napi_accessibility_system_ability_client.h | 43 return env_; in GetEnv() 53 napi_env env_ = nullptr; variable 76 return env_; in GetEnv() 86 napi_env env_ = nullptr; variable 96 napi_env env_ {};
|
/base/compileruntime/js_worker_module/jsapi/worker/ |
D | worker.h | 80 FindWorkerListener(napi_env env, napi_ref ref) : env_(env), ref_(ref) {} in FindWorkerListener() 85 napi_get_reference_value(env_, listener->callback_, &compareObj); in operator() 88 napi_get_reference_value(env_, ref_, &obj); in operator() 90 napi_strict_equals(env_, compareObj, obj, &isEqual); in operator() 94 napi_env env_ {nullptr};
|
/base/miscservices/pasteboard/interfaces/kits/napi/include/ |
D | systempasteboard_napi.h | 37 napi_env env_ = nullptr; 69 napi_env env_; variable
|
/base/user_iam/pin_auth/interfaces/kits/napi/src/ |
D | inputer_impl.cpp | 41 env_ = env; in InputerImpl() 48 napi_get_uv_event_loop(env_, &loop); in ~InputerImpl() 64 inputerHolder->env = env_; in ~InputerImpl() 133 napi_get_uv_event_loop(env_, &loop); in OnGetData() 149 inputerHolder->env = env_; in OnGetData()
|
/base/miscservices/request/download/interfaces/kits/js/napi/download_single/include/legacy/ |
D | download_manager.h | 44 napi_env env_ {}; 51 napi_env env_ {};
|
/base/miscservices/wallpaper/interfaces/kits/napi/ |
D | napi_wallpaper_ability.cpp | 371 NapiWallpaperAbility::NapiWallpaperAbility(napi_env env, napi_value callback) : env_(env) in NapiWallpaperAbility() 379 napi_delete_reference(env_, callback_); in ~NapiWallpaperAbility() 406 napi_open_handle_scope(eventDataInner->listener->env_, &scope); in onColorsChange() 413 …napi_create_int32(eventDataInner->listener->env_, eventDataInner->wallpaperType, &jsWallpaperType); in onColorsChange() 415 … WallpaperJSUtil::Convert2JSRgbaArray(eventDataInner->listener->env_, eventDataInner->color); in onColorsChange() 418 …napi_get_reference_value(eventDataInner->listener->env_, eventDataInner->listener->callback_, &cal… in onColorsChange() 420 napi_get_global(eventDataInner->listener->env_, &global); in onColorsChange() 423 … napi_call_function(eventDataInner->listener->env_, global, callback, 1, args, &result); in onColorsChange() 428 napi_close_handle_scope(eventDataInner->listener->env_, scope); in onColorsChange()
|
/base/telephony/sms_mms/frameworks/js/napi/include/ |
D | delivery_callback.h | 38 napi_env env_; variable
|
/base/accessibility/frameworks/aafwk/include/ |
D | js_accessibility_extension_context.h | 38 napi_env env_; member
|