Home
last modified time | relevance | path

Searched refs:totalBytesRead (Results 1 – 24 of 24) sorted by relevance

/external/conscrypt/benchmark-base/src/main/java/org/conscrypt/
DClientEndpoint.java67 int totalBytesRead = 0; in readMessage() local
68 while (totalBytesRead < buffer.length) { in readMessage()
69 int remaining = buffer.length - totalBytesRead; in readMessage()
70 int bytesRead = input.read(buffer, totalBytesRead, remaining); in readMessage()
74 totalBytesRead += bytesRead; in readMessage()
76 return totalBytesRead; in readMessage()
DServerEndpoint.java172 int totalBytesRead = 0; in readMessage() local
173 while (!stopping && totalBytesRead < messageSize) { in readMessage()
175 int remaining = messageSize - totalBytesRead; in readMessage()
176 int bytesRead = inputStream.read(buffer, totalBytesRead, remaining); in readMessage()
180 totalBytesRead += bytesRead; in readMessage()
194 return totalBytesRead; in readMessage()
/external/conscrypt/repackaged/benchmark-base/src/main/java/com/android/org/conscrypt/
DClientEndpoint.java68 int totalBytesRead = 0; in readMessage() local
69 while (totalBytesRead < buffer.length) { in readMessage()
70 int remaining = buffer.length - totalBytesRead; in readMessage()
71 int bytesRead = input.read(buffer, totalBytesRead, remaining); in readMessage()
75 totalBytesRead += bytesRead; in readMessage()
77 return totalBytesRead; in readMessage()
DServerEndpoint.java175 int totalBytesRead = 0; in readMessage() local
176 while (!stopping && totalBytesRead < messageSize) { in readMessage()
178 int remaining = messageSize - totalBytesRead; in readMessage()
179 int bytesRead = inputStream.read(buffer, totalBytesRead, remaining); in readMessage()
183 totalBytesRead += bytesRead; in readMessage()
197 return totalBytesRead; in readMessage()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/upstream/
DDataSourceInputStreamTest.java60 int totalBytesRead = 0;
61 while (totalBytesRead < TEST_DATA.length) {
62 int bytesRead = inputStream.read(readBytes, totalBytesRead,
63 TEST_DATA.length - totalBytesRead);
65 totalBytesRead += bytesRead;
66 assertThat(inputStream.bytesRead()).isEqualTo(totalBytesRead);
72 assertThat(totalBytesRead).isEqualTo(TEST_DATA.length);
/external/guava/guava/src/com/google/common/io/
DReaderInputStream.java133 int totalBytesRead = 0; in read() local
141 totalBytesRead += drain(b, off + totalBytesRead, len - totalBytesRead); in read()
142 if (totalBytesRead == len || doneFlushing) { in read()
143 return (totalBytesRead > 0) ? totalBytesRead : -1; in read()
/external/guava/android/guava/src/com/google/common/io/
DReaderInputStream.java133 int totalBytesRead = 0; in read() local
141 totalBytesRead += drain(b, off + totalBytesRead, len - totalBytesRead); in read()
142 if (totalBytesRead == len || doneFlushing) { in read()
143 return (totalBytesRead > 0) ? totalBytesRead : -1; in read()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DDataSourceInputStream.java35 private long totalBytesRead; field in DataSourceInputStream
51 return totalBytesRead; in bytesRead()
86 totalBytesRead += bytesRead; in read()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DMessageDeframer.java309 int totalBytesRead = 0; in readRequiredBytes() local
327 totalBytesRead += fullStreamDecompressor.getAndResetBytesConsumed(); in readRequiredBytes()
346 totalBytesRead += toRead; in readRequiredBytes()
352 if (totalBytesRead > 0) { in readRequiredBytes()
353 listener.bytesRead(totalBytesRead); in readRequiredBytes()
360 statsTraceCtx.inboundWireSize(totalBytesRead); in readRequiredBytes()
361 inboundBodyWireSize += totalBytesRead; in readRequiredBytes()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DProgress.java96 long totalBytesRead = 0L; in source()
100 totalBytesRead += bytesRead != -1 ? bytesRead : 0; in source()
101 progressListener.update(totalBytesRead, responseBody.contentLength(), bytesRead == -1); in source()
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DRenegotiationTest.java197 int totalBytesRead = 0; in readReply() local
198 while (totalBytesRead < MESSAGE_LENGTH) { in readReply()
199 int remaining = MESSAGE_LENGTH - totalBytesRead; in readReply()
200 int bytesRead = socket.getInputStream().read(buffer, totalBytesRead, remaining); in readReply()
204 totalBytesRead += bytesRead; in readReply()
208 assertEquals(MESSAGE_LENGTH, totalBytesRead); in readReply()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DRenegotiationTest.java192 int totalBytesRead = 0; in readReply() local
193 while (totalBytesRead < MESSAGE_LENGTH) { in readReply()
194 int remaining = MESSAGE_LENGTH - totalBytesRead; in readReply()
195 int bytesRead = socket.getInputStream().read(buffer, totalBytesRead, remaining); in readReply()
199 totalBytesRead += bytesRead; in readReply()
203 assertEquals(MESSAGE_LENGTH, totalBytesRead); in readReply()
/external/zstd/contrib/pzstd/
DPzstd.cpp362 std::uint64_t *totalBytesRead) { in readData() argument
367 *totalBytesRead += bytesRead; in readData()
498 std::uint64_t totalBytesRead = 0; in asyncDecompressFrames() local
519 totalBytesRead += bytesRead; in asyncDecompressFrames()
546 status = readData(*in, chunkSize, chunkSize, fd, &totalBytesRead); in asyncDecompressFrames()
552 status = readData(*in, chunkSize, frameSize, fd, &totalBytesRead); in asyncDecompressFrames()
555 return totalBytesRead; in asyncDecompressFrames()
/external/okio/okio/src/commonMain/kotlin/okio/internal/
DRealBufferedSink.kt91 var totalBytesRead = 0L in commonWriteAll() variable
95 totalBytesRead += readCount in commonWriteAll()
98 return totalBytesRead in commonWriteAll()
DBuffer.kt1076 var totalBytesRead = 0L in commonWriteAll() variable
1080 totalBytesRead += readCount in commonWriteAll()
1082 return totalBytesRead in commonWriteAll()
/external/rmi4utils/rmidevice/
Dhiddevice.cpp227 size_t totalBytesRead; in Read() local
242 for (totalBytesRead = 0; totalBytesRead < len; totalBytesRead += bytesReadPerRequest) { in Read()
244 if ((len - totalBytesRead) < bytesPerRequest) in Read()
295 return totalBytesRead; in Read()
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
DRealBufferedSink.java102 long totalBytesRead = 0; in writeAll() local
104 totalBytesRead += readCount; in writeAll()
107 return totalBytesRead; in writeAll()
DBuffer.java957 long totalBytesRead = 0;
959 totalBytesRead += readCount;
961 return totalBytesRead;
/external/okhttp/okio/okio/src/main/java/okio/
DRealBufferedSink.java101 long totalBytesRead = 0; in writeAll() local
103 totalBytesRead += readCount; in writeAll()
106 return totalBytesRead; in writeAll()
DBuffer.java955 long totalBytesRead = 0;
957 totalBytesRead += readCount;
959 return totalBytesRead;
/external/skqp/experimental/Networking/
DSkSockets.cpp88 int totalBytesRead = 0; in readPacket() local
165 totalBytesRead += bytesReadInTransfer; in readPacket()
168 return totalBytesRead; in readPacket()
/external/protobuf/javamicro/src/main/java/com/google/protobuf/micro/
DCodedInputStreamMicro.java635 final int totalBytesRead = in refillBuffer() local
637 if (totalBytesRead > sizeLimit || totalBytesRead < 0) { in refillBuffer()
/external/protobuf/csharp/src/Google.Protobuf/
DCodedInputStream.cs1082 int totalBytesRead = in RefillBuffer()
1084 if (totalBytesRead < 0 || totalBytesRead > sizeLimit) in RefillBuffer()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DCodedInputStream.java3117 private int totalBytesRead; field in CodedInputStream.IterableDirectByteBufferDecoder
3145 startOffset = totalBytesRead = 0; in IterableDirectByteBufferDecoder()
3167 totalBytesRead += (int) (currentByteBufferPos - currentByteBufferStartPos); in tryGetNextByteBuffer()
3725 startOffset = (int) (totalBytesRead + currentByteBufferPos - currentByteBufferStartPos); in resetSizeCounter()
3774 return totalBytesRead + currentByteBufferPos - currentByteBufferStartPos == totalBufferSize; in isAtEnd()
3780 (totalBytesRead - startOffset + currentByteBufferPos - currentByteBufferStartPos); in getTotalBytesRead()
3856 - totalBytesRead in skipRawBytes()
3895 (totalBufferSize - totalBytesRead - currentByteBufferPos + currentByteBufferStartPos); in remaining()