Home
last modified time | relevance | path

Searched refs:canOpenFileAs (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DAppCloningDeviceTest.java19 import static android.scopedstorage.cts.lib.TestUtils.canOpenFileAs;
58 assertThat(canOpenFileAs(APP_B_NO_PERMS, file, true)).isTrue(); in testInsertFilesInDirectoryViaMediaProvider()
72 assertThat(canOpenFileAs(APP_B_NO_PERMS, file, true)).isTrue(); in testInsertFilesInDirectoryViaMediaProviderWithPathSpecified()
DScopedStorageTest.java37 import static android.scopedstorage.cts.lib.TestUtils.canOpenFileAs;
502 assertThat(canOpenFileAs(APP_A_HAS_RES_31, otherAppImage, false /* forWrite */)) in testAccess_MediaFileLegacy()
504 assertThat(canOpenFileAs(APP_A_HAS_RES_31, otherAppVideo, false /* forWrite */)) in testAccess_MediaFileLegacy()
506 assertThat(canOpenFileAs(APP_A_HAS_RES_31, otherAppAudio, false /* forWrite */)) in testAccess_MediaFileLegacy()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java41 import static android.scopedstorage.cts.lib.TestUtils.canOpenFileAs;
488 assertThat(canOpenFileAs(APP_A_HAS_RES, videoFile, false /* forWrite */)).isFalse(); in testReadWriteFilesInOtherAppExternalDir()
489 assertThat(canOpenFileAs(APP_A_HAS_RES, videoFile, true /* forWrite */)).isFalse(); in testReadWriteFilesInOtherAppExternalDir()
1388 assertThat(canOpenFileAs(APP_E_LEGACY, file, /* forWrite */ false)).isTrue(); in testAppUpdateInvalidation()
1389 assertThat(canOpenFileAs(APP_E_LEGACY, file, /* forWrite */ true)).isTrue(); in testAppUpdateInvalidation()
1397 assertThat(canOpenFileAs(APP_E, file, /* forWrite */ false)).isTrue(); in testAppUpdateInvalidation()
1399 assertThat(canOpenFileAs(APP_E, file, /* forWrite */ true)).isFalse(); in testAppUpdateInvalidation()
1417 assertThat(canOpenFileAs(APP_GENERAL_ONLY, file, /* forWrite */ false)).isTrue(); in testAppReinstallInvalidation()
1422 assertThat(canOpenFileAs(APP_GENERAL_ONLY, file, /* forWrite */ false)).isFalse(); in testAppReinstallInvalidation()
1454 assertThat(canOpenFileAs(app, file, forWrite)).isFalse(); in assertAppOpInvalidation()
[all …]
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DStorageOtherFilesTest.java38 import static android.scopedstorage.cts.lib.TestUtils.canOpenFileAs;
255 assertThat(canOpenFileAs(APP_VU_SELECTED, IMAGE_FILE_READABLE, /*forWrite*/ false)) in other_accessLocationMetadata()
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java31 import static android.scopedstorage.cts.lib.TestUtils.canOpenFileAs;
795 assertThat(canOpenFileAs(APP_B_NO_PERMS, fullPath, false /* forWrite */)).isFalse(); in testLegacyAppUpdatingOwnershipOfExistingEntry()
796 assertThat(canOpenFileAs(APP_B_NO_PERMS, fullPath, true /* forWrite */)).isFalse(); in testLegacyAppUpdatingOwnershipOfExistingEntry()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java463 public static boolean canOpenFileAs(TestApp testApp, File file, boolean forWrite) in canOpenFileAs() method in TestUtils