Searched refs:forWrite (Results 1 – 3 of 3) sorted by relevance
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/ |
D | TranscodeTestUtils.java | 119 public static ParcelFileDescriptor open(File file, boolean forWrite) throws Exception { in open() argument 120 return ParcelFileDescriptor.open(file, forWrite ? ParcelFileDescriptor.MODE_READ_WRITE in open() 124 public static ParcelFileDescriptor open(Uri uri, boolean forWrite, Bundle bundle) in open() argument 128 return resolver.openFileDescriptor(uri, forWrite ? "rw" : "r"); in open()
|
/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() argument 318 String actionName = forWrite ? CAN_OPEN_FILE_FOR_WRITE_QUERY : CAN_OPEN_FILE_FOR_READ_QUERY; in canOpenFileAs() 539 public static ParcelFileDescriptor openFileAs(TestApp testApp, File file, boolean forWrite) in openFileAs() argument 541 String actionName = forWrite ? OPEN_FILE_FOR_WRITE_QUERY : OPEN_FILE_FOR_READ_QUERY; in openFileAs() 542 String mode = forWrite ? "rw" : "r"; in openFileAs() 846 public static ParcelFileDescriptor openWithFilePath(File file, boolean forWrite) in openWithFilePath() argument 849 forWrite in openWithFilePath() 856 public static boolean canOpen(File file, boolean forWrite) { in canOpen() argument 858 openWithFilePath(file, forWrite); in canOpen()
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | ScopedStorageDeviceTest.java | 1334 String opstr, boolean forWrite) throws Exception { in testAppOpInvalidation() argument 1342 assertAppOpInvalidation(app, file, permission, opstr, forWrite); in testAppOpInvalidation() 1354 String opstr, boolean forWrite) throws Exception { in assertAppOpInvalidation() argument 1366 assertThat(canOpenFileAs(app, file, forWrite)).isFalse(); in assertAppOpInvalidation() 1376 assertThat(canOpenFileAs(app, file, forWrite)).isTrue(); in assertAppOpInvalidation() 1386 assertThat(canOpenFileAs(app, file, forWrite)).isFalse(); in assertAppOpInvalidation()
|