Home
last modified time | relevance | path

Searched refs:openForRead (Results 1 – 23 of 23) sorted by relevance

/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/common/testing/
DFakeFileBackendTest.java69 assertThrows(FakeIOException.class, () -> backend.openForRead(uri)); in throwsExceptions_forRead()
73 try (Closeable resource = backend.openForRead(uri)) {} in throwsExceptions_forRead()
139 assertThrows(FakeIOException.class, () -> backend.openForRead(uri)); // READ in throwsExceptions_forAll()
145 try (Closeable resource = backend.openForRead(uri)) {} in throwsExceptions_forAll()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/samples/
DBase64Backend.java42 public InputStream openForRead(Uri uri) throws IOException { in openForRead() method in Base64Backend
43 return base64.wrapForRead(uri, super.openForRead(uri)); in openForRead()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/backends/
DAssetFileBackend.java65 public InputStream openForRead(Uri uri) throws IOException { in openForRead() method in AssetFileBackend
76 try (InputStream in = openForRead(uri)) { in exists()
DAndroidFileBackend.java158 public InputStream openForRead(Uri uri) throws IOException { in openForRead() method in AndroidFileBackend
161 return remoteBackend.openForRead(uri); in openForRead()
163 return super.openForRead(uri); in openForRead()
DContentResolverBackend.java94 public InputStream openForRead(Uri uri) throws IOException { in openForRead() method in ContentResolverBackend
DMemoryBackend.java58 public InputStream openForRead(Uri uri) throws IOException { in openForRead() method in MemoryBackend
DBlobStoreBackend.java88 public InputStream openForRead(Uri uri) throws IOException { in openForRead() method in BlobStoreBackend
DJavaFileBackend.java59 public InputStream openForRead(Uri uri) throws IOException { in openForRead() method in JavaFileBackend
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/spi/
DForwardingBackend.java66 public InputStream openForRead(Uri uri) throws IOException { in openForRead() method in ForwardingBackend
67 return delegate().openForRead(rewriteUri(uri)); in openForRead()
DBackend.java51 default InputStream openForRead(Uri uri) throws IOException { in openForRead() method
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/backends/
DJavaFileBackendTest.java48 try (InputStream inputStream = backend.openForRead(uriForTestMethod())) { in openForRead_shouldImplementFileChannelConvertible()
77 try (InputStream inputStream = backend.openForRead(uriForTestMethod())) { in openForRead_shouldImplementSizable()
DAndroidFileBackendTest.java106 assertThrows(FileStorageUnavailableException.class, () -> backend.openForRead(uri)); in builder_remoteBackend_isNullByDefault()
114 assertThrows(MalformedUriException.class, () -> backend.openForRead(uri)); in builder_accountManager_isNullByDefault()
220 when(remoteBackend.openForRead(any(Uri.class))) in openForRead_remoteAuthorityShouldUseRemoteBackend()
230 verify(remoteBackend).openForRead(uri); in openForRead_remoteAuthorityShouldUseRemoteBackend()
DContentResolverBackendTest.java105 assertThrows(MalformedUriException.class, () -> nonEmbedded.openForRead(uri)); in nonEmbedded_checksScheme()
119 try (InputStream in = embedded.openForRead(uri)) { in embedded_rewritesScheme()
DBlobStoreBackendTest.java108 try (InputStream in = backend.openForRead(uriForRead)) { in readAfterWrite_succeeds()
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/behaviors/
DUriComputingBehaviorTest.java72 when(fileBackend.openForRead(any())).thenReturn(EMPTY_INPUT_STREAM); in getComputedUri_read_shouldRetainUnencodedUriAndFragment()
85 when(fileBackend.openForRead(any())).thenReturn(EMPTY_INPUT_STREAM); in getComputedUri_read_withNoTransform_returnsSameUri()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/common/testing/
DFileStorageTestBase.java120 when(fileBackend.openForRead(any())).thenReturn(EMPTY_INPUT); in initMocksAndCreateFileStorage()
123 when(cnsBackend.openForRead(any())).thenReturn(EMPTY_INPUT); in initMocksAndCreateFileStorage()
DFakeFileBackend.java157 public InputStream openForRead(Uri uri) throws IOException { in openForRead() method in FakeFileBackend
159 return delegate.openForRead(uri); in openForRead()
DBackendTestBase.java179 InputStream stream = backend().openForRead(uri); in openForRead_returnsFileConvertible()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/openers/
DReadStreamOpener.java61 InputStream backendInput = openContext.backend().openForRead(openContext.encodedUri()); in open()
DStreamMutationOpener.java162 return openContext.backend().openForRead(uri); in openForReadOrEmpty()
DLockFileOpener.java152 return openContext.backend().openForRead(lockUri); in openStreamForLocking()
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/
DReadStreamOpenerTest.java49 when(mockBackend.openForRead(any())).thenReturn(backendStream); in setUpStorage()
DWriteByteArrayOpenerTest.java118 when(mockBackend.openForRead(any())).thenReturn(new ByteArrayInputStream(expected)); in withMockBackend_producesArray()