Home
last modified time | relevance | path

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

/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DOwnedFilesRule.java20 import static android.scopedstorage.cts.lib.TestUtils.getDcimDir;
45 private static final File sImageFile1 = new File(getDcimDir(), IMAGE_1);
46 private static final File sImageFile2Metadata = new File(getDcimDir(), IMAGE_2);
48 private static final File sVideoFile1 = new File(getDcimDir(), VIDEO_1);
DOtherAppFilesRule.java23 import static android.scopedstorage.cts.lib.TestUtils.getDcimDir;
61 private static final File sImageFile = new File(getDcimDir(), IMAGE_1);
62 private static final File sImageFile2 = new File(getDcimDir(), IMAGE_2);
63 private static final File sVideoFile1 = new File(getDcimDir(), VIDEO_1);
64 private static final File sVideoFile2 = new File(getDcimDir(), VIDEO_2);
82 File buffer = new File(getDcimDir(), "OtherAppFilesRule_buffer_" + NONCE + ".jpg"); in before()
DStorageOwnedFilesTest.java36 import static android.scopedstorage.cts.lib.TestUtils.getDcimDir;
151 File fileToBeDeleted1 = new File(getDcimDir(), TAG + "_delete_1.jpg"); in owned_deleteRequest()
152 File fileToBeDeleted2 = new File(getDcimDir(), TAG + "_delete_2.mp4"); in owned_deleteRequest()
207 File fileToBeInserted = new File(getDcimDir(), filename); in assertInsertFile()
DStorageOtherFilesTest.java41 import static android.scopedstorage.cts.lib.TestUtils.getDcimDir;
199 File fileToBeDeleted1 = new File(getDcimDir(), TAG + "_delete_1.jpg"); in other_deleteRequest()
200 File fileToBeDeleted2 = new File(getDcimDir(), TAG + "_delete_2.jpg"); in other_deleteRequest()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java47 import static android.scopedstorage.cts.lib.TestUtils.getDcimDir;
241 final File imageFileInDcim = new File(getDcimDir(), IMAGE_FILE_NAME); in testManageExternalStorageCanCreateFilesAnywhere()
256 final File otherAppImage = new File(getDcimDir(), "other" + IMAGE_FILE_NAME); in testManageExternalStorageCanReadRedactedContents()
324 final File otherAppImage = new File(getDcimDir(), "other" + IMAGE_FILE_NAME); in testManageExternalStorageCanDeleteOtherAppsContents()
353 final File otherAppImage = new File(getDcimDir(), "other-" + IMAGE_FILE_NAME); in testAccess_OnlyImageFile()
354 final File otherAppVideo = new File(getDcimDir(), "other-" + VIDEO_FILE_NAME); in testAccess_OnlyImageFile()
380 final File otherAppImage = new File(getDcimDir(), "other-" + IMAGE_FILE_NAME); in testAccess_OnlyVideoFile()
381 final File otherAppVideo = new File(getDcimDir(), "other-" + VIDEO_FILE_NAME); in testAccess_OnlyVideoFile()
407 final File otherAppImage = new File(getDcimDir(), "other-" + IMAGE_FILE_NAME); in testAccess_OnlyAudioFile()
408 final File otherAppVideo = new File(getDcimDir(), "other-" + VIDEO_FILE_NAME); in testAccess_OnlyAudioFile()
[all …]
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java59 import static android.scopedstorage.cts.lib.TestUtils.getDcimDir;
292 final File dcimDir = getDcimDir(); in testTypePathConformity()
509 final File imageFile = new File(getDcimDir(), IMAGE_FILE_NAME); in testContributeMediaFile()
686 assertThat(getDcimDir().list()).isNotNull(); in testOpendirRestrictions()
750 final File dcimDir = getDcimDir(); in testListDirectoriesWithMediaFiles()
908 File file = new File(getDcimDir(), displayName); in testOpenFilePathFirstWriteContentResolver()
926 File file = new File(getDcimDir(), displayName); in testOpenContentResolverFirstWriteContentResolver()
944 File file = new File(getDcimDir(), displayName); in testOpenFilePathFirstWriteFilePath()
962 File file = new File(getDcimDir(), displayName); in testOpenContentResolverFirstWriteFilePath()
980 File file = new File(getDcimDir(), displayName); in testOpenContentResolverWriteOnly()
[all …]
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java42 import static android.scopedstorage.cts.lib.TestUtils.getDcimDir;
199 assertCanCreateFile(new File(TestUtils.getDcimDir(), "LegacyStorageTest.mp3")); in testCreateFilesInRandomPlaces_hasW()
380 final File dcimDir = getDcimDir(); in testInsertHiddenFile()
410 final File musicFile1 = new File(TestUtils.getDcimDir(), "LegacyStorageTest.mp3"); in testCanRename_hasRW()
414 final File nonMediaDir1 = new File(TestUtils.getDcimDir(), "LegacyStorageTest"); in testCanRename_hasRW()
538 File directoryOldPath = new File(TestUtils.getDcimDir(), testDirectoryName); in testRenameDirectoryAndUpdateDB_hasW()
626 final File videoFile = new File(TestUtils.getDcimDir(), VIDEO_FILE_NAME); in testCreateAndRenameDoesntLeaveStaleDBRow_hasRW()
627 final File renamedVideoFile = new File(TestUtils.getDcimDir(), in testCreateAndRenameDoesntLeaveStaleDBRow_hasRW()
658 final File imageFile = new File(TestUtils.getDcimDir(), IMAGE_FILE_NAME); in testRenameDoesntInvalidateUri_hasRW()
659 final File temporaryImageFile = new File(TestUtils.getDcimDir(), IMAGE_FILE_NAME + "_.tmp"); in testRenameDoesntInvalidateUri_hasRW()
[all …]
/cts/hostsidetests/scopedstorage/bypassdatabase/src/android/scopedstorage/cts/bypassdatabase/
DBypassDatabaseOperationsTest.java26 import static android.scopedstorage.cts.lib.TestUtils.getDcimDir;
232 final File file = new File(getDcimDir(), IMAGE_FILE_NAME); in testAppDoesntBypassDatabaseOps()
258 final File file = new File(getDcimDir(), IMAGE_FILE_NAME); in testAppBypassesDatabaseOps()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1710 public static File getDcimDir() { in getDcimDir() method in TestUtils
1776 getDcimDir(), in getDefaultTopLevelDirs()
1791 getDcimDir(), in getDefaultTopLevelDirs()