/libcore/ojluni/src/test/java/lang/CharSequence/ |
D | Emptiness.java | 58 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/ |
D | Chars.java | 109 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()
|
D | BasicChar.java | 196 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 …]
|
D | OrderChar.java | 73 buf = ByteBuffer.wrap(new byte[LENGTH]).asCharBuffer(); in ckCharBuffer() 77 buf = ByteBuffer.wrap(new byte[LENGTH]).order(le).asCharBuffer(); in ckCharBuffer()
|
D | CopyDirectCharMemory.java | 51 CharBuffer b = bb.asCharBuffer(); in test()
|
D | Order.java | 48 ck(bb.asCharBuffer().order(), bb.order()); in ckViews()
|
D | ByteBufferViews.java | 282 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()
|
D | EqualsCompareTest.java | 242 asCharBuffer(); in construct() 246 asCharBuffer(); in construct()
|
D | BasicByte.java | 282 CharBuffer cb = b.asCharBuffer(); in testViews()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 81 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/ |
D | DirectCharBufferTest.java | 27 buf = ByteBuffer.allocateDirect(BUFFER_LENGTH*Character.BYTES).asCharBuffer(); in setUp() 61 CharBuffer charBuffer = directByteBuffer.asCharBuffer(); in testJNIAccessByAddress()
|
D | ByteBufferTest.java | 852 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/ |
D | ReadCharBuffer.java | 55 new Object[]{ByteBuffer.allocateDirect(BUFFER_SIZE * 2).asCharBuffer()} in createBuffers()
|
/libcore/ojluni/src/test/java/io/InputStreamReader/ |
D | ReadCharBuffer.java | 57 new Object[]{ByteBuffer.allocateDirect(BUFFER_SIZE * 2).asCharBuffer()} in createBuffers()
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | OldCharsetEncoderDecoderBufferTest.java | 51 out = ByteBuffer.wrap(bBuf).asCharBuffer(); in testDecoderOutputBuffer()
|
/libcore/ojluni/annotations/mmodule/java/nio/ |
D | ByteBuffer.annotated.java | 100 public abstract java.nio.CharBuffer asCharBuffer(); in asCharBuffer() method in ByteBuffer
|
D | DirectByteBuffer.annotated.java | 105 public final java.nio.CharBuffer asCharBuffer() { throw new RuntimeException("Stub!"); } in asCharBuffer() method in DirectByteBuffer
|
/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/annotations/flagged_api/java/nio/ |
D | ByteBuffer.annotated.java | 137 public abstract java.nio.CharBuffer asCharBuffer(); in asCharBuffer() method in ByteBuffer
|
/libcore/ojluni/annotations/hiddenapi/java/nio/ |
D | ByteBuffer.java | 165 public abstract java.nio.CharBuffer asCharBuffer(); in asCharBuffer() method in ByteBuffer
|
D | DirectByteBuffer.java | 206 public final java.nio.CharBuffer asCharBuffer() { in asCharBuffer() method in DirectByteBuffer
|
/libcore/ojluni/annotations/sdk/nullability/java/nio/ |
D | ByteBuffer.annotated.java | 127 @libcore.util.NonNull public abstract java.nio.CharBuffer asCharBuffer(); in asCharBuffer() method in ByteBuffer
|
/libcore/ojluni/src/main/java/java/nio/ |
D | ByteBuffer.java | 2529 public abstract CharBuffer asCharBuffer(); in asCharBuffer() method in ByteBuffer
|
D | HeapByteBuffer.java | 513 public CharBuffer asCharBuffer() { in asCharBuffer() method in HeapByteBuffer
|
D | DirectByteBuffer.java | 464 public final CharBuffer asCharBuffer() { in asCharBuffer() method in DirectByteBuffer
|