Home
last modified time | relevance | path

Searched refs:LongBuffer (Results 1 – 21 of 21) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/
DLongBuffer.java81 public abstract class LongBuffer class
83 implements Comparable<LongBuffer> {
96 LongBuffer(int mark, int pos, int lim, int cap, // package-private in LongBuffer() method in LongBuffer
105 LongBuffer(int mark, int pos, int lim, int cap) { // package-private in LongBuffer() method in LongBuffer
123 public static LongBuffer allocate(int capacity) { in allocate()
153 public static LongBuffer wrap(long[] array, in wrap()
176 public static LongBuffer wrap(long[] array) { in wrap()
198 public abstract LongBuffer slice(); in slice()
215 public abstract LongBuffer duplicate(); in duplicate()
235 public abstract LongBuffer asReadOnlyBuffer(); in asReadOnlyBuffer()
[all …]
DHeapLongBuffer.java34 extends LongBuffer {
76 public LongBuffer slice() { in slice()
86 public LongBuffer duplicate() { in duplicate()
96 public LongBuffer asReadOnlyBuffer() { in asReadOnlyBuffer()
118 public LongBuffer get(long[] dst, int offset, int length) { in get()
135 public LongBuffer put(long x) { in put()
143 public LongBuffer put(int i, long x) { in put()
151 public LongBuffer put(long[] src, int offset, int length) { in put()
163 public LongBuffer put(LongBuffer src) { in put()
191 public LongBuffer compact() { in compact()
DByteBufferAsLongBuffer.java30 class ByteBufferAsLongBuffer extends LongBuffer { // package-private
57 public LongBuffer slice() { in slice()
67 public LongBuffer duplicate() { in duplicate()
77 public LongBuffer asReadOnlyBuffer() { in asReadOnlyBuffer()
99 public LongBuffer get(long[] dst, int offset, int length) { in get()
108 public LongBuffer put(long x) { in put()
113 public LongBuffer put(int i, long x) { in put()
121 public LongBuffer put(long[] src, int offset, int length) { in put()
130 public LongBuffer compact() { in compact()
DByteBuffer.java1312 public abstract LongBuffer asLongBuffer(); in asLongBuffer()
DHeapByteBuffer.java428 public LongBuffer asLongBuffer() { in asLongBuffer()
DDirectByteBuffer.java719 public final LongBuffer asLongBuffer() { in asLongBuffer()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DWrappedLongBufferTest.java18 import java.nio.LongBuffer;
23 buf = LongBuffer.wrap(new long[BUFFER_LENGTH]); in setUp()
41 LongBuffer.wrap(array, -1, 0); in testWrappedLongBuffer_IllegalArg()
47 LongBuffer.wrap(array, 21, 0); in testWrappedLongBuffer_IllegalArg()
53 LongBuffer.wrap(array, 0, -1); in testWrappedLongBuffer_IllegalArg()
59 LongBuffer.wrap(array, 0, 21); in testWrappedLongBuffer_IllegalArg()
65 LongBuffer.wrap(array, Integer.MAX_VALUE, 1); in testWrappedLongBuffer_IllegalArg()
71 LongBuffer.wrap(array, 1, Integer.MAX_VALUE); in testWrappedLongBuffer_IllegalArg()
77 LongBuffer.wrap((long[])null, -1, 0); in testWrappedLongBuffer_IllegalArg()
82 LongBuffer buf = LongBuffer.wrap(array, 2, 16); in testWrappedLongBuffer_IllegalArg()
DLongBufferTest.java24 import java.nio.LongBuffer;
37 protected LongBuffer buf;
40 buf = LongBuffer.allocate(BUFFER_LENGTH); in setUp()
90 LongBuffer readonly = buf.asReadOnlyBuffer(); in testAsReadOnlyBuffer()
113 LongBuffer ret = buf.compact(); in testCompact()
166 LongBuffer other = LongBuffer.allocate(buf.capacity()); in testCompareTo()
188 LongBuffer duplicate = buf.duplicate();
217 LongBuffer readonly = buf.asReadOnlyBuffer();
219 LongBuffer duplicate = buf.duplicate();
261 LongBuffer ret = buf.get(array); in testGetlongArray()
[all …]
DHeapLongBufferTest.java18 import java.nio.LongBuffer;
23 buf = LongBuffer.allocate(BUFFER_LENGTH); in setUp()
36 LongBuffer.allocate(-1); in testAllocatedLongBuffer_IllegalArg()
DReadOnlyLongBufferTest.java18 import java.nio.LongBuffer;
50 LongBuffer duplicate = buf.duplicate(); in testHashCode()
126 LongBuffer other = LongBuffer.allocate(1); in testPutLongBuffer()
134 buf.put((LongBuffer) null); in testPutLongBuffer()
DReadOnlyHeapLongBufferTest.java18 import java.nio.LongBuffer;
23 buf = LongBuffer.allocate(BUFFER_LENGTH); in setUp()
DReadOnlyWrappedLongBufferTest.java18 import java.nio.LongBuffer;
23 buf = LongBuffer.wrap(new long[BUFFER_LENGTH]); in setUp()
DDirectLongBufferTest.java21 import java.nio.LongBuffer;
62 LongBuffer longBuffer = directByteBuffer.asLongBuffer(); in testJNIAccessByAddress()
DDirectByteBufferTest.java21 import java.nio.LongBuffer;
104 LongBuffer longBuf = buf.asLongBuffer(); in testUnalignedReadsAndWrites()
DByteBufferTest.java30 import java.nio.LongBuffer;
1058 LongBuffer longBuffer; in testAsLongBuffer()
/libcore/luni/src/test/java/libcore/java/util/
DBitSetTest.java20 import java.nio.LongBuffer;
75 assertBitSet(BitSet.valueOf(LongBuffer.wrap(longs)), longs, s); in assertBitSet()
80 assertBitSet(BitSet.valueOf(LongBuffer.wrap(paddedLongs, 1, longs.length)), longs, s); in assertBitSet()
/libcore/benchmarks/src/benchmarks/regression/
DByteBufferBulkBenchmark.java29 import java.nio.LongBuffer;
DByteBufferBenchmark.java29 import java.nio.LongBuffer;
220LongBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType).asLongBuffer(); in timeLongBuffer_getLongArray()
371LongBuffer dst = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType).asLongBuffer(); in timeLongBuffer_putLongArray()
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java33 import java.nio.LongBuffer;
453 assertEquals(ByteOrder.nativeOrder(), LongBuffer.wrap(new long[10]).order()); in testLongBufferByteOrderWrapped()
454 … assertEquals(ByteOrder.nativeOrder(), LongBuffer.wrap(new long[10]).asReadOnlyBuffer().order()); in testLongBufferByteOrderWrapped()
457 private void testLongBufferByteOrder(LongBuffer b, ByteOrder bo) throws Exception { in testLongBufferByteOrder()
467 private LongBuffer allocateLongBuffer(ByteOrder order) { in allocateLongBuffer()
472 testLongBufferByteOrder(LongBuffer.allocate(10), ByteOrder.nativeOrder()); in testLongBufferByteOrderArray()
949 assertEquals(SizeOf.LONG, 1 << LongBuffer.allocate(0).getElementSizeShift()); in testElementSizeShifts()
1353 LongBuffer l = b.asLongBuffer(); in testBuffersIndependentLimit()
1444 LongBuffer lb_be = byteBuffer.asLongBuffer(); in test_ByteBufferAsXBuffer_ByteOrder_2()
1455 LongBuffer lb_le = byteBuffer.asLongBuffer(); in test_ByteBufferAsXBuffer_ByteOrder_2()
/libcore/ojluni/src/main/java/java/util/
DBitSet.java31 import java.nio.LongBuffer;
220 public static BitSet valueOf(LongBuffer lb) { in valueOf()
/libcore/
Dopenjdk_java_files.mk393 ojluni/src/main/java/java/nio/LongBuffer.java \