Home
last modified time | relevance | path

Searched refs:forWrite (Results 1 – 3 of 3) sorted by relevance

/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTestUtils.java125 public static ParcelFileDescriptor open(File file, boolean forWrite) throws Exception { in open() argument
126 return ParcelFileDescriptor.open(file, forWrite ? ParcelFileDescriptor.MODE_READ_WRITE in open()
130 public static ParcelFileDescriptor open(Uri uri, boolean forWrite, Bundle bundle) in open() argument
134 return resolver.openFileDescriptor(uri, forWrite ? "rw" : "r"); in open()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java463 public static boolean canOpenFileAs(TestApp testApp, File file, boolean forWrite) in canOpenFileAs() argument
465 String actionName = forWrite ? CAN_OPEN_FILE_FOR_WRITE_QUERY : CAN_OPEN_FILE_FOR_READ_QUERY; in canOpenFileAs()
675 public static ParcelFileDescriptor openFileAs(TestApp testApp, File file, boolean forWrite) in openFileAs() argument
677 String actionName = forWrite ? OPEN_FILE_FOR_WRITE_QUERY : OPEN_FILE_FOR_READ_QUERY; in openFileAs()
678 String mode = forWrite ? "rw" : "r"; in openFileAs()
1031 public static ParcelFileDescriptor openWithFilePath(File file, boolean forWrite) in openWithFilePath() argument
1034 forWrite in openWithFilePath()
1042 public static boolean canOpen(File file, boolean forWrite) { in canOpen() argument
1043 try (ParcelFileDescriptor ignore = openWithFilePath(file, forWrite)) { in canOpen() argument
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/
DScopedStorageDeviceTest.java1430 String opstr, boolean forWrite) throws Exception { in testAppOpInvalidation() argument
1434 assertAppOpInvalidation(app, file, permission, opstr, forWrite); in testAppOpInvalidation()
1442 String opstr, boolean forWrite) throws Exception { in assertAppOpInvalidation() argument
1454 assertThat(canOpenFileAs(app, file, forWrite)).isFalse(); in assertAppOpInvalidation()
1464 assertThat(canOpenFileAs(app, file, forWrite)).isTrue(); in assertAppOpInvalidation()
1473 assertThat(canOpenFileAs(app, file, forWrite)).isFalse(); in assertAppOpInvalidation()