Home
last modified time | relevance | path

Searched refs:CreatePromise (Results 1 – 25 of 47) sorted by relevance

12

/ohos5.0/docs/zh-cn/application-dev/napi/
H A Duse-jsvm-about-promise.md105 // CreatePromise,ResolveRejectDeferred注册回调
107 {.data = nullptr, .callback = CreatePromise},
111 // CreatePromise,ResolveRejectDeferred方法别名,供JS调用
117 static JSVM_Value CreatePromise(JSVM_Env env, JSVM_CallbackInfo info)
126 OH_LOG_ERROR(LOG_APP, "JSVM CreatePromise fail");
128 OH_LOG_INFO(LOG_APP, "JSVM CreatePromise success:%{public}d", isPromise);
174 hilog.info(0x0000, 'JSVM', 'CreatePromise: %{public}s', createPromiseresult);
H A Duse-jsvm-runtime-task.md45 static JSVM_Value CreatePromise(JSVM_Env env, JSVM_CallbackInfo info) {
46 OH_LOG_INFO(LOG_APP, "JSVM API TEST: CreatePromise start");
56 OH_LOG_ERROR(LOG_APP, "JSVM API TEST: CreatePromise envID failed");
75 OH_LOG_INFO(LOG_APP, "JSVM API TEST: CreatePromise %{public}d", envID);
91 OH_LOG_INFO(LOG_APP, "JSVM API TEST: CreatePromise end");
166 g_callBackStructMap[ENVTAG_NUMBER][3].callback = CreatePromise;
/ohos5.0/docs/en/application-dev/napi/
H A Duse-jsvm-about-promise.md105 // Register the CreatePromise and ResolveRejectDeferred callbacks.
107 {.data = nullptr, .callback = CreatePromise},
111 …jectDeferred and associate them with a callback each. This allows the CreatePromise and ResolveRej…
117 static JSVM_Value CreatePromise(JSVM_Env env, JSVM_CallbackInfo info)
126 OH_LOG_ERROR(LOG_APP, "JSVM CreatePromise fail");
128 OH_LOG_INFO(LOG_APP, "JSVM CreatePromise success:%{public}d", isPromise);
174 hilog.info(0x0000, 'JSVM', 'CreatePromise: %{public}s', createPromiseresult);
H A Duse-jsvm-runtime-task.md49 static JSVM_Value CreatePromise(JSVM_Env env, JSVM_CallbackInfo info) {
50 OH_LOG_INFO(LOG_APP, "JSVM API TEST: CreatePromise start");
60 OH_LOG_ERROR(LOG_APP, "JSVM API TEST: CreatePromise envID faild");
79 OH_LOG_INFO(LOG_APP, "JSVM API TEST: CreatePromise %{public}d", envID);
95 OH_LOG_INFO(LOG_APP, "JSVM API TEST: CreatePromise end");
170 g_callBackStructMap[ENVTAG_NUMBER][3].callback = CreatePromise;
/ohos5.0/foundation/communication/netstack/utils/napi_utils/include/
H A Dmodule_template.h87 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 Dbase_context.h65 napi_value CreatePromise();
/ohos5.0/foundation/communication/netmanager_base/utils/napi_utils/include/
H A Dmodule_template.h63 return context->CreatePromise(); in InterfaceWithoutManager()
99 return context->CreatePromise(); in Interface()
172 return context->CreatePromise(); in InterfaceWithOutAsyncWork()
H A Dbase_context.h53 napi_value CreatePromise();
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/recorder/
H A Dvideo_recorder_napi.cpp171 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 Drecorder_capability_napi.cpp42 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()
/ohos5.0/base/powermgr/power_manager/frameworks/napi/runninglock/
H A Drunninglock_napi.cpp59 return CreatePromise(env, argv, asyncInfo); in Create()
170 napi_value RunningLockNapi::CreatePromise( in CreatePromise() function in OHOS::PowerMgr::RunningLockNapi
181 asyncInfo->CreatePromise(env, promise); in CreatePromise()
H A Drunninglock_napi.h41 …static napi_value CreatePromise(napi_env& env, napi_value argv[], std::unique_ptr<AsyncCallbackInf…
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/soundpool/src/
H A Dsoundpool_napi.cpp152 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()
564 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsRelease()
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/player/
H A Dvideo_player_napi.cpp209 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in CreateVideoPlayer()
447 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in SetDisplaySurface()
560 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in Prepare()
592 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in Play()
627 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in Pause()
660 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in Stop()
692 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in Reset()
724 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in Release()
792 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in Seek()
833 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in SetSpeed()
[all …]
/ohos5.0/foundation/window/window_manager/interfaces/kits/napi/common/
H A Ddm_napi_common.h99 napi_value CreatePromise(napi_env env, napi_value resourceName, in CreatePromise() function
143 result = CreatePromise(env, resourceName, funcname, info); in AsyncProcess()
/ohos5.0/base/powermgr/battery_statistics/frameworks/napi/include/
H A Dasync_callback_info.h34 void CreatePromise(napi_env& env, napi_value& promise);
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/metadatahelper/
H A Davmetadataextractor_napi.cpp146 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in JsCreateAVMetadataExtractor()
176 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsResolveMetadata()
283 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsFetchArtPicture()
383 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsRelease()
576 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JSGetTimeByFrameIndex()
640 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JSGetFrameIndexByTime()
H A Davimagegenerator_napi.cpp150 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in JsCreateAVImageGenerator()
214 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsFetchFrameAtTime()
317 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsRelease()
/ohos5.0/base/powermgr/power_manager/frameworks/napi/utils/
H A Dasync_callback_info.h34 void CreatePromise(napi_env& env, napi_value& promise);
H A Dasync_callback_info.cpp49 void AsyncCallbackInfo::CreatePromise(napi_env& env, napi_value& promise) in CreatePromise() function in OHOS::PowerMgr::AsyncCallbackInfo
/ohos5.0/base/powermgr/battery_statistics/frameworks/napi/src/
H A Dasync_callback_info.cpp49 void AsyncCallbackInfo::CreatePromise(napi_env& env, napi_value& promise) in CreatePromise() function in OHOS::PowerMgr::AsyncCallbackInfo
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/avscreen_capture/
H A Davscreen_capture_napi.cpp160 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); in ExecuteByPromise()
/ohos5.0/foundation/communication/netmanager_base/utils/napi_utils/src/
H A Dbase_context.cpp103 napi_value BaseContext::CreatePromise() in CreatePromise() function in OHOS::NetManagerStandard::BaseContext
/ohos5.0/foundation/multimedia/camera_framework/interfaces/kits/js/camera_napi/include/
H A Dcamera_napi_param_parser.h100 napi_status CreatePromise() in CreatePromise() function
230 napiError = asyncFunction_->CreatePromise(); in CameraNapiParamParser()
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/avplayer/
H A Davplayer_napi.cpp211 asyncContext->deferred = CommonNapi::CreatePromise(env, asyncContext->callbackRef, result); in JsCreateAVPlayer()
276 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsPrepare()
350 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsPlay()
428 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsPause()
498 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsStop()
575 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsReset()
677 promiseCtx->deferred = CommonNapi::CreatePromise(env, promiseCtx->callbackRef, result); in JsRelease()
788 promiseCtx->deferred = CommonNapi::CreatePromise(env, nullptr, result); in JsSetPlaybackRange()
1335 promiseCtx->deferred = CommonNapi::CreatePromise(env, nullptr, result); in JsGetPlaybackInfo()
1379 promiseCtx->deferred = CommonNapi::CreatePromise(env, nullptr, result); in JsSetPlaybackStrategy()
[all …]

12