Home
last modified time | relevance | path

Searched refs:CHECK_COND_RET (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/foundation/multimedia/media_library/frameworks/js/src/
H A Dmoving_photo_napi.cpp58 CHECK_COND_RET(newTarget != nullptr, nullptr, "Invalid call to constructor"); in Constructor()
243 CHECK_COND_RET(HandleFd(imageFd), imageFd, "Open source image file failed"); in RequestContentToSandbox()
245 CHECK_COND_RET(ret == E_OK, ret, "Write image to sandbox failed"); in RequestContentToSandbox()
249 CHECK_COND_RET(HandleFd(videoFd), videoFd, "Open source video file failed"); in RequestContentToSandbox()
251 CHECK_COND_RET(ret == E_OK, ret, "Write video to sandbox failed"); in RequestContentToSandbox()
257 CHECK_COND_RET(ret == E_OK, ret, "Write video to sandbox failed"); in RequestContentToSandbox()
273 CHECK_COND_RET(HandleFd(fd), fd, "Open source image file failed"); in AcquireFdForArrayBuffer()
278 CHECK_COND_RET(HandleFd(fd), fd, "Open source video file failed"); in AcquireFdForArrayBuffer()
282 CHECK_COND_RET(HandleFd(fd), fd, "Open source video file failed"); in AcquireFdForArrayBuffer()
482 CHECK_COND_RET(instance != nullptr, nullptr, "Instance is nullptr"); in NewMovingPhotoNapi()
[all …]
H A Dcloud_media_asset_status_napi.cpp56 CHECK_COND_RET(newTarget != nullptr, nullptr, "Invalid call to constructor"); in Constructor()
119CHECK_COND_RET(status == napi_ok, nullptr, "Failed to get reference of constructor, napi status: %… in NewCloudMediaAssetStatusNapi()
122 CHECK_COND_RET(status == napi_ok, nullptr, in NewCloudMediaAssetStatusNapi()
125 CHECK_COND_RET(instance != nullptr, nullptr, "Instance is nullptr"); in NewCloudMediaAssetStatusNapi()
129CHECK_COND_RET(status == napi_ok, nullptr, "Failed to unwarp instance of CloudMediaAssetStatusNapi… in NewCloudMediaAssetStatusNapi()
130CHECK_COND_RET(cloudMediaAssetStatusNapi != nullptr, nullptr, "cloudMediaAssetStatusNapi is nullpt… in NewCloudMediaAssetStatusNapi()
H A Dcloud_enhancement_task_state_napi.cpp61 CHECK_COND_RET(newTarget != nullptr, nullptr, "Invalid call to constructor"); in Constructor()
143CHECK_COND_RET(status == napi_ok, nullptr, "Failed to get reference of constructor, napi status: %… in NewCloudEnhancementTaskStateNapi()
146 CHECK_COND_RET(status == napi_ok, nullptr, in NewCloudEnhancementTaskStateNapi()
149 CHECK_COND_RET(instance != nullptr, nullptr, "Instance is nullptr"); in NewCloudEnhancementTaskStateNapi()
153CHECK_COND_RET(status == napi_ok, nullptr, "Failed to unwarp instance of CloudEnhancementTaskState… in NewCloudEnhancementTaskStateNapi()
154CHECK_COND_RET(cloudEnhancementTaskStateNapi != nullptr, nullptr, "cloudEnhancementTaskStateNapi i… in NewCloudEnhancementTaskStateNapi()
H A Dmedia_asset_change_request_napi.cpp161 CHECK_COND_RET(newTarget != nullptr, nullptr, "Failed to check new.target"); in Constructor()
583 CHECK_COND_RET(result == napi_ok, result, "Failed to get value type"); in ParseAssetCreateOptions()
587 CHECK_COND_RET(result == napi_ok, result, "Failed to get int32_t"); in ParseAssetCreateOptions()
592 CHECK_COND_RET(result == napi_ok, result, "Failed to get bool"); in ParseAssetCreateOptions()
598 CHECK_COND_RET(result == napi_ok, result, "Failed to get string"); in ParseAssetCreateOptions()
1705 CHECK_COND_RET(isValid, E_FAIL, "Failed to get title"); in CreateAssetBySecurityComponent()
1795 CHECK_COND_RET(!data.empty(), E_FAIL, "Failed to check data"); in PutMediaAssetEditData()
1818 CHECK_COND_RET( in SubmitCache()
1830 CHECK_COND_RET(ret == E_OK, ret, "Failed to put editData"); in SubmitCache()
2286 CHECK_COND_RET(fileAsset != nullptr, false, "Failed to check fileAsset"); in AddFiltersExecute()
[all …]
H A Dmedialibrary_napi_utils.cpp81CHECK_COND_RET(valueType == napi_number, napi_number_expected, "Type is not as expected number"); in GetUInt32()
90CHECK_COND_RET(valueType == napi_number, napi_number_expected, "Type is not as expected number"); in GetInt32()
99CHECK_COND_RET(valueType == napi_number, napi_number_expected, "Type is not as expected number"); in GetDouble()
108CHECK_COND_RET(valueType == napi_boolean, napi_boolean_expected, "Type is not as expected boolean"… in GetParamBool()
131CHECK_COND_RET(valueType == napi_function, napi_function_expected, "Type is not as expected functi… in GetParamFunction()
140 CHECK_COND_RET(buffer != nullptr, napi_invalid_arg, "Failed to alloc buffer for parameter"); in GetParamStr()
143CHECK_COND_RET(valueType == napi_string, napi_string_expected, "Type is not as expected string"); in GetParamStr()
181 CHECK_COND_RET(isArray, napi_array_expected, "Expected array type"); in GetStringArray()
533CHECK_COND_RET(asyncContext->objectInfo != nullptr, napi_invalid_arg, "Failed to get object info"); in AsyncContextSetObjectInfo()
545 CHECK_COND_RET(asyncContext->argc >= minArgs && asyncContext->argc <= maxArgs, napi_invalid_arg, in AsyncContextGetArgs()
[all …]
H A Dcloud_media_asset_manager_napi.cpp73 CHECK_COND_RET(newTarget != nullptr, nullptr, "Failed to check new.target"); in Constructor()
174CHECK_COND_RET(valueType == napi_number, napi_number_expected, "Type is not as expected number"); in ParseArgCloudMediaDownloadType()
187CHECK_COND_RET(valueType == napi_number, napi_number_expected, "Type is not as expected number"); in ParseArgCloudMediaRetainType()
H A Dmedia_library_napi.cpp4674 CHECK_COND_RET(result == napi_ok, result, "failed to get value type"); in ParsePhotoAssetCreateOption()
4678 CHECK_COND_RET(result == napi_ok, result, "failed to get int32_t"); in ParsePhotoAssetCreateOption()
4683 CHECK_COND_RET(result == napi_ok, result, "failed to get bool"); in ParsePhotoAssetCreateOption()
4689 CHECK_COND_RET(result == napi_ok, result, "failed to get string"); in ParsePhotoAssetCreateOption()
4717 CHECK_COND_RET(result == napi_ok, result, "failed to get value type"); in ParseCreateOptions()
4721 CHECK_COND_RET(result == napi_ok, result, "failed to get int32_t"); in ParseCreateOptions()
4726 CHECK_COND_RET(result == napi_ok, result, "failed to get bool"); in ParseCreateOptions()
4732 CHECK_COND_RET(result == napi_ok, result, "failed to get string"); in ParseCreateOptions()
5079 CHECK_COND_RET(result == napi_ok, result, "failed to get value type"); in ParseCreateConfig()
5089 CHECK_COND_RET(result == napi_ok, result, "failed to get string"); in ParseCreateConfig()
[all …]
H A Dmedia_asset_edit_data_napi.cpp56 CHECK_COND_RET(newTarget != nullptr, nullptr, "Failed to check new.target"); in Constructor()
H A Dmedia_assets_change_request_napi.cpp92 CHECK_COND_RET(newTarget != nullptr, nullptr, "Failed to check new.target"); in Constructor()
H A Dmedia_asset_manager_napi.cpp927 CHECK_COND_RET(status == napi_ok && mapNapiValue != nullptr, nullptr, in GetInfoMapNapiValue()
933 CHECK_COND_RET(status == napi_ok && qualityInfo != nullptr, nullptr, in GetInfoMapNapiValue()
937CHECK_COND_RET(status == napi_ok, nullptr, "Failed to set quality property, napi status: %{public}… in GetInfoMapNapiValue()
941CHECK_COND_RET(status == napi_ok, nullptr, "Failed to set quality map key-value, napi status: %{pu… in GetInfoMapNapiValue()
H A Dhighlight_album_napi.cpp89 CHECK_COND_RET(newTarget != nullptr, nullptr, "Failed to check new.target"); in Constructor()
H A Dcloud_enhancement_napi.cpp317 CHECK_COND_RET(newTarget != nullptr, nullptr, "Failed to check new.target"); in Constructor()
H A Dmedia_album_change_request_napi.cpp93 CHECK_COND_RET(newTarget != nullptr, nullptr, "Failed to check new.target"); in Constructor()
H A Dfile_asset_napi.cpp521 CHECK_COND_RET(*obj != nullptr, napi_invalid_arg, "Failed to get napi object!"); in GetNapiObject()
4088CHECK_COND_RET(MediaLibraryNapiUtils::AsyncContextSetObjectInfo(env, info, asyncContext, ARGS_ZERO… in PhotoAccessHelperGetThumbnail()
/ohos5.0/foundation/multimedia/media_library/frameworks/js/src/sendable/
H A Dsendable_medialibrary_napi_utils.cpp64CHECK_COND_RET(valueType == napi_number, napi_number_expected, "Type is not as expected number"); in GetUInt32()
73CHECK_COND_RET(valueType == napi_number, napi_number_expected, "Type is not as expected number"); in GetInt32()
82CHECK_COND_RET(valueType == napi_boolean, napi_boolean_expected, "Type is not as expected boolean"… in GetParamBool()
91CHECK_COND_RET(valueType == napi_function, napi_function_expected, "Type is not as expected functi… in GetParamFunction()
100 CHECK_COND_RET(buffer != nullptr, napi_invalid_arg, "Failed to alloc buffer for parameter"); in GetParamStr()
103CHECK_COND_RET(valueType == napi_string, napi_string_expected, "Type is not as expected string"); in GetParamStr()
141 CHECK_COND_RET(isArray, napi_array_expected, "Expected array type"); in GetStringArray()
379CHECK_COND_RET(HandleSpecialPredicate(context, predicate, fetchOptType) == TRUE, napi_invalid_arg, in GetPredicate()
446CHECK_COND_RET(asyncContext->objectInfo != nullptr, napi_invalid_arg, "Failed to get object info"); in AsyncContextSetObjectInfo()
458 CHECK_COND_RET(asyncContext->argc >= minArgs && asyncContext->argc <= maxArgs, napi_invalid_arg, in AsyncContextGetArgs()
[all …]
H A Dsendable_photo_access_helper_napi.cpp1322 CHECK_COND_RET(result == napi_ok, result, "failed to check named property"); in ParsePhotoAssetCreateOption()
1328 CHECK_COND_RET(result == napi_ok, result, "failed to get named property"); in ParsePhotoAssetCreateOption()
1331 CHECK_COND_RET(result == napi_ok, result, "failed to get value type"); in ParsePhotoAssetCreateOption()
1335 CHECK_COND_RET(result == napi_ok, result, "failed to get int32_t"); in ParsePhotoAssetCreateOption()
1340 CHECK_COND_RET(result == napi_ok, result, "failed to get bool"); in ParsePhotoAssetCreateOption()
1346 CHECK_COND_RET(result == napi_ok, result, "failed to get string"); in ParsePhotoAssetCreateOption()
1408 CHECK_COND_RET(result == napi_ok, result, "failed to get named property"); in ParseCreateOptions()
1411 CHECK_COND_RET(result == napi_ok, result, "failed to get value type"); in ParseCreateOptions()
1415 CHECK_COND_RET(result == napi_ok, result, "failed to get int32_t"); in ParseCreateOptions()
1420 CHECK_COND_RET(result == napi_ok, result, "failed to get bool"); in ParseCreateOptions()
[all …]
H A Dsendable_file_asset_napi.cpp338 CHECK_COND_RET(*obj != nullptr, napi_invalid_arg, "Failed to get napi object!"); in GetNapiObject()
1219 CHECK_COND_RET(SendableMediaLibraryNapiUtils::AsyncContextSetObjectInfo(env, info, in PhotoAccessHelperGetThumbnail()
/ohos5.0/foundation/multimedia/media_library/interfaces/kits/js/include/
H A Dmedialibrary_napi_utils.h125 #define CHECK_COND_RET(cond, ret, message, ...) \ macro