/foundation/communication/netstack/utils/napi_utils/include/ |
H A D | module_template.h | 87 return context->CreatePromise(); in InterfaceWithManagerWrapper() 137 return context->CreatePromise(); in InterfaceWithSharedManager() 174 ret = context->CreatePromise(); in InterfaceWithOutAsyncWorkWithManagerWrapper() 223 ret = context->CreatePromise(); in InterfaceWithOutAsyncWorkWithSharedManager() 282 return context->CreatePromise(); in Interface() 315 ret = context->CreatePromise(); in InterfaceWithOutAsyncWork()
|
H A D | base_context.h | 65 napi_value CreatePromise();
|
/foundation/communication/netmanager_base/utils/napi_utils/include/ |
H A D | module_template.h | 63 return context->CreatePromise(); in InterfaceWithoutManager() 99 return context->CreatePromise(); in Interface() 172 return context->CreatePromise(); in InterfaceWithOutAsyncWork()
|
H A D | base_context.h | 54 napi_value CreatePromise();
|
/foundation/multimedia/player_framework/frameworks/js/recorder/ |
H A D | recorder_capability_napi.cpp | 42 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in GetAudioRecorderCaps() 93 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in IsAudioRecorderConfigSupported() 137 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in GetVideoRecorderCaps() 190 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, ret); in GetVideoRecorderProfile() 244 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in HasVideoRecorderProfile()
|
H A D | video_recorder_napi.cpp | 171 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in CreateVideoRecorder() 233 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in Prepare() 282 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in GetInputSurface() 338 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in Start() 388 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in Pause() 436 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in Resume() 486 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in Stop() 534 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in Reset() 589 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in Release()
|
H A D | audio_recorder_napi.cpp | 200 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in CreateAudioRecorderAsync()
|
/foundation/window/window_manager/interfaces/kits/napi/common/ |
H A D | dm_napi_common.h | 99 napi_value CreatePromise(napi_env env, napi_value resourceName, in CreatePromise() function 146 result = CreatePromise(env, resourceName, funcname, info); in AsyncProcess()
|
/foundation/multimedia/player_framework/frameworks/js/player/ |
H A D | video_player_napi.cpp | 209 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in CreateVideoPlayer() 446 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in SetDisplaySurface() 559 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in Prepare() 591 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in Play() 626 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in Pause() 659 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in Stop() 691 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in Reset() 723 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in Release() 791 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in Seek() 832 asyncContext->deferred = CommonNapi::CreatePromise(en in SetSpeed() [all...] |
H A D | audio_player_napi.cpp | 190 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in CreateAudioPlayerAsync() 919 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in GetTrackDescription()
|
/foundation/communication/netmanager_base/utils/napi_utils/src/ |
H A D | base_context.cpp | 103 napi_value BaseContext::CreatePromise() in CreatePromise() function in OHOS::NetManagerStandard::BaseContext
|
/foundation/multimedia/player_framework/frameworks/js/soundpool/src/ |
H A D | soundpool_napi.cpp | 152 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsCreateSoundPool() 187 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsLoad() 239 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsPlay() 282 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsStop() 329 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsSetLoop() 378 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsSetPriority() 429 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsSetRate() 471 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsSetVolume() 514 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsUnload() 563 asyncCtx->deferred = CommonNapi::CreatePromise(en in JsRelease() [all...] |
/foundation/multimedia/player_framework/frameworks/js/metadatahelper/ |
H A D | avmetadataextractor_napi.cpp | 145 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in JsCreateAVMetadataExtractor() 175 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsResolveMetadata() 284 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsFetchArtPicture() 383 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsRelease() 579 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JSGetTimeByFrameIndex() 644 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JSGetFrameIndexByTime()
|
H A D | avimagegenerator_napi.cpp | 148 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in JsCreateAVImageGenerator() 220 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsFetchFrameAtTime() 323 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsRelease()
|
/foundation/multimedia/player_framework/frameworks/js/avscreen_capture/ |
H A D | avscreen_capture_napi.cpp | 160 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsCreateAVScreenRecorder() 244 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsReportAVScreenCaptureUserChoice() 293 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsInit() 374 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsSkipPrivacyMode() 429 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsSetMicrophoneEnabled() 891 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result);
|
/foundation/multimedia/player_framework/frameworks/js/avplayer/ |
H A D | avplayer_napi.cpp | 210 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in JsCreateAVPlayer() 275 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsPrepare() 349 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsPlay() 427 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsPause() 497 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsStop() 574 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsReset() 676 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsRelease() 787 promiseCtx->deferred = CommonNapi::CreatePromise(env, nullptr, result); in JsSetPlaybackRange() 1334 promiseCtx->deferred = CommonNapi::CreatePromise(env, nullptr, result); in JsGetPlaybackInfo() 1378 promiseCtx->deferred = CommonNapi::CreatePromise(en in JsSetPlaybackStrategy() [all...] |
/foundation/ability/ability_runtime/test/unittest/js_ability_context_test/ |
H A D | js_ability_context_test.cpp | 96 napi_value CreatePromise(NativeDeferred** deferred) override 98 napi_value ret = ArkNativeEngine::CreatePromise(deferred);
|
/foundation/ability/ability_runtime/test/unittest/js_ui_extension_context_test/ |
H A D | js_ui_extension_context_test.cpp | 94 napi_value CreatePromise(NativeDeferred** deferred) override 96 napi_value ret = ArkNativeEngine::CreatePromise(deferred);
|
/foundation/multimedia/camera_framework/interfaces/kits/js/camera_napi/include/ |
H A D | camera_napi_param_parser.h | 100 napi_status CreatePromise() in CreatePromise() function 230 napiError = asyncFunction_->CreatePromise(); in CameraNapiParamParser()
|
/foundation/communication/netstack/utils/napi_utils/src/ |
H A D | base_context.cpp | 141 napi_value BaseContext::CreatePromise() in CreatePromise() function in OHOS::NetStack::BaseContext
|
/foundation/multimedia/player_framework/frameworks/js/avrecorder/ |
H A D | avrecorder_napi.cpp | 193 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsCreateAVRecorder() 251 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsPrepare() 303 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsSetOrientationHint() 354 asyncCtx->deferred = CommonNapi::CreatePromise(env, nullptr, result); in JsSetWatermark() 457 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsGetInputMetaSurface() 560 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsGetAVRecorderProfile() 660 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); 709 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); 762 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); 813 asyncCtx->deferred = CommonNapi::CreatePromise(en [all...] |
/foundation/multimedia/player_framework/frameworks/js/avtranscoder/ |
H A D | avtranscoder_napi.cpp | 196 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result);
in JsCreateAVTransCoder() 247 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result);
in JsPrepare() 453 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result);
in ExecuteByPromise()
|
/foundation/arkui/napi/native_engine/impl/ark/ |
H A D | ark_native_engine.h | 203 napi_value CreatePromise(NativeDeferred** deferred) override;
|
/foundation/arkui/napi/native_engine/ |
H A D | native_engine.h | 182 virtual napi_value CreatePromise(NativeDeferred** deferred) = 0;
|
/foundation/multimedia/player_framework/frameworks/js/common/ |
H A D | common_napi.h | 66 static napi_deferred CreatePromise(napi_env env, napi_ref ref, napi_value &result);
|