Home
last modified time | relevance | path

Searched refs:totalBytesRead (Results 1 – 17 of 17) 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/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.java199 int totalBytesRead = 0; in readReply() local
200 while (totalBytesRead < MESSAGE_LENGTH) { in readReply()
201 int remaining = MESSAGE_LENGTH - totalBytesRead; in readReply()
202 int bytesRead = socket.getInputStream().read(buffer, totalBytesRead, remaining); in readReply()
206 totalBytesRead += bytesRead; in readReply()
210 assertEquals(MESSAGE_LENGTH, totalBytesRead); in readReply()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DRenegotiationTest.java194 int totalBytesRead = 0; in readReply() local
195 while (totalBytesRead < MESSAGE_LENGTH) { in readReply()
196 int remaining = MESSAGE_LENGTH - totalBytesRead; in readReply()
197 int bytesRead = socket.getInputStream().read(buffer, totalBytesRead, remaining); in readReply()
201 totalBytesRead += bytesRead; in readReply()
205 assertEquals(MESSAGE_LENGTH, totalBytesRead); in readReply()
/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/skia/experimental/Networking/
DSkSockets.cpp88 int totalBytesRead = 0; in readPacket() local
165 totalBytesRead += bytesReadInTransfer; in readPacket()
168 return totalBytesRead; in readPacket()
/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.cs1052 int totalBytesRead = in RefillBuffer()
1054 if (totalBytesRead > sizeLimit || totalBytesRead < 0) in RefillBuffer()