Home
last modified time | relevance | path

Searched refs:CHECK_AND_RETURN_RET (Results 1 - 25 of 105) sorted by relevance

12345

/foundation/multimedia/player_framework/frameworks/js/common/
H A Dcommon_napi.cpp206 CHECK_AND_RETURN_RET(GetPropertyInt32(env, value, "fd", rawFd.fd) == true, false); in GetFdArgument()
382 CHECK_AND_RETURN_RET(obj != nullptr && meta != nullptr, false); in SetPropertyByValueType()
383 CHECK_AND_RETURN_RET(meta->Find(key) != meta->end(), false); in SetPropertyByValueType()
413 CHECK_AND_RETURN_RET(obj != nullptr, false); in AddRangeProperty()
417 CHECK_AND_RETURN_RET(status == napi_ok, false); in AddRangeProperty()
419 CHECK_AND_RETURN_RET(SetPropertyInt32(env, range, "min", min) == true, false); in AddRangeProperty()
420 CHECK_AND_RETURN_RET(SetPropertyInt32(env, range, "max", max) == true, false); in AddRangeProperty()
424 CHECK_AND_RETURN_RET(status == napi_ok, false); in AddRangeProperty()
427 CHECK_AND_RETURN_RET(status == napi_ok, false); in AddRangeProperty()
435 CHECK_AND_RETURN_RET(ob in AddArrayProperty()
[all...]
/foundation/multimedia/player_framework/frameworks/js/avrecorder/
H A Davrecorder_napi.cpp391 CHECK_AND_RETURN_RET(napi != nullptr && napi->recorder_ != nullptr && config != nullptr, in GetPrepareTask()
394 CHECK_AND_RETURN_RET(napi->CheckStateMachine(option) == MSERR_OK, in GetPrepareTask()
398 CHECK_AND_RETURN_RET(retinfo.first == MSERR_OK, ((void)napi->recorder_->Reset(), retinfo)); in GetPrepareTask()
401 CHECK_AND_RETURN_RET(ret == MSERR_OK, ((void)napi->recorder_->Reset(), GetRetInfo(ret, "Prepare", ""))); in GetPrepareTask()
418 CHECK_AND_RETURN_RET(napi != nullptr && napi->recorder_ != nullptr && config != nullptr, in GetSetOrientationHintTask()
421 CHECK_AND_RETURN_RET(napi->CheckStateMachine(option) == MSERR_OK, in GetSetOrientationHintTask()
597 CHECK_AND_RETURN_RET(napi != nullptr && profile != nullptr, in GetAVRecorderProfileTask()
600 CHECK_AND_RETURN_RET(napi->CheckStateMachine(option) == MSERR_OK, in GetAVRecorderProfileTask()
626 CHECK_AND_RETURN_RET(napi != nullptr && napi->recorder_ != nullptr && config != nullptr,
629 CHECK_AND_RETURN_RET(nap
[all...]
H A Davrecorder_callback.cpp438 CHECK_AND_RETURN_RET((ret = napi_create_object(env, &result)) == napi_ok, ret); in GetJsResult()
441 CHECK_AND_RETURN_RET(setRet == true, napi_generic_failure); in GetJsResult()
443 CHECK_AND_RETURN_RET(setRet == true, napi_generic_failure); in GetJsResult()
445 CHECK_AND_RETURN_RET(setRet == true, napi_generic_failure); in GetJsResult()
447 CHECK_AND_RETURN_RET(setRet == true, napi_generic_failure); in GetJsResult()
451 CHECK_AND_RETURN_RET((ret = napi_create_object(env, &captureInfo)) == napi_ok, ret); in GetJsResult()
452 CHECK_AND_RETURN_RET((ret = napi_create_array_with_length(env, 1, &deviceDescriptors)) == napi_ok, ret); in GetJsResult()
453 CHECK_AND_RETURN_RET((ret = SetAudioCapturerInfo(env, captureInfo, result)) == napi_ok, ret); in GetJsResult()
454 CHECK_AND_RETURN_RET((ret = SetDeviceInfo(env, deviceDescriptors, result)) == napi_ok, ret); in GetJsResult()
464 CHECK_AND_RETURN_RET(setRe in SetAudioCapturerInfo()
[all...]
/foundation/multimedia/player_framework/frameworks/js/recorder/
H A Drecorder_capability_napi.cpp274 CHECK_AND_RETURN_RET(profile != nullptr, false); in ExtractAudioRecorderProfile()
279 CHECK_AND_RETURN_RET(ret != false, false); in ExtractAudioRecorderProfile()
281 CHECK_AND_RETURN_RET(ret != false, false); in ExtractAudioRecorderProfile()
283 CHECK_AND_RETURN_RET(ret != false, false); in ExtractAudioRecorderProfile()
289 CHECK_AND_RETURN_RET(!value_.empty(), napi_generic_failure); in GetJsResult()
292 CHECK_AND_RETURN_RET(status == napi_ok, status); in GetJsResult()
326 CHECK_AND_RETURN_RET(!value_.empty(), napi_generic_failure); in GetJsResult()
329 CHECK_AND_RETURN_RET(status == napi_ok, status); in GetJsResult()
380 CHECK_AND_RETURN_RET(value_ != nullptr, napi_generic_failure); in GetJsResult()
381 CHECK_AND_RETURN_RET((re in GetJsResult()
[all...]
/foundation/multimedia/camera_framework/services/camera_service/binder/server/src/
H A Dhcamera_service_callback_stub.cpp27 CHECK_AND_RETURN_RET(data.ReadInterfaceToken() == GetDescriptor(), errCode); in OnRemoteRequest()
69 CHECK_AND_RETURN_RET(data.ReadInterfaceToken() == GetDescriptor(), errCode); in OnRemoteRequest()
94 CHECK_AND_RETURN_RET(data.ReadInterfaceToken() == GetDescriptor(), errCode); in OnRemoteRequest()
119 CHECK_AND_RETURN_RET(data.ReadInterfaceToken() == GetDescriptor(), errCode); in OnRemoteRequest()
H A Dhstream_capture_stub.cpp30 CHECK_AND_RETURN_RET(data.ReadInterfaceToken() == GetDescriptor(), errCode); in OnRemoteRequest()
32 CHECK_AND_RETURN_RET(errCode == CAMERA_OK, errCode); in OnRemoteRequest()
89 CHECK_AND_RETURN_RET(CheckSystemApp(), CAMERA_NO_PERMISSION); in HandleConfirmCapture()
131 CHECK_AND_RETURN_RET(CheckSystemApp(), CAMERA_NO_PERMISSION); in HandleEnableDeferredType()
H A Dhstream_depth_data_stub.cpp31 CHECK_AND_RETURN_RET(data.ReadInterfaceToken() == GetDescriptor(), errCode); in OnRemoteRequest()
33 CHECK_AND_RETURN_RET(errCode == CAMERA_OK, errCode); in OnRemoteRequest()
H A Dhstream_metadata_stub.cpp30 CHECK_AND_RETURN_RET(data.ReadInterfaceToken() == GetDescriptor(), errCode); in OnRemoteRequest()
32 CHECK_AND_RETURN_RET(errCode == CAMERA_OK, errCode); in OnRemoteRequest()
H A Dhstream_metadata_callback_stub.cpp28 CHECK_AND_RETURN_RET(data.ReadInterfaceToken() == GetDescriptor(), errCode); in OnRemoteRequest()
H A Dhstream_depth_data_callback_stub.cpp28 CHECK_AND_RETURN_RET(data.ReadInterfaceToken() == GetDescriptor(), errCode); in OnRemoteRequest()
H A Dhcapture_session_callback_stub.cpp28 CHECK_AND_RETURN_RET(data.ReadInterfaceToken() == GetDescriptor(), errCode); in OnRemoteRequest()
/foundation/multimedia/player_framework/services/engine/histreamer/avmetadatahelper/
H A Davmetadatahelper_impl.cpp113 CHECK_AND_RETURN_RET(res == Status::OK, ""); in ResolveMetadata()
121 CHECK_AND_RETURN_RET(res == Status::OK, {}); in ResolveMetadata()
129 CHECK_AND_RETURN_RET(res == Status::OK, nullptr); in FetchArtPicture()
137 CHECK_AND_RETURN_RET(res == Status::OK, nullptr); in GetAVMetadata()
146 CHECK_AND_RETURN_RET(res == Status::OK, nullptr); in FetchFrameAtTime()
155 CHECK_AND_RETURN_RET(res == Status::OK, nullptr); in FetchFrameYuv()
/foundation/multimedia/player_framework/frameworks/js/avtranscoder/
H A Davtranscoder_napi.cpp285 CHECK_AND_RETURN_RET(napi != nullptr && napi->transCoder_ != nullptr && config != nullptr, in GetPrepareTask()
288 CHECK_AND_RETURN_RET(napi->CheckStateMachine(option) == MSERR_OK, in GetPrepareTask()
292 CHECK_AND_RETURN_RET(retinfo.first == MSERR_OK, ((void)napi->transCoder_->Cancel(), retinfo)); in GetPrepareTask()
295 CHECK_AND_RETURN_RET(ret == MSERR_OK, ((void)napi->transCoder_->Cancel(), GetReturnRet(ret, "Prepare", ""))); in GetPrepareTask()
417 CHECK_AND_RETURN_RET(napi != nullptr && napi->transCoder_ != nullptr, in GetPromiseTask()
420 CHECK_AND_RETURN_RET(napi->CheckStateMachine(option) == MSERR_OK, in GetPromiseTask()
423 CHECK_AND_RETURN_RET(napi->CheckRepeatOperation(option) == MSERR_OK, in GetPromiseTask()
643 CHECK_AND_RETURN_RET(ret == MSERR_OK, GetReturnRet(ret, "Start", "")); in Start()
651 CHECK_AND_RETURN_RET(ret == MSERR_OK, GetReturnRet(ret, "Pause", "")); in Pause()
659 CHECK_AND_RETURN_RET(re in Resume()
[all...]
/foundation/multimedia/player_framework/frameworks/js/avscreen_capture/
H A Davscreen_capture_napi.cpp536 CHECK_AND_RETURN_RET(napi != nullptr && napi->screenCapture_ != nullptr, in GetInitTask()
540 CHECK_AND_RETURN_RET(ret == MSERR_OK, ((void)napi->screenCapture_->Release(), GetReturnInfo(ret, "Init", ""))); in GetInitTask()
553 CHECK_AND_RETURN_RET(napi != nullptr && napi->screenCapture_ != nullptr, in GetSkipPrivacyModeTask()
556 CHECK_AND_RETURN_RET(ret == MSERR_OK, GetReturnInfo(MSERR_UNKNOWN, option, "")); in GetSkipPrivacyModeTask()
569 CHECK_AND_RETURN_RET(napi != nullptr && napi->screenCapture_ != nullptr, in GetSetMicrophoneEnableTask()
573 CHECK_AND_RETURN_RET(ret == MSERR_OK, GetReturnInfo(MSERR_UNKNOWN, option, "")); in GetSetMicrophoneEnableTask()
599 CHECK_AND_RETURN_RET(ret == MSERR_OK, GetReturnInfo(ret, "SetPrivacyAuthorityEnabled", ""));
601 CHECK_AND_RETURN_RET(ret == MSERR_OK, GetReturnInfo(ret, "StartRecording", ""));
608 CHECK_AND_RETURN_RET(ret == MSERR_OK, GetReturnInfo(ret, "StopRecording", ""));
615 CHECK_AND_RETURN_RET(re
[all...]
/foundation/multimedia/player_framework/services/services/avmetadatahelper/server/
H A Davmetadatahelper_server.cpp82 CHECK_AND_RETURN_RET(res == MSERR_OK, res); in SetSource()
105 CHECK_AND_RETURN_RET(res == MSERR_OK, res); in SetSource()
127 CHECK_AND_RETURN_RET(res == MSERR_OK, res); in SetSource()
166 CHECK_AND_RETURN_RET(currState_ == HELPER_PREPARED || currState_ == HELPER_CALL_DONE, err); in ResolveMetadata()
187 CHECK_AND_RETURN_RET(currState_ == HELPER_PREPARED || currState_ == HELPER_CALL_DONE, err); in ResolveMetadata()
205 CHECK_AND_RETURN_RET(currState_ == HELPER_PREPARED || currState_ == HELPER_CALL_DONE, err); in GetAVMetadata()
223 CHECK_AND_RETURN_RET(currState_ == HELPER_PREPARED || currState_ == HELPER_CALL_DONE, err); in FetchArtPicture()
247 CHECK_AND_RETURN_RET(currState_ == HELPER_PREPARED || currState_ == HELPER_CALL_DONE, err); in FetchFrameAtTime()
316 CHECK_AND_RETURN_RET(currState_ == HELPER_PREPARED || currState_ == HELPER_CALL_DONE, err); in GetTimeByFrameIndex()
332 CHECK_AND_RETURN_RET(currState in GetFrameIndexByTime()
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_audio_operations.cpp158 CHECK_AND_RETURN_RET(GetStringFromValuesBucket(values, AudioColumn::MEDIA_NAME, displayName), in CreateV9()
163 CHECK_AND_RETURN_RET(GetStringFromValuesBucket(values, AudioColumn::MEDIA_RELATIVE_PATH, relativePath), in CreateV9()
169 CHECK_AND_RETURN_RET(GetInt32FromValuesBucket(values, AudioColumn::MEDIA_TYPE, mediaType), in CreateV9()
218 CHECK_AND_RETURN_RET(GetStringFromValuesBucket(values, ASSET_EXTENTION, extention), E_HAS_DB_ERROR); in CreateV10()
229 CHECK_AND_RETURN_RET(GetInt32FromValuesBucket(values, AudioColumn::MEDIA_TYPE, mediaType), in CreateV10()
231 CHECK_AND_RETURN_RET(mediaType == MediaType::MEDIA_TYPE_AUDIO, E_CHECK_MEDIATYPE_FAIL); in CreateV10()
236 CHECK_AND_RETURN_RET(errCode == E_OK, errCode); in CreateV10()
239 CHECK_AND_RETURN_RET(errCode == E_OK, errCode); in CreateV10()
253 CHECK_AND_RETURN_RET(ret == E_OK, ret); in CreateV10()
/foundation/multimedia/player_framework/services/services/sa_media/ipc/
H A Dmedia_parcel.cpp76 CHECK_AND_RETURN_RET(DoMarshalling(parcel, it->second[index]), false); in Marshalling()
91 CHECK_AND_RETURN_RET(size <= MAX_PARCEL_SIZE, false); in DoUnmarshalling()
136 CHECK_AND_RETURN_RET(vecSize <= MAX_PARCEL_SIZE, false); in Unmarshalling()
/foundation/multimedia/image_effect/frameworks/native/capi/
H A Dnative_common_utils.cpp108 CHECK_AND_RETURN_RET(AnyCastOHAny(any, value->dataType, ImageEffect_DataType::EFFECT_DATA_TYPE_INT32, in SwitchToOHAny()
110 CHECK_AND_RETURN_RET(AnyCastOHAny(any, value->dataType, ImageEffect_DataType::EFFECT_DATA_TYPE_FLOAT, in SwitchToOHAny()
112 CHECK_AND_RETURN_RET(AnyCastOHAny(any, value->dataType, ImageEffect_DataType::EFFECT_DATA_TYPE_DOUBLE, in SwitchToOHAny()
114 CHECK_AND_RETURN_RET(AnyCastOHAny(any, value->dataType, ImageEffect_DataType::EFFECT_DATA_TYPE_CHAR, in SwitchToOHAny()
116 CHECK_AND_RETURN_RET(AnyCastOHAny(any, value->dataType, ImageEffect_DataType::EFFECT_DATA_TYPE_LONG, in SwitchToOHAny()
118 CHECK_AND_RETURN_RET(AnyCastOHAny(any, value->dataType, ImageEffect_DataType::EFFECT_DATA_TYPE_PTR, in SwitchToOHAny()
120 CHECK_AND_RETURN_RET(AnyCastOHAny(any, value->dataType, ImageEffect_DataType::EFFECT_DATA_TYPE_BOOL, in SwitchToOHAny()
/foundation/multimedia/camera_framework/frameworks/native/camera/src/session/
H A Dmacro_video_session.cpp36 CHECK_AND_RETURN_RET(ret == CameraErrorCode::SUCCESS, ret); in CommitConfig()
H A Dmacro_photo_session.cpp35 CHECK_AND_RETURN_RET(ret == CameraErrorCode::SUCCESS, ret); in CommitConfig()
/foundation/multimedia/av_codec/test/unittest/video_test/video_test/common/include/
H A Dav_codec_sample_log.h52 #define CHECK_AND_RETURN_RET(cond, ret) \ macro
/foundation/multimedia/player_framework/services/services/media_data_source/ipc/
H A Dmedia_data_source_stub.cpp44 CHECK_AND_RETURN_RET(memory != nullptr, MSERR_INVALID_VAL); in ReadFromParcel()
83 CHECK_AND_RETURN_RET(ret == MSERR_OK, ret); in OnRemoteRequest()
/foundation/multimedia/audio_framework/services/audio_service/client/src/
H A Daudio_process_proxy.cpp37 CHECK_AND_RETURN_RET(ret, AUDIO_ERR); in OnRemoteRequest()
212 CHECK_AND_RETURN_RET(ret == AUDIO_OK, ret, "failed, ipc error: %{public}d", ret); in RegisterThreadPriority()
214 CHECK_AND_RETURN_RET(ret == SUCCESS, ret, "failed, error: %{public}d", ret); in RegisterThreadPriority()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/photo_album_test/src/
H A Dphoto_album_test.cpp176 CHECK_AND_RETURN_RET(resultSet->GetRowCount(count) == E_OK, E_HAS_DB_ERROR); in QueryAlbumById()
178 CHECK_AND_RETURN_RET(resultSet->GoToFirstRow() == E_OK, E_HAS_DB_ERROR); in QueryAlbumById()
246 CHECK_AND_RETURN_RET(resultSet->GetRowCount(count) == E_OK, E_HAS_DB_ERROR); in GetAlbumOrder()
248 CHECK_AND_RETURN_RET(resultSet->GoToFirstRow() == E_OK, E_HAS_DB_ERROR); in GetAlbumOrder()
/foundation/multimedia/camera_framework/services/camera_service/binder/server/src/window_manager_service_callback_stub_impl/
H A Dhcamera_window_manager_callback_stub.cpp27 CHECK_AND_RETURN_RET(data.ReadInterfaceToken() == GetDescriptor(), errCode); in OnRemoteRequest()

Completed in 16 milliseconds

12345