Home
last modified time | relevance | path

Searched refs:IntBuffer (Results 1 – 25 of 28) sorted by relevance

12

/libcore/ojluni/src/main/java/java/nio/
DIntBuffer.java95 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 …]
DHeapIntBuffer.java33 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()
DByteBufferAsIntBuffer.java30 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()
DByteBuffer.java1402 public abstract IntBuffer asIntBuffer(); in asIntBuffer()
DHeapByteBuffer.java366 public IntBuffer asIntBuffer() { in asIntBuffer()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DWrappedIntBufferTest.java18 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()
DIntBufferTest.java23 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 …]
DReadOnlyIntBufferTest.java18 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()
DHeapIntBufferTest.java18 import java.nio.IntBuffer;
23 buf = IntBuffer.allocate(BUFFER_LENGTH); in setUp()
36 IntBuffer.allocate(-1); in testAllocatedIntBuffer_IllegalArg()
DReadOnlyHeapIntBufferTest.java18 import java.nio.IntBuffer;
23 buf = IntBuffer.allocate(BUFFER_LENGTH); in setUp()
DReadOnlyWrappedIntBufferTest.java18 import java.nio.IntBuffer;
23 buf = IntBuffer.wrap(new int[BUFFER_LENGTH]); in setUp()
DDirectIntBufferTest.java21 import java.nio.IntBuffer;
61 IntBuffer intBuffer = directByteBuffer.asIntBuffer(); in testJNIAccessByAddress()
DDirectByteBufferTest.java20 import java.nio.IntBuffer;
90 IntBuffer intBuf = buf.asIntBuffer(); in testUnalignedReadsAndWrites()
DMappedByteBufferTest.java27 import java.nio.IntBuffer;
59 IntBuffer ibuffer = mmb.asIntBuffer(); in testasIntBuffer()
/libcore/luni/src/test/java/libcore/java/nio/
DOldDirectIntBufferTest.java20 import java.nio.IntBuffer;
31 IntBuffer intBuffer = byteBuffer.asIntBuffer(); in testPutWhenOffsetIsNonZero()
DOldAndroidNIOTest.java25 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()
DBufferTest.java34 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/
DByteBufferBulkBenchmark.java28 import java.nio.IntBuffer;
DByteBufferBenchmark.java28 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/
DDirectByteBuffer.annotated.java99 public final java.nio.IntBuffer asIntBuffer() { throw new RuntimeException("Stub!"); } in asIntBuffer()
DByteBuffer.annotated.java120 public abstract java.nio.IntBuffer asIntBuffer(); in asIntBuffer()
/libcore/ojluni/annotations/hiddenapi/java/nio/
DByteBuffer.java201 public abstract java.nio.IntBuffer asIntBuffer(); in asIntBuffer()
DDirectByteBuffer.java287 public final java.nio.IntBuffer asIntBuffer() { in asIntBuffer()
/libcore/ojluni/annotations/sdk/nullability/java/nio/
DByteBuffer.annotated.java131 @libcore.util.NonNull public abstract java.nio.IntBuffer asIntBuffer(); in asIntBuffer()
/libcore/luni/src/test/java/libcore/libcore/io/
DMemoryMappedFileTest.java28 import java.nio.IntBuffer;
580 IntBuffer expectedIntsBuffer = byteBuffer.slice().order(byteOrder).asIntBuffer(); in assertReadIntArraySucceeds()

12