/ohos5.0/foundation/multimedia/media_library/frameworks/js/src/ |
H A D | moving_photo_napi.cpp | 58 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 D | cloud_media_asset_status_napi.cpp | 56 CHECK_COND_RET(newTarget != nullptr, nullptr, "Invalid call to constructor"); in Constructor() 119 …CHECK_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() 129 …CHECK_COND_RET(status == napi_ok, nullptr, "Failed to unwarp instance of CloudMediaAssetStatusNapi… in NewCloudMediaAssetStatusNapi() 130 …CHECK_COND_RET(cloudMediaAssetStatusNapi != nullptr, nullptr, "cloudMediaAssetStatusNapi is nullpt… in NewCloudMediaAssetStatusNapi()
|
H A D | cloud_enhancement_task_state_napi.cpp | 61 CHECK_COND_RET(newTarget != nullptr, nullptr, "Invalid call to constructor"); in Constructor() 143 …CHECK_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() 153 …CHECK_COND_RET(status == napi_ok, nullptr, "Failed to unwarp instance of CloudEnhancementTaskState… in NewCloudEnhancementTaskStateNapi() 154 …CHECK_COND_RET(cloudEnhancementTaskStateNapi != nullptr, nullptr, "cloudEnhancementTaskStateNapi i… in NewCloudEnhancementTaskStateNapi()
|
H A D | media_asset_change_request_napi.cpp | 161 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 D | medialibrary_napi_utils.cpp | 81 … CHECK_COND_RET(valueType == napi_number, napi_number_expected, "Type is not as expected number"); in GetUInt32() 90 … CHECK_COND_RET(valueType == napi_number, napi_number_expected, "Type is not as expected number"); in GetInt32() 99 … CHECK_COND_RET(valueType == napi_number, napi_number_expected, "Type is not as expected number"); in GetDouble() 108 …CHECK_COND_RET(valueType == napi_boolean, napi_boolean_expected, "Type is not as expected boolean"… in GetParamBool() 131 …CHECK_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() 143 … CHECK_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() 533 …CHECK_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 D | cloud_media_asset_manager_napi.cpp | 73 CHECK_COND_RET(newTarget != nullptr, nullptr, "Failed to check new.target"); in Constructor() 174 … CHECK_COND_RET(valueType == napi_number, napi_number_expected, "Type is not as expected number"); in ParseArgCloudMediaDownloadType() 187 … CHECK_COND_RET(valueType == napi_number, napi_number_expected, "Type is not as expected number"); in ParseArgCloudMediaRetainType()
|
H A D | media_library_napi.cpp | 4674 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 D | media_asset_edit_data_napi.cpp | 56 CHECK_COND_RET(newTarget != nullptr, nullptr, "Failed to check new.target"); in Constructor()
|
H A D | media_assets_change_request_napi.cpp | 92 CHECK_COND_RET(newTarget != nullptr, nullptr, "Failed to check new.target"); in Constructor()
|
H A D | media_asset_manager_napi.cpp | 927 CHECK_COND_RET(status == napi_ok && mapNapiValue != nullptr, nullptr, in GetInfoMapNapiValue() 933 CHECK_COND_RET(status == napi_ok && qualityInfo != nullptr, nullptr, in GetInfoMapNapiValue() 937 …CHECK_COND_RET(status == napi_ok, nullptr, "Failed to set quality property, napi status: %{public}… in GetInfoMapNapiValue() 941 …CHECK_COND_RET(status == napi_ok, nullptr, "Failed to set quality map key-value, napi status: %{pu… in GetInfoMapNapiValue()
|
H A D | highlight_album_napi.cpp | 89 CHECK_COND_RET(newTarget != nullptr, nullptr, "Failed to check new.target"); in Constructor()
|
H A D | cloud_enhancement_napi.cpp | 317 CHECK_COND_RET(newTarget != nullptr, nullptr, "Failed to check new.target"); in Constructor()
|
H A D | media_album_change_request_napi.cpp | 93 CHECK_COND_RET(newTarget != nullptr, nullptr, "Failed to check new.target"); in Constructor()
|
H A D | file_asset_napi.cpp | 521 CHECK_COND_RET(*obj != nullptr, napi_invalid_arg, "Failed to get napi object!"); in GetNapiObject() 4088 …CHECK_COND_RET(MediaLibraryNapiUtils::AsyncContextSetObjectInfo(env, info, asyncContext, ARGS_ZERO… in PhotoAccessHelperGetThumbnail()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/js/src/sendable/ |
H A D | sendable_medialibrary_napi_utils.cpp | 64 … CHECK_COND_RET(valueType == napi_number, napi_number_expected, "Type is not as expected number"); in GetUInt32() 73 … CHECK_COND_RET(valueType == napi_number, napi_number_expected, "Type is not as expected number"); in GetInt32() 82 …CHECK_COND_RET(valueType == napi_boolean, napi_boolean_expected, "Type is not as expected boolean"… in GetParamBool() 91 …CHECK_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() 103 … CHECK_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() 379 … CHECK_COND_RET(HandleSpecialPredicate(context, predicate, fetchOptType) == TRUE, napi_invalid_arg, in GetPredicate() 446 …CHECK_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 D | sendable_photo_access_helper_napi.cpp | 1322 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 D | sendable_file_asset_napi.cpp | 338 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 D | medialibrary_napi_utils.h | 125 #define CHECK_COND_RET(cond, ret, message, ...) \ macro
|