Home
last modified time | relevance | path

Searched refs:asyncCtx (Results 1 - 18 of 18) sorted by relevance

/foundation/arkui/ace_engine/interfaces/napi/kits/drag_controller/
H A Djs_drag_controller.cpp115 void OnMultipleComplete(std::shared_ptr<DragControllerAsyncCtx> asyncCtx);
116 void OnComplete(std::shared_ptr<DragControllerAsyncCtx> asyncCtx);
117 bool GetPixelMapByCustom(std::shared_ptr<DragControllerAsyncCtx> asyncCtx);
118 bool GetPixelMapArrayByCustom(std::shared_ptr<DragControllerAsyncCtx> asyncCtx,
120 ParameterType getParameterType(std::shared_ptr<DragControllerAsyncCtx> asyncCtx);
121 void SetMouseDragMonitorState(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, bool state);
122 void HandleExecuteDrag(napi_env env, std::shared_ptr<DragControllerAsyncCtx> asyncCtx);
123 bool TryToStartDrag(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, int32_t& result);
124 void ExecuteHandleOnDragStart(std::shared_ptr<DragControllerAsyncCtx> asyncCtx);
128 DragAction(std::shared_ptr<DragControllerAsyncCtx> asyncCtx) argument
387 IsExecutingWithDragAction(std::shared_ptr<DragControllerAsyncCtx> asyncCtx) IsExecutingWithDragAction() argument
405 ConvertToPx(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, const Dimension& dimension, double size) ConvertToPx() argument
466 CallBackForJs(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, napi_value result) CallBackForJs() argument
497 GetCallBackDataForJs(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, const DragNotifyMsg& dragNotifyMsg, const DragStatus dragStatus) GetCallBackDataForJs() argument
552 SetMouseDragMonitorState(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, bool state) SetMouseDragMonitorState() argument
566 HandleExecuteDrag(napi_env env, std::shared_ptr<DragControllerAsyncCtx> asyncCtx) HandleExecuteDrag() argument
578 HandleSuccess(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, const DragNotifyMsg& dragNotifyMsg, const DragStatus dragStatus) HandleSuccess() argument
609 HandleFail(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, int32_t errorCode, const std::string& errMsg = �) HandleFail() argument
635 HandleDragEnd(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, const DragNotifyMsg& dragNotifyMsg) HandleDragEnd() argument
654 HandleOnDragStart(std::shared_ptr<DragControllerAsyncCtx> asyncCtx) HandleOnDragStart() argument
672 GetShadowInfoArray(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, std::vector<Msdp::DeviceStatus::ShadowInfo>& shadowInfos) GetShadowInfoArray() argument
721 EnvelopedDragData(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, std::optional<Msdp::DeviceStatus::DragData>& dragData) EnvelopedDragData() argument
772 StartDragService(std::shared_ptr<DragControllerAsyncCtx> asyncCtx) StartDragService() argument
820 OnMultipleComplete(std::shared_ptr<DragControllerAsyncCtx> asyncCtx) OnMultipleComplete() argument
853 OnComplete(std::shared_ptr<DragControllerAsyncCtx> asyncCtx) OnComplete() argument
903 ExecuteHandleOnDragStart(std::shared_ptr<DragControllerAsyncCtx> asyncCtx) ExecuteHandleOnDragStart() argument
919 GetParams(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, int32_t& dataSize, std::string& udKey, std::map<std::string, int64_t>& summary) GetParams() argument
948 TryToStartDrag(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, int32_t& result) TryToStartDrag() argument
990 ParseTouchPoint(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, napi_valuetype& valueType) ParseTouchPoint() argument
1015 ParseDragItemInfoParam(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, std::string& errMsg) ParseDragItemInfoParam() argument
1061 GetPixelMapByCustom(std::shared_ptr<DragControllerAsyncCtx> asyncCtx) GetPixelMapByCustom() argument
1099 GetPixelMapArrayByCustom(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, napi_value customBuilder, int arrayLength) GetPixelMapArrayByCustom() argument
1142 ParseExtraInfo(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, std::string& errMsg, napi_value element) ParseExtraInfo() argument
1157 ParsePixelMapAndBuilder(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, std::string& errMsg, napi_value element) ParsePixelMapAndBuilder() argument
1187 ParseDragItemListInfoParam(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, std::string& errMsg) ParseDragItemListInfoParam() argument
1228 ParseDragParam(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, std::string& errMsg) ParseDragParam() argument
1253 ApplyPreviewOptionsFromModifier( std::shared_ptr<DragControllerAsyncCtx> asyncCtx, napi_value modifierObj, NG::DragPreviewOption& option) ApplyPreviewOptionsFromModifier() argument
1300 GetNamedPropertyModifier( std::shared_ptr<DragControllerAsyncCtx> asyncCtx, napi_value previewOptionsNApi, std::string& errMsg) GetNamedPropertyModifier() argument
1312 SetDragPreviewOptionMode(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, napi_value& modeNApi, std::string& errMsg, bool& isAuto) SetDragPreviewOptionMode() argument
1349 ParseDragPreviewMode(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, napi_value& previewOptionsNApi, std::string& errMsg) ParseDragPreviewMode() argument
1379 GetCurrentDipScale(std::shared_ptr<DragControllerAsyncCtx> asyncCtx) GetCurrentDipScale() argument
1388 ParsePreviewOptions( std::shared_ptr<DragControllerAsyncCtx> asyncCtx, napi_valuetype& valueType, std::string& errMsg) ParsePreviewOptions() argument
1440 ParseDragInfoParam(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, std::string& errMsg) ParseDragInfoParam() argument
1492 CheckAndParseParams(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, std::string& errMsg) CheckAndParseParams() argument
1510 CreateCallback(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, napi_value* result) CreateCallback() argument
1525 InitializeDragControllerCtx(napi_env env, napi_callback_info info, std::shared_ptr<DragControllerAsyncCtx> asyncCtx) InitializeDragControllerCtx() argument
1537 getParameterType(std::shared_ptr<DragControllerAsyncCtx> asyncCtx) getParameterType() argument
1556 HandleStopDragCallback(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, const RefPtr<Container>& container) HandleStopDragCallback() argument
1588 ConfirmCurPointerEventInfo(std::shared_ptr<DragControllerAsyncCtx> asyncCtx, const RefPtr<Container>& container) ConfirmCurPointerEventInfo() argument
[all...]
/foundation/multimedia/player_framework/frameworks/js/soundpool/src/
H A Dsoundpool_napi.cpp149 std::unique_ptr<SoundPoolAsyncContext> asyncCtx = std::make_unique<SoundPoolAsyncContext>(env); in JsCreateSoundPool() local
151 asyncCtx->callbackRef = CommonNapi::CreateReference(env, args[PARAM2]); in JsCreateSoundPool()
152 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsCreateSoundPool()
153 asyncCtx->JsResult = std::make_unique<MediaJsResultInstance>(constructor_); in JsCreateSoundPool()
154 asyncCtx->ctorFlag = true; in JsCreateSoundPool()
160 }, MediaAsyncContext::CompleteCallback, static_cast<void *>(asyncCtx.get()), &asyncCtx->work)); in JsCreateSoundPool()
161 NAPI_CALL(env, napi_queue_async_work_with_qos(env, asyncCtx->work, napi_qos_user_initiated)); in JsCreateSoundPool()
162 asyncCtx in JsCreateSoundPool()
176 auto asyncCtx = std::make_unique<SoundPoolAsyncContext>(env); JsLoad() local
228 auto asyncCtx = std::make_unique<SoundPoolAsyncContext>(env); JsPlay() local
275 auto asyncCtx = std::make_unique<SoundPoolAsyncContext>(env); JsStop() local
322 auto asyncCtx = std::make_unique<SoundPoolAsyncContext>(env); JsSetLoop() local
371 auto asyncCtx = std::make_unique<SoundPoolAsyncContext>(env); JsSetPriority() local
422 auto asyncCtx = std::make_unique<SoundPoolAsyncContext>(env); JsSetRate() local
464 auto asyncCtx = std::make_unique<SoundPoolAsyncContext>(env); JsSetVolume() local
507 auto asyncCtx = std::make_unique<SoundPoolAsyncContext>(env); JsUnload() local
556 auto asyncCtx = std::make_unique<SoundPoolAsyncContext>(env); JsRelease() local
695 ParserLoadOptionFromJs(std::unique_ptr<SoundPoolAsyncContext> &asyncCtx, napi_env env, napi_value *argv, size_t argCount) ParserLoadOptionFromJs() argument
738 ParserPlayOptionFromJs(std::unique_ptr<SoundPoolAsyncContext> &asyncCtx, napi_env env, napi_value *argv, size_t argCount) ParserPlayOptionFromJs() argument
775 ParserRateOptionFromJs(std::unique_ptr<SoundPoolAsyncContext> &asyncCtx, napi_env env, napi_value *argv) ParserRateOptionFromJs() argument
792 ParserVolumeOptionFromJs(std::unique_ptr<SoundPoolAsyncContext> &asyncCtx, napi_env env, napi_value *argv) ParserVolumeOptionFromJs() argument
[all...]
/foundation/multimedia/player_framework/frameworks/js/recorder/
H A Drecorder_capability_napi.cpp31 auto asyncCtx = std::make_unique<RecorderCapabilityAsyncContext>(env); in GetAudioRecorderCaps() local
38 asyncCtx->SignError(MSERR_EXT_INVALID_VAL, "Failed to napi_get_cb_info"); in GetAudioRecorderCaps()
41 asyncCtx->callbackRef = CommonNapi::CreateReference(env, args[0]); in GetAudioRecorderCaps()
42 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in GetAudioRecorderCaps()
44 (void)napi_unwrap(env, jsThis, reinterpret_cast<void **>(&asyncCtx->napi)); in GetAudioRecorderCaps()
51 auto asyncCtx = reinterpret_cast<RecorderCapabilityAsyncContext *>(data); in GetAudioRecorderCaps()
52 if (asyncCtx == nullptr) { in GetAudioRecorderCaps()
53 MEDIA_LOGE("Failed, asyncCtx is nullptr"); in GetAudioRecorderCaps()
55 } else if (asyncCtx in GetAudioRecorderCaps()
75 auto asyncCtx = std::make_unique<RecorderCapabilityAsyncContext>(env); IsAudioRecorderConfigSupported() local
126 auto asyncCtx = std::make_unique<RecorderCapabilityAsyncContext>(env); GetVideoRecorderCaps() local
169 auto asyncCtx = std::make_unique<RecorderCapabilityAsyncContext>(env); GetVideoRecorderProfile() local
223 auto asyncCtx = std::make_unique<RecorderCapabilityAsyncContext>(env); HasVideoRecorderProfile() local
[all...]
H A Dvideo_recorder_napi.cpp51 static void SignError(VideoRecorderAsyncContext *asyncCtx, int32_t code, in SignError() argument
55 asyncCtx->SignError(code, message); in SignError()
165 std::unique_ptr<VideoRecorderAsyncContext> asyncCtx = std::make_unique<VideoRecorderAsyncContext>(env); in CreateVideoRecorder() local
167 SignError(asyncCtx.get(), in CreateVideoRecorder()
170 asyncCtx->callbackRef = CommonNapi::CreateReference(env, args[0]); in CreateVideoRecorder()
171 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in CreateVideoRecorder()
172 asyncCtx->JsResult = std::make_unique<MediaJsResultInstance>(constructor_); in CreateVideoRecorder()
173 asyncCtx->ctorFlag = true; in CreateVideoRecorder()
178 MediaAsyncContext::CompleteCallback, static_cast<void *>(asyncCtx in CreateVideoRecorder()
194 auto asyncCtx = std::make_unique<VideoRecorderAsyncContext>(env); Prepare() local
262 auto asyncCtx = std::make_unique<VideoRecorderAsyncContext>(env); GetInputSurface() local
319 auto asyncCtx = std::make_unique<VideoRecorderAsyncContext>(env); Start() local
369 auto asyncCtx = std::make_unique<VideoRecorderAsyncContext>(env); Pause() local
417 auto asyncCtx = std::make_unique<VideoRecorderAsyncContext>(env); Resume() local
467 auto asyncCtx = std::make_unique<VideoRecorderAsyncContext>(env); Stop() local
515 auto asyncCtx = std::make_unique<VideoRecorderAsyncContext>(env); Reset() local
570 auto asyncCtx = std::make_unique<VideoRecorderAsyncContext>(env); Release() local
624 auto asyncCtx = std::make_unique<VideoRecorderAsyncContext>(env); On() local
808 auto asyncCtx = std::make_unique<VideoRecorderAsyncContext>(env); GetState() local
[all...]
H A Daudio_recorder_napi.cpp188 auto asyncCtx = std::make_unique<MediaAsyncContext>(env); in CreateAudioRecorderAsync() local
196 asyncCtx->SignError(MSERR_EXT_INVALID_VAL, "failed to napi_get_cb_info"); in CreateAudioRecorderAsync()
199 asyncCtx->callbackRef = CommonNapi::CreateReference(env, args[0]); in CreateAudioRecorderAsync()
200 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in CreateAudioRecorderAsync()
201 asyncCtx->JsResult = std::make_unique<MediaJsResultInstance>(constructor_); in CreateAudioRecorderAsync()
205 MediaAsyncContext::CompleteCallback, static_cast<void *>(asyncCtx.get()), &asyncCtx->work)); in CreateAudioRecorderAsync()
206 NAPI_CALL(env, napi_queue_async_work(env, asyncCtx->work)); in CreateAudioRecorderAsync()
207 asyncCtx in CreateAudioRecorderAsync()
227 auto asyncCtx = std::make_unique<MediaAsyncContext>(env); Prepare() local
[all...]
/foundation/multimedia/player_framework/frameworks/js/avscreen_capture/
H A Davscreen_capture_napi.cpp156 std::unique_ptr<AVScreenCaptureAsyncContext> asyncCtx = std::make_unique<AVScreenCaptureAsyncContext>(env); in JsCreateAVScreenRecorder() local
157 CHECK_AND_RETURN_RET_LOG(asyncCtx != nullptr, result, "failed to get AsyncContext"); in JsCreateAVScreenRecorder()
159 asyncCtx->callbackRef = CommonNapi::CreateReference(env, args[0]); in JsCreateAVScreenRecorder()
160 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsCreateAVScreenRecorder()
161 asyncCtx->JsResult = std::make_unique<MediaJsResultInstance>(constructor_); in JsCreateAVScreenRecorder()
162 asyncCtx->ctorFlag = true; in JsCreateAVScreenRecorder()
168 }, MediaAsyncContext::CompleteCallback, static_cast<void *>(asyncCtx.get()), &asyncCtx->work)); in JsCreateAVScreenRecorder()
169 NAPI_CALL(env, napi_queue_async_work_with_qos(env, asyncCtx in JsCreateAVScreenRecorder()
207 auto asyncCtx = std::make_unique<AVScreenCaptureAsyncContext>(env); JsReportAVScreenCaptureUserChoice() local
261 AVScreenCaptureAsyncContext* asyncCtx = reinterpret_cast<AVScreenCaptureAsyncContext *>(data); AsyncJsReportAVScreenCaptureUserChoice() local
286 auto asyncCtx = std::make_unique<AVScreenCaptureAsyncContext>(env); JsInit() local
364 auto asyncCtx = std::make_unique<AVScreenCaptureAsyncContext>(env); JsSkipPrivacyMode() local
409 auto asyncCtx = std::make_unique<AVScreenCaptureAsyncContext>(env); JsSetMicrophoneEnabled() local
529 GetInitTask( const std::unique_ptr<AVScreenCaptureAsyncContext> &asyncCtx) GetInitTask() argument
547 GetSkipPrivacyModeTask( const std::unique_ptr<AVScreenCaptureAsyncContext> &asyncCtx, const std::vector<uint64_t> windowIDsVec) GetSkipPrivacyModeTask() argument
562 GetSetMicrophoneEnableTask( const std::unique_ptr<AVScreenCaptureAsyncContext> &asyncCtx, const bool enable) GetSetMicrophoneEnableTask() argument
[all...]
H A Davscreen_capture_napi.h117 const std::unique_ptr<AVScreenCaptureAsyncContext> &asyncCtx);
119 const std::unique_ptr<AVScreenCaptureAsyncContext> &asyncCtx, const bool enable);
121 const std::unique_ptr<AVScreenCaptureAsyncContext> &asyncCtx, const std::vector<uint64_t> windowIDsVec);
127 static int32_t GetAudioInfo(std::unique_ptr<AVScreenCaptureAsyncContext> &asyncCtx, napi_env env, napi_value args);
128 static int32_t GetVideoInfo(std::unique_ptr<AVScreenCaptureAsyncContext> &asyncCtx, napi_env env, napi_value args);
147 int32_t GetConfig(std::unique_ptr<AVScreenCaptureAsyncContext> &asyncCtx, napi_env env, napi_value args);
148 int32_t GetRecorderInfo(std::unique_ptr<AVScreenCaptureAsyncContext> &asyncCtx, napi_env env, napi_value args);
/foundation/multimedia/player_framework/frameworks/js/avtranscoder/
H A Davtranscoder_napi.cpp192 std::unique_ptr<AVTransCoderAsyncContext> asyncCtx = std::make_unique<AVTransCoderAsyncContext>(env); in JsCreateAVTransCoder() local
193 CHECK_AND_RETURN_RET_LOG(asyncCtx != nullptr, result, "failed to get AsyncContext"); in JsCreateAVTransCoder()
195 asyncCtx->callbackRef = CommonNapi::CreateReference(env, args[0]); in JsCreateAVTransCoder()
196 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsCreateAVTransCoder()
197 asyncCtx->JsResult = std::make_unique<MediaJsResultInstance>(constructor_); in JsCreateAVTransCoder()
198 asyncCtx->ctorFlag = true; in JsCreateAVTransCoder()
203 MediaAsyncContext::CompleteCallback, static_cast<void *>(asyncCtx.get()), &asyncCtx->work)); in JsCreateAVTransCoder()
204 NAPI_CALL(env, napi_queue_async_work_with_qos(env, asyncCtx in JsCreateAVTransCoder()
240 auto asyncCtx = std::make_unique<AVTransCoderAsyncContext>(env); JsPrepare() local
279 GetPrepareTask( std::unique_ptr<AVTransCoderAsyncContext> &asyncCtx) GetPrepareTask() argument
446 auto asyncCtx = std::make_unique<AVTransCoderAsyncContext>(env); ExecuteByPromise() local
493 auto asyncCtx = std::make_unique<AVTransCoderAsyncContext>(env); JsGetSrcUrl() local
515 auto asyncCtx = std::make_unique<AVTransCoderAsyncContext>(env); JsSetSrcFd() local
562 auto asyncCtx = std::make_unique<AVTransCoderAsyncContext>(env); JsGetSrcFd() local
584 auto asyncCtx = std::make_unique<AVTransCoderAsyncContext>(env); JsSetDstFd() local
628 auto asyncCtx = std::make_unique<AVTransCoderAsyncContext>(env); JsGetDstFd() local
819 GetAudioConfig(std::unique_ptr<AVTransCoderAsyncContext> &asyncCtx, napi_env env, napi_value args) GetAudioConfig() argument
846 GetVideoConfig(std::unique_ptr<AVTransCoderAsyncContext> &asyncCtx, napi_env env, napi_value args) GetVideoConfig() argument
875 GetConfig(std::unique_ptr<AVTransCoderAsyncContext> &asyncCtx, napi_env env, napi_value args) GetConfig() argument
[all...]
H A Davtranscoder_napi.h181 static std::shared_ptr<TaskHandler<RetInfo>> GetPrepareTask(std::unique_ptr<AVTransCoderAsyncContext> &asyncCtx);
210 int32_t GetAudioConfig(std::unique_ptr<AVTransCoderAsyncContext> &asyncCtx, napi_env env, napi_value args);
211 int32_t GetVideoConfig(std::unique_ptr<AVTransCoderAsyncContext> &asyncCtx, napi_env env, napi_value args);
212 int32_t GetConfig(std::unique_ptr<AVTransCoderAsyncContext> &asyncCtx, napi_env env, napi_value args);
/foundation/multimedia/player_framework/frameworks/js/avrecorder/
H A Davrecorder_napi.cpp189 std::unique_ptr<AVRecorderAsyncContext> asyncCtx = std::make_unique<AVRecorderAsyncContext>(env); in JsCreateAVRecorder() local
190 CHECK_AND_RETURN_RET_LOG(asyncCtx != nullptr, result, "failed to get AsyncContext"); in JsCreateAVRecorder()
192 asyncCtx->callbackRef = CommonNapi::CreateReference(env, args[0]); in JsCreateAVRecorder()
193 asyncCtx->deferred = CommonNapi::CreatePromise(env, asyncCtx->callbackRef, result); in JsCreateAVRecorder()
194 asyncCtx->JsResult = std::make_unique<MediaJsResultInstance>(constructor_); in JsCreateAVRecorder()
195 asyncCtx->ctorFlag = true; in JsCreateAVRecorder()
200 MediaAsyncContext::CompleteCallback, static_cast<void *>(asyncCtx.get()), &asyncCtx->work)); in JsCreateAVRecorder()
201 NAPI_CALL(env, napi_queue_async_work_with_qos(env, asyncCtx in JsCreateAVRecorder()
244 auto asyncCtx = std::make_unique<AVRecorderAsyncContext>(env); JsPrepare() local
296 auto asyncCtx = std::make_unique<AVRecorderAsyncContext>(env); JsSetOrientationHint() local
348 auto asyncCtx = std::make_unique<AVRecorderAsyncContext>(env); JsSetWatermark() local
386 GetPrepareTask(std::unique_ptr<AVRecorderAsyncContext> &asyncCtx) GetPrepareTask() argument
412 GetSetOrientationHintTask( const std::unique_ptr<AVRecorderAsyncContext> &asyncCtx) GetSetOrientationHintTask() argument
450 auto asyncCtx = std::make_unique<AVRecorderAsyncContext>(env); JsGetInputMetaSurface() local
553 auto asyncCtx = std::make_unique<AVRecorderAsyncContext>(env); JsGetAVRecorderProfile() local
589 GetAVRecorderProfileTask( const std::unique_ptr<AVRecorderAsyncContext> &asyncCtx) GetAVRecorderProfileTask() argument
[all...]
H A Davrecorder_napi.h314 static std::shared_ptr<TaskHandler<RetInfo>> GetPrepareTask(std::unique_ptr<AVRecorderAsyncContext> &asyncCtx);
316 const std::unique_ptr<AVRecorderAsyncContext> &asyncCtx);
318 const std::unique_ptr<AVRecorderAsyncContext> &asyncCtx);
321 const std::unique_ptr<AVRecorderAsyncContext> &asyncCtx);
323 std::unique_ptr<AVRecorderAsyncContext> &asyncCtx);
326 const std::unique_ptr<AVRecorderAsyncContext> &asyncCtx);
328 const std::unique_ptr<AVRecorderAsyncContext> &asyncCtx);
330 const std::unique_ptr<AVRecorderAsyncContext> &asyncCtx);
332 const std::unique_ptr<AVRecorderAsyncContext> &asyncCtx);
334 const std::unique_ptr<AVRecorderAsyncContext> &asyncCtx);
[all...]
/foundation/multimedia/player_framework/frameworks/js/metadatahelper/
H A Davimagegenerator_napi.cpp162 int32_t AVImageGeneratorNapi::GetFetchFrameArgs(std::unique_ptr<AVImageGeneratorAsyncContext> &asyncCtx, napi_env env, in GetFetchFrameArgs() argument
165 napi_status ret = napi_get_value_int64(env, timeUs, &asyncCtx->napi->timeUs_); in GetFetchFrameArgs()
167 asyncCtx->SignError(MSERR_INVALID_VAL, "failed to get timeUs"); in GetFetchFrameArgs()
170 ret = napi_get_value_int32(env, option, &asyncCtx->napi->option_); in GetFetchFrameArgs()
172 asyncCtx->SignError(MSERR_INVALID_VAL, "failed to get option"); in GetFetchFrameArgs()
192 asyncCtx->SignError(MSERR_INVALID_VAL, "formatVal is invalid"); in GetFetchFrameArgs()
196 asyncCtx->napi->param_.dstWidth = width; in GetFetchFrameArgs()
197 asyncCtx->napi->param_.dstHeight = height; in GetFetchFrameArgs()
198 asyncCtx->napi->param_.colorFormat = colorFormat; in GetFetchFrameArgs()
217 auto asyncCtx in JsFetchFrameAtTime() local
[all...]
H A Davimagegenerator_napi.h72 int32_t GetFetchFrameArgs(std::unique_ptr<AVImageGeneratorAsyncContext> &asyncCtx, napi_env env, napi_value timeUs,
/foundation/arkui/ace_engine/interfaces/napi/kits/component_snapshot/
H A Djs_component_snapshot.cpp41 void OnComplete(SnapshotAsyncCtx* asyncCtx, std::function<void()> finishCallback) in OnComplete() argument
43 auto container = AceEngine::Get().GetContainer(asyncCtx->instanceId); in OnComplete()
45 LOGW("container is null. %{public}d", asyncCtx->instanceId); in OnComplete()
55 [asyncCtx, finishCallback]() { in OnComplete()
56 std::unique_ptr<SnapshotAsyncCtx> ctx(asyncCtx); in OnComplete()
138 auto* asyncCtx = new SnapshotAsyncCtx; in CreateCallback() local
144 napi_create_reference(env_, argv_[1], 1, &asyncCtx->callbackRef); in CreateCallback()
148 if (!asyncCtx->callbackRef) { in CreateCallback()
149 napi_create_promise(env_, &asyncCtx->deferred, result); in CreateCallback()
154 asyncCtx in CreateCallback()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_xcomponent_controller.cpp58 void HandleDeferred(const shared_ptr<XComponentAsyncCxt>& asyncCtx, ImageAnalyzerState state) in HandleDeferred() argument
60 auto env = asyncCtx->env; in HandleDeferred()
62 auto deferred = asyncCtx->deferred; in HandleDeferred()
251 auto asyncCtx = std::make_shared<XComponentAsyncCxt>(); in StartImageAnalyzer() local
252 asyncCtx->env = env; in StartImageAnalyzer()
254 napi_create_promise(env, &asyncCtx->deferred, &promise); in StartImageAnalyzer()
266 napi_reject_deferred(env, asyncCtx->deferred, result); in StartImageAnalyzer()
271 OnAnalyzedCallback onAnalyzed_ = [asyncCtx, weakCtx = WeakClaim(this)](ImageAnalyzerState state) { in StartImageAnalyzer()
272 CHECK_NULL_VOID(asyncCtx); in StartImageAnalyzer()
273 HandleDeferred(asyncCtx, stat in StartImageAnalyzer()
[all...]
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/picker/
H A Dcamera_picker_napi.cpp330 std::unique_ptr<CameraPickerAsyncContext> asyncCtx = std::make_unique<CameraPickerAsyncContext>(); in Pick() local
331 asyncCtx->funcName = "CameraPickerNapi::Pick"; in Pick()
332 asyncCtx->taskId = CameraNapiUtils::IncrementAndGet(cameraPickerTaskId); in Pick()
333 asyncCtx->contextProxy = GetAbilityContext(env, argv[ARGS_ZERO]); in Pick()
334 if (asyncCtx->contextProxy == nullptr) { in Pick()
345 if (!GetPickerProfile(env, argv[ARGS_TWO], asyncCtx->pickerProfile)) { in Pick()
349 SetPickerWantParams(asyncCtx->want, asyncCtx->contextProxy, mediaTypes, asyncCtx->pickerProfile); in Pick()
350 asyncCtx in Pick()
[all...]
/foundation/multimedia/player_framework/frameworks/js/soundpool/include/
H A Dsoundpool_napi.h133 int32_t ParserLoadOptionFromJs(std::unique_ptr<SoundPoolAsyncContext> &asyncCtx,
135 int32_t ParserPlayOptionFromJs(std::unique_ptr<SoundPoolAsyncContext> &asyncCtx,
137 int32_t ParserRateOptionFromJs(std::unique_ptr<SoundPoolAsyncContext> &asyncCtx,
139 int32_t ParserVolumeOptionFromJs(std::unique_ptr<SoundPoolAsyncContext> &asyncCtx,
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/canvas/
H A Djs_rendering_context.cpp344 void HandleDeferred(const shared_ptr<CanvasAsyncCxt>& asyncCtx, ImageAnalyzerState state) in HandleDeferred() argument
346 auto env = asyncCtx->env; in HandleDeferred()
348 auto deferred = asyncCtx->deferred; in HandleDeferred()
399 auto asyncCtx = std::make_shared<CanvasAsyncCxt>(); in JsStartImageAnalyzer() local
400 asyncCtx->env = env; in JsStartImageAnalyzer()
402 napi_create_promise(env, &asyncCtx->deferred, &promise); in JsStartImageAnalyzer()
414 napi_reject_deferred(env, asyncCtx->deferred, result); in JsStartImageAnalyzer()
419 OnAnalyzedCallback onAnalyzed_ = [asyncCtx, weakCtx = WeakClaim(this)](ImageAnalyzerState state) { in JsStartImageAnalyzer()
420 CHECK_NULL_VOID(asyncCtx); in JsStartImageAnalyzer()
421 HandleDeferred(asyncCtx, stat in JsStartImageAnalyzer()
[all...]

Completed in 14 milliseconds