Home
last modified time | relevance | path

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

/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DAppCloningDeviceTest.java22 import static android.scopedstorage.cts.lib.TestUtils.listAs;
59 assertThat(listAs(APP_B_NO_PERMS, dir.getPath())).contains(file.getName()); in testInsertFilesInDirectoryViaMediaProvider()
73 assertThat(listAs(APP_B_NO_PERMS, dir.getPath())).contains(file.getName()); in testInsertFilesInDirectoryViaMediaProviderWithPathSpecified()
83 assertThat(listAs(APP_B_NO_PERMS, dir.getPath())).contains(expectedFile.getName()); in testGetFilesInDirectoryViaMediaProviderRespectsUserId()
85 assertThat(listAs(APP_B_NO_PERMS, dir.getPath())).doesNotContain(notExpectedFile.getName()); in testGetFilesInDirectoryViaMediaProviderRespectsUserId()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java82 import static android.scopedstorage.cts.lib.TestUtils.listAs;
761 assertThat(listAs(APP_B_NO_PERMS, dcimDir.getPath())).contains(TEST_DIRECTORY_NAME); in testListDirectoriesWithMediaFiles()
762 assertThat(listAs(APP_B_NO_PERMS, dir.getPath())).containsExactly(videoFileName); in testListDirectoriesWithMediaFiles()
766 assertThat(listAs(APP_A_HAS_RES, dcimDir.getPath())).contains(TEST_DIRECTORY_NAME); in testListDirectoriesWithMediaFiles()
767 assertThat(listAs(APP_A_HAS_RES, dir.getPath())).containsExactly(videoFileName); in testListDirectoriesWithMediaFiles()
798 assertThat(listAs(APP_B_NO_PERMS, downloadDir.getPath())).contains(TEST_DIRECTORY_NAME); in testListDirectoriesWithNonMediaFiles()
799 assertThat(listAs(APP_B_NO_PERMS, dir.getPath())).containsExactly(pdfFileName); in testListDirectoriesWithNonMediaFiles()
803 assertThat(listAs(APP_A_HAS_RES, downloadDir.getPath())).contains(TEST_DIRECTORY_NAME); in testListDirectoriesWithNonMediaFiles()
804 assertThat(listAs(APP_A_HAS_RES, dir.getPath())).doesNotContain(pdfFileName); in testListDirectoriesWithNonMediaFiles()
830 () -> listAs(APP_A_HAS_RES, getAndroidDataDir().getPath())); in testListFilesFromExternalFilesDirectory()
[all …]
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java51 import static android.scopedstorage.cts.lib.TestUtils.listAs;
606 assertThat(listAs(APP_A_HAS_RES, TestUtils.getExternalStorageDir().getAbsolutePath())) in testLegacyAppCanOwnAFile_hasW()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java279 public static ArrayList<String> listAs(TestApp testApp, String dirPath) throws Exception { in listAs() method in TestUtils