/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/util/zip/ |
D | Inflater.java | 84 private long bytesRead; field in Inflater 264 bytesRead += (thisLen - this.len); in inflate() 319 return bytesRead; in getBytesRead() 360 bytesRead = bytesWritten = 0; in reset()
|
D | Deflater.java | 84 private long bytesRead; field in Deflater 448 bytesRead += (thisLen - this.len); in deflate() 488 return bytesRead; in getBytesRead() 529 bytesRead = bytesWritten = 0; in reset()
|
/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 | Linux.java | 134 final int bytesRead; in pread() local 138 bytesRead = preadBytes(fd, buffer, position, buffer.remaining(), offset); in pread() 140 …bytesRead = preadBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + posi… in pread() 143 maybeUpdateBufferPosition(buffer, position, bytesRead); in pread() 144 return bytesRead; in pread() 170 final int bytesRead; in read() local 174 bytesRead = readBytes(fd, buffer, position, buffer.remaining()); in read() 176 …bytesRead = readBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + posit… in read() 179 maybeUpdateBufferPosition(buffer, position, bytesRead); in read() 180 return bytesRead; in read()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | Channels.java | 375 int bytesRead = 0; 386 bytesRead = in.read(buf, 0, bytesToRead); 388 end(bytesRead > 0); 390 if (bytesRead < 0) 393 totalRead += bytesRead; 394 dst.put(buf, 0, bytesRead); 396 if ((bytesRead < 0) && (totalRead == 0))
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | ChannelsTest.java | 78 final byte[] bytesRead = new byte[10]; in testInputStreamAsynchronousByteChannel() 85 assertEquals(bytesRead.length, bb.remaining()); in testInputStreamAsynchronousByteChannel() 92 assertEquals(7, is.read(bytesRead)); in testInputStreamAsynchronousByteChannel() 95 assertTrue(Arrays.equals(bytesExpected, bytesRead)); in testInputStreamAsynchronousByteChannel()
|
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/ojluni/src/main/java/sun/nio/fs/ |
D | LinuxWatchService.java | 338 int nReady, bytesRead; in run() local 345 bytesRead = read(ifd, address, BUFFER_SIZE); in run() 349 bytesRead = 0; in run() 353 if ((nReady > 1) || (nReady == 1 && bytesRead == 0)) { in run() 367 while (offset < bytesRead) { in run()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ClassTest.java | 72 int bytesRead = 0; in test_b28833829() local 73 while ((bytesRead = is.read(buffer)) >= 0) { in test_b28833829() 74 os.write(buffer, 0, bytesRead); in test_b28833829()
|
/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 | 159 int bytesRead; in testRead_golden() local 160 while ((bytesRead = dis.read(result, count, 4)) != -1) { in testRead_golden() 161 count += bytesRead; in testRead_golden()
|
/libcore/luni/src/main/java/libcore/util/ |
D | ZoneInfoDB.java | 410 int bytesRead = is.read(tzdataVersion, 0, bytesToRead); in getRulesVersion() local 411 if (bytesRead != bytesToRead) { in getRulesVersion() 412 throw new IOException("File too short: only able to read " + bytesRead + " bytes."); in getRulesVersion()
|
/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 | 1236 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_sendUrgentDataI() local 1238 if (bytesRead == -1) { in test_sendUrgentDataI() 1241 totalBytesRead = totalBytesRead + bytesRead; in test_sendUrgentDataI() 1292 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_sendUrgentDataI() local 1294 if (bytesRead == -1) { in test_sendUrgentDataI() 1297 totalBytesRead = totalBytesRead + bytesRead; in test_sendUrgentDataI() 1351 int bytesRead = theInput.read(myBytes, totalBytesRead, in test_sendUrgentDataI() local 1353 if (bytesRead == -1) { in test_sendUrgentDataI() 1356 totalBytesRead = totalBytesRead + bytesRead; in test_sendUrgentDataI()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLSocketTest.java | 2274 int bytesRead = socket.getInputStream().read(buffer); in captureTlsHandshakeFirstTransmittedChunkBytes() 2275 if (bytesRead == -1) { in captureTlsHandshakeFirstTransmittedChunkBytes() 2278 return Arrays.copyOf(buffer, bytesRead); in captureTlsHandshakeFirstTransmittedChunkBytes() 2755 int bytesRead = in.read(dst, offset, byteCount); in readFully() local 2756 if (bytesRead < 0) { in readFully() 2759 offset += bytesRead; in readFully() 2760 byteCount -= bytesRead; in readFully()
|
/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/java/net/ |
D | OldSocketTest.java | 1866 int bytesRead = theInput.read(myBytes, totalBytesRead, in readShortString() local 1868 totalBytesRead = totalBytesRead + bytesRead; in readShortString()
|