Searched refs:otherAppVideoFile (Results 1 – 2 of 2) sorted by relevance
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/ |
D | LegacyStorageTest.java | 830 final File otherAppVideoFile = new File(getDcimDir(), "other_" + VIDEO_FILE_NAME); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates() local 837 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideoFile.getPath())).isTrue(); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates() 838 try (FileOutputStream fos = new FileOutputStream(otherAppVideoFile)) { in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates() 843 assertCanRenameFile(otherAppVideoFile, videoFile, false /* checkDatabase */); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates() 846 assertThat(getFileRowIdFromDatabase(otherAppVideoFile)).isNotEqualTo(-1); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates() 849 otherAppVideoFile.delete(); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates() 859 final File otherAppVideoFile = new File(getDcimDir(), "other_" + VIDEO_FILE_NAME); in testLegacySystemGalleryWithoutWESCannotRename() local 866 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideoFile.getPath())).isTrue(); in testLegacySystemGalleryWithoutWESCannotRename() 869 assertThat(otherAppVideoFile.renameTo(videoFile)).isFalse(); in testLegacySystemGalleryWithoutWESCannotRename() 871 otherAppVideoFile.delete(); in testLegacySystemGalleryWithoutWESCannotRename() [all …]
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | ScopedStorageDeviceTest.java | 1393 final File otherAppVideoFile = new File(getDcimDir(), "other_" + VIDEO_FILE_NAME); in testDisableOpResetForSystemGallery() local 1403 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideoFile.getPath())).isTrue(); in testDisableOpResetForSystemGallery() 1404 assertThat(otherAppVideoFile.exists()).isTrue(); in testDisableOpResetForSystemGallery() 1407 assertCanWriteAndRead(otherAppVideoFile, BYTES_DATA1); in testDisableOpResetForSystemGallery() 1414 assertCanWriteAndRead(otherAppVideoFile, BYTES_DATA2); in testDisableOpResetForSystemGallery() 1418 deleteFileAsNoThrow(APP_B_NO_PERMS, otherAppVideoFile.getAbsolutePath()); in testDisableOpResetForSystemGallery() 1500 final File otherAppVideoFile = new File(getDcimDir(), "other_" + VIDEO_FILE_NAME); in testSystemGalleryCanRenameImagesAndVideos() local 1509 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideoFile.getPath())).isTrue(); in testSystemGalleryCanRenameImagesAndVideos() 1510 assertThat(otherAppVideoFile.exists()).isTrue(); in testSystemGalleryCanRenameImagesAndVideos() 1513 try (FileOutputStream fos = new FileOutputStream(otherAppVideoFile)) { in testSystemGalleryCanRenameImagesAndVideos() [all …]
|