Home
last modified time | relevance | path

Searched refs:toRead (Results 1 – 18 of 18) sorted by relevance

/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/internal/ws/
DWebSocketReader.java169 int toRead = (int) Math.min(frameLength - frameBytesRead, maskBuffer.length); in readControlFrame() local
170 int read = source.read(maskBuffer, 0, toRead); in readControlFrame()
281 long toRead = Math.min(byteCount, frameLength - frameBytesRead); in read() local
285 toRead = Math.min(toRead, maskBuffer.length); in read()
286 read = source.read(maskBuffer, 0, (int) toRead); in read()
291 read = source.read(sink, toRead); in read()
DWebSocketWriter.java218 int toRead = (int) Math.min(byteCount, maskBuffer.length); in writeMaskedSynchronized() local
219 int read = source.read(maskBuffer, 0, toRead); in writeMaskedSynchronized()
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
DNettyHttpClient.java179 for (int toRead; (toRead = byteBuf.readableBytes()) > 0; ) { in receive()
180 byteBuf.readBytes(buffer, 0, Math.min(buffer.length, toRead)); in receive()
181 total += toRead; in receive()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DDefiniteLengthInputStream.java76 int toRead = Math.min(len, _remaining); in read() local
77 int numRead = _in.read(buf, off, toRead); in read()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DGzipInflatingBuffer.java102 int toRead = Math.min(bytesToSkip - total, buf.length); in skipBytes() local
103 gzippedData.readBytes(buf, 0, toRead); in skipBytes()
104 crc.update(buf, 0, toRead); in skipBytes()
105 total += toRead; in skipBytes()
DMessageDeframer.java345 int toRead = Math.min(missingBytes, unprocessed.readableBytes()); in readRequiredBytes() local
346 totalBytesRead += toRead; in readRequiredBytes()
347 nextFrame.addBuffer(unprocessed.readBytes(toRead)); in readRequiredBytes()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DDefiniteLengthInputStream.java77 int toRead = Math.min(len, _remaining); in read() local
78 int numRead = _in.read(buf, off, toRead); in read()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLBIOSource.java88 int toRead = Math.min(source.remaining(), byteCount); in read() local
90 source.get(buffer, byteOffset, toRead); in read()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLBIOSource.java89 int toRead = Math.min(source.remaining(), byteCount); in read() local
91 source.get(buffer, byteOffset, toRead); in read()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockWebServer.java769 long toRead = Math.min(byteCount, bytesPerPeriod - b);
772 toRead = Math.min(toRead, byteCount - halfByteCount);
775 long read = source.read(buffer, toRead);
832 long toRead = Math.min(remainingByteCount, byteCount);
833 if (toRead > 0) {
834 source.read(buffer, toRead);
836 long toSkip = byteCount - toRead;
840 remainingByteCount -= toRead;
/external/okhttp/okio/okio/src/main/java/okio/
DRealBufferedSource.java54 long toRead = Math.min(byteCount, buffer.size); in read() local
55 return buffer.read(sink, toRead); in read()
129 int toRead = (int) Math.min(byteCount, buffer.size); in read() local
130 return buffer.read(sink, offset, toRead); in read()
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
DRealBufferedSource.java55 long toRead = Math.min(byteCount, buffer.size); in read() local
56 return buffer.read(sink, toRead); in read()
130 int toRead = (int) Math.min(byteCount, buffer.size); in read() local
131 return buffer.read(sink, offset, toRead); in read()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/sevenz/
DCLI.java89 final int toRead = (int) Math.min(total - off, buf.length); in takeAction() local
90 final int bytesRead = archive.read(buf, 0, toRead); in takeAction()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DZipArchiveInputStream.java537 int toRead = Math.min(buf.remaining(), length); in readStored() local
538 if ((csize - current.bytesRead) < toRead) { in readStored()
540 toRead = (int) (csize - current.bytesRead); in readStored()
542 buf.get(buffer, offset, toRead); in readStored()
543 current.bytesRead += toRead; in readStored()
544 return toRead; in readStored()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/ar/
DArArchiveInputStream.java271 final int toRead = (int) Math.min(len, entryEnd - offset); in read() local
272 final int ret = this.input.read(b, off, toRead); in read()
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockWebServer.java536 int toRead = (int) Math.min(Math.min(buffer.length, limit), bytesPerPeriod - b); in throttledTransfer() local
537 int read = in.read(buffer, 0, toRead); in throttledTransfer()
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DSSLSocketVersionCompatibilityTest.java1604 final Socket toRead = readUnderlying ? underlying : clientWrapping; in test_SSLSocket_interrupt_case() local
1619 toRead.setSoTimeout(readingTimeoutMillis); in test_SSLSocket_interrupt_case()
1620 int read = toRead.getInputStream().read(); in test_SSLSocket_interrupt_case()
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/
DSSLSocketVersionCompatibilityTest.java1587 final Socket toRead = readUnderlying ? underlying : clientWrapping; in test_SSLSocket_interrupt_case() local
1602 toRead.setSoTimeout(readingTimeoutMillis); in test_SSLSocket_interrupt_case()
1603 int read = toRead.getInputStream().read(); in test_SSLSocket_interrupt_case()