/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/common/testing/ |
D | FakeFileBackendTest.java | 69 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/ |
D | Base64Backend.java | 42 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/ |
D | AssetFileBackend.java | 65 public InputStream openForRead(Uri uri) throws IOException { in openForRead() method in AssetFileBackend 76 try (InputStream in = openForRead(uri)) { in exists()
|
D | AndroidFileBackend.java | 158 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()
|
D | ContentResolverBackend.java | 94 public InputStream openForRead(Uri uri) throws IOException { in openForRead() method in ContentResolverBackend
|
D | MemoryBackend.java | 58 public InputStream openForRead(Uri uri) throws IOException { in openForRead() method in MemoryBackend
|
D | BlobStoreBackend.java | 88 public InputStream openForRead(Uri uri) throws IOException { in openForRead() method in BlobStoreBackend
|
D | JavaFileBackend.java | 59 public InputStream openForRead(Uri uri) throws IOException { in openForRead() method in JavaFileBackend
|
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/spi/ |
D | ForwardingBackend.java | 66 public InputStream openForRead(Uri uri) throws IOException { in openForRead() method in ForwardingBackend 67 return delegate().openForRead(rewriteUri(uri)); in openForRead()
|
D | Backend.java | 51 default InputStream openForRead(Uri uri) throws IOException { in openForRead() method
|
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/backends/ |
D | JavaFileBackendTest.java | 48 try (InputStream inputStream = backend.openForRead(uriForTestMethod())) { in openForRead_shouldImplementFileChannelConvertible() 77 try (InputStream inputStream = backend.openForRead(uriForTestMethod())) { in openForRead_shouldImplementSizable()
|
D | AndroidFileBackendTest.java | 106 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()
|
D | ContentResolverBackendTest.java | 105 assertThrows(MalformedUriException.class, () -> nonEmbedded.openForRead(uri)); in nonEmbedded_checksScheme() 119 try (InputStream in = embedded.openForRead(uri)) { in embedded_rewritesScheme()
|
D | BlobStoreBackendTest.java | 108 try (InputStream in = backend.openForRead(uriForRead)) { in readAfterWrite_succeeds()
|
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/behaviors/ |
D | UriComputingBehaviorTest.java | 72 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/ |
D | FileStorageTestBase.java | 120 when(fileBackend.openForRead(any())).thenReturn(EMPTY_INPUT); in initMocksAndCreateFileStorage() 123 when(cnsBackend.openForRead(any())).thenReturn(EMPTY_INPUT); in initMocksAndCreateFileStorage()
|
D | FakeFileBackend.java | 157 public InputStream openForRead(Uri uri) throws IOException { in openForRead() method in FakeFileBackend 159 return delegate.openForRead(uri); in openForRead()
|
D | BackendTestBase.java | 179 InputStream stream = backend().openForRead(uri); in openForRead_returnsFileConvertible()
|
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/openers/ |
D | ReadStreamOpener.java | 61 InputStream backendInput = openContext.backend().openForRead(openContext.encodedUri()); in open()
|
D | StreamMutationOpener.java | 162 return openContext.backend().openForRead(uri); in openForReadOrEmpty()
|
D | LockFileOpener.java | 152 return openContext.backend().openForRead(lockUri); in openStreamForLocking()
|
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/ |
D | ReadStreamOpenerTest.java | 49 when(mockBackend.openForRead(any())).thenReturn(backendStream); in setUpStorage()
|
D | WriteByteArrayOpenerTest.java | 118 when(mockBackend.openForRead(any())).thenReturn(new ByteArrayInputStream(expected)); in withMockBackend_producesArray()
|