Home
last modified time | relevance | path

Searched refs:charBuffer (Results 1 – 5 of 5) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DReaderTest.java30 CharBuffer charBuffer = null; in test_Reader_CharBuffer_null() local
32 mockReader.read(charBuffer); in test_Reader_CharBuffer_null()
45 CharBuffer charBuffer = CharBuffer.allocate(0); in test_Reader_CharBuffer_ZeroChar() local
46 int result = mockReader.read(charBuffer); in test_Reader_CharBuffer_ZeroChar()
58 CharBuffer charBuffer = CharBuffer.allocate(CHARBUFFER_SIZE); in test_Reader_CharBufferChar() local
59 charBuffer.append('A'); in test_Reader_CharBufferChar()
60 final int CHARBUFFER_REMAINING = charBuffer.remaining(); in test_Reader_CharBufferChar()
61 int result = mockReader.read(charBuffer); in test_Reader_CharBufferChar()
63 charBuffer.rewind(); in test_Reader_CharBufferChar()
64 assertEquals(s.substring(0, CHARBUFFER_REMAINING), charBuffer in test_Reader_CharBufferChar()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DDirectCharBufferTest.java61 CharBuffer charBuffer = directByteBuffer.asCharBuffer(); in testJNIAccessByAddress() local
63 long charBufferBasePointer = NIOAccess.getBasePointer(charBuffer); in testJNIAccessByAddress()
67 charBuffer.put('b'); in testJNIAccessByAddress()
68 assertEquals(charBufferBasePointer + Character.BYTES, NIOAccess.getBasePointer(charBuffer)); in testJNIAccessByAddress()
DByteBufferTest.java845 CharBuffer charBuffer; in testAsCharBuffer() local
852 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()
853 assertSame(ByteOrder.BIG_ENDIAN, charBuffer.order()); in testAsCharBuffer()
854 while (charBuffer.remaining() > 0) { in testAsCharBuffer()
856 value = charBuffer.get(); in testAsCharBuffer()
863 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()
864 assertSame(ByteOrder.LITTLE_ENDIAN, charBuffer.order()); in testAsCharBuffer()
865 while (charBuffer.remaining() > 0) { in testAsCharBuffer()
867 value = charBuffer.get(); in testAsCharBuffer()
875 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()
[all …]
DCharBufferTest.java1044 CharBuffer charBuffer = CharBuffer.wrap(charArray); in testRead_scenario1() local
1046 charBuffer.read(charBuffer); in testRead_scenario1()
1051 charBuffer.put(charArray); in testRead_scenario1()
1052 assertEquals(-1, charBuffer.read(charBuffer)); in testRead_scenario1()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DScannerTest.java5546 public int read(CharBuffer charBuffer) throws IOException { in test_nextLine() argument
5548 charBuffer.append("hello\n"); in test_nextLine()