Home
last modified time | relevance | path

Searched refs:createFileAs (Results 1 – 5 of 5) sorted by relevance

/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java30 import static android.scopedstorage.cts.lib.TestUtils.createFileAs;
234 assertThat(createFileAs(APP_B_NO_PERMS, otherAppPdf.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents()
235 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents()
236 assertThat(createFileAs(APP_B_NO_PERMS, otherAppMusic.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents()
266 assertThat(createFileAs(APP_B_NO_PERMS, otherAppPdf.getPath())).isTrue(); in testAccess_file()
267 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testAccess_file()
303 assertThat(createFileAs(APP_B_NO_PERMS, otherAppExternalDataFile.getAbsolutePath())) in testAccess_directory()
364 assertThat(createFileAs(APP_B_NO_PERMS, otherAppPdf.getPath())).isTrue(); in testManageExternalStorageCanRenameOtherAppsContents()
923 assertThat(createFileAs(testApp, newFile.getPath())).isTrue(); in createAndCheckFileAsApp()
933 + testApp.getPackageName(), createFileAs(testApp, file.getPath())); in assertCreateFilesAs()
[all …]
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DBypassDatabaseOperationsTest.java21 import static android.scopedstorage.cts.lib.TestUtils.createFileAs;
267 assertThat(createFileAs(app, file.getAbsolutePath())).isTrue(); in testAppDoesntBypassDatabaseOps()
293 assertThat(createFileAs(app, file.getAbsolutePath())).isTrue(); in testAppBypassesDatabaseOps()
DScopedStorageDeviceTest.java42 import static android.scopedstorage.cts.lib.TestUtils.createFileAs;
556 assertThat(createFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantAccessOtherAppsContents()
557 assertThat(createFileAs(APP_B_NO_PERMS, nonMediaFile.getPath())).isTrue(); in testCantAccessOtherAppsContents()
582 assertThat(createFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents()
590 assertThat(createFileAs(APP_B_NO_PERMS, nonMediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents()
738 assertThat(createFileAs(APP_B_NO_PERMS, videoFile.getPath())).isTrue(); in testListDirectoriesWithMediaFiles()
773 assertThat(createFileAs(APP_B_NO_PERMS, pdfFile.getPath())).isTrue(); in testListDirectoriesWithNonMediaFiles()
1399 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImageFile.getPath())).isTrue(); in testDisableOpResetForSystemGallery()
1403 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideoFile.getPath())).isTrue(); in testDisableOpResetForSystemGallery()
1433 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImageFile.getPath())).isTrue(); in testSystemGalleryAppHasFullAccessToImages()
[all …]
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java31 import static android.scopedstorage.cts.lib.TestUtils.createFileAs;
551 assertThat(createFileAs(APP_B_NO_PERMS, otherAppPdfFile.getAbsolutePath())).isTrue(); in testCanDeleteAllFiles_hasRW()
837 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideoFile.getPath())).isTrue(); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates()
866 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideoFile.getPath())).isTrue(); in testLegacySystemGalleryWithoutWESCannotRename()
886 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideoFile.getPath())).isTrue(); in testLegacyWESCanRenameImagesAndVideosWithDbUpdates_hasW()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java273 public static boolean createFileAs(TestApp testApp, String path) throws Exception { in createFileAs() method in TestUtils
1037 assertThat(createFileAs(testApp, file.getPath())).isTrue(); in canReadWriteFilesInDirs()