/foundation/arkui/napi/native_engine/impl/ark/ |
D | ark_native_deferred.cpp | 28 : 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()
|
D | ark_native_deferred.h | 33 panda::Global<PromiseCapabilityRef> deferred_; variable
|
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/ |
D | js_runtime_utils.cpp | 101 : 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/ |
D | js_runtime_utils.cpp | 161 : 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/ |
D | n_async_work_promise.cpp | 48 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()
|
D | n_async_context.h | 44 napi_deferred deferred_ = nullptr;
|
/foundation/filemanagement/file_api/utils/filemgmt_libn/src/n_async/ |
D | n_async_work_promise.cpp | 47 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/ |
D | n_async_work_promise.cpp | 55 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()
|
D | n_async_context.h | 44 napi_deferred deferred_ = nullptr;
|
/foundation/distributeddatamgr/distributedfile/utils/filemgmt_libn/src/n_async/ |
D | n_async_work_promise.cpp | 56 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/ |
D | base_context.cpp | 33 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/ |
D | intell_voice_napi_queue.cpp | 83 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()
|
D | intell_voice_napi_queue.h | 53 napi_deferred deferred_ = nullptr; variable
|
/foundation/communication/netstack/utils/napi_utils/src/ |
D | base_context.cpp | 34 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/ |
D | zlib_callback_info.cpp | 30 : env_(env), callback_(callback), deferred_(deferred), isCallBack_(isCallback) {} in ZlibCallbackInfo() 120 .deferred = deferred_, in OnZipUnZipFinish() 160 deferred_ = deferred; in SetDeferred()
|
D | zlib_callback_info.h | 47 napi_deferred deferred_ = nullptr; variable
|
/foundation/communication/bluetooth/frameworks/js/napi/src/common/ |
D | napi_async_callback.cpp | 128 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/ |
D | napi_bluetooth_spp_server.cpp | 108 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/ |
D | napi_accessibility_element.cpp | 196 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/ |
D | n_async_context.h | 49 napi_deferred deferred_ = nullptr;
|
/foundation/distributeddatamgr/distributedfile/utils/filemgmt_libn/include/n_async/ |
D | n_async_context.h | 49 napi_deferred deferred_ = nullptr;
|
/foundation/communication/bluetooth/frameworks/js/napi/include/ |
D | napi_async_callback.h | 77 napi_deferred deferred_; variable
|
/foundation/communication/netmanager_base/utils/napi_utils/include/ |
D | base_context.h | 77 napi_deferred deferred_; variable
|
/foundation/barrierfree/accessibility/interfaces/kits/napi/src/ |
D | napi_accessibility_system_ability_client.cpp | 85 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/ |
D | base_context.h | 123 napi_deferred deferred_; variable
|