Home
last modified time | relevance | path

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

/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java39 import static android.scopedstorage.cts.lib.TestUtils.createFileAs;
260 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testManageExternalStorageCanReadRedactedContents()
328 assertThat(createFileAs(APP_B_NO_PERMS, otherAppPdf.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents()
329 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents()
330 assertThat(createFileAs(APP_B_NO_PERMS, otherAppMusic.getPath())).isTrue(); in testManageExternalStorageCanDeleteOtherAppsContents()
358 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testAccess_OnlyImageFile()
359 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideo.getPath())).isTrue(); in testAccess_OnlyImageFile()
360 assertThat(createFileAs(APP_B_NO_PERMS, otherAppAudio.getPath())).isTrue(); in testAccess_OnlyImageFile()
385 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImage.getPath())).isTrue(); in testAccess_OnlyVideoFile()
386 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideo.getPath())).isTrue(); in testAccess_OnlyVideoFile()
[all …]
DAppCloningDeviceTest.java20 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/
DOtherAppFilesRule.java20 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/
DBypassDatabaseOperationsTest.java21 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/
DScopedStorageDeviceTest.java44 import static android.scopedstorage.cts.lib.TestUtils.createFileAs;
577 assertThat(createFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantAccessOtherAppsContents()
578 assertThat(createFileAs(APP_B_NO_PERMS, nonMediaFile.getPath())).isTrue(); in testCantAccessOtherAppsContents()
603 assertThat(createFileAs(APP_B_NO_PERMS, mediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents()
611 assertThat(createFileAs(APP_B_NO_PERMS, nonMediaFile.getPath())).isTrue(); in testCantDeleteOtherAppsContents()
759 assertThat(createFileAs(APP_B_NO_PERMS, videoFile.getPath())).isTrue(); in testListDirectoriesWithMediaFiles()
794 assertThat(createFileAs(APP_B_NO_PERMS, pdfFile.getPath())).isTrue(); in testListDirectoriesWithNonMediaFiles()
1486 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImageFile.getPath())).isTrue(); in testDisableOpResetForSystemGallery()
1490 assertThat(createFileAs(APP_B_NO_PERMS, otherAppVideoFile.getPath())).isTrue(); in testDisableOpResetForSystemGallery()
1520 assertThat(createFileAs(APP_B_NO_PERMS, otherAppImageFile.getPath())).isTrue(); in testSystemGalleryAppHasFullAccessToImages()
[all …]
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java33 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/
DTestUtils.java307 public static boolean createFileAs(TestApp testApp, String path) throws Exception { in createFileAs() method in TestUtils
316 public static boolean createFileAs(TestApp testApp, String path, IBinder content) in createFileAs() method in TestUtils
1261 assertThat(createFileAs(otherApp, file.getPath())).isTrue(); in assertCantInsertToOtherPrivateAppDirectories()
1327 assertThat(createFileAs(otherApp, file.getPath())).isTrue(); in assertCantUpdateToOtherPrivateAppDirectories()
1513 assertThat(createFileAs(testApp, file.getPath())).isTrue(); in canReadWriteFilesInDirs()