Home
last modified time | relevance | path

Searched refs:extention (Results 1 - 11 of 11) sorted by relevance

/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_audio_operations.cpp209 string extention; in CreateV10() local
218 CHECK_AND_RETURN_RET(GetStringFromValuesBucket(values, ASSET_EXTENTION, extention), E_HAS_DB_ERROR); in CreateV10()
222 displayName = title + "." + extention; in CreateV10()
234 // Check rootdir and extention in CreateV10()
235 int32_t errCode = CheckWithType(isContains, displayName, extention, MediaType::MEDIA_TYPE_AUDIO); in CreateV10()
240 errCode = isContains ? SetAssetPathInCreate(fileAsset) : SetAssetPath(fileAsset, extention); in CreateV10()
H A Dmedialibrary_asset_operations.cpp1016 const string &extention, int32_t mediaType) in CheckWithType()
1018 string name = isContains ? displayName : extention; in CheckWithType()
1021 "Failed to Check Dir and extention, (displayName or extention)=%{private}s, mediaType=%{public}d", in CheckWithType()
1043 int32_t MediaLibraryAssetOperations::CheckExtWithType(const string &extention, int32_t mediaType) in CheckExtWithType() argument
1045 string mimeType = MimeTypeUtils::GetMimeTypeFromExtension(extention); in CheckExtWithType()
1049 mediaType, extention.c_str(), typeFromExt); in CheckExtWithType()
1015 CheckWithType(bool isContains, const string &displayName, const string &extention, int32_t mediaType) CheckWithType() argument
H A Dmedialibrary_photo_operations.cpp632 string extention; in CreateV10() local
640 CHECK_AND_RETURN_RET(GetStringFromValuesBucket(values, ASSET_EXTENTION, extention), E_HAS_DB_ERROR); in CreateV10()
644 displayName = title + "." + extention; in CreateV10()
654 // Check rootdir and extention in CreateV10()
655 int32_t errCode = CheckWithType(isContains, displayName, extention, mediaType); in CreateV10()
660 errCode = isContains ? SetAssetPathInCreate(fileAsset) : SetAssetPath(fileAsset, extention); in CreateV10()
/foundation/multimedia/ringtone_library/services/utils/src/
H A Dringtone_file_utils.cpp112 string extention = SplitByChar(path, '.'); in GetExtensionFromPath() local
113 if (!extention.empty()) { in GetExtensionFromPath()
114 transform(extention.begin(), extention.end(), extention.begin(), ::tolower); in GetExtensionFromPath()
116 return extention; in GetExtensionFromPath()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/
H A Dmedialibrary_asset_operations.h161 const std::string &extention, int32_t mediaType);
163 static int32_t CheckExtWithType(const std::string &extention, int32_t mediaType);
167 EXPORT static int32_t SetAssetPath(FileAsset &fileAsset, const std::string &extention);
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_audio_operations_test/src/
H A Dmedialibrary_audio_operations_test.cpp606 void TestAudioCreateWithExtApi10(const string &extention, int32_t type, int32_t result) in TestAudioCreateWithExtApi10() argument
611 values.PutString("extention", extention); in TestAudioCreateWithExtApi10()
881 string extention = "mp3"; in HWTEST_F() local
883 values.PutString(ASSET_EXTENTION, extention); in HWTEST_F()
/foundation/multimedia/media_library/frameworks/js/src/sendable/
H A Dsendable_photo_access_helper_napi.cpp1448 string extention; in ParseArgsCreatePhotoAssetComponent() local
1449 NAPI_ASSERT(env, SendableMediaLibraryNapiUtils::GetParamStringPathMax(env, context->argv[ARGS_ONE], extention) == in ParseArgsCreatePhotoAssetComponent()
1450 napi_ok, "Failed to get extention"); in ParseArgsCreatePhotoAssetComponent()
1451 context->valuesBucket.Put(ASSET_EXTENTION, extention); in ParseArgsCreatePhotoAssetComponent()
H A Dsendable_file_asset_napi.cpp1119 string extention = MediaFileUtils::SplitByChar(displayName, '.'); in HandleParamSet() local
1120 fileAssetPtr->SetDisplayName(value + "." + extention); in HandleParamSet()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_photo_operations_test/src/
H A Dmedialibrary_photo_operations_test.cpp693 void TestPhotoCreateWithExtApi10(const string &extention, int32_t type, int32_t result) in TestPhotoCreateWithExtApi10() argument
698 values.PutString("extention", extention); in TestPhotoCreateWithExtApi10()
1063 string extention = "jpg"; in HWTEST_F() local
1065 values.PutString(ASSET_EXTENTION, extention); in HWTEST_F()
/foundation/multimedia/media_library/frameworks/js/src/
H A Dmedia_library_napi.cpp5284 string extention; in ParseArgsCreateAudioAssetComponent() local
5285 NAPI_ASSERT(env, MediaLibraryNapiUtils::GetParamStringPathMax(env, context->argv[ARGS_ONE], extention) == in ParseArgsCreateAudioAssetComponent()
5286 napi_ok, "Failed to get extention"); in ParseArgsCreateAudioAssetComponent()
5287 context->valuesBucket.Put(ASSET_EXTENTION, extention); in ParseArgsCreateAudioAssetComponent()
H A Dfile_asset_napi.cpp2959 string extention = MediaFileUtils::SplitByChar(displayName, '.'); in HandleParamSet() local
2960 fileAssetPtr->SetDisplayName(value + "." + extention); in HandleParamSet()

Completed in 52 milliseconds