Searched refs:deleteFileAsNoThrow (Results 1 – 6 of 6) sorted by relevance
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/ |
D | ScopedStorageTest.java | 41 import static android.scopedstorage.cts.lib.TestUtils.deleteFileAsNoThrow; 267 deleteFileAsNoThrow(APP_B_NO_PERMS, otherAppImage.getAbsolutePath()); in testManageExternalStorageCanReadRedactedContents() 341 deleteFileAsNoThrow(APP_B_NO_PERMS, otherAppPdf.getAbsolutePath()); in testManageExternalStorageCanDeleteOtherAppsContents() 342 deleteFileAsNoThrow(APP_B_NO_PERMS, otherAppImage.getAbsolutePath()); in testManageExternalStorageCanDeleteOtherAppsContents() 343 deleteFileAsNoThrow(APP_B_NO_PERMS, otherAppMusic.getAbsolutePath()); in testManageExternalStorageCanDeleteOtherAppsContents() 368 deleteFileAsNoThrow(APP_B_NO_PERMS, otherAppImage.getAbsolutePath()); in testAccess_OnlyImageFile() 369 deleteFileAsNoThrow(APP_B_NO_PERMS, otherAppVideo.getAbsolutePath()); in testAccess_OnlyImageFile() 370 deleteFileAsNoThrow(APP_B_NO_PERMS, otherAppAudio.getAbsolutePath()); in testAccess_OnlyImageFile() 395 deleteFileAsNoThrow(APP_B_NO_PERMS, otherAppImage.getAbsolutePath()); in testAccess_OnlyVideoFile() 396 deleteFileAsNoThrow(APP_B_NO_PERMS, otherAppVideo.getAbsolutePath()); in testAccess_OnlyVideoFile() [all …]
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | OtherAppFilesRule.java | 21 import static android.scopedstorage.cts.lib.TestUtils.deleteFileAsNoThrow; 97 deleteFileAsNoThrow(APP_D_LEGACY_HAS_RW, sImageFile.getAbsolutePath()); in after() 98 deleteFileAsNoThrow(APP_D_LEGACY_HAS_RW, sImageFile2.getAbsolutePath()); in after() 99 deleteFileAsNoThrow(APP_D_LEGACY_HAS_RW, sVideoFile1.getAbsolutePath()); in after() 100 deleteFileAsNoThrow(APP_D_LEGACY_HAS_RW, sVideoFile2.getAbsolutePath()); in after()
|
/cts/hostsidetests/scopedstorage/bypassdatabase/src/android/scopedstorage/cts/bypassdatabase/ |
D | BypassDatabaseOperationsTest.java | 23 import static android.scopedstorage.cts.lib.TestUtils.deleteFileAsNoThrow; 249 deleteFileAsNoThrow(app, file.getAbsolutePath()); in testAppDoesntBypassDatabaseOps() 252 deleteFileAsNoThrow(app, renamedFile.getAbsolutePath()); in testAppDoesntBypassDatabaseOps() 283 deleteFileAsNoThrow(app, file.getAbsolutePath()); in testAppBypassesDatabaseOps() 286 deleteFileAsNoThrow(app, renamedFile.getAbsolutePath()); in testAppBypassesDatabaseOps()
|
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/ |
D | ScopedStorageDeviceTest.java | 46 import static android.scopedstorage.cts.lib.TestUtils.deleteFileAsNoThrow; 590 deleteFileAsNoThrow(APP_B_NO_PERMS, nonMediaFile.getPath()); in testCantAccessOtherAppsContents() 591 deleteFileAsNoThrow(APP_B_NO_PERMS, mediaFile.getPath()); in testCantAccessOtherAppsContents() 633 deleteFileAsNoThrow(APP_B_NO_PERMS, nonMediaFile.getPath()); in testCantDeleteOtherAppsContents() 634 deleteFileAsNoThrow(APP_B_NO_PERMS, mediaFile.getPath()); in testCantDeleteOtherAppsContents() 774 deleteFileAsNoThrow(APP_B_NO_PERMS, videoFile.getPath()); in testListDirectoriesWithMediaFiles() 806 deleteFileAsNoThrow(APP_B_NO_PERMS, pdfFile.getPath()); in testListDirectoriesWithNonMediaFiles() 1504 deleteFileAsNoThrow(APP_B_NO_PERMS, otherAppImageFile.getAbsolutePath()); in testDisableOpResetForSystemGallery() 1505 deleteFileAsNoThrow(APP_B_NO_PERMS, otherAppVideoFile.getAbsolutePath()); in testDisableOpResetForSystemGallery() 1546 deleteFileAsNoThrow(APP_B_NO_PERMS, otherAppImageFile.getAbsolutePath()); in testSystemGalleryAppHasFullAccessToImages() [all …]
|
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/ |
D | LegacyStorageTest.java | 35 import static android.scopedstorage.cts.lib.TestUtils.deleteFileAsNoThrow; 587 deleteFileAsNoThrow(APP_B_NO_PERMS, otherAppPdfFile.getAbsolutePath()); in testCanDeleteAllFiles_hasRW() 798 deleteFileAsNoThrow(APP_B_NO_PERMS, fullPath.getAbsolutePath()); in testLegacyAppUpdatingOwnershipOfExistingEntry()
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 437 public static boolean deleteFileAsNoThrow(TestApp testApp, String path) { in deleteFileAsNoThrow() method in TestUtils 1276 deleteFileAsNoThrow(otherApp, file.getPath()); in assertCantInsertToOtherPrivateAppDirectories() 1357 deleteFileAsNoThrow(otherApp, file.getPath()); in assertCantUpdateToOtherPrivateAppDirectories() 1522 deleteFileAsNoThrow(testApp, file.getAbsolutePath()); in canReadWriteFilesInDirs()
|