Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java81 b.order(ByteOrder.BIG_ENDIAN).asCharBuffer().get(chars, 1, 4); in testByteSwappedBulkGet()
83 b.order(ByteOrder.LITTLE_ENDIAN).asCharBuffer().get(chars, 1, 4); in testByteSwappedBulkGet()
171 b.order(ByteOrder.BIG_ENDIAN).asCharBuffer().put(chars, 1, 4); in testByteSwappedBulkPut()
173 b.order(ByteOrder.LITTLE_ENDIAN).asCharBuffer().put(chars, 1, 4); in testByteSwappedBulkPut()
256 assertEquals(ByteOrder.BIG_ENDIAN, b.asCharBuffer().order()); in testByteBufferByteOrder()
264 assertEquals(ByteOrder.LITTLE_ENDIAN, b.asCharBuffer().order()); in testByteBufferByteOrder()
290 return ByteBuffer.allocate(10).order(order).asCharBuffer(); in allocateCharBuffer()
733 assertEquals("Hello", b.asCharBuffer().toString()); in testCharBufferSubSequence()
735 CharBuffer cb = b.asCharBuffer(); in testCharBufferSubSequence()
764 b.asCharBuffer().get(); in testBug6085292()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DDirectCharBufferTest.java27 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Character.BYTES).asCharBuffer(); in setUp()
61 CharBuffer charBuffer = directByteBuffer.asCharBuffer(); in testJNIAccessByAddress()
DByteBufferTest.java852 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()
863 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()
875 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()
887 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DOldCharsetEncoderDecoderBufferTest.java51 out = ByteBuffer.wrap(bBuf).asCharBuffer(); in testDecoderOutputBuffer()
/libcore/ojluni/annotations/mmodule/java/nio/
DDirectByteBuffer.annotated.java79 public final java.nio.CharBuffer asCharBuffer() { throw new RuntimeException("Stub!"); } in asCharBuffer() method in DirectByteBuffer
DByteBuffer.annotated.java100 public abstract java.nio.CharBuffer asCharBuffer(); in asCharBuffer() method in ByteBuffer
/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/annotations/hiddenapi/java/nio/
DByteBuffer.java165 public abstract java.nio.CharBuffer asCharBuffer(); in asCharBuffer() method in ByteBuffer
DDirectByteBuffer.java199 public final java.nio.CharBuffer asCharBuffer() { in asCharBuffer() method in DirectByteBuffer
/libcore/ojluni/annotations/sdk/nullability/java/nio/
DByteBuffer.annotated.java111 @libcore.util.NonNull public abstract java.nio.CharBuffer asCharBuffer(); in asCharBuffer() method in ByteBuffer
/libcore/ojluni/src/main/java/java/nio/
DByteBuffer.java1184 public abstract CharBuffer asCharBuffer(); in asCharBuffer() method in ByteBuffer
DHeapByteBuffer.java244 public CharBuffer asCharBuffer() { in asCharBuffer() method in HeapByteBuffer
DDirectByteBuffer.java433 public final CharBuffer asCharBuffer() { in asCharBuffer() method in DirectByteBuffer