Home
last modified time | relevance | path

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

12

/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dwebview_hasimage_callback.h27 : env_(env), callbackRef_(callbackRef), deferred_(deferred) {} in WebviewHasImageCallback()
35 napi_deferred deferred_; member
41 napi_deferred deferred_ = nullptr; variable
Dwebview_hasimage_callback.cpp47 param->deferred_ = deferred_; in OnReceiveValue()
85 } else if (param->deferred_) { in UvAfterWorkCb()
86 UvAfterWorkCbPromise(param->env_, param->deferred_, param->result_); in UvAfterWorkCb()
Dwebview_javascript_execute_callback.h75 : env_(env), callbackRef_(callbackRef), deferred_(deferred), extention_(extention) in WebviewJavaScriptExecuteCallback()
84 napi_deferred deferred_; member
91 napi_deferred deferred_ = nullptr; variable
Dwebview_javascript_execute_callback.cpp89 param->deferred_ = deferred_; in OnReceiveValue()
129 } else if (param->deferred_) { in UvAfterWorkCb()
130 UvAfterWorkCbPromise(param->env_, param->deferred_, param->result_, param->extention_); in UvAfterWorkCb()
/base/location/interfaces/inner_api/include/
Dlocator_callback_host.h72 context->deferred = deferred_; in InitContext()
139 return deferred_; in GetDeferred()
144 deferred_ = deferred; in SetDeferred()
160 napi_deferred deferred_; variable
/base/web/webview/interfaces/kits/napi/webcookiemanager/
Dnapi_web_cookie_manager.h41 napi_deferred deferred_; member
77 : env_(env), callback_(callback), deferred_(deferred) {} in NWebSaveCookieCallbackImpl()
86 napi_deferred deferred_; variable
Dnapi_web_cookie_manager.cpp406 } else if (data->deferred_) { in UvJsCallbackThreadWoker()
409 napi_resolve_deferred(data->env_, data->deferred_, jsResult); in UvJsCallbackThreadWoker()
443 param->deferred_ = deferred_; in OnReceiveValue()
/base/powermgr/battery_statistics/frameworks/napi/include/
Dasync_callback_info.h43 return deferred_; in GetDeferred()
71 napi_deferred deferred_ = nullptr; variable
/base/powermgr/power_manager/frameworks/napi/utils/
Dasync_callback_info.h42 return deferred_; in GetDeferred()
82 napi_deferred deferred_ = nullptr; variable
Dasync_callback_info.cpp46 deferred_ = nullptr; in Release()
51 if (napi_ok != napi_create_promise(env, &deferred_, &promise)) { in CreatePromise()
/base/powermgr/battery_statistics/frameworks/napi/src/
Dasync_callback_info.cpp46 deferred_ = nullptr; in Release()
51 if (napi_ok != napi_create_promise(env, &deferred_, &promise)) { in CreatePromise()
/base/global/resource_management/interfaces/js/innerkits/core/include/
Dresource_manager_data_context.h50 napi_deferred deferred_; member
64 …colorValue_(0), createValueFunc_(nullptr), len_(0), deferred_(nullptr), callbackRef_(nullptr), suc… in ResMgrDataContext()
/base/account/os_account/interfaces/kits/napi/domain_account/include/
Dnapi_domain_account_manager.h130 napi_deferred deferred_ = nullptr; variable
142 napi_deferred deferred_ = nullptr; variable
154 napi_deferred deferred_ = nullptr; variable
/base/account/os_account/interfaces/kits/napi/account_iam/src/
Dnapi_account_iam_common.cpp497 : env_(env), callbackRef_(callbackRef), deferred_(deferred) in NapiGetInfoCallback()
537 context->deferred = deferred_; in OnCredentialInfo()
553 : env_(env), callbackRef_(callbackRef), deferred_(deferred), request_(request) in NapiGetPropCallback()
562 deferred_ = nullptr; in ~NapiGetPropCallback()
627 if ((callbackRef_ == nullptr) && (deferred_ == nullptr)) { in OnResult()
641 context->deferred = deferred_; in OnResult()
654 deferred_ = nullptr; in OnResult()
660 : env_(env), callbackRef_(callbackRef), deferred_(deferred) in NapiSetPropCallback()
669 deferred_ = nullptr; in ~NapiSetPropCallback()
699 if ((callbackRef_ == nullptr) && (deferred_ == nullptr)) { in OnResult()
[all …]
/base/account/os_account/interfaces/kits/napi/account_iam/include/
Dnapi_account_iam_common.h163 napi_deferred deferred_; variable
189 napi_deferred deferred_ = nullptr; variable
204 napi_deferred deferred_ = nullptr; variable
/base/customization/config_policy/interfaces/kits/js/include/
Dconfig_policy_napi.h30 napi_deferred deferred_; member
/base/customization/config_policy/interfaces/kits/js/src/
Dconfig_policy_napi.cpp152 napi_create_promise(env, &context->deferred_, &result); in HandleAsyncWork()
259 if (asyncContext->deferred_ != nullptr) { in NativeCallbackComplete()
260 napi_resolve_deferred(env, asyncContext->deferred_, result[1]); in NativeCallbackComplete()
/base/account/os_account/interfaces/kits/napi/domain_account/src/
Dnapi_domain_account_manager.cpp1186 : env_(env), callbackRef_(callbackRef), deferred_(deferred) in NapiHasDomainInfoCallback()
1192 if ((callbackRef_ == nullptr) && (deferred_ == nullptr)) { in OnResult()
1212 asyncContext->deferred = deferred_; in OnResult()
1223 deferred_ = nullptr; in OnResult()
1227 : env_(env), callbackRef_(callbackRef), deferred_(deferred) in NapiGetAccessTokenCallback()
1233 if ((callbackRef_ == nullptr) && (deferred_ == nullptr)) { in OnResult()
1251 asyncContext->deferred = deferred_; in OnResult()
1262 deferred_ = nullptr; in OnResult()
1444 : env_(env), callbackRef_(callbackRef), deferred_(deferred) in NapiGetAccountInfoCallback()
1450 if ((callbackRef_ == nullptr) && (deferred_ == nullptr)) { in OnResult()
[all …]
/base/update/updateservice/frameworks/js/napi/client/
Dupdate_session.cpp197 napi_status status = napi_create_promise(env, &deferred_, &promise); in StartWork()
221 napi_resolve_deferred(env, deferred_, processResult); in NotifyJS()
224 napi_reject_deferred(env, deferred_, processResult); in NotifyJS()
Dupdate_session.h253 napi_deferred deferred_ = nullptr; variable
/base/account/os_account/interfaces/kits/napi/appaccount/include/
Dnapi_account_capability_scheduler.h164 napi_deferred deferred_ = nullptr; variable
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_account_capability_scheduler.cpp462 : env_(env), callbackRef_(callbackRef), deferred_(deferred), requestRef_(requestRef), in NapiExecuteRequestCallback()
481 if ((callbackRef_ == nullptr) && (deferred_ == nullptr)) { in OnResult()
500 asyncContext->deferred = deferred_; in OnResult()
504 deferred_ = nullptr; in OnResult()
623 (*asyncContext)->deferred = deferred_; in InitRequestCallbackExeEnv()
718 asyncContext->deferred = deferred_; in CreateAbility()
/base/global/resource_management/interfaces/js/innerkits/core/src/
Dresource_manager_napi_async_impl.cpp108 if (dataContext->deferred_) { in Complete()
110 if (napi_resolve_deferred(env, dataContext->deferred_, result[1]) != napi_ok) { in Complete()
115 if (napi_reject_deferred(env, dataContext->deferred_, result[0]) != napi_ok) { in Complete()
149 napi_create_promise(env, &dataContext->deferred_, &result); in GetResult()
/base/location/frameworks/native/source/
Dlocator_callback_host.cpp43 deferred_ = nullptr; in LocatorCallbackHost()
/base/global/resource_management/interfaces/js/kits/src/
Dresource_manager_napi.cpp121 napi_create_promise(env, &asyncContext->deferred_, &result); in getResult()

12