Home
last modified time | relevance | path

Searched refs:getExternalStorageDir (Results 1 – 4 of 4) sorted by relevance

/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java52 import static android.scopedstorage.cts.lib.TestUtils.getExternalStorageDir;
239 final File topLevelPdf = new File(getExternalStorageDir(), NONMEDIA_FILE_NAME); in testManageExternalStorageCanCreateFilesAnywhere()
525 final File shellPdfAtRoot = new File(getExternalStorageDir(), in testAccess_file()
562 File topLevelDir = new File(getExternalStorageDir(), "Test"); in testAccess_directory()
594 assertDirectoryAccess(getExternalStorageDir(),true, false); in testAccess_directory()
595 assertDirectoryAccess(new File(getExternalStorageDir(), "Android"), true, false); in testAccess_directory()
596 assertDirectoryAccess(new File(getExternalStorageDir(), "doesnt/exist"), false, false); in testAccess_directory()
627 final File topLevelPdf = new File(getExternalStorageDir(), NONMEDIA_FILE_NAME); in testManageExternalStorageCanRenameOtherAppsContents()
680 final File otherTopLevelFile = new File(getExternalStorageDir(), in testManageExternalStorageReaddir()
692 assertDirectoryContains(getExternalStorageDir(), otherTopLevelFile); in testManageExternalStorageReaddir()
[all …]
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java44 import static android.scopedstorage.cts.lib.TestUtils.getExternalStorageDir;
196 assertCanCreateFile(new File(TestUtils.getExternalStorageDir(), "LegacyStorageTest.txt")); in testCreateFilesInRandomPlaces_hasW()
226 final File topLevelDir = new File(TestUtils.getExternalStorageDir(), "LegacyStorageTest"); in testMkdirInRandomPlaces_hasW()
248 final File newTxtFile = new File(TestUtils.getExternalStorageDir(), in testCantAccessExternalStorage()
265 final File topLevelDir = new File(TestUtils.getExternalStorageDir(), "LegacyStorageTest"); in testCantAccessExternalStorage()
284 assertThat(TestUtils.getExternalStorageDir().list()).isNull(); in testCantAccessExternalStorage()
350 final File newDir = new File(TestUtils.getExternalStorageDir(), "LegacyStorageTest"); in testReadOnlyExternalStorage_hasR()
411 final File musicFile2 = new File(TestUtils.getExternalStorageDir(), in testCanRename_hasRW()
415 final File nonMediaDir2 = new File(TestUtils.getExternalStorageDir(), in testCanRename_hasRW()
565 final File videoFile = new File(TestUtils.getExternalStorageDir(), VIDEO_FILE_NAME); in testCanDeleteAllFiles_hasRW()
[all …]
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1532 () -> Environment.getExternalStorageState(getExternalStorageDir()) in pollForExternalStorageState()
1626 public static File getExternalStorageDir() { in getExternalStorageDir() method in TestUtils
1696 return new File(getExternalStorageDir(), in getAlarmsDir()
1701 return new File(getExternalStorageDir(), in getAndroidDir()
1706 return new File(getExternalStorageDir(), in getAudiobooksDir()
1711 return new File(getExternalStorageDir(), Environment.DIRECTORY_DCIM); in getDcimDir()
1715 return new File(getExternalStorageDir(), in getDocumentsDir()
1720 return new File(getExternalStorageDir(), in getDownloadDir()
1725 return new File(getExternalStorageDir(), in getMusicDir()
1730 return new File(getExternalStorageDir(), in getMoviesDir()
[all …]
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java65 import static android.scopedstorage.cts.lib.TestUtils.getExternalStorageDir;
380 new File(getExternalStorageDir(), NONMEDIA_FILE_NAME).createNewFile(); in testTypePathConformity()
384 new File(getExternalStorageDir(), AUDIO_FILE_NAME).createNewFile(); in testTypePathConformity()
388 new File(getExternalStorageDir(), IMAGE_FILE_NAME).createNewFile(); in testTypePathConformity()
392 new File(getExternalStorageDir(), VIDEO_FILE_NAME).createNewFile(); in testTypePathConformity()
692 final String[] topLevelDirs = getExternalStorageDir().list(); in testOpendirRestrictions()
1234 new File(getExternalStorageDir(), Environment.DIRECTORY_PODCASTS.toLowerCase()); in testInsertDefaultPrimaryCaseInsensitiveCheck()
1513 final File topLevelImageFile = new File(getExternalStorageDir(), IMAGE_FILE_NAME); in testSystemGalleryAppHasFullAccessToImages()
1555 final File topLevelAudioFile = new File(getExternalStorageDir(), AUDIO_FILE_NAME); in testSystemGalleryAppHasNoFullAccessToAudio()
1594 final File topLevelVideoFile = new File(getExternalStorageDir(), VIDEO_FILE_NAME); in testSystemGalleryCanRenameImagesAndVideos()
[all …]