/libcore/luni/src/test/java/libcore/java/io/ |
D | OldInputStreamTest.java | 90 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 …]
|
D | OldObjectOutputStreamPutFieldTest.java | 121 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()
|
D | OldRandomAccessFileTest.java | 299 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 …]
|
D | OldInputStreamReaderTest.java | 151 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/ |
D | FileInputStream.java | 250 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/ |
D | Channels.java | 226 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/ |
D | IoTrace.java | 95 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/ |
D | Inflater.java | 84 private long bytesRead; field in Inflater 262 bytesRead += (thisLen - this.len); in inflate() 317 return bytesRead; in getBytesRead() 358 bytesRead = bytesWritten = 0; in reset()
|
D | Deflater.java | 84 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/ |
D | ClassTest.java | 67 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/ |
D | Streams.java | 81 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()
|
D | Posix.java | 119 final int bytesRead; in pread() local 123 bytesRead = preadBytes(fd, buffer, position, buffer.remaining(), offset); in pread() 125 …bytesRead = 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() 161 …bytesRead = 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/ |
D | OldSocketTest.java | 1056 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/ |
D | BinaryHprofReader.java | 266 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/ |
D | InputStreamReaderTest.java | 450 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/ |
D | IOUtil.java | 278 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/ |
D | DeflaterInputStreamTest.java | 152 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/ |
D | CipherTest.java | 346 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/ |
D | SocketTest.java | 1234 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/ |
D | FileIOInterruptTest.java | 471 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/ |
D | SocketChannelTest.java | 2205 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/ |
D | SSLSocketTest.java | 1801 int bytesRead = socket.getInputStream().read(buffer); in captureTlsHandshakeFirstTransmittedChunkBytes() 1802 if (bytesRead == -1) { in captureTlsHandshakeFirstTransmittedChunkBytes() 1805 return Arrays.copyOf(buffer, bytesRead); in captureTlsHandshakeFirstTransmittedChunkBytes()
|