Home
last modified time | relevance | path

Searched refs:bytesRead (Results 1 – 22 of 22) sorted by relevance

/libcore/luni/src/test/java/libcore/java/io/
DOldInputStreamTest.java90 int bytesRead = 0; in test_read$B() local
105 bytesRead = is.read(b); in test_read$B()
107 bytesRead, ref.length - 10); in test_read$B()
109 for (i = 0; i < bytesRead; i++) { in test_read$B()
116 bytesRead = is.read(b); in test_read$B()
117 assertEquals("Test 3:", bytesRead, -1); in test_read$B()
122 int bytesRead = 0; in test_read$BII_Exception() local
126 bytesRead = is.read(b, -1, 5); in test_read$BII_Exception()
134 bytesRead = is.read(b, 5, -1); in test_read$BII_Exception()
143 bytesRead = is.read(b, 6, 5); in test_read$BII_Exception()
[all …]
DOldObjectOutputStreamPutFieldTest.java121 int bytesRead; in getRefContent() local
128 bytesRead = refStream.read(streamContent); in getRefContent()
132 refContent = new byte[bytesRead]; in getRefContent()
133 System.arraycopy(streamContent, 0, refContent, 0, bytesRead); in getRefContent()
DOldRandomAccessFileTest.java299 int bytesRead = raf.read(rbuf); in test_read$B() local
301 testLength, bytesRead); in test_read$B()
305 bytesRead = raf.read(rbuf); in test_read$B()
306 assertTrue("Test 3: EOF (-1) expected. ", bytesRead == -1); in test_read$B()
310 bytesRead = raf.read(rbuf); in test_read$B()
321 int bytesRead; in test_read$BII() local
330 bytesRead = raf.read(rbuf, 10, testLength / 2); in test_read$BII()
332 testLength / 2, bytesRead); in test_read$BII()
338 bytesRead = raf.read(rbuf, 0, testLength); in test_read$BII()
340 testLength - (testLength / 2), bytesRead); in test_read$BII()
[all …]
DOldInputStreamReaderTest.java151 int bytesRead = isr.read(buf, 0, buf.length); in testInputStreamReaderSuccessiveReads() local
152 if (bytesRead == -1) { in testInputStreamReaderSuccessiveReads()
155 bytesRead = isr.read(buf, 0, buf.length); in testInputStreamReaderSuccessiveReads()
156 if (bytesRead == -1) { in testInputStreamReaderSuccessiveReads()
/libcore/ojluni/src/main/java/java/io/
DFileInputStream.java250 int bytesRead = 0; in read() local
252 bytesRead = IoBridge.read(fd, b, off, len); in read()
254 IoTrace.fileReadEnd(traceContext, bytesRead == -1 ? 0 : bytesRead); in read()
256 return bytesRead; in read()
/libcore/ojluni/src/main/java/java/nio/channels/
DChannels.java226 int bytesRead = 0; in read() local
237 bytesRead = in.read(buf, 0, bytesToRead); in read()
239 end(bytesRead > 0); in read()
241 if (bytesRead < 0) in read()
244 totalRead += bytesRead; in read()
245 dst.put(buf, 0, bytesRead); in read()
247 if ((bytesRead < 0) && (totalRead == 0)) in read()
/libcore/ojluni/src/main/java/sun/misc/
DIoTrace.java95 int timeout, long bytesRead) { in socketReadEnd() argument
145 public static void fileReadEnd(Object context, long bytesRead) { in fileReadEnd() argument
/libcore/ojluni/src/main/java/java/util/zip/
DInflater.java84 private long bytesRead; field in Inflater
262 bytesRead += (thisLen - this.len); in inflate()
317 return bytesRead; in getBytesRead()
358 bytesRead = bytesWritten = 0; in reset()
DDeflater.java84 private long bytesRead; field in Deflater
432 bytesRead += (thisLen - this.len); in deflate()
472 return bytesRead; in getBytesRead()
513 bytesRead = bytesWritten = 0; in reset()
/libcore/luni/src/test/java/libcore/java/lang/
DClassTest.java67 int bytesRead = 0; in test_b28833829() local
68 while ((bytesRead = is.read(buffer)) >= 0) { in test_b28833829()
69 os.write(buffer, 0, bytesRead); in test_b28833829()
/libcore/luni/src/main/java/libcore/io/
DStreams.java81 int bytesRead = in.read(dst, offset, byteCount); in readFully() local
82 if (bytesRead < 0) { in readFully()
85 offset += bytesRead; in readFully()
86 byteCount -= bytesRead; in readFully()
DPosix.java119 final int bytesRead; in pread() local
123 bytesRead = preadBytes(fd, buffer, position, buffer.remaining(), offset); in pread()
125bytesRead = preadBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + posi… in pread()
128 maybeUpdateBufferPosition(buffer, position, bytesRead); in pread()
129 return bytesRead; in pread()
155 final int bytesRead; in read() local
159 bytesRead = readBytes(fd, buffer, position, buffer.remaining()); in read()
161bytesRead = readBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + posit… in read()
164 maybeUpdateBufferPosition(buffer, position, bytesRead); in read()
165 return bytesRead; in read()
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTest.java1056 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_connectLjava_net_SocketAddress() local
1058 totalBytesRead = totalBytesRead + bytesRead; in test_connectLjava_net_SocketAddress()
1074 int bytesRead = theInput2.read(myBytes, totalBytesRead, in test_connectLjava_net_SocketAddress() local
1076 totalBytesRead = totalBytesRead + bytesRead; in test_connectLjava_net_SocketAddress()
1348 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_connectLjava_net_SocketAddressI() local
1350 totalBytesRead = totalBytesRead + bytesRead; in test_connectLjava_net_SocketAddressI()
1366 int bytesRead = theInput2.read(myBytes, totalBytesRead, in test_connectLjava_net_SocketAddressI() local
1368 totalBytesRead = totalBytesRead + bytesRead; in test_connectLjava_net_SocketAddressI()
1735 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_sendUrgentDataI() local
1737 totalBytesRead = totalBytesRead + bytesRead; in test_sendUrgentDataI()
[all …]
/libcore/dalvik/src/main/java/dalvik/system/profiler/
DBinaryHprofReader.java266 int bytesRead = in.read(dst, offset, byteCount); in readFully() local
267 if (bytesRead < 0) { in readFully()
270 offset += bytesRead; in readFully()
271 byteCount -= bytesRead; in readFully()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DInputStreamReaderTest.java450 int bytesRead = isr.read(buf, 0, buf.length); in test_read$CII() local
451 assertFalse(-1 == bytesRead); in test_read$CII()
452 bytesRead = isr.read(buf, 0, buf.length); in test_read$CII()
453 assertFalse(-1 == bytesRead); in test_read$CII()
/libcore/ojluni/src/main/java/sun/nio/ch/
DIOUtil.java278 long bytesRead = nd.readv(fd, vec.address, iov_len); in read() local
281 long left = bytesRead; in read()
303 return bytesRead; in read()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DDeflaterInputStreamTest.java152 int bytesRead = 0; in testRead_golden() local
153 while ((bytesRead = dis.read(result, count, 4)) != -1) { in testRead_golden()
154 count += bytesRead; in testRead_golden()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherTest.java346 int bytesRead = is.read(input, 0, 256); in test_update$BII() local
347 while (bytesRead > 0) { in test_update$BII()
348 byte[] output = c.update(input, 0, bytesRead); in test_update$BII()
352 bytesRead = is.read(input, 0, 256); in test_update$BII()
404 int bytesRead = is.read(input, 0, 256); in test_doFinal() local
405 while (bytesRead > 0) { in test_doFinal()
406 byte[] output = c.update(input, 0, bytesRead); in test_doFinal()
410 bytesRead = is.read(input, 0, 256); in test_doFinal()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DSocketTest.java1234 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_sendUrgentDataI() local
1236 if (bytesRead == -1) { in test_sendUrgentDataI()
1239 totalBytesRead = totalBytesRead + bytesRead; in test_sendUrgentDataI()
1290 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_sendUrgentDataI() local
1292 if (bytesRead == -1) { in test_sendUrgentDataI()
1295 totalBytesRead = totalBytesRead + bytesRead; in test_sendUrgentDataI()
1349 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_sendUrgentDataI() local
1351 if (bytesRead == -1) { in test_sendUrgentDataI()
1354 totalBytesRead = totalBytesRead + bytesRead; in test_sendUrgentDataI()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DFileIOInterruptTest.java471 int bytesRead = inputStream.read(buffer); in run() local
472 fail("This isn't supposed to happen: read() returned: " + bytesRead); in run()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSocketChannelTest.java2205 int bytesRead = workerChannel.read(buffer); in testReadByteBuffer_Direct2() local
2206 assertEquals(5, bytesRead); in testReadByteBuffer_Direct2()
2210 bytesRead = workerChannel.read(buffer); in testReadByteBuffer_Direct2()
2211 assertEquals(6, bytesRead); in testReadByteBuffer_Direct2()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java1801 int bytesRead = socket.getInputStream().read(buffer); in captureTlsHandshakeFirstTransmittedChunkBytes()
1802 if (bytesRead == -1) { in captureTlsHandshakeFirstTransmittedChunkBytes()
1805 return Arrays.copyOf(buffer, bytesRead); in captureTlsHandshakeFirstTransmittedChunkBytes()