Home
last modified time | relevance | path

Searched refs:extraDataPath (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_helper_test/src/
H A Dmoving_photo_file_utils_test.cpp112 string extraDataPath = dirPath + "/" + "extraData"; variable
113 …ingPhotoFileUtils::ConvertToMovingPhoto(livePhotoPath, imagePath, videoPath, extraDataPath), E_OK);
116 …EXPECT_EQ(CompareIfContentEquals(FILE_TEST_EXTRA_DATA, extraDataPath, sizeof(FILE_TEST_EXTRA_DATA)…
127 string extraDataPath = dirPath + "/" + "extraData"; variable
128 …ingPhotoFileUtils::ConvertToMovingPhoto(livePhotoPath, imagePath, videoPath, extraDataPath), E_OK);
131 …EXPECT_EQ(CompareIfContentEquals(FILE_TEST_EXTRA_DATA, extraDataPath, sizeof(FILE_TEST_EXTRA_DATA)…
273 string extraDataPath = "/storage/cloud/files/.editData/Photo/1/IMG_123435213_231.jpg/extraData"; variable
274 EXPECT_EQ(MovingPhotoFileUtils::GetMovingPhotoExtraDataPath(imagePath), extraDataPath);
287 … string extraDataPath = "/storage/cloud/files/.cache/Photo/1/IMG_123435213_231.jpg/livePhoto.jpg"; variable
288 EXPECT_EQ(MovingPhotoFileUtils::GetLivePhotoCachePath(imagePath), extraDataPath);
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmoving_photo_processor.cpp249 string extraDataPath = MovingPhotoFileUtils::GetMovingPhotoExtraDataPath(imagePath); in GetUpdatedMovingPhotoData() local
267 if (MediaFileUtils::GetFileSize(extraDataPath, extraSize) && extraSize > 0) { in GetUpdatedMovingPhotoData()
274 …if (!MediaFileUtils::IsFileExists(extraDataPath) && MediaFileUtils::CreateAsset(extraDataPath) != … in GetUpdatedMovingPhotoData()
275 …MEDIA_ERR_LOG("Failed to create extraData:%{private}s, errno:%{public}d", extraDataPath.c_str(), e… in GetUpdatedMovingPhotoData()
278 if (!MediaFileUtils::WriteStrToFile(extraDataPath, GetDefaultExtraData())) { in GetUpdatedMovingPhotoData()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmoving_photo_file_utils.cpp402 string extraDataPath = GetMovingPhotoExtraDataPath(movingPhotoImagePath, userId); in ConvertToSourceLivePhoto() local
433 if (MergeFile(imageFd, videoFd, livePhotoFd, extraDataPath, 0) != E_OK) { in ConvertToSourceLivePhoto()
576 const string &movingPhotoVideoPath, const string &extraDataPath) in ConvertToMovingPhoto() argument
584 livePhotoPath.compare(extraDataPath) != 0, E_INVALID_VALUES, "Failed to check dest path"); in ConvertToMovingPhoto()
618 if (!extraDataPath.empty()) { in ConvertToMovingPhoto()
619 …CHECK_AND_RETURN_RET_LOG((err = SendLivePhoto(livePhotoFd, extraDataPath, extraDataSize, offset)) … in ConvertToMovingPhoto()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/
H A Dbase_restore.cpp203 if (!MediaFileUtils::IsFileValid(fileInfo.extraDataPath)) { in IsFileValid()
205 BackupFileUtils::GarbleFilePath(fileInfo.extraDataPath, sceneCode).c_str(), errno); in IsFileValid()
217 (void)MediaFileUtils::DeleteFile(fileInfo.extraDataPath); in RemoveDuplicateDualCloneFiles()
336 if (!PathToRealPath(fileInfo.extraDataPath, absExtraDataPath)) { in SetCoverPosition()
338 fileInfo.extraDataPath.c_str(), errno); in SetCoverPosition()
484 …int32_t errCode = BackupFileUtils::MoveFile(fileInfo.extraDataPath, localExtraDataPath, sceneCode); in MoveExtraData()
487 BackupFileUtils::GarbleFilePath(fileInfo.extraDataPath, sceneCode).c_str(), in MoveExtraData()
H A Dbackup_file_utils.cpp603 addPathSuffix(fileInfo.filePath, ".extra", fileInfo.extraDataPath); in ConvertToMovingPhoto()
605 … fileInfo.filePath, movingPhotoImagePath, fileInfo.movingPhotoVideoPath, fileInfo.extraDataPath); in ConvertToMovingPhoto()
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/include/
H A Dmoving_photo_file_utils.h37 const std::string &extraDataPath);
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/
H A Dmedia_scanner.cpp451 string extraDataPath = MovingPhotoFileUtils::GetMovingPhotoExtraDataPath(imagePath); in GetMovingPhotoFileInfo() local
454 (void)MediaFileUtils::GetFileSize(extraDataPath, extraDataSize); in GetMovingPhotoFileInfo()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/include/
H A Dbackup_const.h301 std::string extraDataPath; member
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_backup_test/src/
H A Dmedialibrary_backup_test.cpp1871 EXPECT_EQ(info.extraDataPath, "/data/test/backup_test_livephoto.jpg.extra");
1875 EXPECT_EQ(MediaFileUtils::CreateFile(info.extraDataPath), true);
1878 EXPECT_EQ(info.extraDataPath, "/data/test/backup_test_livephoto.jpg.extra.dup.extra");