Home
last modified time | relevance | path

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

/base/telephony/sms_mms/frameworks/js/napi/src/
Ddelivery_callback.cpp26 : 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()
Dsend_callback.cpp44 : 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/
Dwebview_hasimage_callback.h27 : env_(env), callbackRef_(callbackRef), deferred_(deferred) {} in WebviewHasImageCallback()
34 napi_ref callbackRef_; member
40 napi_ref callbackRef_ = nullptr; variable
Dwebview_javascript_execute_callback.h29 : env_(env), callbackRef_(callbackRef), deferred_(deferred) {} in WebviewJavaScriptExecuteCallback()
36 napi_ref callbackRef_; member
42 napi_ref callbackRef_ = nullptr; variable
Dwebview_hasimage_callback.cpp46 param->callbackRef_ = callbackRef_; in OnReceiveValue()
83 if (param->callbackRef_) { in UvAfterWorkCb()
84 UvAfterWorkCbAsync(param->env_, param->callbackRef_, param->result_); in UvAfterWorkCb()
Dwebview_javascript_execute_callback.cpp47 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/
Dasync_callback_info.cpp27 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/
Dthermal_manager_napi.cpp44 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()
Dthermal_manager_napi.h41 napi_ref callbackRef_ {nullptr};
/base/powermgr/power_manager/frameworks/napi/utils/
Dasync_callback_info.cpp27 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()
Dasync_callback_info.h80 napi_ref callbackRef_ = nullptr;
/base/customization/config_policy/interfaces/kits/js/src/
Dconfig_policy_napi.cpp68 … 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/
Dnapi_account_iam_common.cpp467 : 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/
Ddelivery_callback.h40 napi_ref callbackRef_; variable
Dsend_callback.h41 napi_ref callbackRef_; variable
/base/update/updateservice/frameworks/js/napi/client/
Dupdate_session.h132 callbackRef_.resize(callbackNumber); in UpdateSession()
137 callbackRef_.clear(); in ~UpdateAsyncSession()
146 std::vector<napi_ref> callbackRef_ = {0}; variable
Dupdate_session.cpp113 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/
Dasync_callback_info.h69 napi_ref callbackRef_ = nullptr;
/base/account/os_account/interfaces/kits/napi/account_iam/include/
Dnapi_account_iam_common.h161 napi_ref callbackRef_; variable
185 napi_ref callbackRef_ = nullptr; variable
199 napi_ref callbackRef_ = nullptr; variable
/base/msdp/device_status/frameworks/js/napi/src/
Ddevicestatus_napi.cpp101 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/
Dconfig_policy_napi.h31 napi_ref callbackRef_; member
/base/msdp/device_status/frameworks/js/napi/include/
Ddevicestatus_napi.h64 napi_ref callbackRef_ = { nullptr }; variable
/base/global/resource_management/interfaces/js/innerkits/core/include/
Dresource_manager_addon.h182 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/
Dresource_manager_napi.cpp126 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/
Dresource_manager_addon.cpp249 … 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()