Home
last modified time | relevance | path

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

/libcore/benchmarks/src/benchmarks/regression/
DURLConnectionBenchmark.java72 int totalBytesRead = 0; in timeGet() local
74 totalBytesRead += get(); in timeGet()
76 return totalBytesRead; in timeGet()
80 int totalBytesRead = 0; in get() local
86 totalBytesRead += count; in get()
88 return totalBytesRead; in get()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DSocketTest.java1232 int totalBytesRead = 0; in test_sendUrgentDataI() local
1236 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_sendUrgentDataI()
1237 myBytes.length - totalBytesRead); in test_sendUrgentDataI()
1241 totalBytesRead = totalBytesRead + bytesRead; in test_sendUrgentDataI()
1252 byte[] resultBytes = new byte[totalBytesRead]; in test_sendUrgentDataI()
1253 System.arraycopy(myBytes, 0, resultBytes, 0, totalBytesRead); in test_sendUrgentDataI()
1288 totalBytesRead = 0; in test_sendUrgentDataI()
1292 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_sendUrgentDataI()
1293 myBytes.length - totalBytesRead); in test_sendUrgentDataI()
1297 totalBytesRead = totalBytesRead + bytesRead; in test_sendUrgentDataI()
[all …]
/libcore/ojluni/src/main/java/java/io/
DObjectInputStream.java2415 private long totalBytesRead = 0; field in ObjectInputStream.PeekInputStream
2433 totalBytesRead += peekb >= 0 ? 1 : 0; in peek()
2444 totalBytesRead += nbytes >= 0 ? 1 : 0; in read()
2455 totalBytesRead += nbytes >= 0 ? nbytes : 0; in read()
2462 totalBytesRead += nbytes >= 0 ? nbytes : 0; in read()
2489 totalBytesRead += n; in skip()
2502 return totalBytesRead; in getBytesRead()
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTest.java1875 int totalBytesRead = 0; in readShortString() local
1878 int bytesRead = theInput.read(myBytes, totalBytesRead, in readShortString()
1879 myBytes.length - totalBytesRead); in readShortString()
1880 totalBytesRead = totalBytesRead + bytesRead; in readShortString()
1883 return new String(myBytes, 0, totalBytesRead); in readShortString()
/libcore/ojluni/annotations/hiddenapi/java/io/
DObjectInputStream.java838 private long totalBytesRead = 0; // 0x0 field in ObjectInputStream.PeekInputStream