Home
last modified time | relevance | path

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

12

/foundation/arkui/napi/native_engine/impl/ark/
Dark_native_deferred.cpp28 : engine_(engine), deferred_(engine->GetEcmaVm(), deferred) in ArkNativeDeferred()
38 deferred_.FreeGlobalHandleAddr(); in ~ArkNativeDeferred()
49 deferred_->Resolve(vm, value.ToLocal(vm)); in Resolve()
60 deferred_->Reject(vm, value.ToLocal(vm)); in Reject()
Dark_native_deferred.h33 panda::Global<PromiseCapabilityRef> deferred_; variable
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/
Djs_runtime_utils.cpp101 : deferred_(deferred), execute_(std::move(execute)), complete_(std::move(complete)) in AsyncTask()
121 if (deferred_) { in Resolve()
122 deferred_->Resolve(value); in Resolve()
123 deferred_.reset(); in Resolve()
139 if (deferred_) { in ResolveWithNoError()
140 deferred_->Resolve(value); in ResolveWithNoError()
141 deferred_.reset(); in ResolveWithNoError()
156 if (deferred_) { in Reject()
157 deferred_->Reject(error); in Reject()
158 deferred_.reset(); in Reject()
[all …]
/foundation/ability/ability_runtime/frameworks/native/runtime/
Djs_runtime_utils.cpp161 : deferred_(deferred), execute_(std::move(execute)), complete_(std::move(complete)) in AsyncTask()
209 if (deferred_) { in Resolve()
210 deferred_->Resolve(value); in Resolve()
211 deferred_.reset(); in Resolve()
227 if (deferred_) { in ResolveWithNoError()
228 deferred_->Resolve(value); in ResolveWithNoError()
229 deferred_.reset(); in ResolveWithNoError()
244 if (deferred_) { in Reject()
245 deferred_->Reject(error); in Reject()
246 deferred_.reset(); in Reject()
[all …]
/foundation/filemanagement/file_api/interfaces/kits/js/src/common/napi/n_async/
Dn_async_work_promise.cpp48 status = napi_resolve_deferred(env, ctx->deferred_, ctx->res_.val_); in PromiseOnComplete()
53 status = napi_reject_deferred(env, ctx->deferred_, ctx->res_.val_); in PromiseOnComplete()
59 ctx->deferred_ = nullptr; in PromiseOnComplete()
71 status = napi_create_promise(env_, &ctx_->deferred_, &result); in Schedule()
Dn_async_context.h44 napi_deferred deferred_ = nullptr;
/foundation/filemanagement/file_api/utils/filemgmt_libn/src/n_async/
Dn_async_work_promise.cpp47 napi_status status = napi_resolve_deferred(env, ctx->deferred_, ctx->res_.val_); in PromiseOnComplete()
52 napi_status status = napi_reject_deferred(env, ctx->deferred_, ctx->res_.val_); in PromiseOnComplete()
57 ctx->deferred_ = nullptr; in PromiseOnComplete()
69 status = napi_create_promise(env_, &ctx_->deferred_, &result); in Schedule()
/foundation/distributeddatamgr/distributedfile/interfaces/kits/js/src/common/napi/n_async/
Dn_async_work_promise.cpp55 napi_status status = napi_resolve_deferred(env, ctx->deferred_, ctx->res_.val_); in PromiseOnComplete()
60 napi_status status = napi_reject_deferred(env, ctx->deferred_, ctx->res_.val_); in PromiseOnComplete()
65 ctx->deferred_ = nullptr; in PromiseOnComplete()
77 status = napi_create_promise(env_, &ctx_->deferred_, &result); in Schedule()
Dn_async_context.h44 napi_deferred deferred_ = nullptr;
/foundation/distributeddatamgr/distributedfile/utils/filemgmt_libn/src/n_async/
Dn_async_work_promise.cpp56 napi_status status = napi_resolve_deferred(env, ctx->deferred_, ctx->res_.val_); in PromiseOnComplete()
61 napi_status status = napi_reject_deferred(env, ctx->deferred_, ctx->res_.val_); in PromiseOnComplete()
66 ctx->deferred_ = nullptr; in PromiseOnComplete()
78 status = napi_create_promise(env_, &ctx_->deferred_, &result); in Schedule()
/foundation/communication/netmanager_base/utils/napi_utils/src/
Dbase_context.cpp33 deferred_(nullptr), in BaseContext()
106 NAPI_CALL(env_, napi_create_promise(env_, &deferred_, &result)); in CreatePromise()
147 return deferred_; in GetDeferred()
/foundation/ai/intelligent_voice_framework/frameworks/js/napi/
Dintell_voice_napi_queue.cpp83 napi_create_promise(context->env_, &context->deferred_, &result); in AsyncWork()
111 napi_create_promise(context->env_, &context->deferred_, &result); in AsyncWork()
131 if (context->deferred_) { in CommonCallbackRoutine()
149 napi_resolve_deferred(context->env_, context->deferred_, result); in HandlePromise()
157 napi_reject_deferred(context->env_, context->deferred_, error); in HandlePromise()
Dintell_voice_napi_queue.h53 napi_deferred deferred_ = nullptr; variable
/foundation/communication/netstack/utils/napi_utils/src/
Dbase_context.cpp34 deferred_(nullptr), in BaseContext()
107 NAPI_CALL(env_, napi_create_promise(env_, &deferred_, &result)); in CreatePromise()
148 return deferred_; in GetDeferred()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/
Dzlib_callback_info.cpp30 : env_(env), callback_(callback), deferred_(deferred), isCallBack_(isCallback) {} in ZlibCallbackInfo()
120 .deferred = deferred_, in OnZipUnZipFinish()
160 deferred_ = deferred; in SetDeferred()
Dzlib_callback_info.h47 napi_deferred deferred_ = nullptr; variable
/foundation/communication/bluetooth/frameworks/js/napi/src/common/
Dnapi_async_callback.cpp128 auto status = napi_create_promise(env, &deferred_, &promise_); in NapiPromise()
154 auto status = napi_resolve_deferred(env_, deferred_, resolution); in Resolve()
161 auto status = napi_reject_deferred(env_, deferred_, rejection); in Reject()
/foundation/communication/bluetooth/frameworks/js/napi/src/socket/
Dnapi_bluetooth_spp_server.cpp108 napi_create_promise(env, &callbackInfo->deferred_, &promise); in CheckSppListenParams()
172 napi_resolve_deferred(env, callbackInfo->deferred_, result[PARAM1]); in SppListen()
175 napi_reject_deferred(env, callbackInfo->deferred_, result[PARAM1]); in SppListen()
227 napi_create_promise(env, &callbackInfo->deferred_, &promise); in CheckSppAcceptParams()
281 napi_resolve_deferred(env, callbackInfo->deferred_, result[PARAM1]); in SppAccept()
283 napi_reject_deferred(env, callbackInfo->deferred_, result[PARAM1]); in SppAccept()
/foundation/barrierfree/accessibility/interfaces/kits/napi/accessibility_extension_module_loader/src/
Dnapi_accessibility_element.cpp196 napi_create_promise(env, &callbackInfo->deferred_, &promise); in AttributeNames()
199 napi_create_promise(env, &callbackInfo->deferred_, &promise); in AttributeNames()
252 napi_resolve_deferred(env, callbackInfo->deferred_, result[PARAM1]); in AttributeNamesComplete()
342 napi_create_promise(env, &callbackInfo->deferred_, &promise); in AttributeValueAsync()
345 napi_create_promise(env, &callbackInfo->deferred_, &promise); in AttributeValueAsync()
434 napi_resolve_deferred(env, callbackInfo->deferred_, result[PARAM1]); in AttributeValueComplete()
436 napi_reject_deferred(env, callbackInfo->deferred_, result[PARAM0]); in AttributeValueComplete()
1005 napi_create_promise(env, &callbackInfo->deferred_, &promise); in ActionNames()
1008 napi_create_promise(env, &callbackInfo->deferred_, &promise); in ActionNames()
1077 napi_resolve_deferred(env, callbackInfo->deferred_, result[PARAM1]); in ActionNamesComplete()
[all …]
/foundation/filemanagement/file_api/utils/filemgmt_libn/include/n_async/
Dn_async_context.h49 napi_deferred deferred_ = nullptr;
/foundation/distributeddatamgr/distributedfile/utils/filemgmt_libn/include/n_async/
Dn_async_context.h49 napi_deferred deferred_ = nullptr;
/foundation/communication/bluetooth/frameworks/js/napi/include/
Dnapi_async_callback.h77 napi_deferred deferred_; variable
/foundation/communication/netmanager_base/utils/napi_utils/include/
Dbase_context.h77 napi_deferred deferred_; variable
/foundation/barrierfree/accessibility/interfaces/kits/napi/src/
Dnapi_accessibility_system_ability_client.cpp85 napi_create_promise(env, &callbackInfo->deferred_, &promise); in IsOpenAccessibility()
146 napi_create_promise(env, &callbackInfo->deferred_, &promise); in IsOpenTouchExploration()
196 napi_resolve_deferred(env, callbackInfo->deferred_, result[PARAM1]); in Completefunction()
199 napi_reject_deferred(env, callbackInfo->deferred_, result[PARAM0]); in Completefunction()
235 napi_resolve_deferred(env, callbackInfo->deferred_, result[PARAM1]); in GetAbilityListComplete()
238 napi_reject_deferred(env, callbackInfo->deferred_, result[PARAM0]); in GetAbilityListComplete()
271 napi_create_promise(env, &callbackInfo->deferred_, &promise); in GetAbilityList()
354 napi_create_promise(env, &callbackInfo->deferred_, &promise); in GetAccessibilityExtensionListAsync()
424 napi_resolve_deferred(env, callbackInfo->deferred_, result[PARAM1]); in SendEventComplete()
427 napi_reject_deferred(env, callbackInfo->deferred_, result[PARAM0]); in SendEventComplete()
[all …]
/foundation/communication/netstack/utils/napi_utils/include/
Dbase_context.h123 napi_deferred deferred_; variable

12