/libcore/luni/src/test/java/libcore/java/nio/ |
D | NoArrayTest.java | 26 assertNoArray(ByteBuffer.wrap(new byte[32]).asReadOnlyBuffer()); in testReadOnly() 27 assertNoArray(ByteBuffer.allocate(32).asReadOnlyBuffer()); in testReadOnly() 28 assertNoArray(ByteBuffer.allocateDirect(32).asReadOnlyBuffer()); in testReadOnly()
|
D | BufferTest.java | 234 b = b.asReadOnlyBuffer(); in testByteBufferByteOrder() 262 assertEquals(ByteOrder.BIG_ENDIAN, b.asReadOnlyBuffer().order()); in testByteBufferByteOrder() 271 assertEquals(ByteOrder.BIG_ENDIAN, b.asReadOnlyBuffer().order()); in testByteBufferByteOrder() 276 … assertEquals(ByteOrder.nativeOrder(), CharBuffer.wrap(new char[10]).asReadOnlyBuffer().order()); in testCharBufferByteOrderWrapped() 283 b = b.asReadOnlyBuffer(); in testCharBufferByteOrder() 307 …assertEquals(ByteOrder.nativeOrder(), DoubleBuffer.wrap(new double[10]).asReadOnlyBuffer().order()… in testDoubleBufferByteOrderWrapped() 314 b = b.asReadOnlyBuffer(); in testDoubleBufferByteOrder() 338 … assertEquals(ByteOrder.nativeOrder(), FloatBuffer.wrap(new float[10]).asReadOnlyBuffer().order()); in testFloatBufferByteOrderWrapped() 345 b = b.asReadOnlyBuffer(); in testFloatBufferByteOrder() 369 … assertEquals(ByteOrder.nativeOrder(), IntBuffer.wrap(new int[10]).asReadOnlyBuffer().order()); in testIntBufferByteOrderWrapped() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | ReadOnlyHeapIntBufferTest.java | 25 buf = buf.asReadOnlyBuffer(); in setUp()
|
D | ReadOnlyHeapShortBufferTest.java | 25 buf = buf.asReadOnlyBuffer(); in setUp()
|
D | ReadOnlyHeapFloatBufferTest.java | 25 buf = buf.asReadOnlyBuffer(); in setUp()
|
D | ReadOnlyHeapCharBufferTest.java | 28 buf = buf.asReadOnlyBuffer(); in setUp()
|
D | ReadOnlyWrappedLongBufferTest.java | 25 buf = buf.asReadOnlyBuffer(); in setUp()
|
D | ReadOnlyWrappedIntBufferTest.java | 25 buf = buf.asReadOnlyBuffer(); in setUp()
|
D | ReadOnlyWrappedDoubleBufferTest.java | 25 buf = buf.asReadOnlyBuffer(); in setUp()
|
D | ReadOnlyWrappedShortBufferTest.java | 25 buf = buf.asReadOnlyBuffer(); in setUp()
|
D | ReadOnlyWrappedFloatBufferTest.java | 25 buf = buf.asReadOnlyBuffer(); in setUp()
|
D | ReadOnlyHeapLongBufferTest.java | 25 buf = buf.asReadOnlyBuffer(); in setUp()
|
D | ReadOnlyHeapDoubleBufferTest.java | 26 buf = buf.asReadOnlyBuffer(); in setUp()
|
D | ReadOnlyWrappedCharBufferTest1.java | 27 buf = buf.asReadOnlyBuffer(); in setUp()
|
D | ReadOnlyHeapByteBufferTest.java | 24 buf = buf.asReadOnlyBuffer(); in setUp()
|
D | ReadOnlyWrappedByteBufferTest.java | 24 buf = buf.asReadOnlyBuffer(); in setUp()
|
D | ReadOnlyDirectByteBufferTest.java | 25 buf = buf.asReadOnlyBuffer(); in setUp()
|
/libcore/ojluni/src/main/java/java/nio/ |
D | ByteBufferAsIntBuffer.java | 77 public IntBuffer asReadOnlyBuffer() { in asReadOnlyBuffer() method in ByteBufferAsIntBuffer 78 return new ByteBufferAsIntBuffer(bb.asReadOnlyBuffer(), in asReadOnlyBuffer()
|
D | ByteBufferAsFloatBuffer.java | 77 public FloatBuffer asReadOnlyBuffer() { in asReadOnlyBuffer() method in ByteBufferAsFloatBuffer 78 return new ByteBufferAsFloatBuffer(bb.asReadOnlyBuffer(), in asReadOnlyBuffer()
|
D | ByteBufferAsLongBuffer.java | 77 public LongBuffer asReadOnlyBuffer() { in asReadOnlyBuffer() method in ByteBufferAsLongBuffer 78 return new ByteBufferAsLongBuffer(bb.asReadOnlyBuffer(), in asReadOnlyBuffer()
|
D | ByteBufferAsDoubleBuffer.java | 78 public DoubleBuffer asReadOnlyBuffer() { in asReadOnlyBuffer() method in ByteBufferAsDoubleBuffer 79 return new ByteBufferAsDoubleBuffer(bb.asReadOnlyBuffer(), in asReadOnlyBuffer()
|
D | ByteBufferAsShortBuffer.java | 76 public ShortBuffer asReadOnlyBuffer() { in asReadOnlyBuffer() method in ByteBufferAsShortBuffer 77 return new ByteBufferAsShortBuffer(bb.asReadOnlyBuffer(), in asReadOnlyBuffer()
|
D | ByteBufferAsCharBuffer.java | 77 public CharBuffer asReadOnlyBuffer() { in asReadOnlyBuffer() method in ByteBufferAsCharBuffer 78 return new ByteBufferAsCharBuffer(bb.asReadOnlyBuffer(), in asReadOnlyBuffer()
|
D | StringCharBuffer.java | 68 public CharBuffer asReadOnlyBuffer() { in asReadOnlyBuffer() method in StringCharBuffer
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | UTF16CharsetDecoderTest.java | 79 implTestDecodeByteBufferCharBuffer(getByteBuffer().asReadOnlyBuffer()); in testLittleEndianReadOnlyByteBufferCharBuffer()
|