Searched refs:canOpenFileAs (Results 1 – 3 of 3) sorted by relevance
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | ScopedStorageDeviceTest.java | 39 import static android.scopedstorage.cts.lib.TestUtils.canOpenFileAs; 467 assertThat(canOpenFileAs(APP_A_HAS_RES, videoFile, false /* forWrite */)).isFalse(); in testReadWriteFilesInOtherAppExternalDir() 468 assertThat(canOpenFileAs(APP_A_HAS_RES, videoFile, true /* forWrite */)).isFalse(); in testReadWriteFilesInOtherAppExternalDir() 1294 assertThat(canOpenFileAs(APP_C_LEGACY, file, /* forWrite */ false)).isTrue(); in testAppUpdateInvalidation() 1295 assertThat(canOpenFileAs(APP_C_LEGACY, file, /* forWrite */ true)).isTrue(); in testAppUpdateInvalidation() 1303 assertThat(canOpenFileAs(APP_C, file, /* forWrite */ false)).isTrue(); in testAppUpdateInvalidation() 1305 assertThat(canOpenFileAs(APP_C, file, /* forWrite */ true)).isFalse(); in testAppUpdateInvalidation() 1321 assertThat(canOpenFileAs(APP_C, file, /* forWrite */ false)).isTrue(); in testAppReinstallInvalidation() 1326 assertThat(canOpenFileAs(APP_C, file, /* forWrite */ false)).isFalse(); in testAppReinstallInvalidation() 1366 assertThat(canOpenFileAs(app, file, forWrite)).isFalse(); in assertAppOpInvalidation() [all …]
|
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/ |
D | LegacyStorageTest.java | 29 import static android.scopedstorage.cts.lib.TestUtils.canOpenFileAs; 767 assertThat(canOpenFileAs(APP_B_NO_PERMS, fullPath, false /* forWrite */)).isFalse(); in testLegacyAppUpdatingOwnershipOfExistingEntry() 768 assertThat(canOpenFileAs(APP_B_NO_PERMS, fullPath, true /* forWrite */)).isFalse(); in testLegacyAppUpdatingOwnershipOfExistingEntry()
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 316 public static boolean canOpenFileAs(TestApp testApp, File file, boolean forWrite) in canOpenFileAs() method in TestUtils
|