Home
last modified time | relevance | path

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

12

/libcore/ojluni/annotations/flagged_api/java/nio/
DIntBuffer.annotated.java34 public abstract class IntBuffer extends java.nio.Buffer implements java.lang.Comparable<java.nio.In… class
36 IntBuffer(int mark, int pos, int lim, int cap) { throw new RuntimeException("Stub!"); } in IntBuffer() method in IntBuffer
38 public static java.nio.IntBuffer allocate(int capacity) { throw new RuntimeException("Stub!"); } in allocate()
40 public static java.nio.IntBuffer wrap(int[] array, int offset, int length) { throw new RuntimeExcep… in wrap()
42 public static java.nio.IntBuffer wrap(int[] array) { throw new RuntimeException("Stub!"); } in wrap()
44 public abstract java.nio.IntBuffer slice(); in slice()
46 public abstract java.nio.IntBuffer slice(int index, int length); in slice()
48 public abstract java.nio.IntBuffer duplicate(); in duplicate()
50 public abstract java.nio.IntBuffer asReadOnlyBuffer(); in asReadOnlyBuffer()
54 public abstract java.nio.IntBuffer put(int i); in put()
[all …]
/libcore/ojluni/src/main/java/java/nio/
DIntBuffer.java272 public abstract class IntBuffer class
274 implements Comparable<IntBuffer>
294 IntBuffer(int mark, int pos, int lim, int cap, // package-private in IntBuffer() method in IntBuffer
305 IntBuffer(int mark, int pos, int lim, int cap) { // package-private in IntBuffer() method in IntBuffer
376 public static IntBuffer allocate(int capacity) { in allocate()
421 public static IntBuffer wrap(int[] array, in wrap()
454 public static IntBuffer wrap(int[] array) { in wrap()
588 public abstract IntBuffer slice(); in slice()
628 public abstract IntBuffer slice(int index, int length); in slice()
651 public abstract IntBuffer duplicate(); in duplicate()
[all …]
DHeapIntBuffer.java47 extends IntBuffer
141 public IntBuffer slice() { in slice()
157 public IntBuffer slice(int index, int length) { in slice()
170 public IntBuffer duplicate() { in duplicate()
182 public IntBuffer asReadOnlyBuffer() { in asReadOnlyBuffer()
237 public IntBuffer get(int[] dst, int offset, int length) { in get()
249 public IntBuffer get(int index, int[] dst, int offset, int length) { in get()
270 public IntBuffer put(int x) { in put()
282 public IntBuffer put(int i, int x) { in put()
294 public IntBuffer put(int[] src, int offset, int length) { in put()
[all …]
DByteBufferAsIntBuffer.java36 extends IntBuffer
93 public IntBuffer slice() { in slice()
104 public IntBuffer slice(int index, int length) { in slice()
116 public IntBuffer duplicate() { in duplicate()
127 public IntBuffer asReadOnlyBuffer() { in asReadOnlyBuffer()
177 public IntBuffer get(int[] dst, int off, int length) { in get()
187 public IntBuffer get(int index, int[] dst, int off, int length) { in get()
209 public IntBuffer put(int x) { in put()
225 public IntBuffer put(int i, int x) { in put()
242 public IntBuffer put(int[] src, int off, int length) { in put()
[all …]
DBufferMismatch.java107 static int mismatch(IntBuffer a, int aOff, IntBuffer b, int bOff, int length) { in mismatch()
/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/ojluni/src/test/java/nio/Buffer/
DBasicInt.java75 private static void relGet(IntBuffer b) { in relGet()
82 private static void relGet(IntBuffer b, int start) { in relGet()
89 private static void absGet(IntBuffer b) { in absGet()
96 private static void bulkGet(IntBuffer b) { in bulkGet()
105 private static void absBulkGet(IntBuffer b) { in absBulkGet()
117 private static void relPut(IntBuffer b) { in relPut()
125 private static void absPut(IntBuffer b) { in absPut()
134 private static void bulkPutArray(IntBuffer b) { in bulkPutArray()
144 private static void bulkPutBuffer(IntBuffer b) { in bulkPutBuffer()
147 IntBuffer c = IntBuffer.allocate(n + 7); in bulkPutBuffer()
[all …]
DOrderInt.java37 private static void ckIntBuffer(IntBuffer buf, ByteOrder expected) { in ckIntBuffer()
49 IntBuffer buf = IntBuffer.wrap(array); in ckIntBuffer()
53 buf = IntBuffer.wrap(array, LENGTH/2, LENGTH/2); in ckIntBuffer()
57 buf = IntBuffer.allocate(LENGTH); in ckIntBuffer()
DCopyDirectIntMemory.java32 private static void init(IntBuffer b) { in init()
51 IntBuffer b = bb.asIntBuffer(); in test()
DEqualsCompareTest.java40 import java.nio.IntBuffer;
297 static class Ints extends BufferType<IntBuffer, Integer> {
299 super(k, IntBuffer.class, int.class); in Ints()
303 IntBuffer construct(int length, ByteOrder bo) { in construct()
315 return IntBuffer.allocate(length); in construct()
DByteBufferViews.java41 import java.nio.IntBuffer;
377 List<Map.Entry<String, Function<ByteBuffer, IntBuffer>>> bfs = List.of( in intViewProvider()
396 Function<ByteBuffer, IntBuffer> fbi) { in testIntGet()
398 IntBuffer vb = fbi.apply(bb); in testIntGet()
423 Function<ByteBuffer, IntBuffer> fbi) { in testIntPut()
426 IntBuffer vb = fbi.apply(bb); in testIntPut()
/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;
376 assertEquals(ByteOrder.nativeOrder(), IntBuffer.wrap(new int[10]).order()); in testIntBufferByteOrderWrapped()
377 … assertEquals(ByteOrder.nativeOrder(), IntBuffer.wrap(new int[10]).asReadOnlyBuffer().order()); in testIntBufferByteOrderWrapped()
380 private void testIntBufferByteOrder(IntBuffer b, ByteOrder bo) throws Exception { in testIntBufferByteOrder()
390 private IntBuffer allocateIntBuffer(ByteOrder order) { in allocateIntBuffer()
395 testIntBufferByteOrder(IntBuffer.allocate(10), ByteOrder.nativeOrder()); in testIntBufferByteOrderArray()
921 assertEquals(Integer.BYTES, 1 << IntBuffer.allocate(0).getElementSizeShift()); in testElementSizeShifts()
1323 IntBuffer i = b.asIntBuffer(); in testBuffersIndependentLimit()
1420 IntBuffer ib_be = byteBuffer.asIntBuffer(); in test_ByteBufferAsXBuffer_ByteOrder_2()
1431 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/
DByteBuffer.annotated.java120 public abstract java.nio.IntBuffer asIntBuffer(); in asIntBuffer()

12