/base/telephony/sms_mms/frameworks/js/napi/src/ |
D | delivery_callback.cpp | 26 : hasCallback_(hasCallback), env_(env), thisVarRef_(thisVarRef), callbackRef_(callbackRef) in DeliveryCallback() 33 callbackRef_ = nullptr; in ~DeliveryCallback() 50 napi_ref callbackRef_ = pContext->callbackRef; in CompleteSmsDeliveryWork() local 60 napi_get_reference_value(env_, callbackRef_, &callbackFunc); in CompleteSmsDeliveryWork() 85 napi_delete_reference(env_, callbackRef_); in CompleteSmsDeliveryWork() 112 pContext->callbackRef = callbackRef_; in OnSmsDeliveryResult()
|
D | send_callback.cpp | 44 : hasCallback_(hasCallback), env_(env), thisVarRef_(thisVarRef), callbackRef_(callbackRef) in SendCallback() 51 callbackRef_ = nullptr; in ~SendCallback() 68 napi_ref callbackRef_ = pContext->callbackRef; in CompleteSmsSendWork() local 78 napi_get_reference_value(env_, callbackRef_, &callbackFunc); in CompleteSmsSendWork() 118 pContext->callbackRef = callbackRef_; in OnSmsSendResult()
|
/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
D | webview_hasimage_callback.h | 27 : env_(env), callbackRef_(callbackRef), deferred_(deferred) {} in WebviewHasImageCallback() 34 napi_ref callbackRef_; member 40 napi_ref callbackRef_ = nullptr; variable
|
D | webview_javascript_execute_callback.h | 29 : env_(env), callbackRef_(callbackRef), deferred_(deferred) {} in WebviewJavaScriptExecuteCallback() 36 napi_ref callbackRef_; member 42 napi_ref callbackRef_ = nullptr; variable
|
D | webview_hasimage_callback.cpp | 46 param->callbackRef_ = callbackRef_; in OnReceiveValue() 83 if (param->callbackRef_) { in UvAfterWorkCb() 84 UvAfterWorkCbAsync(param->env_, param->callbackRef_, param->result_); in UvAfterWorkCb()
|
D | webview_javascript_execute_callback.cpp | 47 param->callbackRef_ = callbackRef_; in OnReceiveValue() 85 if (param->callbackRef_) { in UvAfterWorkCb() 86 UvAfterWorkCbAsync(param->env_, param->callbackRef_, param->result_); in UvAfterWorkCb()
|
/base/powermgr/battery_statistics/frameworks/js/napi/src/ |
D | async_callback_info.cpp | 27 if (napi_ok != napi_get_reference_value(env, callbackRef_, &callback)) { in CallFunction() 41 NapiUtils::ReleaseReference(env, callbackRef_); in Release() 58 callbackRef_ = NapiUtils::CreateReference(env, callback); in CreateCallback()
|
/base/powermgr/thermal_manager/frameworks/napi/ |
D | thermal_manager_napi.cpp | 44 if (napi_ok != napi_create_reference(env, jsCallback, 1, &callbackRef_)) { in UpdateCallback() 46 callbackRef_ = nullptr; in UpdateCallback() 54 if (callbackRef_ != nullptr) { in ReleaseCallback() 55 napi_delete_reference(env_, callbackRef_); in ReleaseCallback() 57 callbackRef_ = nullptr; in ReleaseCallback() 95 …THERMAL_RETURN_IF_WITH_LOG(callbackRef_ == nullptr || env_ == nullptr, "js callback ref or env is … in OnThermalLevel() 112 napi_status status = napi_get_reference_value(env_, callbackRef_, &callback); in OnThermalLevel()
|
D | thermal_manager_napi.h | 41 napi_ref callbackRef_ {nullptr};
|
/base/powermgr/power_manager/frameworks/napi/utils/ |
D | async_callback_info.cpp | 27 if (napi_ok != napi_get_reference_value(env, callbackRef_, &callback)) { in CallFunction() 41 NapiUtils::ReleaseReference(env, callbackRef_); in Release() 58 callbackRef_ = NapiUtils::CreateReference(env, callback); in CreateCallback()
|
D | async_callback_info.h | 80 napi_ref callbackRef_ = nullptr;
|
/base/customization/config_policy/interfaces/kits/js/src/ |
D | config_policy_napi.cpp | 68 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncContext->callbackRef_); in NAPIGetOneCfgFile() 92 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncContext->callbackRef_); in NAPIGetCfgFiles() 111 … napi_create_reference(env, argv[ARR_INDEX_ZERO], NAPI_RETURN_ONE, &asyncContext->callbackRef_); in NAPIGetCfgDirList() 151 if (context->callbackRef_ == nullptr) { in HandleAsyncWork() 264 napi_get_reference_value(env, asyncContext->callbackRef_, &callback); in NativeCallbackComplete() 266 napi_delete_reference(env, asyncContext->callbackRef_); in NativeCallbackComplete()
|
/base/account/os_account/interfaces/kits/napi/account_iam/src/ |
D | napi_account_iam_common.cpp | 467 : env_(env), callbackRef_(callbackRef), deferred_(deferred) in NapiGetInfoCallback() 506 context->callbackRef = callbackRef_; in OnCredentialInfo() 513 ReleaseNapiRefAsync(env_, callbackRef_); in OnCredentialInfo() 521 : env_(env), callbackRef_(callbackRef), deferred_(deferred) in NapiGetPropCallback() 526 if (callbackRef_ != nullptr) { in ~NapiGetPropCallback() 527 ReleaseNapiRefAsync(env_, callbackRef_); in ~NapiGetPropCallback() 528 callbackRef_ = nullptr; in ~NapiGetPropCallback() 551 if ((callbackRef_ == nullptr) && (deferred_ == nullptr)) { in OnResult() 565 context->callbackRef = callbackRef_; in OnResult() 575 callbackRef_ = nullptr; in OnResult() [all …]
|
/base/telephony/sms_mms/frameworks/js/napi/include/ |
D | delivery_callback.h | 40 napi_ref callbackRef_; variable
|
D | send_callback.h | 41 napi_ref callbackRef_; variable
|
/base/update/updateservice/frameworks/js/napi/client/ |
D | update_session.h | 132 callbackRef_.resize(callbackNumber); in UpdateSession() 137 callbackRef_.clear(); in ~UpdateAsyncSession() 146 std::vector<napi_ref> callbackRef_ = {0}; variable
|
D | update_session.cpp | 113 ret = NapiUtil::CreateReference(env, args[i + startIndex], 1, callbackRef_[i]); in StartWork() 164 napi_status retStatus = napi_get_reference_value(env, callbackRef_[0], &callback); in NotifyJS() 170 napi_delete_reference(env, callbackRef_[i]); in NotifyJS() 171 callbackRef_[i] = nullptr; in NotifyJS()
|
/base/powermgr/battery_statistics/frameworks/js/napi/include/ |
D | async_callback_info.h | 69 napi_ref callbackRef_ = nullptr;
|
/base/account/os_account/interfaces/kits/napi/account_iam/include/ |
D | napi_account_iam_common.h | 161 napi_ref callbackRef_; variable 185 napi_ref callbackRef_ = nullptr; variable 199 napi_ref callbackRef_ = nullptr; variable
|
/base/msdp/device_status/frameworks/js/napi/src/ |
D | devicestatus_napi.cpp | 101 callbackRef_ = nullptr; in DeviceStatusNapi() 107 if (callbackRef_ != nullptr) { in ~DeviceStatusNapi() 108 napi_delete_reference(env_, callbackRef_); in ~DeviceStatusNapi() 245 nullptr, &(g_obj->callbackRef_)); in SubscribeDeviceStatusCallback() 411 nullptr, &(g_obj->callbackRef_)); in GetDeviceStatus()
|
/base/customization/config_policy/interfaces/kits/js/include/ |
D | config_policy_napi.h | 31 napi_ref callbackRef_; member
|
/base/msdp/device_status/frameworks/js/napi/include/ |
D | devicestatus_napi.h | 64 napi_ref callbackRef_ = { nullptr }; variable
|
/base/global/resource_management/interfaces/js/innerkits/core/include/ |
D | resource_manager_addon.h | 182 napi_ref callbackRef_; member 193 …createValueFunc_(nullptr), len_(0), deferred_(nullptr), callbackRef_(nullptr), success_(true), err… in ResMgrAsyncContext()
|
/base/global/resource_management/interfaces/js/kits/src/ |
D | resource_manager_napi.cpp | 126 if (asyncContext->callbackRef_ == nullptr) { in getResult() 194 napi_create_reference(env, argv[i], 1, &asyncContext->callbackRef_); in GetResourceManager()
|
/base/global/resource_management/interfaces/js/innerkits/core/src/ |
D | resource_manager_addon.cpp | 249 … napi_status status = napi_get_reference_value(env, asyncContext->callbackRef_, &callback); in Complete() 260 status = napi_delete_reference(env, asyncContext->callbackRef_); in Complete() 413 napi_create_reference(env, argv[i], 1, &asyncContext->callbackRef_); in ProcessNameParamV9() 440 napi_create_reference(env, argv[i], 1, &asyncContext->callbackRef_); in ProcessIdParamV9() 474 napi_create_reference(env, argv[i], 1, &asyncContext->callbackRef_); in ProcessResourceParamV9() 501 napi_create_reference(env, argv[i], 1, &asyncContext->callbackRef_); in ProcessOnlyIdParam() 901 napi_create_reference(env, argv[0], 1, &asyncContext->callbackRef_); in ProcessNoParam() 1060 napi_create_reference(env, argv[i], 1, &asyncContext->callbackRef_); in ProcessIdNameParam() 1551 if (asyncContext->callbackRef_ == nullptr) { in getResult()
|