Home
last modified time | relevance | path

Searched refs:canOpen (Results 1 – 5 of 5) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DUserRestrictionsParentTest.java177 private void checkCanOpenCamera(boolean canOpen) throws Exception { in checkCanOpenCamera() argument
184 boolean successToOpen = !canOpen; in checkCanOpenCamera()
185 while (successToOpen != canOpen && retries > 0) { in checkCanOpenCamera()
191 canOpen, successToOpen), canOpen, successToOpen); in checkCanOpenCamera()
/cts/hostsidetests/scopedstorage/ScopedStorageTestHelper/src/android/scopedstorage/cts/
DScopedStorageTestHelper.java53 import static android.scopedstorage.cts.lib.TestUtils.canOpen;
479 intent.putExtra(queryType, canOpen(file, false)); in accessFile()
482 intent.putExtra(queryType, canOpen(file, true)); in accessFile()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java36 import static android.scopedstorage.cts.lib.TestUtils.canOpen;
284 assertThat(canOpen(otherAppExternalDataFile, /* forWrite */ false)).isFalse(); in testManageExternalStorageCantReadWriteOtherAppExternalDir()
285 assertThat(canOpen(otherAppExternalDataFile, /* forWrite */ true)).isFalse(); in testManageExternalStorageCantReadWriteOtherAppExternalDir()
1002 assertThat(canOpen(otherAppExternalDataFile, /* forWrite */ false)).isFalse(); in testNoIsolatedStorageCantReadWriteOtherAppExternalDir()
1003 assertThat(canOpen(otherAppExternalDataFile, /* forWrite */ true)).isFalse(); in testNoIsolatedStorageCantReadWriteOtherAppExternalDir()
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java40 import static android.scopedstorage.cts.lib.TestUtils.canOpen;
495 assertThat(canOpen(videoFile, false /* forWrite */)).isTrue(); in testReadWriteFilesInOtherAppExternalDir()
496 assertThat(canOpen(videoFile, true /* forWrite */)).isTrue(); in testReadWriteFilesInOtherAppExternalDir()
585 assertThat(canOpen(mediaFile, /* forWrite */ false)).isFalse(); in testCantAccessOtherAppsContents()
586 assertThat(canOpen(nonMediaFile, /* forWrite */ true)).isFalse(); in testCantAccessOtherAppsContents()
587 assertThat(canOpen(mediaFile, /* forWrite */ false)).isFalse(); in testCantAccessOtherAppsContents()
588 assertThat(canOpen(nonMediaFile, /* forWrite */ true)).isFalse(); in testCantAccessOtherAppsContents()
1566 assertThat(canOpen(otherAppAudioFile, /* forWrite */ false)).isFalse(); in testSystemGalleryAppHasNoFullAccessToAudio()
1567 assertThat(canOpen(otherAppAudioFile, /* forWrite */ true)).isFalse(); in testSystemGalleryAppHasNoFullAccessToAudio()
3210 assertTrue(canOpen(pendingOrTrashedFile, /*forWrite*/ false)); in assertOpenPendingOrTrashed()
[all …]
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1042 public static boolean canOpen(File file, boolean forWrite) { in canOpen() method in TestUtils