OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:asReadOnlyBuffer
(Results
1 - 25
of
78
) 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
...]
/external/apache-harmony/nio/src/test/java/common/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/
SocketChannelTest.java
25
ByteBuffer readOnly = ByteBuffer.allocate(1).
asReadOnlyBuffer
();
DatagramChannelTest.java
25
ByteBuffer readOnly = ByteBuffer.allocate(1).
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 719 milliseconds
1
2
3
4