Home
last modified time | relevance | path

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

/cts/hostsidetests/scopedstorage/bypassdatabase/src/android/scopedstorage/cts/bypassdatabase/
DBypassDatabaseOperationsTest.java22 import static android.scopedstorage.cts.lib.TestUtils.deleteFileAs;
244 assertThat(deleteFileAs(app, renamedFile.getAbsolutePath())).isTrue(); in testAppDoesntBypassDatabaseOps()
278 assertThat(deleteFileAs(app, renamedFile.getAbsolutePath())).isTrue(); in testAppBypassesDatabaseOps()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java40 import static android.scopedstorage.cts.lib.TestUtils.deleteFileAs;
288 assertThat(deleteFileAs(APP_A_HAS_READ_MEDIA_ALL, in testManageExternalStorageCantReadWriteOtherAppExternalDir()
1006 assertThat(deleteFileAs(APP_A_HAS_READ_MEDIA_ALL, in testNoIsolatedStorageCantReadWriteOtherAppExternalDir()
1242 deleteFileAs(testApp, file.getPath()); in deleteFilesAs()
1295 assertThat(deleteFileAs(APP_D_LEGACY_HAS_RW, file.getAbsolutePath() + "/tmp.txt")).isTrue(); in createDirectoryAsLegacyApp()
1304 deleteFileAs(APP_D_LEGACY_HAS_RW, file.getAbsolutePath()); in deleteAsLegacyApp()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java45 import static android.scopedstorage.cts.lib.TestUtils.deleteFileAs;
492 assertThat(deleteFileAs(APP_A_HAS_RES, videoFile.getPath())).isFalse(); in testReadWriteFilesInOtherAppExternalDir()
619 assertThat(deleteFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents()
626 assertThat(deleteFileAs(APP_B_NO_PERMS, nonMediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents()
1582 deleteFileAs(APP_B_NO_PERMS, otherAppAudioFile.getPath()); in testSystemGalleryAppHasNoFullAccessToAudio()
1917 assertThat(deleteFileAs(APP_B_NO_PERMS, videoFile.getAbsolutePath())).isTrue(); in testRenameDirectoryNotOwned()
3370 deleteFileAs(testApp, file.getPath()); in deleteFilesAs()
3377 + testApp.getPackageName(), deleteFileAs(testApp, path)); in assertCanDeletePathsAs()
3385 + " was expected to fail", deleteFileAs(testApp, path)); in assertCantDeletePathsAs()
3576 assertThat(deleteFileAs(APP_D_LEGACY_HAS_RW, file.getAbsolutePath() + "/tmp.txt")).isTrue(); in createDirectoryAsLegacyApp()
[all …]
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java419 public static boolean deleteFileAs(TestApp testApp, String path) throws Exception { in deleteFileAs() method in TestUtils
439 return deleteFileAs(testApp, path); in deleteFileAsNoThrow()