Searched refs:readBuffers (Results 1 – 2 of 2) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | FileChannelTest.java | 1399 ByteBuffer[] readBuffers = new ByteBuffer[2]; in test_read$LByteBuffer() local 1400 readBuffers[0] = ByteBuffer.allocate(CAPACITY); in test_read$LByteBuffer() 1401 readBuffers[1] = ByteBuffer.allocate(CAPACITY); in test_read$LByteBuffer() 1403 long readCount = readOnlyFileChannel.read(readBuffers); in test_read$LByteBuffer() 1405 assertEquals(CONTENT_AS_BYTES_LENGTH, readBuffers[0].position()); in test_read$LByteBuffer() 1406 assertEquals(0, readBuffers[1].position()); in test_read$LByteBuffer() 1407 readBuffers[0].flip(); in test_read$LByteBuffer() 1409 assertEquals(CONTENT_AS_BYTES[i], readBuffers[0].get()); in test_read$LByteBuffer() 1429 ByteBuffer[] readBuffers = null; in test_read$LByteBufferII_Null() local 1432 readOnlyFileChannel.read(readBuffers, 0, 1); in test_read$LByteBufferII_Null() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | OldFileChannelTest.java | 544 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 …]
|