Searched refs:createFileAs (Results 1 – 7 of 7) sorted by relevance
| /cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/ |
| D | ScopedStorageTest.java | 39 import static android.scopedstorage.cts.lib.TestUtils.createFileAs; 262 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testManageExternalStorageCanReadRedactedContents() 330 assertThat(createFileAs(APP_B_NO_PERMS, otherAppPdf.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents() 331 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents() 332 assertThat(createFileAs(APP_B_NO_PERMS, otherAppMusic.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents() 360 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testAccess_OnlyImageFile() 361 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideo.getPath())).isTrue(); in testAccess_OnlyImageFile() 362 assertThat(createFileAs(APP_B_NO_PERMS, otherAppAudio.getPath())).isTrue(); in testAccess_OnlyImageFile() 387 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testAccess_OnlyVideoFile() 388 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideo.getPath())).isTrue(); in testAccess_OnlyVideoFile() [all …]
|
| D | AppCloningDeviceTest.java | 20 import static android.scopedstorage.cts.lib.TestUtils.createFileAs; 57 assertThat(createFileAs(APP_B_NO_PERMS, file.getPath())).isTrue(); in testInsertFilesInDirectoryViaMediaProvider() 70 assertThat(createFileAs(APP_B_NO_PERMS, file.getPath())).isTrue(); in testInsertFilesInDirectoryViaMediaProviderWithPathSpecified()
|
| /cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
| D | OtherAppFilesRule.java | 20 import static android.scopedstorage.cts.lib.TestUtils.createFileAs; 143 assertThat(createFileAs(APP_D_LEGACY_HAS_RW, newFile.getAbsolutePath(), in createFileAsOther() 154 assertThat(createFileAs(APP_D_LEGACY_HAS_RW, file.getAbsolutePath())).isTrue(); in createEmptyFileAsOther()
|
| /cts/hostsidetests/scopedstorage/bypassdatabase/src/android/scopedstorage/cts/bypassdatabase/ |
| D | BypassDatabaseOperationsTest.java | 21 import static android.scopedstorage.cts.lib.TestUtils.createFileAs; 235 assertThat(createFileAs(app, file.getAbsolutePath())).isTrue(); in testAppDoesntBypassDatabaseOps() 261 assertThat(createFileAs(app, file.getAbsolutePath())).isTrue(); in testAppBypassesDatabaseOps()
|
| /cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/ |
| D | ScopedStorageDeviceTest.java | 44 import static android.scopedstorage.cts.lib.TestUtils.createFileAs; 579 assertThat(createFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantAccessOtherAppsContents() 580 assertThat(createFileAs(APP_B_NO_PERMS, nonMediaFile.getPath())).isTrue(); in testCantAccessOtherAppsContents() 605 assertThat(createFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents() 613 assertThat(createFileAs(APP_B_NO_PERMS, nonMediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents() 761 assertThat(createFileAs(APP_B_NO_PERMS, videoFile.getPath())).isTrue(); in testListDirectoriesWithMediaFiles() 796 assertThat(createFileAs(APP_B_NO_PERMS, pdfFile.getPath())).isTrue(); in testListDirectoriesWithNonMediaFiles() 1511 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImageFile.getPath())).isTrue(); in testDisableOpResetForSystemGallery() 1515 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideoFile.getPath())).isTrue(); in testDisableOpResetForSystemGallery() 1545 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImageFile.getPath())).isTrue(); in testSystemGalleryAppHasFullAccessToImages() [all …]
|
| /cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/ |
| D | LegacyStorageTest.java | 33 import static android.scopedstorage.cts.lib.TestUtils.createFileAs; 449 assertThat(createFileAs(APP_B_NO_PERMS, otherVideoFile.getAbsolutePath())).isTrue(); in testCanTrashOtherAndroidMediaFiles_hasRW() 578 assertThat(createFileAs(APP_B_NO_PERMS, otherAppPdfFile.getAbsolutePath())).isTrue(); in testCanDeleteAllFiles_hasRW() 869 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideoFile.getPath())).isTrue(); in testLegacySystemGalleryCanRenameImagesAndVideosWithoutDbUpdates() 933 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideoFile.getPath())).isTrue(); in testLegacySystemGalleryWithoutWESCannotRename() 953 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideoFile.getPath())).isTrue(); in testLegacyWESCanRenameImagesAndVideosWithDbUpdates_hasW()
|
| /cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
| D | TestUtils.java | 319 public static boolean createFileAs(TestApp testApp, String path) throws Exception { in createFileAs() method in TestUtils 328 public static boolean createFileAs(TestApp testApp, String path, IBinder content) in createFileAs() method in TestUtils 1283 assertThat(createFileAs(otherApp, file.getPath())).isTrue(); in assertCantInsertToOtherPrivateAppDirectories() 1349 assertThat(createFileAs(otherApp, file.getPath())).isTrue(); in assertCantUpdateToOtherPrivateAppDirectories() 1535 assertThat(createFileAs(testApp, file.getPath())).isTrue(); in canReadWriteFilesInDirs()
|