/ohos5.0/foundation/multimedia/media_library/interfaces/inner_api/media_library_helper/include/ |
H A D | medialibrary_type_const.h | 200 const std::string ROOT_MEDIA_DIR = "/storage/cloud/files/"; variable 204 const std::string MEDIA_CACHE_DIR = ROOT_MEDIA_DIR + ".cache/"; 205 const std::string MEDIA_EDIT_DATA_DIR = ROOT_MEDIA_DIR + ".editData/"; 248 ROOT_MEDIA_DIR + CAMERA_DIR_VALUES, 249 ROOT_MEDIA_DIR + VIDEO_DIR_VALUES, 250 ROOT_MEDIA_DIR + PIC_DIR_VALUES, 251 ROOT_MEDIA_DIR + PHOTO_BUCKET, 252 ROOT_MEDIA_DIR + BACKUP_SINGLE_DATA_DIR_VALUE, 253 ROOT_MEDIA_DIR + THUMB_DIR_VALUE, 254 ROOT_MEDIA_DIR + CACHE_DIR_VALUE, [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/ |
H A D | scanner_utils.cpp | 133 dir = ROOT_MEDIA_DIR; in GetRootMediaDir() 193 if (path.length() <= ROOT_MEDIA_DIR.length()) { in CheckSkipScanList() 204 { ROOT_MEDIA_DIR + AUDIO }, in CheckSkipScanList() 205 { ROOT_MEDIA_DIR + CAMERA }, in CheckSkipScanList() 206 { ROOT_MEDIA_DIR + Pictures }, in CheckSkipScanList() 207 { ROOT_MEDIA_DIR + Videos }, in CheckSkipScanList() 208 { ROOT_MEDIA_DIR + Doc }, in CheckSkipScanList() 209 { ROOT_MEDIA_DIR + Download }, in CheckSkipScanList()
|
H A D | media_scanner.cpp | 328 if (parentPath.find(ROOT_MEDIA_DIR) != 0) { in SetPhotoSubType() 332 size_t len = ROOT_MEDIA_DIR.length(); in SetPhotoSubType() 365 size_t len = ROOT_MEDIA_DIR.length(); in GetParentDirInfo() 368 if (parentPath.find(ROOT_MEDIA_DIR) != 0) { in GetParentDirInfo() 386 if (parent == ROOT_MEDIA_DIR) { in GetParentDirInfo() 507 if (path_.find(ROOT_MEDIA_DIR + PHOTO_BUCKET) != string::npos) { in BuildData() 734 metadata.SetRelativePath(relativePath.erase(0, ROOT_MEDIA_DIR.length())); in InsertOrUpdateAlbumInfo() 762 ROOT_MEDIA_DIR + PHOTO_BUCKET); in CleanupDirectory() 765 ROOT_MEDIA_DIR + AUDIO_BUCKET); in CleanupDirectory() 935 ret = mediaScannerDb_->RecordError(ROOT_MEDIA_DIR); in Start() [all …]
|
H A D | media_scanner_db.cpp | 486 { ROOT_MEDIA_DIR + PHOTO_BUCKET, OperationObject::FILESYSTEM_PHOTO }, in GetOprnObjectFromPath() 487 { ROOT_MEDIA_DIR + AUDIO_BUCKET, OperationObject::FILESYSTEM_AUDIO }, in GetOprnObjectFromPath() 489 { ROOT_MEDIA_DIR + PIC_DIR_VALUES, OperationObject::FILESYSTEM_PHOTO }, in GetOprnObjectFromPath() 490 { ROOT_MEDIA_DIR + AUDIO_DIR_VALUES, OperationObject::FILESYSTEM_AUDIO }, in GetOprnObjectFromPath() 491 { ROOT_MEDIA_DIR + VIDEO_DIR_VALUES, OperationObject::FILESYSTEM_PHOTO }, in GetOprnObjectFromPath() 492 { ROOT_MEDIA_DIR + CAMERA_DIR_VALUES, OperationObject::FILESYSTEM_PHOTO } in GetOprnObjectFromPath() 792 if ((path + "/").find(ROOT_MEDIA_DIR) != 0) { in ReadAlbums()
|
H A D | media_scanner_manager.cpp | 179 MediaScannerDb::GetDatabaseInstance()->DeleteError(ROOT_MEDIA_DIR); in Stop()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/mediascanner_test/src/ |
H A D | mediascanner_unit_test.cpp | 66 int result = mediaScannerManager->ScanDir(ROOT_MEDIA_DIR, scannerCallback); 88 string path = ROOT_MEDIA_DIR + "Pictures/Scanner_Image1.jpg"; 114 string path = ROOT_MEDIA_DIR + "Pictures/Scanner_Image2.png"; 140 string path = ROOT_MEDIA_DIR + "Pictures/Scanner_Image3.jpeg"; 166 string path = ROOT_MEDIA_DIR + "Docs/Documents/Scanner_Text1.txt"; 193 string path = ROOT_MEDIA_DIR + "Docs/Download/.HiddenFile"; 218 string path = ROOT_MEDIA_DIR + "../files"; 243 string path = ROOT_MEDIA_DIR + "../files/Pictures/Canonical1.jpg"; 269 string path = ROOT_MEDIA_DIR + "../files/Docs/Documents/Canonical2.txt";
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
H A D | photo_file_utils.cpp | 30 if (userId < 0 || !MediaFileUtils::StartsWith(path, ROOT_MEDIA_DIR)) { in AppendUserId() 34 return "/storage/cloud/" + to_string(userId) + "/files/" + path.substr(ROOT_MEDIA_DIR.length()); in AppendUserId() 39 …return photoPath.length() >= ROOT_MEDIA_DIR.length() && MediaFileUtils::StartsWith(photoPath, ROOT… in CheckPhotoPath() 48 return AppendUserId(MEDIA_EDIT_DATA_DIR, userId) + photoPath.substr(ROOT_MEDIA_DIR.length()); in GetEditDataDir()
|
H A D | media_file_utils.cpp | 519 string dirPath = ROOT_MEDIA_DIR + PHOTO_BUCKET; in BackupPhotoDir() 523 string suffixName = dirPath.substr(ROOT_MEDIA_DIR.length()); in BackupPhotoDir() 524 CreateDirectory(ROOT_MEDIA_DIR + MEDIALIBRARY_TEMP_DIR); in BackupPhotoDir() 525 CopyDirAndDelSrc(dirPath, ROOT_MEDIA_DIR + MEDIALIBRARY_TEMP_DIR + SLASH_STR + suffixName); in BackupPhotoDir() 531 string recoverPath = ROOT_MEDIA_DIR + MEDIALIBRARY_TEMP_DIR + SLASH_STR + PHOTO_BUCKET; in RecoverMediaTempDir() 552 CopyDirAndDelSrc(fullPath, ROOT_MEDIA_DIR + PHOTO_BUCKET + suffixName); in RecoverMediaTempDir() 554 DeleteDir(ROOT_MEDIA_DIR + MEDIALIBRARY_TEMP_DIR); in RecoverMediaTempDir()
|
H A D | moving_photo_file_utils.cpp | 741 …if (imagePath.length() < ROOT_MEDIA_DIR.length() || !MediaFileUtils::StartsWith(imagePath, ROOT_ME… in GetMovingPhotoExtraDataDir() 744 return AppendUserId(MEDIA_EXTRA_DATA_DIR, userId) + imagePath.substr(ROOT_MEDIA_DIR.length()); in GetMovingPhotoExtraDataDir() 768 …if (imagePath.length() < ROOT_MEDIA_DIR.length() || !MediaFileUtils::StartsWith(imagePath, ROOT_ME… in GetLivePhotoCacheDir() 771 return AppendUserId(MEDIA_CACHE_DIR, userId) + imagePath.substr(ROOT_MEDIA_DIR.length()); in GetLivePhotoCacheDir()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_thumbnail/include/ |
H A D | thumbnail_const.h | 169 if (path.length() < ROOT_MEDIA_DIR.length()) { in GetThumbnailPath() 173 return ROOT_MEDIA_DIR + ".thumbs/" + path.substr(ROOT_MEDIA_DIR.length()) + "/" + key + suffix; in GetThumbnailPath() 210 if (path.length() < ROOT_MEDIA_DIR.length()) { in GetSandboxPath() 214 …std::string suffixStr = path.substr(ROOT_MEDIA_DIR.length()) + "/" + GetThumbSuffix(type) + suffix; in GetSandboxPath()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_scanner_db_test/src/ |
H A D | medialibrary_scanner_db_test.cpp | 136 metadata.SetRelativePath(relativePath.erase(0, ROOT_MEDIA_DIR.length())); 162 metadata.SetRelativePath(relativePath.erase(0, ROOT_MEDIA_DIR.length())); 211 metadata.SetRelativePath(relativePath.erase(0, ROOT_MEDIA_DIR.length())); 291 metadata.SetRelativePath(relativePath.erase(0, ROOT_MEDIA_DIR.length())); 318 metadata.SetRelativePath(relativePath.erase(0, ROOT_MEDIA_DIR.length()));
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_helper_test/src/ |
H A D | media_file_utils_test.cpp | 420 string filePath = ROOT_MEDIA_DIR; 426 string filePath = ROOT_MEDIA_DIR + DOCS_PATH; 428 filePath = ROOT_MEDIA_DIR + AUDIO_DIR_VALUES; 446 string filePath = ROOT_MEDIA_DIR; 452 string filePath = ROOT_MEDIA_DIR + PHOTO_BUCKET; 454 filePath = ROOT_MEDIA_DIR + PIC_DIR_VALUES; 456 filePath = ROOT_MEDIA_DIR + VIDEO_DIR_VALUES; 458 filePath = ROOT_MEDIA_DIR + CAMERA_DIR_VALUES; 464 string filePath = ROOT_MEDIA_DIR + AUDIO_DIR_VALUES;
|
H A D | native_album_asset_test.cpp | 67 const string TEST_ALBUM_PATH = ROOT_MEDIA_DIR + PIC_DIR_VALUES + TEST_ALBUM_NAME;
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_smartalbum_map_operations.cpp | 137 string rootPath = ROOT_MEDIA_DIR + dirAsset.GetDirectory(); in GetAssetRecycle() 228 if ((path.find(srcRelPath) != 0) && (path.find(ROOT_MEDIA_DIR + srcRelPath) != 0)) { in GetNewPath() 232 if (path.find(ROOT_MEDIA_DIR) != string::npos) { in GetNewPath() 233 newPath = ROOT_MEDIA_DIR + newPath; in GetNewPath() 303 int32_t parentId = MediaLibraryObjectUtils::CreateDirWithPath(ROOT_MEDIA_DIR + in RecycleDir() 381 int32_t parentId = MediaLibraryObjectUtils::CreateDirWithPath(ROOT_MEDIA_DIR + in RecycleFile()
|
H A D | medialibrary_asset_operations.cpp | 316 ROOT_MEDIA_DIR + PHOTO_BUCKET, in DeleteToolOperation() 317 ROOT_MEDIA_DIR + AUDIO_BUCKET, in DeleteToolOperation() 318 ROOT_MEDIA_DIR + CAMERA_DIR_VALUES, in DeleteToolOperation() 319 ROOT_MEDIA_DIR + VIDEO_DIR_VALUES, in DeleteToolOperation() 320 ROOT_MEDIA_DIR + PIC_DIR_VALUES, in DeleteToolOperation() 321 ROOT_MEDIA_DIR + AUDIO_DIR_VALUES, in DeleteToolOperation() 322 ROOT_MEDIA_DIR + ".thumbs", in DeleteToolOperation() 323 ROOT_MEDIA_DIR + ".editData" in DeleteToolOperation() 336 string photoThumbsPath = ROOT_MEDIA_DIR + ".thumbs/Photo"; in DeleteToolOperation() 1446 if (path.length() < ROOT_MEDIA_DIR.length()) { in GetEditDataDirPath() [all …]
|
H A D | medialibrary_object_utils.cpp | 233 path = ROOT_MEDIA_DIR + relativePath + displayName; in BuildFileAsset() 246 dirAsset = GetDirAsset(ROOT_MEDIA_DIR + relativePath); in BuildFileAsset() 319 if (slashIndex == string::npos || lastPath.length() <= ROOT_MEDIA_DIR.length()) { in GetLastDirExistInDb() 355 if (parentPath.length() > ROOT_MEDIA_DIR.length()) { in SetDirValuesByPath() 356 relativePath = parentPath.substr(ROOT_MEDIA_DIR.length()) + "/"; in SetDirValuesByPath() 386 if ((parentId == 0) && ((parentPath + "/") != ROOT_MEDIA_DIR)) { in InsertDirToDbRecursively() 1083 if (path.length() > ROOT_MEDIA_DIR.length()) { in GetRelativePathFromFilePath() 1084 relativePath = path.substr(ROOT_MEDIA_DIR.length()); in GetRelativePathFromFilePath() 1582 if (path.find(ROOT_MEDIA_DIR) == 0) { in GetRelativePathFromPath() 1583 relativePath = path.substr(ROOT_MEDIA_DIR.length()); in GetRelativePathFromPath()
|
H A D | medialibrary_data_manager.cpp | 184 const unordered_set<string> DIR_CHECK_SET = { ROOT_MEDIA_DIR + BACKUP_DATA_DIR_VALUE, in MakeRootDirs() 185 ROOT_MEDIA_DIR + BACKUP_SINGLE_DATA_DIR_VALUE }; in MakeRootDirs() 189 valuesBucket.PutString(MEDIA_DATA_DB_FILE_PATH, ROOT_MEDIA_DIR + dir); in MakeRootDirs() 197 MediaFileUtils::CheckDirStatus(DIR_CHECK_SET, ROOT_MEDIA_DIR + dir); in MakeRootDirs() 776 return MediaScannerManager::GetInstance()->ScanDir(ROOT_MEDIA_DIR, nullptr); in Insert()
|
H A D | medialibrary_file_operations.cpp | 167 string dstFilePath = ROOT_MEDIA_DIR + dstReFilePath + dstFileName; in ModifyFileOperation()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | thumbnail_source_loading.cpp | 94 if (path.length() < ROOT_MEDIA_DIR.length()) { in GetLocalThumbnailPath() 98 …return LOCAL_MEDIA_PATH + ((key == "") ? "" : ".thumbs/") + path.substr(ROOT_MEDIA_DIR.length()) +… in GetLocalThumbnailPath() 103 if (path.length() < ROOT_MEDIA_DIR.length()) { in GetLcdExPath() 107 return ROOT_MEDIA_DIR + ".thumbs/" + path.substr(ROOT_MEDIA_DIR.length()) + suffix; in GetLcdExPath()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_scanner/src/ |
H A D | medialibrary_scan.cpp | 93 valuesBucket.Put(MEDIA_DATA_DB_FILE_PATH, ROOT_MEDIA_DIR); in main()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_scanner/include/scanner/ |
H A D | media_scanner_manager.h | 38 void ErrorRecord(const std::string &path = ROOT_MEDIA_DIR);
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_file_extension/src/ |
H A D | media_file_extention_utils.cpp | 151 string relativePath = albumPath.substr(ROOT_MEDIA_DIR.size()) + SLASH_CHAR; in CreateFile() 190 string dirPath = ROOT_MEDIA_DIR + relativePath + displayName; in Mkdir() 829 filePath = ROOT_MEDIA_DIR; in SetScanFileSelection() 1108 string path = ROOT_MEDIA_DIR + relativePath; in GetFileInfoFromRelativePath() 1150 if (path.length() > ROOT_MEDIA_DIR.length()) { in GetRelativePathFromPath() 1151 relativePath = path.substr(ROOT_MEDIA_DIR.length()); in GetRelativePathFromPath() 1219 string parentPath = ROOT_MEDIA_DIR + fileAsset->GetRelativePath(); in HandleAlbumRename() 1328 string destPath = ROOT_MEDIA_DIR + destRelativePath + fileAsset->GetDisplayName(); in HandleAlbumMove() 1340 string srcParentPath = ROOT_MEDIA_DIR + fileAsset->GetRelativePath(); in HandleAlbumMove() 1342 string destParentPath = ROOT_MEDIA_DIR + destRelativePath; in HandleAlbumMove() [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_manager/ |
H A D | media_library_manager.cpp | 407 if (tempPath.find(ROOT_MEDIA_DIR) != 0) { in GetFilePathFromUri() 410 string relativePath = tempPath.substr((ROOT_MEDIA_DIR + DOCS_PATH).length()); in GetFilePathFromUri() 435 if (tempPath.find(ROOT_MEDIA_DIR) != 0) { in GetUriFromFilePath() 438 string relativePath = tempPath.substr((ROOT_MEDIA_DIR + DOCS_PATH).length()); in GetUriFromFilePath() 468 if (path.length() < ROOT_MEDIA_DIR.length()) { in GetSandboxPath() 473 std::string suffixStr = path.substr(ROOT_MEDIA_DIR.length()) + "/"; in GetSandboxPath()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_scanner_test/src/ |
H A D | medialibrary_scanner_test.cpp | 179 EXPECT_EQ(path, ROOT_MEDIA_DIR);
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_unittest_utils/src/ |
H A D | medialibrary_unittest_utils.cpp | 188 dirPath = ROOT_MEDIA_DIR + displayName; in CreateAlbum()
|