Home
last modified time | relevance | path

Searched refs:asReadOnlyBuffer (Results 1 – 25 of 65) sorted by relevance

123

/libcore/luni/src/test/java/libcore/java/nio/
DNoArrayTest.java26 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()
DBufferTest.java234 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/
DReadOnlyHeapIntBufferTest.java25 buf = buf.asReadOnlyBuffer(); in setUp()
DReadOnlyHeapShortBufferTest.java25 buf = buf.asReadOnlyBuffer(); in setUp()
DReadOnlyHeapFloatBufferTest.java25 buf = buf.asReadOnlyBuffer(); in setUp()
DReadOnlyHeapCharBufferTest.java28 buf = buf.asReadOnlyBuffer(); in setUp()
DReadOnlyWrappedLongBufferTest.java25 buf = buf.asReadOnlyBuffer(); in setUp()
DReadOnlyWrappedIntBufferTest.java25 buf = buf.asReadOnlyBuffer(); in setUp()
DReadOnlyWrappedDoubleBufferTest.java25 buf = buf.asReadOnlyBuffer(); in setUp()
DReadOnlyWrappedShortBufferTest.java25 buf = buf.asReadOnlyBuffer(); in setUp()
DReadOnlyWrappedFloatBufferTest.java25 buf = buf.asReadOnlyBuffer(); in setUp()
DReadOnlyHeapLongBufferTest.java25 buf = buf.asReadOnlyBuffer(); in setUp()
DReadOnlyHeapDoubleBufferTest.java26 buf = buf.asReadOnlyBuffer(); in setUp()
DReadOnlyWrappedCharBufferTest1.java27 buf = buf.asReadOnlyBuffer(); in setUp()
DReadOnlyHeapByteBufferTest.java24 buf = buf.asReadOnlyBuffer(); in setUp()
DReadOnlyWrappedByteBufferTest.java24 buf = buf.asReadOnlyBuffer(); in setUp()
DReadOnlyDirectByteBufferTest.java25 buf = buf.asReadOnlyBuffer(); in setUp()
/libcore/ojluni/src/main/java/java/nio/
DByteBufferAsIntBuffer.java77 public IntBuffer asReadOnlyBuffer() { in asReadOnlyBuffer() method in ByteBufferAsIntBuffer
78 return new ByteBufferAsIntBuffer(bb.asReadOnlyBuffer(), in asReadOnlyBuffer()
DByteBufferAsFloatBuffer.java77 public FloatBuffer asReadOnlyBuffer() { in asReadOnlyBuffer() method in ByteBufferAsFloatBuffer
78 return new ByteBufferAsFloatBuffer(bb.asReadOnlyBuffer(), in asReadOnlyBuffer()
DByteBufferAsLongBuffer.java77 public LongBuffer asReadOnlyBuffer() { in asReadOnlyBuffer() method in ByteBufferAsLongBuffer
78 return new ByteBufferAsLongBuffer(bb.asReadOnlyBuffer(), in asReadOnlyBuffer()
DByteBufferAsDoubleBuffer.java78 public DoubleBuffer asReadOnlyBuffer() { in asReadOnlyBuffer() method in ByteBufferAsDoubleBuffer
79 return new ByteBufferAsDoubleBuffer(bb.asReadOnlyBuffer(), in asReadOnlyBuffer()
DByteBufferAsShortBuffer.java76 public ShortBuffer asReadOnlyBuffer() { in asReadOnlyBuffer() method in ByteBufferAsShortBuffer
77 return new ByteBufferAsShortBuffer(bb.asReadOnlyBuffer(), in asReadOnlyBuffer()
DByteBufferAsCharBuffer.java77 public CharBuffer asReadOnlyBuffer() { in asReadOnlyBuffer() method in ByteBufferAsCharBuffer
78 return new ByteBufferAsCharBuffer(bb.asReadOnlyBuffer(), in asReadOnlyBuffer()
DStringCharBuffer.java68 public CharBuffer asReadOnlyBuffer() { in asReadOnlyBuffer() method in StringCharBuffer
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DUTF16CharsetDecoderTest.java79 implTestDecodeByteBufferCharBuffer(getByteBuffer().asReadOnlyBuffer()); in testLittleEndianReadOnlyByteBufferCharBuffer()

123