Home
last modified time | relevance | path

Searched refs:readBuffers (Results 1 – 3 of 3) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileChannelTest.java1400 ByteBuffer[] readBuffers = new ByteBuffer[2]; in test_read$LByteBuffer() local
1401 readBuffers[0] = ByteBuffer.allocate(CAPACITY); in test_read$LByteBuffer()
1402 readBuffers[1] = ByteBuffer.allocate(CAPACITY); in test_read$LByteBuffer()
1404 long readCount = readOnlyFileChannel.read(readBuffers); in test_read$LByteBuffer()
1406 assertEquals(CONTENT_AS_BYTES_LENGTH, readBuffers[0].position()); in test_read$LByteBuffer()
1407 assertEquals(0, readBuffers[1].position()); in test_read$LByteBuffer()
1408 readBuffers[0].flip(); in test_read$LByteBuffer()
1410 assertEquals(CONTENT_AS_BYTES[i], readBuffers[0].get()); in test_read$LByteBuffer()
1430 ByteBuffer[] readBuffers = null; in test_read$LByteBufferII_Null() local
1433 readOnlyFileChannel.read(readBuffers, 0, 1); in test_read$LByteBufferII_Null()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/channels/
DOldFileChannelTest.java544 ByteBuffer[] readBuffers = new ByteBuffer[2]; in test_read$LByteBufferII_IndexOutOfBound() local
545 readBuffers[0] = ByteBuffer.allocate(CAPACITY); in test_read$LByteBufferII_IndexOutOfBound()
546 readBuffers[1] = ByteBuffer.allocate(CAPACITY); in test_read$LByteBufferII_IndexOutOfBound()
549 doTestForIOOBException(readOnlyFileChannel, readBuffers); in test_read$LByteBufferII_IndexOutOfBound()
550 doTestForIOOBException(readWriteFileChannel, readBuffers); in test_read$LByteBufferII_IndexOutOfBound()
551 doTestForIOOBException(writeOnlyFileChannel, readBuffers); in test_read$LByteBufferII_IndexOutOfBound()
596 doTestForIOOBException(readOnlyFileChannel, readBuffers); in test_read$LByteBufferII_IndexOutOfBound()
600 doTestForIOOBException(readWriteFileChannel, readBuffers); in test_read$LByteBufferII_IndexOutOfBound()
604 doTestForIOOBException(writeOnlyFileChannel, readBuffers); in test_read$LByteBufferII_IndexOutOfBound()
609 ByteBuffer[] readBuffers = new ByteBuffer[2]; in test_read$LByteBufferII_EmptyFile() local
[all …]
/libcore/ojluni/src/main/java/sun/nio/ch/
DUnixAsynchronousSocketChannelImpl.java79 private ByteBuffer[] readBuffers; field in UnixAsynchronousSocketChannelImpl
409 n = (int)IOUtil.read(fd, readBuffers, nd); in finishRead()
423 this.readBuffers = null; in finishRead()
541 this.readBuffers = dsts; in implRead()