Home
last modified time | relevance | path

Searched refs:asCharBuffer (Results 1 – 8 of 8) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DDirectCharBufferTest.java28 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*2).asCharBuffer(); in setUp()
62 CharBuffer charBuffer = directByteBuffer.asCharBuffer(); in testJNIAccessByAddress()
DByteBufferTest.java822 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/
DBufferTest.java135 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/
DOldCharsetEncoderDecoderBufferTest.java51 out = ByteBuffer.wrap(bBuf).asCharBuffer(); in testDecoderOutputBuffer()
/libcore/benchmarks/src/benchmarks/regression/
DByteBufferBenchmark.java126 … 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/
DByteBuffer.java1027 public abstract CharBuffer asCharBuffer(); in asCharBuffer() method in ByteBuffer
DHeapByteBuffer.java228 public CharBuffer asCharBuffer() { in asCharBuffer() method in HeapByteBuffer
DDirectByteBuffer.java380 public CharBuffer asCharBuffer() { in asCharBuffer() method in DirectByteBuffer