/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/luni/src/main/java/java/util/zip/ |
D | CheckedInputStream.java | 82 int bytesRead = in.read(buffer, byteOffset, byteCount); in read() local 83 if (bytesRead != -1) { in read() 84 check.update(buffer, byteOffset, bytesRead); in read() 86 return bytesRead; in read()
|
D | GZIPInputStream.java | 138 int bytesRead; in read() local 140 bytesRead = super.read(buffer, byteOffset, byteCount); in read() 145 if (bytesRead != -1) { in read() 146 crc.update(buffer, byteOffset, bytesRead); in read() 160 return bytesRead; in read()
|
D | DeflaterInputStream.java | 129 int bytesRead = in.read(buf); in read() local 130 if (bytesRead == -1) { in read() 133 def.setInput(buf, 0, bytesRead); in read()
|
D | ZipFile.java | 528 private long bytesRead = 0; 541 + bytesRead, e); 544 if (entry.size != bytesRead) { 545 throw new IOException("Size mismatch on inflated file: " + bytesRead + " vs " 549 bytesRead += i; 561 return super.available() == 0 ? 0 : (int) (entry.getSize() - bytesRead);
|
/libcore/luni/src/main/java/java/security/ |
D | DigestInputStream.java | 113 int bytesRead = in.read(buffer, byteOffset, byteCount); in read() local 117 if (isOn && (bytesRead != -1)) { in read() 118 digest.update(buffer, byteOffset, bytesRead); in read() 121 return bytesRead; in read()
|
/libcore/luni/src/main/java/java/io/ |
D | CharArrayReader.java | 203 int bytesRead = pos + count > this.count ? this.count - pos : count; 204 System.arraycopy(this.buf, pos, buffer, offset, bytesRead); 205 pos += bytesRead; 206 return bytesRead;
|
/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 | 115 final int bytesRead; in pread() local 119 bytesRead = preadBytes(fd, buffer, position, buffer.remaining(), offset); in pread() 121 …bytesRead = preadBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + posi… in pread() 124 maybeUpdateBufferPosition(buffer, position, bytesRead); in pread() 125 return bytesRead; in pread() 151 final int bytesRead; in read() local 155 bytesRead = readBytes(fd, buffer, position, buffer.remaining()); in read() 157 …bytesRead = readBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + posit… in read() 160 maybeUpdateBufferPosition(buffer, position, bytesRead); in read() 161 return bytesRead; in read()
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
D | BerInputStream.java | 764 int bytesRead = in.read(buffer, offset, length); in readContent() local 766 if (bytesRead != length) { in readContent() 769 int c = bytesRead; in readContent() 771 if (c < 1 || bytesRead > length) { in readContent() 774 c = in.read(buffer, offset + bytesRead, length - bytesRead); in readContent() 775 bytesRead += c; in readContent() 776 } while (bytesRead != length); in readContent()
|
/libcore/luni/src/main/java/java/nio/ |
D | FileChannelImpl.java | 301 int bytesRead = 0; in readImpl() local 307 bytesRead = Libcore.os.read(fd, buffer); in readImpl() 309 bytesRead = Libcore.os.pread(fd, buffer, position); in readImpl() 311 if (bytesRead == 0) { in readImpl() 312 bytesRead = -1; in readImpl() 317 bytesRead = 0; in readImpl() 324 end(completed && bytesRead >= 0); in readImpl() 327 return bytesRead; in readImpl()
|
/libcore/luni/src/main/java/java/net/ |
D | PlainSocketImpl.java | 438 int bytesRead = 0; in socksReadReply() local 439 while (bytesRead < Socks4Message.REPLY_LENGTH) { in socksReadReply() 440 int count = getInputStream().read(reply.getBytes(), bytesRead, in socksReadReply() 441 Socks4Message.REPLY_LENGTH - bytesRead); in socksReadReply() 445 bytesRead += count; in socksReadReply() 447 if (Socks4Message.REPLY_LENGTH != bytesRead) { in socksReadReply()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldSocketTest.java | 1067 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_connectLjava_net_SocketAddress() local 1069 totalBytesRead = totalBytesRead + bytesRead; in test_connectLjava_net_SocketAddress() 1085 int bytesRead = theInput2.read(myBytes, totalBytesRead, in test_connectLjava_net_SocketAddress() local 1087 totalBytesRead = totalBytesRead + bytesRead; in test_connectLjava_net_SocketAddress() 1347 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_connectLjava_net_SocketAddressI() local 1349 totalBytesRead = totalBytesRead + bytesRead; in test_connectLjava_net_SocketAddressI() 1365 int bytesRead = theInput2.read(myBytes, totalBytesRead, in test_connectLjava_net_SocketAddressI() local 1367 totalBytesRead = totalBytesRead + bytesRead; in test_connectLjava_net_SocketAddressI() 1734 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_sendUrgentDataI() local 1736 totalBytesRead = totalBytesRead + bytesRead; in test_sendUrgentDataI() [all …]
|
/libcore/luni/src/main/native/ |
D | java_util_zip_Deflater.cpp | 101 jint bytesRead = stream->stream.next_in - initialNextIn; in Deflater_deflateImpl() local 106 inReadValue += bytesRead; in Deflater_deflateImpl()
|
D | java_util_zip_Inflater.cpp | 122 jint bytesRead = stream->stream.next_in - initialNextIn; in Inflater_inflateImpl() local 127 inReadValue += bytesRead; in Inflater_inflateImpl()
|
/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/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/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 | 1231 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_sendUrgentDataI() local 1233 if (bytesRead == -1) { in test_sendUrgentDataI() 1236 totalBytesRead = totalBytesRead + bytesRead; in test_sendUrgentDataI() 1287 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_sendUrgentDataI() local 1289 if (bytesRead == -1) { in test_sendUrgentDataI() 1292 totalBytesRead = totalBytesRead + bytesRead; in test_sendUrgentDataI() 1346 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_sendUrgentDataI() local 1348 if (bytesRead == -1) { in test_sendUrgentDataI() 1351 totalBytesRead = totalBytesRead + bytesRead; in test_sendUrgentDataI()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FileIOInterruptTest.java | 463 int bytesRead = inputStream.read(buffer); in run() local 464 fail("This isn't supposed to happen: read() returned: " + bytesRead); in run()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLSocketTest.java | 1493 int bytesRead = socket.getInputStream().read(buffer); in test_SSLSocket_ClientHello_size() 1494 if (bytesRead == -1) { in test_SSLSocket_ClientHello_size() 1497 return Arrays.copyOf(buffer, bytesRead); in test_SSLSocket_ClientHello_size()
|