/libcore/ojluni/src/main/java/java/nio/ |
D | IntBuffer.java | 95 public abstract class IntBuffer class 97 implements Comparable<IntBuffer> 111 IntBuffer(int mark, int pos, int lim, int cap, // package-private in IntBuffer() method in IntBuffer 122 IntBuffer(int mark, int pos, int lim, int cap) { // package-private in IntBuffer() method in IntBuffer 143 public static IntBuffer allocate(int capacity) { in allocate() 180 public static IntBuffer wrap(int[] array, in wrap() 206 public static IntBuffer wrap(int[] array) { in wrap() 228 public abstract IntBuffer slice(); in slice() 245 public abstract IntBuffer duplicate(); in duplicate() 265 public abstract IntBuffer asReadOnlyBuffer(); in asReadOnlyBuffer() [all …]
|
D | HeapIntBuffer.java | 33 class HeapIntBuffer extends IntBuffer { 75 public IntBuffer slice() { in slice() 85 public IntBuffer duplicate() { in duplicate() 95 public IntBuffer asReadOnlyBuffer() { in asReadOnlyBuffer() 117 public IntBuffer get(int[] dst, int offset, int length) { in get() 134 public IntBuffer put(int x) { in put() 142 public IntBuffer put(int i, int x) { in put() 150 public IntBuffer put(int[] src, int offset, int length) { in put() 162 public IntBuffer put(IntBuffer src) { in put() 190 public IntBuffer compact() { in compact()
|
D | ByteBufferAsIntBuffer.java | 30 class ByteBufferAsIntBuffer extends IntBuffer { // package-private 57 public IntBuffer slice() { in slice() 67 public IntBuffer duplicate() { in duplicate() 77 public IntBuffer asReadOnlyBuffer() { in asReadOnlyBuffer() 99 public IntBuffer get(int[] dst, int offset, int length) { in get() 108 public IntBuffer put(int x) { in put() 113 public IntBuffer put(int i, int x) { in put() 121 public IntBuffer put(int[] src, int offset, int length) { in put() 130 public IntBuffer compact() { in compact()
|
D | ByteBuffer.java | 1402 public abstract IntBuffer asIntBuffer(); in asIntBuffer()
|
D | HeapByteBuffer.java | 366 public IntBuffer asIntBuffer() { in asIntBuffer()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | WrappedIntBufferTest.java | 18 import java.nio.IntBuffer; 23 buf = IntBuffer.wrap(new int[BUFFER_LENGTH]); in setUp() 41 IntBuffer.wrap(array, -1, 0); in testWrappedIntBuffer_IllegalArg() 47 IntBuffer.wrap(array, 21, 0); in testWrappedIntBuffer_IllegalArg() 53 IntBuffer.wrap(array, 0, -1); in testWrappedIntBuffer_IllegalArg() 59 IntBuffer.wrap(array, 0, 21); in testWrappedIntBuffer_IllegalArg() 65 IntBuffer.wrap(array, Integer.MAX_VALUE, 1); in testWrappedIntBuffer_IllegalArg() 71 IntBuffer.wrap(array, 1, Integer.MAX_VALUE); in testWrappedIntBuffer_IllegalArg() 77 IntBuffer.wrap((int[])null, -1, 0); in testWrappedIntBuffer_IllegalArg() 82 IntBuffer buf = IntBuffer.wrap(array, 2, 16); in testWrappedIntBuffer_IllegalArg()
|
D | IntBufferTest.java | 23 import java.nio.IntBuffer; 37 protected IntBuffer buf; 40 buf = IntBuffer.allocate(BUFFER_LENGTH); in setUp() 90 IntBuffer readonly = buf.asReadOnlyBuffer(); in testAsReadOnlyBuffer() 113 IntBuffer ret = buf.compact(); in testCompact() 166 IntBuffer other = IntBuffer.allocate(buf.capacity()); in testCompareTo() 188 IntBuffer duplicate = buf.duplicate(); 217 IntBuffer readonly = buf.asReadOnlyBuffer(); 219 IntBuffer duplicate = buf.duplicate(); 261 IntBuffer ret = buf.get(array); in testGetintArray() [all …]
|
D | ReadOnlyIntBufferTest.java | 18 import java.nio.IntBuffer; 50 IntBuffer duplicate = buf.duplicate(); in testHashCode() 126 IntBuffer other = IntBuffer.allocate(1); in testPutIntBuffer() 134 buf.put((IntBuffer) null); in testPutIntBuffer()
|
D | HeapIntBufferTest.java | 18 import java.nio.IntBuffer; 23 buf = IntBuffer.allocate(BUFFER_LENGTH); in setUp() 36 IntBuffer.allocate(-1); in testAllocatedIntBuffer_IllegalArg()
|
D | ReadOnlyHeapIntBufferTest.java | 18 import java.nio.IntBuffer; 23 buf = IntBuffer.allocate(BUFFER_LENGTH); in setUp()
|
D | ReadOnlyWrappedIntBufferTest.java | 18 import java.nio.IntBuffer; 23 buf = IntBuffer.wrap(new int[BUFFER_LENGTH]); in setUp()
|
D | DirectIntBufferTest.java | 21 import java.nio.IntBuffer; 61 IntBuffer intBuffer = directByteBuffer.asIntBuffer(); in testJNIAccessByAddress()
|
D | DirectByteBufferTest.java | 20 import java.nio.IntBuffer; 90 IntBuffer intBuf = buf.asIntBuffer(); in testUnalignedReadsAndWrites()
|
D | MappedByteBufferTest.java | 27 import java.nio.IntBuffer; 59 IntBuffer ibuffer = mmb.asIntBuffer(); in testasIntBuffer()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | OldDirectIntBufferTest.java | 20 import java.nio.IntBuffer; 31 IntBuffer intBuffer = byteBuffer.asIntBuffer(); in testPutWhenOffsetIsNonZero()
|
D | OldAndroidNIOTest.java | 25 import java.nio.IntBuffer; 60 IntBuffer ib = IntBuffer.wrap(intArray); in testNIO_int_array() 365 IntBuffer ib = bb.asIntBuffer(); in byteBufferTest() 497 private void intBufferTest(IntBuffer ib) { in intBufferTest()
|
D | BufferTest.java | 34 import java.nio.IntBuffer; 368 assertEquals(ByteOrder.nativeOrder(), IntBuffer.wrap(new int[10]).order()); in testIntBufferByteOrderWrapped() 369 … assertEquals(ByteOrder.nativeOrder(), IntBuffer.wrap(new int[10]).asReadOnlyBuffer().order()); in testIntBufferByteOrderWrapped() 372 private void testIntBufferByteOrder(IntBuffer b, ByteOrder bo) throws Exception { in testIntBufferByteOrder() 382 private IntBuffer allocateIntBuffer(ByteOrder order) { in allocateIntBuffer() 387 testIntBufferByteOrder(IntBuffer.allocate(10), ByteOrder.nativeOrder()); in testIntBufferByteOrderArray() 892 assertEquals(Integer.BYTES, 1 << IntBuffer.allocate(0).getElementSizeShift()); in testElementSizeShifts() 1294 IntBuffer i = b.asIntBuffer(); in testBuffersIndependentLimit() 1391 IntBuffer ib_be = byteBuffer.asIntBuffer(); in test_ByteBufferAsXBuffer_ByteOrder_2() 1402 IntBuffer ib_le = byteBuffer.asIntBuffer(); in test_ByteBufferAsXBuffer_ByteOrder_2()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ByteBufferBulkBenchmark.java | 28 import java.nio.IntBuffer;
|
D | ByteBufferBenchmark.java | 28 import java.nio.IntBuffer; 199 IntBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType).asIntBuffer(); in timeIntBuffer_getIntArray() 350 IntBuffer dst = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType).asIntBuffer(); in timeIntBuffer_putIntArray()
|
/libcore/ojluni/annotations/mmodule/java/nio/ |
D | DirectByteBuffer.annotated.java | 99 public final java.nio.IntBuffer asIntBuffer() { throw new RuntimeException("Stub!"); } in asIntBuffer()
|
D | ByteBuffer.annotated.java | 120 public abstract java.nio.IntBuffer asIntBuffer(); in asIntBuffer()
|
/libcore/ojluni/annotations/hiddenapi/java/nio/ |
D | ByteBuffer.java | 201 public abstract java.nio.IntBuffer asIntBuffer(); in asIntBuffer()
|
D | DirectByteBuffer.java | 287 public final java.nio.IntBuffer asIntBuffer() { in asIntBuffer()
|
/libcore/ojluni/annotations/sdk/nullability/java/nio/ |
D | ByteBuffer.annotated.java | 131 @libcore.util.NonNull public abstract java.nio.IntBuffer asIntBuffer(); in asIntBuffer()
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | MemoryMappedFileTest.java | 28 import java.nio.IntBuffer; 580 IntBuffer expectedIntsBuffer = byteBuffer.slice().order(byteOrder).asIntBuffer(); in assertReadIntArraySucceeds()
|