Home
last modified time | relevance | path

Searched refs:withBehaviors (Results 1 – 15 of 15) sorted by relevance

/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/transforms/
DIntegrityTransformTest.java77 storage.open(uri, WriteStreamOpener.create().withBehaviors(computeUri)); in write_shouldComputeChecksum()
96 try (InputStream in = storage.open(uri, ReadStreamOpener.create().withBehaviors(computeUri))) { in consumeStream_shouldComputeChecksum()
113 try (InputStream in = storage.open(uri, ReadStreamOpener.create().withBehaviors(computeUri))) { in consumeStream_shouldBothVerifyAndComputeChecksum()
126 storage.open(uriFuture.get(), ReadStreamOpener.create().withBehaviors(computeUri2))) { in consumeStream_shouldBothVerifyAndComputeChecksum()
146 storage.open(uri, ReadStreamOpener.create().withBehaviors(computeUri))) { in readFully_shouldComputeChecksum()
166 storage.open(uri, ReadStreamOpener.create().withBehaviors(computeUri))) { in readWithWithPrematureClose_shouldComputeDifferentChecksum()
185 try (InputStream in = storage.open(uri, ReadStreamOpener.create().withBehaviors(computeUri))) { in read_shouldValidateChecksum()
213 try (InputStream in = storage.open(uri, ReadStreamOpener.create().withBehaviors(computeUri))) { in read_shouldValidateChecksumWithReadingOneByteAtATime()
234 try (InputStream in = storage.open(uri, ReadStreamOpener.create().withBehaviors(computeUri))) { in partialReadAndClose_shouldFailValidation()
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/behaviors/
DUriComputingBehaviorTest.java76 storage.open(fileUriWithTransform, ReadStreamOpener.create().withBehaviors(computeUri))) { in getComputedUri_read_shouldRetainUnencodedUriAndFragment()
90 fileUriWithoutTransform, ReadStreamOpener.create().withBehaviors(computeUri))) { in getComputedUri_read_withNoTransform_returnsSameUri()
110 storage.open(fileUriWithTransform, WriteStreamOpener.create().withBehaviors(computeUri))) { in getComputedUri_write_shouldRetainUnencodedUriAndFragment()
125 fileUriWithoutTransform, WriteStreamOpener.create().withBehaviors(computeUri))) { in getComputedUri_write_withNoTransform_returnsSameUri()
DSyncingBehaviorAndroidTest.java59 try (OutputStream out = storage.open(uri1, WriteStreamOpener.create().withBehaviors(syncing))) { in syncing_sync()
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/openers/
DWriteByteArrayOpener.java42 public WriteByteArrayOpener withBehaviors(Behavior... behaviors) { in withBehaviors() method in WriteByteArrayOpener
54 try (OutputStream out = WriteStreamOpener.create().withBehaviors(behaviors).open(openContext)) { in open()
DWriteStringOpener.java47 public WriteStringOpener withBehaviors(Behavior... behaviors) { in withBehaviors() method in WriteStringOpener
55 .withBehaviors(behaviors) in open()
DAppendStreamOpener.java42 public AppendStreamOpener withBehaviors(Behavior... behaviors) { in withBehaviors() method in AppendStreamOpener
DWriteStreamOpener.java40 public WriteStreamOpener withBehaviors(Behavior... behaviors) { in withBehaviors() method in WriteStreamOpener
DReadStreamOpener.java40 public ReadStreamOpener withBehaviors(Behavior... behaviors) { in withBehaviors() method in ReadStreamOpener
DWriteProtoOpener.java48 public WriteProtoOpener withBehaviors(Behavior... behaviors) { in withBehaviors() method in WriteProtoOpener
DIntegrityUriComputingOpener.java51 openContext.storage().open(uri, ReadStreamOpener.create().withBehaviors(uriComputer))) { in open()
DStreamMutationOpener.java80 public StreamMutationOpener withBehaviors(Behavior... behaviors) { in withBehaviors() method in StreamMutationOpener
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/
DStringOpenerTest.java72 storage.open(uri1, WriteStringOpener.create("some string").withBehaviors(syncing)); in invokes_autoSync()
DWriteProtoOpenerTest.java112 storage.open(uri1, WriteProtoOpener.create(TEST_PROTO).withBehaviors(syncing)); in invokes_autoSync()
DWriteByteArrayOpenerTest.java131 uri1, WriteByteArrayOpener.create(makeArrayOfBytesContent()).withBehaviors(syncing)); in invokes_autoSync()
DStreamMutationOpenerTest.java184 storage.open(uri, StreamMutationOpener.create().withBehaviors(syncing))) { in canMutate_withSync()