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.java43 import static android.scopedstorage.cts.lib.TestUtils.getExternalStorageDir;
187 final File topLevelPdf = new File(getExternalStorageDir(), NONMEDIA_FILE_NAME); in testManageExternalStorageCanCreateFilesAnywhere()
259 final File shellPdfAtRoot = new File(getExternalStorageDir(), in testAccess_file()
296 File topLevelDir = new File(getExternalStorageDir(), "Test"); in testAccess_directory()
327 assertDirectoryAccess(getExternalStorageDir(),true, false); in testAccess_directory()
328 assertDirectoryAccess(new File(getExternalStorageDir(), "Android"), true, false); in testAccess_directory()
329 assertDirectoryAccess(new File(getExternalStorageDir(), "doesnt/exist"), false, false); in testAccess_directory()
360 final File topLevelPdf = new File(getExternalStorageDir(), NONMEDIA_FILE_NAME); in testManageExternalStorageCanRenameOtherAppsContents()
413 final File otherTopLevelFile = new File(getExternalStorageDir(), in testManageExternalStorageReaddir()
425 assertDirectoryContains(getExternalStorageDir(), otherTopLevelFile); in testManageExternalStorageReaddir()
[all …]
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java186 … assertCanCreateFile(new File(TestUtils.getExternalStorageDir(), "LegacyFileAccessTest.txt")); in testCreateFilesInRandomPlaces_hasW()
216 … final File topLevelDir = new File(TestUtils.getExternalStorageDir(), "LegacyFileAccessTest"); in testMkdirInRandomPlaces_hasW()
238 final File newTxtFile = new File(TestUtils.getExternalStorageDir(), in testCantAccessExternalStorage()
255 … final File topLevelDir = new File(TestUtils.getExternalStorageDir(), "LegacyFileAccessTest"); in testCantAccessExternalStorage()
274 assertThat(TestUtils.getExternalStorageDir().list()).isNull(); in testCantAccessExternalStorage()
340 final File newDir = new File(TestUtils.getExternalStorageDir(), "LegacyFileAccessTest"); in testReadOnlyExternalStorage_hasR()
401 final File musicFile2 = new File(TestUtils.getExternalStorageDir(), in testCanRename_hasRW()
405 final File nonMediaDir2 = new File(TestUtils.getExternalStorageDir(), in testCanRename_hasRW()
538 final File videoFile = new File(TestUtils.getExternalStorageDir(), VIDEO_FILE_NAME); in testCanDeleteAllFiles_hasRW()
574 final File videoFile = new File(TestUtils.getExternalStorageDir(), VIDEO_FILE_NAME); in testLegacyAppCanOwnAFile_hasW()
[all …]
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1056 () -> Environment.getExternalStorageState(getExternalStorageDir()) in pollForExternalStorageState()
1150 public static File getExternalStorageDir() { in getExternalStorageDir() method in TestUtils
1208 return new File(getExternalStorageDir(), in getAlarmsDir()
1213 return new File(getExternalStorageDir(), in getAndroidDir()
1218 return new File(getExternalStorageDir(), in getAudiobooksDir()
1223 return new File(getExternalStorageDir(), Environment.DIRECTORY_DCIM); in getDcimDir()
1227 return new File(getExternalStorageDir(), in getDocumentsDir()
1232 return new File(getExternalStorageDir(), in getDownloadDir()
1237 return new File(getExternalStorageDir(), in getMusicDir()
1242 return new File(getExternalStorageDir(), in getMoviesDir()
[all …]
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageDeviceTest.java60 import static android.scopedstorage.cts.lib.TestUtils.getExternalStorageDir;
359 new File(getExternalStorageDir(), NONMEDIA_FILE_NAME).createNewFile(); in testTypePathConformity()
363 new File(getExternalStorageDir(), AUDIO_FILE_NAME).createNewFile(); in testTypePathConformity()
367 new File(getExternalStorageDir(), IMAGE_FILE_NAME).createNewFile(); in testTypePathConformity()
371 new File(getExternalStorageDir(), VIDEO_FILE_NAME).createNewFile(); in testTypePathConformity()
671 final String[] topLevelDirs = getExternalStorageDir().list(); in testOpendirRestrictions()
1155 new File(getExternalStorageDir(), Environment.DIRECTORY_PODCASTS.toLowerCase()); in testInsertDefaultPrimaryCaseInsensitiveCheck()
1426 final File topLevelImageFile = new File(getExternalStorageDir(), IMAGE_FILE_NAME); in testSystemGalleryAppHasFullAccessToImages()
1464 final File topLevelAudioFile = new File(getExternalStorageDir(), AUDIO_FILE_NAME); in testSystemGalleryAppHasNoFullAccessToAudio()
1503 final File topLevelVideoFile = new File(getExternalStorageDir(), VIDEO_FILE_NAME); in testSystemGalleryCanRenameImagesAndVideos()
[all …]