/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_helper_test/src/ |
H A D | moving_photo_file_utils_test.cpp | 112 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 D | moving_photo_processor.cpp | 249 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 D | moving_photo_file_utils.cpp | 402 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 D | base_restore.cpp | 203 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 D | backup_file_utils.cpp | 603 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 D | moving_photo_file_utils.h | 37 const std::string &extraDataPath);
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_scanner/src/scanner/ |
H A D | media_scanner.cpp | 451 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 D | backup_const.h | 301 std::string extraDataPath; member
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_backup_test/src/ |
H A D | medialibrary_backup_test.cpp | 1871 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");
|