Home
last modified time | relevance | path

Searched refs:SignError (Results 1 – 25 of 29) sorted by relevance

12

/foundation/multimedia/player_framework/frameworks/js/recorder/
Dvideo_recorder_napi.cpp51 static void SignError(VideoRecorderAsyncContext *asyncCtx, int32_t code, in SignError() function
55 asyncCtx->SignError(code, message); in SignError()
167 SignError(asyncCtx.get(), in CreateVideoRecorder()
200 SignError(asyncCtx.get(), MSERR_EXT_API9_INVALID_PARAMETER, "prepare", ""); in Prepare()
209 SignError(asyncCtx.get(), MSERR_EXT_API9_INVALID_PARAMETER, "prepare", ""); in Prepare()
219 SignError(asyncCtx.get(), MSERR_EXT_API9_INVALID_PARAMETER, "prepare", ""); in Prepare()
224 SignError(asyncCtx.get(), MSERR_EXT_API9_INVALID_PARAMETER, "prepare", ""); in Prepare()
227 SignError(asyncCtx.get(), MSERR_EXT_API9_INVALID_PARAMETER, "urlPath", ""); in Prepare()
241 SignError(threadCtx, MSERR_EXT_API9_OPERATE_NOT_PERMIT, "prepare", ""); in Prepare()
246 SignError(threadCtx, MSERR_EXT_API9_OPERATE_NOT_PERMIT, "prepare", ""); in Prepare()
[all …]
Drecorder_capability_napi.cpp38 asyncCtx->SignError(MSERR_EXT_INVALID_VAL, "Failed to napi_get_cb_info"); in GetAudioRecorderCaps()
56 asyncCtx->SignError(MSERR_EXT_UNKNOWN, "nullptr"); in GetAudioRecorderCaps()
82 asyncCtx->SignError(MSERR_EXT_INVALID_VAL, "Failed to napi_get_cb_info"); in IsAudioRecorderConfigSupported()
89 asyncCtx->SignError(MSERR_EXT_INVALID_VAL, "Illegal argument"); in IsAudioRecorderConfigSupported()
106 asyncCtx->SignError(MSERR_EXT_UNKNOWN, "nullptr"); in IsAudioRecorderConfigSupported()
133 asyncCtx->SignError(MSERR_EXT_INVALID_VAL, "Failed to napi_get_cb_info"); in GetVideoRecorderCaps()
150 asyncCtx->SignError(MSERR_EXT_UNKNOWN, "nullptr"); in GetVideoRecorderCaps()
176 asyncCtx->SignError(MSERR_EXT_INVALID_VAL, "Failed to napi_get_cb_info"); in GetVideoRecorderProfile()
186 asyncCtx->SignError(MSERR_EXT_INVALID_VAL, "Illegal argument"); in GetVideoRecorderProfile()
203 asyncCtx->SignError(MSERR_EXT_UNKNOWN, "nullptr"); in GetVideoRecorderProfile()
[all …]
/foundation/multimedia/player_framework/frameworks/js/player/
Dvideo_player_napi.cpp205 asyncContext->SignError(MSERR_EXT_INVALID_VAL, "failed to napi_get_cb_info"); in CreateVideoPlayer()
394 …asyncContext->SignError(MSERR_EXT_NO_MEMORY, "jsPlayer is destroyed(null), please check js_runtime… in AsyncSetDisplaySurface()
399 …asyncContext->SignError(MSERR_EXT_NO_MEMORY, "nativePlayer is released(null), please create player… in AsyncSetDisplaySurface()
406 asyncContext->SignError(MSERR_EXT_INVALID_VAL, "input surface id is invalid"); in AsyncSetDisplaySurface()
416 asyncContext->SignError(MSERR_EXT_OPERATE_NOT_PERMIT, "failed to SetVideoSurface"); in AsyncSetDisplaySurface()
419 asyncContext->SignError(MSERR_EXT_NO_MEMORY, "failed to get surface from SurfaceUtils"); in AsyncSetDisplaySurface()
438 asyncContext->SignError(MSERR_EXT_NO_MEMORY, "failed to napi_get_cb_info"); in SetDisplaySurface()
506 …asyncContext->SignError(MSERR_EXT_NO_MEMORY, "jsPlayer is destroyed(null), please check js_runtime… in CompleteAsyncWork()
510 …asyncContext->SignError(MSERR_EXT_NO_MEMORY, "nativePlayer is released(null), please create player… in CompleteAsyncWork()
515 … asyncContext->SignError(MSERR_EXT_NO_MEMORY, "invalid asyncWorkType, please check player code"); in CompleteAsyncWork()
[all …]
Daudio_player_napi.cpp184 asyncContext->SignError(MSERR_EXT_INVALID_VAL, "failed to napi_get_cb_info"); in CreateAudioPlayerAsync()
866 …asyncContext->SignError(MSERR_EXT_NO_MEMORY, "jsPlayer is destroyed(null), please check js_runtime… in AsyncGetTrackDescription()
871 …asyncContext->SignError(MSERR_EXT_NO_MEMORY, "nativePlayer is released(null), please create player… in AsyncGetTrackDescription()
880 asyncContext->SignError(MSErrorToExtError(static_cast<MediaServiceErrCode>(ret)), in AsyncGetTrackDescription()
886 asyncContext->SignError(MSERR_EXT_OPERATE_NOT_PERMIT, "audio track info is empty"); in AsyncGetTrackDescription()
908 asyncContext->SignError(MSERR_EXT_INVALID_VAL, "failed to napi_get_cb_info"); in GetTrackDescription()
Dvideo_callback_napi.cpp65 context->SignError(MSERR_EXT_OPERATE_NOT_PERMIT, msg); in ClearAsyncWork()
/foundation/multimedia/audio_framework/frameworks/js/napi/audiomanager/
Dnapi_audio_volume_group_manager.cpp45 context->SignError(NAPI_ERR_SYSTEM); in CheckContextStatus()
57 context->SignError(NAPI_ERR_SYSTEM); in CheckAudioVolumeGroupManagerStatus()
222 context->SignError(NAPI_ERR_UNSUPPORTED); in GetVolume()
287 context->SignError(context->errCode == in SetVolume()
328 context->SignError(NAPI_ERR_UNSUPPORTED); in GetMaxVolume()
394 context->SignError(NAPI_ERR_UNSUPPORTED); in GetMinVolume()
458 context->SignError(context->errCode == in SetMute()
498 context->SignError(NAPI_ERR_UNSUPPORTED); in IsStreamMute()
567 context->SignError(NAPI_ERR_UNSUPPORTED); in SetRingerMode()
745 context->SignError(NAPI_ERR_NO_PERMISSION); in SetMicMute()
[all …]
Dnapi_audio_spatialization_manager.cpp47 context->SignError(NAPI_ERR_SYSTEM); in CheckContextStatus()
59 context->SignError(NAPI_ERR_SYSTEM); in CheckAudioSpatializationManagerStatus()
239 context->SignError(NAPI_ERR_NO_PERMISSION); in SetSpatializationEnabled()
241 context->SignError(NAPI_ERR_SYSTEM); in SetSpatializationEnabled()
305 context->SignError(NAPI_ERR_NO_PERMISSION); in SetHeadTrackingEnabled()
307 context->SignError(NAPI_ERR_SYSTEM); in SetHeadTrackingEnabled()
Dnapi_audio_routing_manager.cpp127 context->SignError(NAPI_ERR_SYSTEM); in CheckContextStatus()
139 context->SignError(NAPI_ERR_SYSTEM); in CheckAudioRoutingManagerStatus()
202 context->SignError(context->errCode == in GetDevices()
314 context->SignError(NAPI_ERR_UNSUPPORTED); in SelectOutputDeviceByFilter()
352 context->SignError(NAPI_ERR_INVALID_PARAM); in SelectInputDevice()
391 context->SignError(NAPI_ERR_UNSUPPORTED); in SelectInputDeviceByFilter()
419 context->SignError(context->errCode == in SetCommunicationDevice()
461 context->SignError(context->errCode == in IsCommunicationDeviceActive()
567 context->SignError(NAPI_ERR_INVALID_PARAM); in GetPreferredOutputDeviceForRendererInfo()
653 context->SignError(NAPI_ERR_INVALID_PARAM); in GetPreferredInputDeviceForCapturerInfo()
Dnapi_audio_stream_manager.cpp142 context->SignError(NAPI_ERR_SYSTEM); in CheckContextStatus()
153 context->SignError(NAPI_ERR_SYSTEM); in CheckAudioStreamManagerStatus()
326 context->SignError(context->errCode == in IsStreamActive()
393 context->SignError(NAPI_ERR_INVALID_PARAM); in GetEffectInfoArray()
Dnapi_audio_volume_manager.cpp43 context->SignError(NAPI_ERR_SYSTEM); in CheckContextStatus()
55 context->SignError(NAPI_ERR_SYSTEM); in CheckAudioVolumeManagerStatus()
/foundation/multimedia/audio_framework/frameworks/js/napi/audiorenderer/
Dnapi_toneplayer.cpp46 context->SignError(NAPI_ERR_SYSTEM); in CheckTonePlayerStatus()
248 context->SignError(NAPI_ERR_SYSTEM); in Load()
276 context->SignError(NAPI_ERR_SYSTEM); in Start()
304 context->SignError(NAPI_ERR_SYSTEM); in Stop()
332 context->SignError(NAPI_ERR_SYSTEM); in Release()
Dnapi_audio_renderer.cpp203 context->SignError(NAPI_ERR_SYSTEM); in CheckContextStatus()
214 context->SignError(NAPI_ERR_SYSTEM); in CheckAudioRendererStatus()
288 context->SignError(isConstructSuccess_); in CreateAudioRenderer()
346 context->SignError(NAPI_ERR_UNSUPPORTED); in SetRenderRate()
348 context->SignError(NAPI_ERR_SYSTEM); in SetRenderRate()
424 context->SignError(NAPI_ERR_UNSUPPORTED); in SetRendererSamplingRate()
430 context->SignError(NAPI_ERR_SYSTEM); in SetRendererSamplingRate()
489 context->SignError(NAPI_ERR_SYSTEM); in Start()
520 context->SignError(NAPI_ERR_SYSTEM); in Write()
587 context->SignError(NAPI_ERR_SYSTEM); in GetAudioTime()
[all …]
/foundation/multimedia/player_framework/frameworks/js/soundpool/src/
Dsoundpool_napi.cpp194 asyncCtx->SignError(MSERR_EXT_API9_OPERATE_NOT_PERMIT, "load sound failed"); in JsLoad()
239 asyncCtx->SignError(MSERR_EXT_API9_OPERATE_NOT_PERMIT, "play sound failed"); in JsPlay()
273 … asyncCtx->SignError(MSERR_EXT_API9_INVALID_PARAMETER, "stop streamId failed, invaild value"); in JsStop()
284 asyncCtx->SignError(MSERR_EXT_API9_OPERATE_NOT_PERMIT, "stop streamId failed"); in JsStop()
318 … asyncCtx->SignError(MSERR_EXT_API9_INVALID_PARAMETER, "SetLoop streamId failed,invaild value"); in JsSetLoop()
332 asyncCtx->SignError(MSERR_EXT_API9_OPERATE_NOT_PERMIT, "setLoop streamId failed"); in JsSetLoop()
365 asyncCtx->SignError(MSERR_EXT_API9_INVALID_PARAMETER, "SetPriority streamId failed"); in JsSetPriority()
369 asyncCtx->SignError(MSERR_EXT_API9_INVALID_PARAMETER, "SetPriority priority failed"); in JsSetPriority()
381 … asyncCtx->SignError(MSERR_EXT_API9_OPERATE_NOT_PERMIT, "SetPriority streamId failed"); in JsSetPriority()
421 asyncCtx->SignError(MSERR_EXT_API9_OPERATE_NOT_PERMIT, "SetRate streamId failed"); in JsSetRate()
[all …]
/foundation/multimedia/audio_framework/frameworks/js/napi/audiocapturer/
Dnapi_audio_capturer.cpp170 context->SignError(NAPI_ERR_SYSTEM); in CheckContextStatus()
181 context->SignError(NAPI_ERR_SYSTEM); in CheckAudioCapturerStatus()
255 context->SignError(NapiAudioCapturer::isConstructSuccess_); in CreateAudioCapturer()
302 context->SignError(NAPI_ERR_SYSTEM); in GetCapturerInfo()
350 context->SignError(NAPI_ERR_SYSTEM); in GetStreamInfo()
399 context->SignError(NAPI_ERR_SYSTEM); in Start()
464 context->SignError(NAPI_ERR_SYSTEM); in Read()
498 context->SignError(NAPI_ERR_SYSTEM); in GetAudioTime()
549 context->SignError(NAPI_ERR_SYSTEM); in Stop()
578 context->SignError(NAPI_ERR_SYSTEM); in Release()
[all …]
/foundation/multimedia/player_framework/frameworks/js/metadatahelper/
Davimagegenerator_napi.cpp220 asyncCtx->SignError(MSERR_INVALID_VAL, "failed to get timeUs"); in GetFetchFrameArgs()
226 asyncCtx->SignError(MSERR_INVALID_VAL, "failed to get option"); in GetFetchFrameArgs()
248 asyncCtx->SignError(MSERR_INVALID_VAL, "formatVal is invalid"); in GetFetchFrameArgs()
296 asyncCtx->SignError(MSERR_EXT_API9_INVALID_PARAMETER, "JsFetchFrameAtTime"); in JsFetchFrameAtTime()
302 asyncCtx->SignError(MSERR_INVALID_VAL, "failed to get args"); in JsFetchFrameAtTime()
314 asyncCtx->SignError(result.Value().first, result.Value().second); in JsFetchFrameAtTime()
472 promiseCtx->SignError(MSERR_INVALID_VAL, "Async release task is invalid."); in JsRelease()
479 promiseCtx->SignError(result.Value().first, result.Value().second); in JsRelease()
Davmetadataextractor_napi.cpp241 promiseCtx->SignError(result.Value().first, result.Value().second); in JsResolveMetadata()
383 promiseCtx->SignError(result.Value().first, result.Value().second); in JsFetchArtPicture()
545 promiseCtx->SignError(MSERR_INVALID_VAL, "Async release task is invalid."); in JsRelease()
552 promiseCtx->SignError(result.Value().first, result.Value().second); in JsRelease()
/foundation/multimedia/drm_framework/frameworks/js/drm_napi/
Dkey_session_napi.cpp222 context->SignError(DRM_SERVICE_FATAL_ERROR); in CheckMediaKeySessionStatus()
232 context->SignError(DRM_SERVICE_FATAL_ERROR); in CheckContextStatus()
273 context->SignError(DRM_SERVICE_FATAL_ERROR); in GenerateMediaKeyRequest()
311 context->SignError(DRM_SERVICE_FATAL_ERROR); in ProcessMediaKeyResponse()
349 context->SignError(DRM_SERVICE_FATAL_ERROR); in GenerateOfflineReleaseRequest()
389 context->SignError(DRM_SERVICE_FATAL_ERROR); in ProcessOfflineReleaseResponse()
481 context->SignError(DRM_SERVICE_FATAL_ERROR); in RestoreOfflineMediaKeys()
Dnapi_async_work.cpp71 void ContextBase::SignError(int32_t code) in SignError() function in OHOS::DrmStandard::ContextBase
Dmedia_key_system_napi.cpp541 context->SignError(DRM_SERVICE_FATAL_ERROR); in CheckMediaKeySystemStatus()
551 context->SignError(DRM_SERVICE_FATAL_ERROR); in CheckContextStatus()
579 context->SignError(DRM_SERVICE_FATAL_ERROR); in GenerateKeySystemRequest()
617 context->SignError(DRM_SERVICE_FATAL_ERROR); in ProcessKeySystemResponse()
/foundation/multimedia/drm_framework/services/utils/include/
Dnapi_async_work.h39 void SignError(int32_t code);
/foundation/multimedia/audio_framework/frameworks/js/napi/common/
Dnapi_async_work.h41 void SignError(int32_t code);
Dnapi_async_work.cpp71 void ContextBase::SignError(int32_t code) in SignError() function in OHOS::AudioStandard::ContextBase
/foundation/multimedia/player_framework/frameworks/js/avplayer/
Davplayer_napi.cpp256 promiseCtx->SignError(MSERR_EXT_API9_OPERATE_NOT_PERMIT, in JsPrepare()
329 promiseCtx->SignError(MSERR_EXT_API9_OPERATE_NOT_PERMIT, in JsPlay()
332 promiseCtx->SignError(MSERR_EXT_API9_UNSUPPORT_CAPABILITY, in JsPlay()
403 promiseCtx->SignError(MSERR_EXT_API9_OPERATE_NOT_PERMIT, in JsPause()
473 promiseCtx->SignError(MSERR_EXT_API9_OPERATE_NOT_PERMIT, in JsStop()
542 promiseCtx->SignError(MSERR_EXT_API9_OPERATE_NOT_PERMIT, in JsReset()
1955 … return promiseCtx->SignError(MSERR_EXT_API9_OPERATE_NOT_PERMIT, "avplayer is deconstructed"); in JsGetTrackDescription()
1965 return promiseCtx->SignError(MSERR_EXT_API9_OPERATE_NOT_PERMIT, in JsGetTrackDescription()
2089 promiseCtx->SignError(result.Value().first, result.Value().second); in JsGetCurrentTrack()
2111 promiseCtx->SignError(MSERR_EXT_API9_INVALID_PARAMETER, "track index is not number"); in GetCurrentTrackTask()
[all …]
Davplayer_napi.h313 SignError(result.Value().first, result.Value().second); in CheckTaskResult()
/foundation/multimedia/player_framework/frameworks/js/avrecorder/
Davrecorder_napi.cpp261 asyncCtx->SignError(result.Value().first, result.Value().second); in JsPrepare()
313 asyncCtx->SignError(result.Value().first, result.Value().second); in JsSetOrientationHint()
454 asyncCtx->SignError(result.Value().first, result.Value().second); in JsGetAVRecorderProfile()
558 asyncCtx->SignError(result.Value().first, result.Value().second); in JsSetAVRecorderConfig()
606 asyncCtx->SignError(result.Value().first, result.Value().second); in JsGetAVRecorderConfig()
658 asyncCtx->SignError(result.Value().first, result.Value().second); in JsGetCurrentAudioCapturerInfo()
709 asyncCtx->SignError(result.Value().first, result.Value().second); in JsGetAudioCapturerMaxAmplitude()
760 asyncCtx->SignError(result.Value().first, result.Value().second); in JsGetAvailableEncoder()
941 asyncCtx->SignError(result.Value().first, result.Value().second); in ExecuteByPromise()
1794 SignError(retInfo.first, retInfo.second); in AVRecorderSignError()

12