Home
last modified time | relevance | path

Searched refs:FloatBuffer (Results 1 – 25 of 40) sorted by relevance

12

/libcore/ojluni/annotations/flagged_api/java/nio/
DFloatBuffer.annotated.java34 public abstract class FloatBuffer extends java.nio.Buffer implements java.lang.Comparable<java.nio. class
36 FloatBuffer(int mark, int pos, int lim, int cap) { throw new RuntimeException("Stub!"); } in FloatBuffer() method in FloatBuffer
38 public static java.nio.FloatBuffer allocate(int capacity) { throw new RuntimeException("Stub!"); } in allocate()
40 public static java.nio.FloatBuffer wrap(float[] array, int offset, int length) { throw new RuntimeE… in wrap()
42 public static java.nio.FloatBuffer wrap(float[] array) { throw new RuntimeException("Stub!"); } in wrap()
44 public abstract java.nio.FloatBuffer slice(); in slice()
46 public abstract java.nio.FloatBuffer slice(int index, int length); in slice()
48 public abstract java.nio.FloatBuffer duplicate(); in duplicate()
50 public abstract java.nio.FloatBuffer asReadOnlyBuffer(); in asReadOnlyBuffer()
54 public abstract java.nio.FloatBuffer put(float f); in put()
[all …]
DByteBuffer.annotated.java177 public abstract java.nio.FloatBuffer asFloatBuffer(); in asFloatBuffer()
/libcore/ojluni/src/main/java/java/nio/
DFloatBuffer.java272 public abstract class FloatBuffer class
274 implements Comparable<FloatBuffer>
294 FloatBuffer(int mark, int pos, int lim, int cap, // package-private in FloatBuffer() method in FloatBuffer
305 FloatBuffer(int mark, int pos, int lim, int cap) { // package-private in FloatBuffer() method in FloatBuffer
376 public static FloatBuffer allocate(int capacity) { in allocate()
421 public static FloatBuffer wrap(float[] array, in wrap()
454 public static FloatBuffer wrap(float[] array) { in wrap()
588 public abstract FloatBuffer slice(); in slice()
628 public abstract FloatBuffer slice(int index, int length); in slice()
651 public abstract FloatBuffer duplicate(); in duplicate()
[all …]
DHeapFloatBuffer.java47 extends FloatBuffer
141 public FloatBuffer slice() { in slice()
157 public FloatBuffer slice(int index, int length) { in slice()
170 public FloatBuffer duplicate() { in duplicate()
182 public FloatBuffer asReadOnlyBuffer() { in asReadOnlyBuffer()
237 public FloatBuffer get(float[] dst, int offset, int length) { in get()
249 public FloatBuffer get(int index, float[] dst, int offset, int length) { in get()
270 public FloatBuffer put(float x) { in put()
282 public FloatBuffer put(int i, float x) { in put()
294 public FloatBuffer put(float[] src, int offset, int length) { in put()
[all …]
DByteBufferAsFloatBuffer.java36 extends FloatBuffer
93 public FloatBuffer slice() { in slice()
104 public FloatBuffer slice(int index, int length) { in slice()
116 public FloatBuffer duplicate() { in duplicate()
127 public FloatBuffer asReadOnlyBuffer() { in asReadOnlyBuffer()
177 public FloatBuffer get(float[] dst, int off, int length) { in get()
187 public FloatBuffer get(int index, float[] dst, int off, int length) { in get()
209 public FloatBuffer put(float x) { in put()
225 public FloatBuffer put(int i, float x) { in put()
242 public FloatBuffer put(float[] src, int off, int length) { in put()
[all …]
DBufferMismatch.java130 static int mismatch(FloatBuffer a, int aOff, FloatBuffer b, int bOff, int length) { in mismatch()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DWrappedFloatBufferTest.java18 import java.nio.FloatBuffer;
23 buf = FloatBuffer.wrap(new float[BUFFER_LENGTH]); in setUp()
41 FloatBuffer.wrap(array, -1, 0); in testWrappedFloatBuffer_IllegalArg()
47 FloatBuffer.wrap(array, 21, 0); in testWrappedFloatBuffer_IllegalArg()
53 FloatBuffer.wrap(array, 0, -1); in testWrappedFloatBuffer_IllegalArg()
59 FloatBuffer.wrap(array, 0, 21); in testWrappedFloatBuffer_IllegalArg()
65 FloatBuffer.wrap(array, Integer.MAX_VALUE, 1); in testWrappedFloatBuffer_IllegalArg()
71 FloatBuffer.wrap(array, 1, Integer.MAX_VALUE); in testWrappedFloatBuffer_IllegalArg()
77 FloatBuffer.wrap((float[])null, -1, 0); in testWrappedFloatBuffer_IllegalArg()
82 FloatBuffer buf = FloatBuffer.wrap(array, 2, 16); in testWrappedFloatBuffer_IllegalArg()
DFloatBufferTest.java24 import java.nio.FloatBuffer;
37 protected FloatBuffer buf;
40 buf = FloatBuffer.allocate(BUFFER_LENGTH); in setUp()
90 FloatBuffer readonly = buf.asReadOnlyBuffer(); in testAsReadOnlyBuffer()
114 FloatBuffer ret = buf.compact(); in testCompact()
174 FloatBuffer other = FloatBuffer.allocate(buf.capacity()); in testCompareTo()
189 FloatBuffer fbuffer1 = FloatBuffer.wrap(new float[] { Float.NaN }); in testCompareTo()
190 FloatBuffer fbuffer2 = FloatBuffer.wrap(new float[] { Float.NaN }); in testCompareTo()
191 FloatBuffer fbuffer3 = FloatBuffer.wrap(new float[] { 42f }); in testCompareTo()
208 FloatBuffer duplicate = buf.duplicate();
[all …]
DReadOnlyFloatBufferTest.java18 import java.nio.FloatBuffer;
50 FloatBuffer duplicate = buf.duplicate(); in testHashCode()
126 FloatBuffer other = FloatBuffer.allocate(1); in testPutFloatBuffer()
134 buf.put((FloatBuffer) null); in testPutFloatBuffer()
DHeapFloatBufferTest.java18 import java.nio.FloatBuffer;
23 buf = FloatBuffer.allocate(BUFFER_LENGTH); in setUp()
36 FloatBuffer.allocate(-1); in testAllocatedFloatBuffer_IllegalArg()
DReadOnlyWrappedFloatBufferTest.java18 import java.nio.FloatBuffer;
23 buf = FloatBuffer.wrap(new float[BUFFER_LENGTH]); in setUp()
DReadOnlyHeapFloatBufferTest.java18 import java.nio.FloatBuffer;
23 buf = FloatBuffer.allocate(BUFFER_LENGTH); in setUp()
DDirectFloatBufferTest.java21 import java.nio.FloatBuffer;
61 FloatBuffer floatBuffer = directByteBuffer.asFloatBuffer(); in testJNIAccessByAddress()
/libcore/ojluni/src/test/java/nio/Buffer/
DBasicFloat.java75 private static void relGet(FloatBuffer b) { in relGet()
82 private static void relGet(FloatBuffer b, int start) { in relGet()
89 private static void absGet(FloatBuffer b) { in absGet()
96 private static void bulkGet(FloatBuffer b) { in bulkGet()
105 private static void absBulkGet(FloatBuffer b) { in absBulkGet()
117 private static void relPut(FloatBuffer b) { in relPut()
125 private static void absPut(FloatBuffer b) { in absPut()
134 private static void bulkPutArray(FloatBuffer b) { in bulkPutArray()
144 private static void bulkPutBuffer(FloatBuffer b) { in bulkPutBuffer()
147 FloatBuffer c = FloatBuffer.allocate(n + 7); in bulkPutBuffer()
[all …]
DOrderFloat.java37 private static void ckFloatBuffer(FloatBuffer buf, ByteOrder expected) { in ckFloatBuffer()
49 FloatBuffer buf = FloatBuffer.wrap(array); in ckFloatBuffer()
53 buf = FloatBuffer.wrap(array, LENGTH/2, LENGTH/2); in ckFloatBuffer()
57 buf = FloatBuffer.allocate(LENGTH); in ckFloatBuffer()
DCopyDirectFloatMemory.java32 private static void init(FloatBuffer b) { in init()
51 FloatBuffer b = bb.asFloatBuffer(); in test()
DEqualsCompareTest.java39 import java.nio.FloatBuffer;
324 static class Floats extends BufferType<FloatBuffer, Float> {
326 super(k, FloatBuffer.class, float.class); in Floats()
330 FloatBuffer construct(int length, ByteOrder bo) { in construct()
342 return FloatBuffer.allocate(length); in construct()
354 boolean pairWiseEquals(FloatBuffer a, FloatBuffer b) { in pairWiseEquals()
DByteBufferViews.java40 import java.nio.FloatBuffer;
597 List<Map.Entry<String, Function<ByteBuffer, FloatBuffer>>> bfs = List.of( in floatViewProvider()
616 Function<ByteBuffer, FloatBuffer> fbi) { in testFloatGet()
618 FloatBuffer vb = fbi.apply(bb); in testFloatGet()
643 Function<ByteBuffer, FloatBuffer> fbi) { in testFloatPut()
646 FloatBuffer vb = fbi.apply(bb); in testFloatPut()
DBulkPutBuffer.java34 import java.nio.FloatBuffer;
103 float.class, new TypeAttr(FloatBuffer.class, Float.BYTES, "Float"),
/libcore/luni/src/test/java/libcore/java/nio/
DOldAndroidNIOTest.java24 import java.nio.FloatBuffer;
67 FloatBuffer fb = FloatBuffer.wrap(floatArray); in testNIO_float_array()
379 FloatBuffer fb = bb.asFloatBuffer(); in byteBufferTest()
601 void floatBufferTest(FloatBuffer fb) { in floatBufferTest()
DBufferTest.java33 import java.nio.FloatBuffer;
345 assertEquals(ByteOrder.nativeOrder(), FloatBuffer.wrap(new float[10]).order()); in testFloatBufferByteOrderWrapped()
346 … assertEquals(ByteOrder.nativeOrder(), FloatBuffer.wrap(new float[10]).asReadOnlyBuffer().order()); in testFloatBufferByteOrderWrapped()
349 private void testFloatBufferByteOrder(FloatBuffer b, ByteOrder bo) throws Exception { in testFloatBufferByteOrder()
359 private FloatBuffer allocateFloatBuffer(ByteOrder order) { in allocateFloatBuffer()
364 testFloatBufferByteOrder(FloatBuffer.allocate(10), ByteOrder.nativeOrder()); in testFloatBufferByteOrderArray()
922 assertEquals(Float.BYTES, 1 << FloatBuffer.allocate(0).getElementSizeShift()); in testElementSizeShifts()
1333 FloatBuffer f = b.asFloatBuffer(); in testBuffersIndependentLimit()
1423 FloatBuffer fb_be = byteBuffer.asFloatBuffer(); in test_ByteBufferAsXBuffer_ByteOrder_2()
1434 FloatBuffer fb_le = byteBuffer.asFloatBuffer(); in test_ByteBufferAsXBuffer_ByteOrder_2()
/libcore/benchmarks/src/benchmarks/regression/
DByteBufferBulkBenchmark.java27 import java.nio.FloatBuffer;
DByteBufferBenchmark.java27 import java.nio.FloatBuffer;
178FloatBuffer src = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType).asFloatBuffer(); in timeFloatBuffer_getFloatArray()
329FloatBuffer dst = ByteBufferBenchmark.newBuffer(byteOrder, aligned, bufferType).asFloatBuffer(); in timeFloatBuffer_putFloatArray()
/libcore/ojluni/annotations/mmodule/java/nio/
DByteBuffer.annotated.java140 public abstract java.nio.FloatBuffer asFloatBuffer(); in asFloatBuffer()
/libcore/ojluni/annotations/hiddenapi/java/nio/
DByteBuffer.java237 public abstract java.nio.FloatBuffer asFloatBuffer(); in asFloatBuffer()

12