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/util/zip/
DInflater.java91 private long bytesRead; field in Inflater
280 bytesRead += (thisLen - this.len); in inflate()
335 return bytesRead; in getBytesRead()
376 bytesRead = bytesWritten = 0; in reset()
DDeflater.java91 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/
DChannels.java375 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/
DChannelsTest.java78 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()
DFileIOInterruptTest.java471 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/
DStreams.java125 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()
DLinux.java140 final int bytesRead; in pread() local
144 bytesRead = preadBytes(fd, buffer, position, buffer.remaining(), offset); in pread()
146bytesRead = 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()
182bytesRead = 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/
DLinuxWatchService.java334 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/
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.java159 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/
DClassTest.java75 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/
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.java1236 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/
DInflater.java138 private long bytesRead; field in Inflater
DDeflater.java166 private long bytesRead; field in Deflater
/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/java/net/
DOldSocketTest.java1878 int bytesRead = theInput.read(myBytes, totalBytesRead, in readShortString() local
1880 totalBytesRead = totalBytesRead + bytesRead; in readShortString()