Searched refs:storageWithMonitor (Results 1 – 6 of 6) sorted by relevance
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/ |
D | MappedByteBufferOpenerAndroidTest.java | 96 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()
|
D | ParcelFileDescriptorOpenerAndroidTest.java | 82 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()
|
D | AssetFileDescriptorOpenerAndroidTest.java | 77 SynchronousFileStorage storageWithMonitor = in openAssetFileDescriptor_withMonitor_shouldReadFile() local 85 StreamUtils.createFile(storageWithMonitor, uri, content); in openAssetFileDescriptor_withMonitor_shouldReadFile()
|
D | ReadByteArrayOpenerTest.java | 48 public SynchronousFileStorage storageWithMonitor() throws Exception { in storageWithMonitor() method in ReadByteArrayOpenerTest 74 SynchronousFileStorage storage = storageWithMonitor(); in withMonitor_producesArray()
|
D | WriteByteArrayOpenerTest.java | 60 public SynchronousFileStorage storageWithMonitor() throws Exception { in storageWithMonitor() method in WriteByteArrayOpenerTest 94 SynchronousFileStorage storage = storageWithMonitor(); in withMonitor_writesArray()
|
D | ReadFileOpenerAndroidTest.java | 220 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()
|