Home
last modified time | relevance | path

Searched refs:getFloat (Results 1 – 25 of 42) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/reflect/
DArrayTest.java93 try { Array.getFloat(booleans, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetFloat()
94 assertEquals((float) bytes[0], Array.getFloat(bytes, 0)); in testGetFloat()
95 assertEquals((float) chars[0], Array.getFloat(chars, 0)); in testGetFloat()
96 assertEquals(floats[0], Array.getFloat(floats, 0)); in testGetFloat()
97 try { Array.getFloat(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetFloat()
98 assertEquals((float) ints[0], Array.getFloat(ints, 0)); in testGetFloat()
99 assertEquals((float) longs[0], Array.getFloat(longs, 0)); in testGetFloat()
100 assertEquals((float) shorts[0], Array.getFloat(shorts, 0)); in testGetFloat()
101 try { Array.getFloat(null, 0); fail(); } catch (NullPointerException expected) {} in testGetFloat()
/libcore/luni/src/test/java/libcore/java/nio/
DOldAndroidNIOTest.java282 assertEquals(0xA3A2A1A0, Float.floatToRawIntBits(b.getFloat())); in byteBufferTest()
283 assertEquals(0xA7A6A5A4, Float.floatToRawIntBits(b.getFloat())); in byteBufferTest()
284 assertEquals(0xABAAA9A8, Float.floatToRawIntBits(b.getFloat())); in byteBufferTest()
286 b.getFloat(); in byteBufferTest()
294 assertEquals(0xA0A1A2A3, Float.floatToRawIntBits(b.getFloat())); in byteBufferTest()
295 assertEquals(0xA4A5A6A7, Float.floatToRawIntBits(b.getFloat())); in byteBufferTest()
296 assertEquals(0xA8A9AAAB, Float.floatToRawIntBits(b.getFloat())); in byteBufferTest()
298 b.getFloat(); in byteBufferTest()
/libcore/ojluni/src/main/java/sun/nio/ch/
DNativeObject.java310 final float getFloat(int offset) { in getFloat() method in NativeObject
311 return unsafe.getFloat(offset + address); in getFloat()
/libcore/ojluni/src/main/java/java/nio/
DHeapByteBuffer.java441 public float getFloat() { in getFloat() method in HeapByteBuffer
442 return Bits.getFloat(this, ix(nextGetIndex(4)), bigEndian); in getFloat()
446 public float getFloat(int i) { in getFloat() method in HeapByteBuffer
447 return Bits.getFloat(this, ix(checkIndex(i, 4)), bigEndian); in getFloat()
452 return Bits.getFloat(this, ix(i), bigEndian); in getFloatUnchecked()
DDirectByteBuffer.java757 private float getFloat(long a) { in getFloat() method in DirectByteBuffer
763 public final float getFloat() { in getFloat() method in DirectByteBuffer
767 return getFloat(ix(nextGetIndex(Float.BYTES))); in getFloat()
771 public final float getFloat(int i) { in getFloat() method in DirectByteBuffer
775 return getFloat(ix(checkIndex(i, Float.BYTES))); in getFloat()
783 return getFloat(ix(i)); in getFloatUnchecked()
DByteBuffer.java1527 public abstract float getFloat(); in getFloat() method in ByteBuffer
1567 public abstract float getFloat(int index); in getFloat() method in ByteBuffer
/libcore/ojluni/annotations/mmodule/java/nio/
DDirectByteBuffer.annotated.java111 public final float getFloat() { throw new RuntimeException("Stub!"); } in getFloat() method in DirectByteBuffer
113 public final float getFloat(int i) { throw new RuntimeException("Stub!"); } in getFloat() method in DirectByteBuffer
DByteBuffer.annotated.java132 public abstract float getFloat(); in getFloat() method in ByteBuffer
136 public abstract float getFloat(int index); in getFloat() method in ByteBuffer
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetGetterTests.java547 float output = res.getFloat(9); in testGetFloatInt()
550 output = res.getFloat(10); in testGetFloatInt()
553 output = res.getFloat(11); in testGetFloatInt()
557 res.getFloat(500); in testGetFloatInt()
564 output = res.getFloat(8); in testGetFloatInt()
567 output = res.getFloat(9); in testGetFloatInt()
570 output = res.getFloat(10); in testGetFloatInt()
579 float output = res.getFloat(input[0]); in testGetFloatString()
582 output = res.getFloat(input[1]); in testGetFloatString()
585 output = res.getFloat(input[2]); in testGetFloatString()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DArrayTest.java288 ret = Array.getFloat(x, 0); in test_getFloatLjava_lang_ObjectI()
294 ret = Array.getFloat(new Object(), 0); in test_getFloatLjava_lang_ObjectI()
304 ret = Array.getFloat(x, 4); in test_getFloatLjava_lang_ObjectI()
314 ret = Array.getFloat(null, 0); in test_getFloatLjava_lang_ObjectI()
817 assertEquals("Get returned incorrect value", 1, Array.getFloat(x, 0), 0.0); in test_setFloatLjava_lang_ObjectIF()
DFieldTest.java269 res = new Float(f.getFloat(o)); in getField()
801 val = f.getFloat(x); in test_getFloatLjava_lang_Object()
811 f.getFloat(x); in test_getFloatLjava_lang_Object()
825 f.getFloat(null); in test_getFloatLjava_lang_Object()
838 float staticValue = f.getFloat(null); in test_getFloatLjava_lang_Object()
1322 val = f.getFloat(x); in test_setFloatLjava_lang_ObjectF()
1356 val = f.getFloat(x); in test_setFloatLjava_lang_ObjectF()
/libcore/ojluni/annotations/hiddenapi/java/nio/
DDirectByteBuffer.java335 private float getFloat(long a) { in getFloat() method in DirectByteBuffer
339 public final float getFloat() { in getFloat() method in DirectByteBuffer
343 public final float getFloat(int i) { in getFloat() method in DirectByteBuffer
DByteBuffer.java221 public abstract float getFloat(); in getFloat() method in ByteBuffer
225 public abstract float getFloat(int index); in getFloat() method in ByteBuffer
/libcore/luni/src/test/java/libcore/java/util/prefs/
DOldAbstractPreferencesTest.java415 assertEquals(new Float(1.602e-19), pref.getFloat("FloatValue", new Float(0.2))); in testPutFloat()
455 assertEquals(new Float(0.1), pref.getFloat("Value", new Float(0.1))); in testGetFloat()
456 assertEquals(new Float(-0.123), pref.getFloat("FloatValue", new Float(0.2))); in testGetFloat()
457 assertEquals(new Float(9.109382e-31), pref.getFloat("DoubleValue", new Float(2.14))); in testGetFloat()
458 assertEquals(new Float(2.99792448e8), pref.getFloat("IntValue", new Float(5))); in testGetFloat()
461 pref.getFloat(null, new Float(0.1)); in testGetFloat()
470 pref.getFloat("FloatValue", new Float(0.1)); in testGetFloat()
DOldPreferencesTest.java87 p.getFloat(null, 0.1f); in testAbstractMethods()
259 pref.getFloat(null, 0f); in testGetFloat()
265 assertEquals(1f, pref.getFloat("testGetFloatKey", 0f), 0); in testGetFloat()
266 assertEquals(0f, pref.getFloat("testGetFloatKey2", 0f), 0); in testGetFloat()
516 assertEquals(3f, pref.getFloat("testPutFloatKey", 0), 0); in testPutFloat()
1014 public float getFloat(String key, float deflt) { in getFloat() method in OldPreferencesTest.MockPreferences
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java333 public native float getFloat(Object obj, long offset); in getFloat() method in Unsafe
419 public native float getFloat(long address); in getFloat() method in Unsafe
/libcore/ojluni/annotations/sdk/nullability/java/nio/
DByteBuffer.annotated.java143 public abstract float getFloat(); in getFloat() method in ByteBuffer
147 public abstract float getFloat(int index); in getFloat() method in ByteBuffer
/libcore/ojluni/src/main/java/java/io/
DBits.java60 static float getFloat(byte[] b, int off) { in getFloat() method in Bits
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DAbstractPreferencesTest.java346 pref.getFloat(null, 0f); in testGetFloat()
352 assertEquals(1f, pref.getFloat("testGetFloatKey", 0f), 0); //$NON-NLS-1$ in testGetFloat()
353 assertEquals(0f, pref.getFloat("testGetFloatKey2", 0f), 0); in testGetFloat()
676 assertEquals(3f, pref.getFloat("testPutFloatKey", 0), 0); in testPutFloat()
1066 p.getFloat("key", 3f); in testBackingStoreException()
1191 p.getFloat("key", 3f); in testRuntimeException()
1290 p.getFloat("key", 3f); in testSPIReturnNull()
1429 pref.getFloat("key", 3f); in testIllegalStateException()
1585 p.getFloat(null, 3f); in testNullAndIllegalStateException()
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DUnsafe.java152 public native float getFloat(java.lang.Object obj, long offset); in getFloat() method in Unsafe
222 public native float getFloat(long address); in getFloat() method in Unsafe
/libcore/ojluni/annotations/mmodule/sun/misc/
DUnsafe.annotated.java70 public native float getFloat(Object obj, long offset); in getFloat() method in Unsafe
/libcore/luni/src/test/java/tests/java/sql/
DMultiThreadAccessTest.java298 result.getFloat("ffloat"));
301 result.getFloat("freal"));
/libcore/ojluni/src/main/java/java/sql/
DCallableStatement.java265 float getFloat(int parameterIndex) throws SQLException; in getFloat() method
1455 float getFloat(String parameterName) throws SQLException; in getFloat() method
/libcore/ojluni/src/main/java/java/util/prefs/
DPreferences.java808 public abstract float getFloat(String key, float def); in getFloat() method in Preferences
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandleAccessorsTest.java295 static void getFloat(MethodHandle m, ValueHolder v, float value, boolean expectFailure) in getFloat() method in MethodHandleAccessorsTest
308 static void getFloat(MethodHandle m, float value, boolean expectFailure) throws Throwable { in getFloat() method in MethodHandleAccessorsTest
309 getFloat(m, null, value, expectFailure); in getFloat()
510 getFloat(methodHandle, valueHolder, floatValue, in tryAccessor()
512 getFloat(methodHandle, floatValue, in tryAccessor()

12