/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/include/report/ |
H A D | statistic_processor.h | 35 albumInfoMap[info.lPath].lPath = info.lPath; in ParseTotalCount() 36 albumInfoMap[info.lPath].albumName = info.albumName; in ParseTotalCount() 37 albumInfoMap[info.lPath].totalCount = info.count; in ParseTotalCount() 49 albumInfoMap[info.lPath].lPath = info.lPath; in ParseImageCount() 50 albumInfoMap[info.lPath].albumName = info.albumName; in ParseImageCount() 51 albumInfoMap[info.lPath].imageCount = info.count; in ParseImageCount() 63 albumInfoMap[info.lPath].lPath = info.lPath; in ParseVideoCount() 64 albumInfoMap[info.lPath].albumName = info.albumName; in ParseVideoCount() 65 albumInfoMap[info.lPath].videoCount = info.count; in ParseVideoCount() 77 albumInfoMap[info.lPath].lPath = info.lPath; in ParseCloudCount() [all …]
|
H A D | media_backup_report_data_type.h | 36 std::string lPath; member 162 AlbumNameInfo &SetLPath(const std::string &lPath) in SetLPath() argument 164 this->lPath_ = lPath; in SetLPath() 203 std::string lPath; member
|
H A D | gallery_media_count_statistic.h | 62 …std::vector<AlbumStatisticInfo> QueryAlbumCountByLPath(const std::string &lPath, SearchCondition s… 78 std::vector<AlbumMediaStatisticInfo> GetAlbumInfoByLPath(const std::string &lPath);
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/restore/ |
H A D | photos_restore.cpp | 57 std::string lPath = fileInfo.lPath; in FindAlbumInfo() local 64 fileInfo.lPath.c_str(), in FindAlbumInfo() 65 lPath.c_str(), in FindAlbumInfo() 77 fileInfo.lPath.c_str(), in FindAlbumInfo() 78 lPath.c_str(), in FindAlbumInfo() 93 if (albumInfo.lPath.empty()) { in FindAlbumId() 107 if (albumInfo.lPath.empty()) { in FindlPath() 112 return albumInfo.lPath; in FindlPath() 121 if (albumInfo.lPath.empty()) { in FindPackageName() 135 if (albumInfo.lPath.empty()) { in FindBundleName() [all …]
|
H A D | photo_album_dao.cpp | 67 const std::string lPath = photoAlbum.lPath; in FindUniqueAlbumName() local 85 photoAlbum.lPath.c_str()); in FindUniqueAlbumName() 141 lPath.c_str(), in GetPhotoAlbum() 153 lPath.c_str()); in GetPhotoAlbum() 167 lPath.c_str(), in GetPhotoAlbum() 178 if (album.lPath.empty()) { in GetOrCreatePhotoAlbum() 186 if (!albumRowData.lPath.empty()) { in GetOrCreatePhotoAlbum() 280 if (album.lPath.empty()) { in LoadPhotoAlbums() 320 std::string albumlPath = lPath; in BuildAlbumInfoByLPath() 332 albumInfo.lPath = albumlPath; in BuildAlbumInfoByLPath() [all …]
|
H A D | photos_clone.cpp | 32 ", bundleName: " + fileInfo.bundleName + ", lPath: " + fileInfo.lPath + in ToString() 112 std::string lPath = fileInfo.lPath; in FindAlbumInfo() local 117 islPathMiss = islPathMiss || fileInfo.lPath.empty(); in FindAlbumInfo() 122 fileInfo.lPath.c_str(), in FindAlbumInfo() 123 lPath.c_str(), in FindAlbumInfo() 124 this->ToLower(lPath).c_str(), in FindAlbumInfo() 134 fileInfo.lPath.c_str(), in FindAlbumInfo() 135 lPath.c_str(), in FindAlbumInfo() 140 albumInfo = this->photoAlbumDao_.BuildAlbumInfoByLPath(lPath); in FindAlbumInfo() 150 return albumInfo.lPath; in FindlPath() [all …]
|
H A D | photo_album_restore.cpp | 55 albumInfo.lPath = GetStringVal(this->GALLERY_ALBUM_lPATH, resultSet); in GetGalleryAlbums() 77 uniquePaths.insert(album.lPath); in GetAlbumsToRestore() 88 return uniquePaths.find(album.lPath) == uniquePaths.end(); in GetAlbumsToRestore() 98 albumRowData.lPath = galleryAlbum.lPath; in GetAlbumsToRestore()
|
H A D | photos_dao.cpp | 39 …fileInfo.lPath, maxFileId, fileInfo.displayName, fileInfo.fileSize, pictureFlag, fileInfo.orientat… in FindSameFileInAlbum() 118 if (fileInfo.lPath.empty()) { in FindSameFile() 151 std::string sourcePath = this->SOURCE_PATH_PREFIX + fileInfo.lPath + "/" + fileInfo.displayName; in FindSameFileBySourcePath() 174 …<< ", bundleName: " << fileInfo.bundleName << ", lPath: " << fileInfo.lPath << ", size: " << fileI… in ToString()
|
H A D | photo_album_clone.cpp | 89 info.lPath.c_str(), in TRACE_LOG() 109 albumInfo.lPath.c_str()); in TRACE_LOG()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_backup_test/src/restore/ |
H A D | photo_album_dao_test.cpp | 87 std::string lPath = "/Pictures/其它"; variable 88 PhotoAlbumDao::PhotoAlbumRowData screenRecorderAlbum = photoAlbumDao.GetPhotoAlbum(lPath); 89 EXPECT_EQ(screenRecorderAlbum.lPath, lPath); 100 std::string lPath = AlbumPlugin::LPATH_SCREEN_RECORDS; variable 101 PhotoAlbumDao::PhotoAlbumRowData screenRecorderAlbum = photoAlbumDao.GetPhotoAlbum(lPath); 102 EXPECT_TRUE(screenRecorderAlbum.lPath.empty()); 104 EXPECT_EQ(screenRecorderAlbum.lPath, AlbumPlugin::LPATH_SCREEN_RECORDS); 107 EXPECT_EQ(screenRecorderAlbum.lPath, AlbumPlugin::LPATH_SCREEN_RECORDS); 116 std::string lPath = "/Pictures/example_" + std::to_string(offset); variable 117 this->RunPhotoAlbumCache(lPath); [all …]
|
H A D | photos_clone_test.cpp | 54 fileInfo.lPath = ""; 65 fileInfo.lPath = "/Pictures/Screenshots"; 76 fileInfo.lPath = ""; 81 EXPECT_EQ(albumRowData.lPath, "/DCIM/Camera"); 87 fileInfo.lPath = "/Pictures/其它"; 93 EXPECT_EQ(albumRowData.lPath, "/DCIM/Camera"); 99 fileInfo.lPath = ""; 105 EXPECT_EQ(albumRowData.lPath, "/DCIM/Camera"); 111 fileInfo.lPath = "/Pictures/其它"; 123 fileInfo.lPath = "/Pictures/其它"; [all …]
|
H A D | photos_restore_test.cpp | 52 fileInfo.lPath = ""; 57 EXPECT_EQ(albumRowData.lPath, "/Pictures/Screenrecords"); 63 fileInfo.lPath = "/Pictures/Screenshots"; 68 EXPECT_EQ(albumRowData.lPath, "/Pictures/Screenrecords"); 74 fileInfo.lPath = ""; 79 EXPECT_EQ(albumRowData.lPath, "/DCIM/Camera"); 85 fileInfo.lPath = "/Pictures/hiddenAlbum"; 90 EXPECT_EQ(albumRowData.lPath, "/DCIM/Camera"); 96 fileInfo.lPath = "/Pictures/hiddenAlbum"; 101 EXPECT_EQ(albumRowData.lPath, "/Pictures/Screenrecords");
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_backup_test/include/restore/ |
H A D | photo_album_dao_test.h | 41 void GetPhotoAlbum(const std::string &lPath, int32_t maxLoop) in GetPhotoAlbum() argument 44 this->photoAlbumDao_.GetPhotoAlbum(lPath); in GetPhotoAlbum() 48 void GetOrCreatePhotoAlbum(const std::string &lPath) in GetOrCreatePhotoAlbum() argument 50 auto albumData = this->photoAlbumDao_.BuildAlbumInfoByLPath(lPath); in GetOrCreatePhotoAlbum() 54 void RunPhotoAlbumCache(const std::string &lPath) in RunPhotoAlbumCache() argument 60 … ffrt::submit([this, lPath, maxReadRepeatTimes]() { GetPhotoAlbum(lPath, maxReadRepeatTimes); }, in RunPhotoAlbumCache() 61 {&lPath, &maxReadRepeatTimes}, in RunPhotoAlbumCache() 66 ffrt::submit([this, lPath]() { GetOrCreatePhotoAlbum(lPath); }, in RunPhotoAlbumCache() 67 {&lPath}, in RunPhotoAlbumCache()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/ |
H A D | others_clone_restore.cpp | 470 lPath.replace(lPath.find(source), source.length(), ""); in ParseSourcePathToLPath() 477 lPath.replace(lPath.find(source), source.length(), ""); in ParseSourcePathToLPath() 482 lPath = lPath.substr(startPos); in ParseSourcePathToLPath() 486 lPath = lPath.substr(0, pos); in ParseSourcePathToLPath() 490 lPath = FILE_SEPARATOR; in ParseSourcePathToLPath() 492 if (lPath.empty()) { in ParseSourcePathToLPath() 497 return lPath; in ParseSourcePathToLPath() 501 const std::string &lPath) in AddGalleryAlbum() argument 503 auto pathMatch = [lPath {lPath}](const auto &galleryAlbumInfo) { in AddGalleryAlbum() 504 return galleryAlbumInfo.lPath == lPath; in AddGalleryAlbum() [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/photo_album_operation/ |
H A D | photo_album_lpath_operation.cpp | 223 bool isInvalid = albumInfo.albumId <= 0 || albumInfo.lPath.empty(); in UpdateAlbumInfoFromAlbumPluginByAlbumId() 229 albumInfo.lPath, albumInfo.lPath, albumInfo.lPath, albumInfo.albumId, albumInfo.lPath}; in UpdateAlbumInfoFromAlbumPluginByAlbumId() 245 bool isInvalid = albumInfo.lPath.empty() || albumInfo.albumId <= 0; in UpdateAlbumLPathByAlbumId() 250 …d::vector<NativeRdb::ValueObject> bindArgs = {albumInfo.lPath, albumInfo.albumId, albumInfo.lPath}; in UpdateAlbumLPathByAlbumId() 261 PhotoAlbumInfoPo PhotoAlbumLPathOperation::GetLatestAlbumInfoBylPath(const std::string &lPath) in GetLatestAlbumInfoBylPath() argument 263 if (this->rdbStorePtr_ == nullptr || lPath.empty()) { in GetLatestAlbumInfoBylPath() 267 const std::vector<NativeRdb::ValueObject> bindArgs = {lPath}; in GetLatestAlbumInfoBylPath() 281 PhotoAlbumInfoPo mainAlbumInfo = this->GetLatestAlbumInfoBylPath(subAlbumInfo.lPath); in CleanEmptylPathPhotoAlbum() 283 … mainAlbumInfo.albumId <= 0 || mainAlbumInfo.lPath.empty() || mainAlbumInfo.albumName.empty(); in CleanEmptylPathPhotoAlbum() 331 …bool isInvalid = this->rdbStorePtr_ == nullptr || albumInfo.albumId <= 0 || albumInfo.lPath.empty(… in GetDuplicatelPathAlbumInfoSub() [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/report/ |
H A D | gallery_media_count_statistic.cpp | 465 std::string lPath = ""; in GetAllStatInfo() local 504 std::string lPath = ""; in GetAllImageStatInfo() local 541 std::string lPath = ""; in GetAllVideoStatInfo() local 576 std::string lPath = ""; in GetAllRestoreStatInfo() local 615 std::string lPath = ""; in GetAllRestoreImageStatInfo() local 652 std::string lPath = ""; in GetAllRestoreVideoStatInfo() local 685 std::string lPath = ""; in GetSdCardStatInfo() local 713 std::string lPath = ""; in GetDuplicateStatInfo() local 738 std::string lPath = ""; in GetAppTwinStatInfo() local 779 std::string lPath = ""; in GetImageAlbumInfo() local [all …]
|
H A D | photos_count_statistic.cpp | 282 std::string lPath = ""; in GetAllStatInfo() local 320 std::string lPath = ""; in GetAllImageStatInfo() local 357 std::string lPath = ""; in GetAllVideoStatInfo() local 390 std::string lPath = ""; in GetAllRestoreStatInfo() local 429 std::string lPath = ""; in GetAllRestoreImageStatInfo() local 466 std::string lPath = ""; in GetAllRestoreVideoStatInfo() local 508 std::string lPath = ""; in GetImageAlbumInfo() local 548 std::string lPath = ""; in GetVideoAlbumInfo() local 628 std::string lPath = ""; in GetFavoriteAlbumStatInfo() local 670 std::string lPath = ""; in GetTrashedAlbumStatInfo() local [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/include/restore/ |
H A D | photo_album_dao.h | 35 std::string lPath; member 46 PhotoAlbumRowData GetPhotoAlbum(const std::string &lPath); 51 PhotoAlbumRowData BuildAlbumInfoByLPath(const std::string &lPath); 56 ", lPath: " + albumInfo.lPath + ", bundleName: " + albumInfo.bundleName; in ToString() 62 bool CheckAlbumNameUnique(const std::string &albumName, const std::string &lPath); 65 const std::string &lPath, const int32_t albumType, const int32_t albumSubType);
|
H A D | photo_album_clone.h | 41 bool HasSameAlbum(const std::string &lPath) in HasSameAlbum() argument 44 if (lPath.empty()) { in HasSameAlbum() 47 PhotoAlbumDao::PhotoAlbumRowData albumInfo = this->photoAlbumDao_.GetPhotoAlbum(lPath); in HasSameAlbum() 48 return !albumInfo.lPath.empty(); in HasSameAlbum()
|
H A D | photo_album_restore.h | 33 std::string lPath; member 62 info.lPath.c_str(), in TRACE_LOG() 82 info.lPath.c_str(), in TRACE_LOG()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/po/ |
H A D | photo_album_info_po.h | 30 std::string lPath; variable 44 …<< "albumId: " << this->albumId << ", albumName: " << this->albumName << ", lPath: " << this->lPath in ToString() 60 this->lPath = GetStringVal("lpath", resultSet); in Parse()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/operation/ |
H A D | photo_source_path_operation.cpp | 34 isSkip = isSkip || info.lPath.empty(); in ResetPhotoSourcePath() 41 std::string sourcePath = this->SOURCE_PATH_PREFIX + info.lPath + "/" + info.displayName; in ResetPhotoSourcePath() 73 info.lPath = GetStringVal("lpath", resultSet); in GetPhotoOfMissingSourcePath()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/operation/ |
H A D | photo_source_path_operation.h | 32 std::string lPath; variable 44 … ", albumId: " << this->albumId << ", albumName: " << this->albumName << ", lPath: " << this->lPath in ToString()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_album_fusion_utils.cpp | 1134 lPath = "/Pictures/" + album_name; in QuerySourceAlbumLPath() 1138 if (lPath.empty()) { in QuerySourceAlbumLPath() 1139 lPath = "/Pictures/" + album_name; in QuerySourceAlbumLPath() 1141 MEDIA_ERR_LOG("Album lPath is %{public}s", lPath.c_str()); in QuerySourceAlbumLPath() 1154 std::string lPath = "/Pictures/Users/" + newAlbumName; in BuildAlbumInsertValuesSetName() local 1156 values.PutString(PhotoAlbumColumns::ALBUM_LPATH, lPath); in BuildAlbumInsertValuesSetName() 1174 std::string lPath = ""; in BuildAlbumInsertValues() local 1201 lPath = "/Pictures/Users/" + album_name; in BuildAlbumInsertValues() 1205 values.PutString(PhotoAlbumColumns::ALBUM_LPATH, lPath); in BuildAlbumInsertValues() 1213 std::string lPath = ""; in QueryExistsAlbumId() local [all …]
|
H A D | medialibrary_album_operations.cpp | 1124 lPath = sourcePath.substr(pos1, pos2 - pos1); in GetLPathFromSourcePath() 1130 lPath = AlbumPlugin::LPATH_SCREEN_RECORDS; in GetLPathFromSourcePath() 1162 if (lPath.empty()) { in RecoverAlbum() 1166 if (HasSameLpath(lPath, assetId)) { in RecoverAlbum() 1171 if (lPath.find(userAlbumMark) != string::npos) { in RecoverAlbum() 1180 lPath + "' AND priority = '1'"; in RecoverAlbum() 1184 albumName = lPath.substr(lPath.find_last_of("/") + 1); in RecoverAlbum() 1198 values.PutString(PhotoAlbumColumns::ALBUM_LPATH, lPath); in RecoverAlbum() 1219 string lPath; in RebuildDeletedAlbum() local 1225 GetLPathFromSourcePath(sourcePath, lPath, mediaType); in RebuildDeletedAlbum() [all …]
|