Home
last modified time | relevance | path

Searched refs:photoPath (Results 1 - 6 of 6) sorted by relevance

/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_helper_test/src/
H A Dphoto_file_utils_test.cpp29 string photoPath = "/storage/cloud/files/Photo/1/IMG_123435213_124.jpg"; in HWTEST_F() local
30 EXPECT_EQ(PhotoFileUtils::GetEditDataDir(photoPath), in HWTEST_F()
32 EXPECT_EQ(PhotoFileUtils::GetEditDataDir(photoPath, -1), in HWTEST_F()
34 EXPECT_EQ(PhotoFileUtils::GetEditDataDir(photoPath, 100), in HWTEST_F()
36 EXPECT_EQ(PhotoFileUtils::GetEditDataDir(photoPath, 101), in HWTEST_F()
42 string photoPath = "/storage/data/test_invalid.jpg"; in HWTEST_F() local
43 EXPECT_EQ(PhotoFileUtils::GetEditDataDir(photoPath), ""); in HWTEST_F()
44 EXPECT_EQ(PhotoFileUtils::GetEditDataDir(photoPath, -1), ""); in HWTEST_F()
45 EXPECT_EQ(PhotoFileUtils::GetEditDataDir(photoPath, 100), ""); in HWTEST_F()
46 EXPECT_EQ(PhotoFileUtils::GetEditDataDir(photoPath, 10 in HWTEST_F()
51 string photoPath = "/storage/cloud/files/Photo/1/IMG_123435213_124.jpg"; HWTEST_F() local
64 string photoPath = "/storage/data/test_invalid.jpg"; HWTEST_F() local
73 string photoPath = "/storage/cloud/files/Photo/1/IMG_123435213_124.jpg"; HWTEST_F() local
86 string photoPath = "/storage/cloud/data/test_invalid.jpg"; HWTEST_F() local
95 string photoPath = "/storage/cloud/files/Photo/1/IMG_123435213_124.jpg"; HWTEST_F() local
108 string photoPath = "/storage/cloud/files/Photo/1/IMG_123435213_124.JPG"; HWTEST_F() local
121 string photoPath = "/storage/cloud/invalid/invalid.jpg"; HWTEST_F() local
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dphoto_file_utils.cpp37 static bool CheckPhotoPath(const string& photoPath) in CheckPhotoPath() argument
39 return photoPath.length() >= ROOT_MEDIA_DIR.length() && MediaFileUtils::StartsWith(photoPath, ROOT_MEDIA_DIR); in CheckPhotoPath()
42 string PhotoFileUtils::GetEditDataDir(const string& photoPath, int32_t userId) in GetEditDataDir() argument
44 if (!CheckPhotoPath(photoPath)) { in GetEditDataDir()
48 return AppendUserId(MEDIA_EDIT_DATA_DIR, userId) + photoPath.substr(ROOT_MEDIA_DIR.length()); in GetEditDataDir()
51 string PhotoFileUtils::GetEditDataPath(const string& photoPath, int32_t userId) in GetEditDataPath() argument
53 string parentPath = GetEditDataDir(photoPath, userId); in GetEditDataPath()
60 string PhotoFileUtils::GetEditDataCameraPath(const string& photoPath, int32_t userId) in GetEditDataCameraPath() argument
62 string parentPath = GetEditDataDir(photoPath, userI in GetEditDataCameraPath()
69 GetEditDataSourcePath(const string& photoPath, int32_t userId) GetEditDataSourcePath() argument
98 GetMetaDataRealPath(const string &photoPath, int32_t userId) GetMetaDataRealPath() argument
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/include/
H A Dphoto_file_utils.h26 EXPORT static std::string GetEditDataDir(const std::string &photoPath, int32_t userId = -1);
27 EXPORT static std::string GetEditDataPath(const std::string &photoPath, int32_t userId = -1);
28 EXPORT static std::string GetEditDataCameraPath(const std::string &photoPath, int32_t userId = -1);
29 EXPORT static std::string GetEditDataSourcePath(const std::string &photoPath, int32_t userId = -1);
32 EXPORT static std::string GetMetaDataRealPath(const std::string &photoPath, int32_t userId = -1);
/foundation/multimedia/media_library/interfaces/kits/js/include/
H A Dmedia_asset_manager_napi.h91 std::string photoPath; member
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/
H A Dmedialibrary_photo_operations.h51 EXPORT static void StoreThumbnailSize(const std::string& photoId, const std::string& photoPath);
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_photo_operations.cpp3254 void MediaLibraryPhotoOperations::StoreThumbnailSize(const string& photoId, const string& photoPath) in StoreThumbnailSize() argument
3270 if (!MediaFileUtils::GetFileSize(GetThumbnailPath(photoPath, THUMBNAIL_LCD_SUFFIX), LCDThumbnailSize)) { in StoreThumbnailSize()
3273 if (!MediaFileUtils::GetFileSize(GetThumbnailPath(photoPath, THUMBNAIL_THUMB_SUFFIX), THMThumbnailSize)) { in StoreThumbnailSize()
3276 if (!MediaFileUtils::GetFileSize(GetThumbnailPath(photoPath, THUMBNAIL_THUMBASTC_SUFFIX), THMASTCThumbnailSize)) { in StoreThumbnailSize()

Completed in 12 milliseconds