Home
last modified time | relevance | path

Searched refs:defer (Results 1 – 8 of 8) sorted by relevance

/base/miscservices/screenlock/interfaces/kits/napi/src/
Dasync_call.cpp75 napi_create_promise(env, &context_->defer, &promise); in Call()
99 napi_create_promise(env, &context_->defer, &promise); in SyncCall()
138 …run the js callback function:(context->defer != nullptr)?[%{public}d]", context->defer != nullptr); in OnComplete()
139 if (context->defer != nullptr) { in OnComplete()
143 …napi_resolve_deferred(env, context->defer, result[static_cast<unsigned long long>(ARG_INFO::ARG_DA… in OnComplete()
145 …napi_reject_deferred(env, context->defer, result[static_cast<unsigned long long>(ARG_INFO::ARG_ERR… in OnComplete()
/base/miscservices/wallpaper/interfaces/kits/napi/
Dasync_call.cpp67 napi_create_promise(env, &context_->defer, &promise); in Call()
91 napi_create_promise(env, &context_->defer, &promise); in SyncCall()
138 …run the js callback function:(context->defer != nullptr)?[%{public}d]", context->defer != nullptr); in OnComplete()
139 if (context->defer != nullptr) { in OnComplete()
143 napi_resolve_deferred(env, context->defer, result[ARG_DATA]); in OnComplete()
145 napi_reject_deferred(env, context->defer, result[ARG_ERROR]); in OnComplete()
Dasync_call.h113 napi_deferred defer = nullptr; member
/base/miscservices/request/upload/interfaces/kits/napi/src/
Dasync_call.cpp58 napi_create_promise(env, &context_->defer, &promise); in Call()
82 napi_create_promise(env, &context_->defer, &promise); in SyncCall()
118 if (context->defer != nullptr) { in OnComplete()
121 napi_resolve_deferred(env, context->defer, result[ARG_DATA]); in OnComplete()
123 napi_reject_deferred(env, context->defer, result[ARG_ERROR]); in OnComplete()
/base/miscservices/request/download/interfaces/kits/js/napi/download_single/src/
Dasync_call.cpp63 napi_create_promise(env, &context_->defer, &promise); in Call()
87 napi_create_promise(env, &context_->defer, &promise); in SyncCall()
123 if (context->defer != nullptr) { in OnComplete()
126 napi_resolve_deferred(env, context->defer, result[ARG_DATA]); in OnComplete()
128 napi_reject_deferred(env, context->defer, result[ARG_ERROR]); in OnComplete()
/base/miscservices/screenlock/interfaces/kits/napi/include/
Dasync_call.h89 napi_deferred defer = nullptr; member
/base/miscservices/request/upload/interfaces/kits/napi/include/
Dasync_call.h93 napi_deferred defer = nullptr; member
/base/miscservices/request/download/interfaces/kits/js/napi/download_single/include/
Dasync_call.h92 napi_deferred defer = nullptr; member