Searched refs:asCharBuffer (Results 1 – 8 of 8) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | DirectCharBufferTest.java | 28 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*2).asCharBuffer(); in setUp() 62 CharBuffer charBuffer = directByteBuffer.asCharBuffer(); in testJNIAccessByAddress()
|
D | ByteBufferTest.java | 822 charBuffer = buf.asCharBuffer(); in testAsCharBuffer() 833 charBuffer = buf.asCharBuffer(); in testAsCharBuffer() 845 charBuffer = buf.asCharBuffer(); in testAsCharBuffer() 857 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 135 b.order(ByteOrder.BIG_ENDIAN).asCharBuffer().get(chars, 1, 4); in testByteSwappedBulkGet() 137 b.order(ByteOrder.LITTLE_ENDIAN).asCharBuffer().get(chars, 1, 4); in testByteSwappedBulkGet() 225 b.order(ByteOrder.BIG_ENDIAN).asCharBuffer().put(chars, 1, 4); in testByteSwappedBulkPut() 227 b.order(ByteOrder.LITTLE_ENDIAN).asCharBuffer().put(chars, 1, 4); in testByteSwappedBulkPut() 310 assertEquals(ByteOrder.BIG_ENDIAN, b.asCharBuffer().order()); in testByteBufferByteOrder() 318 assertEquals(ByteOrder.LITTLE_ENDIAN, b.asCharBuffer().order()); in testByteBufferByteOrder() 344 return ByteBuffer.allocate(10).order(order).asCharBuffer(); in allocateCharBuffer() 787 assertEquals("Hello", b.asCharBuffer().toString()); in testCharBufferSubSequence() 789 CharBuffer cb = b.asCharBuffer(); in testCharBufferSubSequence() 818 b.asCharBuffer().get(); in testBug6085292() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | OldCharsetEncoderDecoderBufferTest.java | 51 out = ByteBuffer.wrap(bBuf).asCharBuffer(); in testDecoderOutputBuffer()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ByteBufferBenchmark.java | 126 … CharBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType).asCharBuffer(); in timeCharBuffer_getCharArray() 287 … CharBuffer dst = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType).asCharBuffer(); in timeCharBuffer_putCharArray()
|
/libcore/ojluni/src/main/java/java/nio/ |
D | ByteBuffer.java | 1027 public abstract CharBuffer asCharBuffer(); in asCharBuffer() method in ByteBuffer
|
D | HeapByteBuffer.java | 228 public CharBuffer asCharBuffer() { in asCharBuffer() method in HeapByteBuffer
|
D | DirectByteBuffer.java | 380 public CharBuffer asCharBuffer() { in asCharBuffer() method in DirectByteBuffer
|