Home
last modified time | relevance | path

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

/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/
DMappedByteBufferOpenerAndroidTest.java96 SynchronousFileStorage storageWithMonitor = in failsWithActiveMonitor() local
104 StreamUtils.createFile(storageWithMonitor, uri, content); in failsWithActiveMonitor()
108 () -> storageWithMonitor.open(uri, MappedByteBufferOpener.createForRead())); in failsWithActiveMonitor()
113 SynchronousFileStorage storageWithMonitor = in succeedsWithInactiveMonitor() local
121 StreamUtils.createFile(storageWithMonitor, uri, content); in succeedsWithInactiveMonitor()
123 MappedByteBuffer buffer = storageWithMonitor.open(uri, MappedByteBufferOpener.createForRead()); in succeedsWithInactiveMonitor()
DParcelFileDescriptorOpenerAndroidTest.java82 SynchronousFileStorage storageWithMonitor = in openParcelFileDescriptor_withMonitor_shouldReadFile() local
89 StreamUtils.createFile(storageWithMonitor, uri, content); in openParcelFileDescriptor_withMonitor_shouldReadFile()
93 storageWithMonitor.open(uri, ParcelFileDescriptorOpener.create()))) { in openParcelFileDescriptor_withMonitor_shouldReadFile()
DAssetFileDescriptorOpenerAndroidTest.java77 SynchronousFileStorage storageWithMonitor = in openAssetFileDescriptor_withMonitor_shouldReadFile() local
85 StreamUtils.createFile(storageWithMonitor, uri, content); in openAssetFileDescriptor_withMonitor_shouldReadFile()
DReadByteArrayOpenerTest.java48 public SynchronousFileStorage storageWithMonitor() throws Exception { in storageWithMonitor() method in ReadByteArrayOpenerTest
74 SynchronousFileStorage storage = storageWithMonitor(); in withMonitor_producesArray()
DWriteByteArrayOpenerTest.java60 public SynchronousFileStorage storageWithMonitor() throws Exception { in storageWithMonitor() method in WriteByteArrayOpenerTest
94 SynchronousFileStorage storage = storageWithMonitor(); in withMonitor_writesArray()
DReadFileOpenerAndroidTest.java220 SynchronousFileStorage storageWithMonitor = in shortCircuit_succeedsWithMonitors() local
227 StreamUtils.createFile(storageWithMonitor, uri, content); in shortCircuit_succeedsWithMonitors()
230 File file = storageWithMonitor.open(uri, opener); in shortCircuit_succeedsWithMonitors()