Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/test/java/lang/CharSequence/
DEmptiness.java58 checkEmpty(ByteBuffer.allocate(0).asCharBuffer()); in isEmpty()
59 checkEmpty(ByteBuffer.allocate(2).asCharBuffer().append('f')); in isEmpty()
61 checkEmpty((CharBuffer) ByteBuffer.allocate(2).asCharBuffer().flip()); in isEmpty()
63 checkEmpty(ByteBuffer.allocateDirect(0).asCharBuffer()); in isEmpty()
64 checkEmpty(ByteBuffer.allocateDirect(2).asCharBuffer().append('f')); in isEmpty()
66 checkEmpty((CharBuffer) ByteBuffer.allocateDirect(2).asCharBuffer().flip()); in isEmpty()
86 checkNotEmpty(ByteBuffer.allocate(2).asCharBuffer()); in isNotEmpty()
87 checkNotEmpty(ByteBuffer.allocate(4).asCharBuffer().append('f')); in isNotEmpty()
89 checkNotEmpty((CharBuffer) ByteBuffer.allocate(2).asCharBuffer().append('f').flip()); in isNotEmpty()
91 checkNotEmpty(ByteBuffer.allocateDirect(2).asCharBuffer()); in isNotEmpty()
[all …]
/libcore/ojluni/src/test/java/nio/Buffer/
DChars.java109 addCases(ByteBuffer.allocate(SIZE*2).order(ByteOrder.BIG_ENDIAN).asCharBuffer(), in createCharBuffers()
111 addCases(ByteBuffer.allocate(SIZE*2).order(ByteOrder.LITTLE_ENDIAN).asCharBuffer(), in createCharBuffers()
115 addCases(ByteBuffer.allocateDirect(SIZE*2).order(ByteOrder.BIG_ENDIAN).asCharBuffer(), in createCharBuffers()
117 addCases(ByteBuffer.allocateDirect(SIZE*2).order(ByteOrder.LITTLE_ENDIAN).asCharBuffer(), in createCharBuffers()
DBasicChar.java196 CharBuffer direct1 = ByteBuffer.allocateDirect(cap).asCharBuffer(); in putBuffer()
197 CharBuffer nondirect1 = ByteBuffer.allocate(cap).asCharBuffer(); in putBuffer()
200 CharBuffer direct2 = ByteBuffer.allocateDirect(cap).asCharBuffer(); in putBuffer()
201 CharBuffer nondirect2 = ByteBuffer.allocate(cap).asCharBuffer(); in putBuffer()
204 CharBuffer direct3 = ByteBuffer.allocateDirect(cap).asCharBuffer(); in putBuffer()
205 CharBuffer direct4 = ByteBuffer.allocateDirect(cap).asCharBuffer(); in putBuffer()
208 CharBuffer nondirect3 = ByteBuffer.allocate(cap).asCharBuffer(); in putBuffer()
209 CharBuffer nondirect4 = ByteBuffer.allocate(cap).asCharBuffer(); in putBuffer()
1235 … () -> ByteBuffer.allocate(512 * Character.BYTES).order(ByteOrder.LITTLE_ENDIAN).asCharBuffer(), in testPutBuffer()
1236 … () -> ByteBuffer.allocate(512 * Character.BYTES).order(ByteOrder.BIG_ENDIAN).asCharBuffer(), in testPutBuffer()
[all …]
DOrderChar.java73 buf = ByteBuffer.wrap(new byte[LENGTH]).asCharBuffer(); in ckCharBuffer()
77 buf = ByteBuffer.wrap(new byte[LENGTH]).order(le).asCharBuffer(); in ckCharBuffer()
DCopyDirectCharMemory.java51 CharBuffer b = bb.asCharBuffer(); in test()
DOrder.java48 ck(bb.asCharBuffer().order(), bb.order()); in ckViews()
DByteBufferViews.java282 bb -> bb.asCharBuffer()), in charViewProvider()
284 bb -> bb.asCharBuffer().slice()), in charViewProvider()
286 bb -> { var cb = bb.asCharBuffer(); in charViewProvider()
291 bb -> bb.asCharBuffer().slice().duplicate()) in charViewProvider()
DEqualsCompareTest.java242 asCharBuffer(); in construct()
246 asCharBuffer(); in construct()
DBasicByte.java282 CharBuffer cb = b.asCharBuffer(); in testViews()
/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()
264 assertEquals(ByteOrder.BIG_ENDIAN, b.asCharBuffer().order()); in testByteBufferByteOrder()
272 assertEquals(ByteOrder.LITTLE_ENDIAN, b.asCharBuffer().order()); in testByteBufferByteOrder()
298 return ByteBuffer.allocate(10).order(order).asCharBuffer(); in allocateCharBuffer()
762 assertEquals("Hello", b.asCharBuffer().toString()); in testCharBufferSubSequence()
764 CharBuffer cb = b.asCharBuffer(); in testCharBufferSubSequence()
793 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/ojluni/src/test/java/io/CharArrayReader/
DReadCharBuffer.java55 new Object[]{ByteBuffer.allocateDirect(BUFFER_SIZE * 2).asCharBuffer()} in createBuffers()
/libcore/ojluni/src/test/java/io/InputStreamReader/
DReadCharBuffer.java57 new Object[]{ByteBuffer.allocateDirect(BUFFER_SIZE * 2).asCharBuffer()} in createBuffers()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DOldCharsetEncoderDecoderBufferTest.java51 out = ByteBuffer.wrap(bBuf).asCharBuffer(); in testDecoderOutputBuffer()
/libcore/ojluni/annotations/mmodule/java/nio/
DByteBuffer.annotated.java100 public abstract java.nio.CharBuffer asCharBuffer(); in asCharBuffer() method in ByteBuffer
DDirectByteBuffer.annotated.java105 public final java.nio.CharBuffer asCharBuffer() { throw new RuntimeException("Stub!"); } in asCharBuffer() method in DirectByteBuffer
/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/flagged_api/java/nio/
DByteBuffer.annotated.java137 public abstract java.nio.CharBuffer asCharBuffer(); in asCharBuffer() method in ByteBuffer
/libcore/ojluni/annotations/hiddenapi/java/nio/
DByteBuffer.java165 public abstract java.nio.CharBuffer asCharBuffer(); in asCharBuffer() method in ByteBuffer
DDirectByteBuffer.java206 public final java.nio.CharBuffer asCharBuffer() { in asCharBuffer() method in DirectByteBuffer
/libcore/ojluni/annotations/sdk/nullability/java/nio/
DByteBuffer.annotated.java127 @libcore.util.NonNull public abstract java.nio.CharBuffer asCharBuffer(); in asCharBuffer() method in ByteBuffer
/libcore/ojluni/src/main/java/java/nio/
DByteBuffer.java2529 public abstract CharBuffer asCharBuffer(); in asCharBuffer() method in ByteBuffer
DHeapByteBuffer.java513 public CharBuffer asCharBuffer() { in asCharBuffer() method in HeapByteBuffer
DDirectByteBuffer.java464 public final CharBuffer asCharBuffer() { in asCharBuffer() method in DirectByteBuffer

12