Searched refs:deleteFileAs (Results 1 – 4 of 4) sorted by relevance
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | BypassDatabaseOperationsTest.java | 22 import static android.scopedstorage.cts.lib.TestUtils.deleteFileAs; 276 assertThat(deleteFileAs(app, renamedFile.getAbsolutePath())).isTrue(); in testAppDoesntBypassDatabaseOps() 310 assertThat(deleteFileAs(app, renamedFile.getAbsolutePath())).isTrue(); in testAppBypassesDatabaseOps()
|
D | ScopedStorageDeviceTest.java | 43 import static android.scopedstorage.cts.lib.TestUtils.deleteFileAs; 471 assertThat(deleteFileAs(APP_A_HAS_RES, videoFile.getPath())).isFalse(); in testReadWriteFilesInOtherAppExternalDir() 598 assertThat(deleteFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents() 605 assertThat(deleteFileAs(APP_B_NO_PERMS, nonMediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents() 1491 deleteFileAs(APP_B_NO_PERMS, otherAppAudioFile.getPath()); in testSystemGalleryAppHasNoFullAccessToAudio() 1788 assertThat(deleteFileAs(APP_B_NO_PERMS, videoFile.getAbsolutePath())).isTrue(); in testRenameDirectoryNotOwned() 3072 deleteFileAs(testApp, file.getPath()); in deleteFilesAs() 3079 + testApp.getPackageName(), deleteFileAs(testApp, path)); in assertCanDeletePathsAs() 3087 + " was expected to fail", deleteFileAs(testApp, path)); in assertCantDeletePathsAs() 3273 assertThat(deleteFileAs(APP_D_LEGACY_HAS_RW, file.getAbsolutePath() + "/tmp.txt")).isTrue(); in createDirectoryAsLegacyApp() [all …]
|
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/ |
D | ScopedStorageTest.java | 31 import static android.scopedstorage.cts.lib.TestUtils.deleteFileAs; 217 assertThat(deleteFileAs(APP_A_HAS_RES, otherAppExternalDataFile.getPath())).isTrue(); in testManageExternalStorageCantReadWriteOtherAppExternalDir() 724 assertThat(deleteFileAs(APP_A_HAS_RES, otherAppExternalDataFile.getPath())).isTrue(); in testNoIsolatedStorageCantReadWriteOtherAppExternalDir() 956 deleteFileAs(testApp, file.getPath()); in deleteFilesAs() 1088 assertThat(deleteFileAs(APP_D_LEGACY_HAS_RW, file.getAbsolutePath() + "/tmp.txt")).isTrue(); in createDirectoryAsLegacyApp() 1097 deleteFileAs(APP_D_LEGACY_HAS_RW, file.getAbsolutePath()); in deleteAsLegacyApp()
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 293 public static boolean deleteFileAs(TestApp testApp, String path) throws Exception { in deleteFileAs() method in TestUtils 302 return deleteFileAs(testApp, path); in deleteFileAsNoThrow()
|