/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 | 91 private long bytesRead; field in Inflater 280 bytesRead += (thisLen - this.len); in inflate() 335 return bytesRead; in getBytesRead() 376 bytesRead = bytesWritten = 0; in reset()
|
D | Deflater.java | 91 private long bytesRead; field in Deflater 464 bytesRead += (thisLen - this.len); in deflate() 504 return bytesRead; in getBytesRead() 545 bytesRead = bytesWritten = 0; in reset()
|
/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/luni/src/main/java/libcore/io/ |
D | Streams.java | 125 int bytesRead = in.read(dst, offset, byteCount); in readFully() local 126 if (bytesRead < 0) { in readFully() 129 offset += bytesRead; in readFully() 130 byteCount -= bytesRead; in readFully()
|
D | Linux.java | 140 final int bytesRead; in pread() local 144 bytesRead = preadBytes(fd, buffer, position, buffer.remaining(), offset); in pread() 146 …bytesRead = preadBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + posi… in pread() 149 maybeUpdateBufferPosition(buffer, position, bytesRead); in pread() 150 return bytesRead; in pread() 176 final int bytesRead; in read() local 180 bytesRead = readBytes(fd, buffer, position, buffer.remaining()); in read() 182 …bytesRead = readBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + posit… in read() 185 maybeUpdateBufferPosition(buffer, position, bytesRead); in read() 186 return bytesRead; in read()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | LinuxWatchService.java | 334 int nReady, bytesRead; in run() local 341 bytesRead = read(ifd, address, BUFFER_SIZE); in run() 345 bytesRead = 0; in run() 349 if ((nReady > 1) || (nReady == 1 && bytesRead == 0)) { in run() 363 while (offset < bytesRead) { in run()
|
/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/test/java/libcore/java/lang/ |
D | ClassTest.java | 75 int bytesRead = 0; in test_b28833829() local 76 while ((bytesRead = is.read(buffer)) >= 0) { in test_b28833829() 77 os.write(buffer, 0, bytesRead); in test_b28833829()
|
/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/ojluni/annotations/hiddenapi/java/util/zip/ |
D | Inflater.java | 138 private long bytesRead; field in Inflater
|
D | Deflater.java | 166 private long bytesRead; field in Deflater
|
/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 | 1878 int bytesRead = theInput.read(myBytes, totalBytesRead, in readShortString() local 1880 totalBytesRead = totalBytesRead + bytesRead; in readShortString()
|