Searched refs:canOpen (Results 1 – 5 of 5) sorted by relevance
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | UserRestrictionsParentTest.java | 177 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/ |
D | ScopedStorageTestHelper.java | 42 import static android.scopedstorage.cts.lib.TestUtils.canOpen; 271 intent.putExtra(queryType, canOpen(file, false)); in accessFile() 274 intent.putExtra(queryType, canOpen(file, true)); in accessFile()
|
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/ |
D | ScopedStorageTest.java | 28 import static android.scopedstorage.cts.lib.TestUtils.canOpen; 213 assertThat(canOpen(otherAppExternalDataFile, /* forWrite */ false)).isFalse(); in testManageExternalStorageCantReadWriteOtherAppExternalDir() 214 assertThat(canOpen(otherAppExternalDataFile, /* forWrite */ true)).isFalse(); in testManageExternalStorageCantReadWriteOtherAppExternalDir() 720 assertThat(canOpen(otherAppExternalDataFile, /* forWrite */ false)).isFalse(); in testNoIsolatedStorageCantReadWriteOtherAppExternalDir() 721 assertThat(canOpen(otherAppExternalDataFile, /* forWrite */ true)).isFalse(); in testNoIsolatedStorageCantReadWriteOtherAppExternalDir()
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | ScopedStorageDeviceTest.java | 38 import static android.scopedstorage.cts.lib.TestUtils.canOpen; 474 assertThat(canOpen(videoFile, false /* forWrite */)).isTrue(); in testReadWriteFilesInOtherAppExternalDir() 475 assertThat(canOpen(videoFile, true /* forWrite */)).isTrue(); in testReadWriteFilesInOtherAppExternalDir() 564 assertThat(canOpen(mediaFile, /* forWrite */ false)).isFalse(); in testCantAccessOtherAppsContents() 565 assertThat(canOpen(nonMediaFile, /* forWrite */ true)).isFalse(); in testCantAccessOtherAppsContents() 566 assertThat(canOpen(mediaFile, /* forWrite */ false)).isFalse(); in testCantAccessOtherAppsContents() 567 assertThat(canOpen(nonMediaFile, /* forWrite */ true)).isFalse(); in testCantAccessOtherAppsContents() 1475 assertThat(canOpen(otherAppAudioFile, /* forWrite */ false)).isFalse(); in testSystemGalleryAppHasNoFullAccessToAudio() 1476 assertThat(canOpen(otherAppAudioFile, /* forWrite */ true)).isFalse(); in testSystemGalleryAppHasNoFullAccessToAudio() 2906 assertTrue(canOpen(pendingOrTrashedFile, /*forWrite*/ false)); in assertOpenPendingOrTrashed() [all …]
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 856 public static boolean canOpen(File file, boolean forWrite) { in canOpen() method in TestUtils
|