Home
last modified time | relevance | path

Searched refs:ReadFileOpener (Results 1 – 6 of 6) sorted by relevance

/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/
DReadFileOpenerAndroidTest.java78 ReadFileOpener opener = in compressAndReadBigContentFromPipe()
79 ReadFileOpener.create().withFallbackToPipeUsingExecutor(executor, context); in compressAndReadBigContentFromPipe()
92 ReadFileOpener opener = in compressAndReadSmallContentFromPipe()
93 ReadFileOpener.create().withFallbackToPipeUsingExecutor(executor, context); in compressAndReadSmallContentFromPipe()
105 ReadFileOpener opener = in compressWithPartialReadFromPipe_shouldNotLeak()
106 ReadFileOpener.create().withFallbackToPipeUsingExecutor(executor, context); in compressWithPartialReadFromPipe_shouldNotLeak()
120 assertThrows(IOException.class, () -> storage.open(uri, ReadFileOpener.create())); in compressAndReadFromPipeWithoutExecutor_shouldFail()
129 uri, ReadFileOpener.create().withFallbackToPipeUsingExecutor(executor, context)); in readFromPlainFile()
143 ReadFileOpener opener = in readingFromPipeWithException_shouldReturnEmptyPipe()
144 ReadFileOpener.create().withFallbackToPipeUsingExecutor(executor, context); in readingFromPipeWithException_shouldReturnEmptyPipe()
[all …]
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/openers/
DReadFileOpener.java56 public final class ReadFileOpener implements Opener<File> { class
67 private ReadFileOpener() {} in ReadFileOpener() method in ReadFileOpener
69 public static ReadFileOpener create() { in create()
70 return new ReadFileOpener(); in create()
93 public ReadFileOpener withFallbackToPipeUsingExecutor(ExecutorService executor, Context context) { in withFallbackToPipeUsingExecutor()
105 public ReadFileOpener withShortCircuit() { in withShortCircuit()
DRandomAccessFileOpener.java53 ReadFileOpener readFileOpener = ReadFileOpener.create().withShortCircuit(); in open()
58 ReadFileOpener readFileOpener = ReadFileOpener.create(); in open()
DRecursiveDeleteOpener.java79 ReadFileOpener readFileOpener = ReadFileOpener.create().withShortCircuit(); in deleteRecursively()
97 Uri uri, SynchronousFileStorage storage, ReadFileOpener readFileOpener) { in isSymlink()
DSystemLibraryOpener.java72 file = ReadFileOpener.create().open(openContext); in open()
84 file = openContext.storage().open(cachedUri, ReadFileOpener.create()); in open()
94 file = openContext.storage().open(cachedUri, ReadFileOpener.create()); in open()
DBUILD53 "ReadFileOpener.java",