HomeSort by relevance Sort by last modified time
    Searched refs:asReadOnlyBuffer (Results 1 - 25 of 80) sorted by null

1 2 3 4

  /libcore/luni/src/test/java/libcore/java/nio/
NoArrayTest.java 26 assertNoArray(ByteBuffer.wrap(new byte[32]).asReadOnlyBuffer());
27 assertNoArray(ByteBuffer.allocate(32).asReadOnlyBuffer());
28 assertNoArray(ByteBuffer.allocateDirect(32).asReadOnlyBuffer());
BufferTest.java 266 b = b.asReadOnlyBuffer();
294 assertEquals(ByteOrder.BIG_ENDIAN, b.asReadOnlyBuffer().order());
302 // ...except for asReadOnlyBuffer, which always returns a big-endian buffer.
303 assertEquals(ByteOrder.BIG_ENDIAN, b.asReadOnlyBuffer().order());
308 assertEquals(ByteOrder.nativeOrder(), CharBuffer.wrap(new char[10]).asReadOnlyBuffer().order());
315 b = b.asReadOnlyBuffer();
339 assertEquals(ByteOrder.nativeOrder(), DoubleBuffer.wrap(new double[10]).asReadOnlyBuffer().order());
346 b = b.asReadOnlyBuffer();
370 assertEquals(ByteOrder.nativeOrder(), FloatBuffer.wrap(new float[10]).asReadOnlyBuffer().order());
377 b = b.asReadOnlyBuffer();
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/
ReadOnlyDirectByteBufferTest.java 24 buf = buf.asReadOnlyBuffer();
ReadOnlyHeapByteBufferTest.java 24 buf = buf.asReadOnlyBuffer();
ReadOnlyHeapCharBufferTest.java 28 buf = buf.asReadOnlyBuffer();
ReadOnlyHeapDoubleBufferTest.java 26 buf = buf.asReadOnlyBuffer();
ReadOnlyHeapFloatBufferTest.java 25 buf = buf.asReadOnlyBuffer();
ReadOnlyHeapIntBufferTest.java 25 buf = buf.asReadOnlyBuffer();
ReadOnlyHeapLongBufferTest.java 25 buf = buf.asReadOnlyBuffer();
ReadOnlyHeapShortBufferTest.java 25 buf = buf.asReadOnlyBuffer();
ReadOnlyWrappedByteBufferTest.java 24 buf = buf.asReadOnlyBuffer();
ReadOnlyWrappedCharBufferTest1.java 27 buf = buf.asReadOnlyBuffer();
ReadOnlyWrappedDoubleBufferTest.java 25 buf = buf.asReadOnlyBuffer();
ReadOnlyWrappedFloatBufferTest.java 25 buf = buf.asReadOnlyBuffer();
ReadOnlyWrappedIntBufferTest.java 25 buf = buf.asReadOnlyBuffer();
ReadOnlyWrappedLongBufferTest.java 25 buf = buf.asReadOnlyBuffer();
ReadOnlyWrappedShortBufferTest.java 25 buf = buf.asReadOnlyBuffer();
  /libcore/luni/src/test/java/libcore/java/nio/channels/
DatagramChannelTest.java 25 ByteBuffer readOnly = ByteBuffer.allocate(1).asReadOnlyBuffer();
  /libcore/harmony-tests/src/test/java/tests/api/java/nio/charset/
UTF16CharsetDecoderTest.java 79 implTestDecodeByteBufferCharBuffer(getByteBuffer().asReadOnlyBuffer());
  /libcore/luni/src/main/java/java/nio/
ByteBufferAsCharBuffer.java 52 public CharBuffer asReadOnlyBuffer() {
53 ByteBufferAsCharBuffer buf = new ByteBufferAsCharBuffer(byteBuffer.asReadOnlyBuffer());
ByteBufferAsDoubleBuffer.java 52 public DoubleBuffer asReadOnlyBuffer() {
53 ByteBufferAsDoubleBuffer buf = new ByteBufferAsDoubleBuffer(byteBuffer.asReadOnlyBuffer());
ByteBufferAsFloatBuffer.java 51 public FloatBuffer asReadOnlyBuffer() {
52 ByteBufferAsFloatBuffer buf = new ByteBufferAsFloatBuffer(byteBuffer.asReadOnlyBuffer());
ByteBufferAsIntBuffer.java 52 public IntBuffer asReadOnlyBuffer() {
53 ByteBufferAsIntBuffer buf = new ByteBufferAsIntBuffer(byteBuffer.asReadOnlyBuffer());
ByteBufferAsLongBuffer.java 52 public LongBuffer asReadOnlyBuffer() {
53 ByteBufferAsLongBuffer buf = new ByteBufferAsLongBuffer(byteBuffer.asReadOnlyBuffer());
ByteBufferAsShortBuffer.java 51 public ShortBuffer asReadOnlyBuffer() {
52 ByteBufferAsShortBuffer buf = new ByteBufferAsShortBuffer(byteBuffer.asReadOnlyBuffer());

Completed in 124 milliseconds

1 2 3 4