Home
last modified time | relevance | path

Searched refs:getFloat (Results 1 – 25 of 31) 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()
DBufferTest.java551 b.getFloat(); in testRelativePositions()
1186 b.getFloat(); in testGetMethods()
1187 b.getFloat(0); in testGetMethods()
1240 b.getFloat(); in testFailForGetMethods()
1245 b.getFloat(0); in testFailForGetMethods()
/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.java737 private float getFloat(long a) { in getFloat() method in DirectByteBuffer
743 public final float getFloat() { in getFloat() method in DirectByteBuffer
747 return getFloat(ix(nextGetIndex(SizeOf.FLOAT))); in getFloat()
751 public final float getFloat(int i) { in getFloat() method in DirectByteBuffer
755 return getFloat(ix(checkIndex(i, SizeOf.FLOAT))); in getFloat()
763 return getFloat(ix(i)); in getFloatUnchecked()
DByteBuffer.java1326 public abstract float getFloat(); in getFloat() method in ByteBuffer
1356 public abstract float getFloat(int index); in getFloat() method in ByteBuffer
DBits.java496 static float getFloat(ByteBuffer bb, int bi, boolean bigEndian) { in getFloat() method in Bits
500 static float getFloat(long a, boolean bigEndian) { in getFloat() method in Bits
/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/luni/src/test/java/libcore/java/util/prefs/
DOldAbstractPreferencesTest.java414 assertEquals(new Float(1.602e-19), pref.getFloat("FloatValue", new Float(0.2))); in testPutFloat()
454 assertEquals(new Float(0.1), pref.getFloat("Value", new Float(0.1))); in testGetFloat()
455 assertEquals(new Float(-0.123), pref.getFloat("FloatValue", new Float(0.2))); in testGetFloat()
456 assertEquals(new Float(9.109382e-31), pref.getFloat("DoubleValue", new Float(2.14))); in testGetFloat()
457 assertEquals(new Float(2.99792448e8), pref.getFloat("IntValue", new Float(5))); in testGetFloat()
460 pref.getFloat(null, new Float(0.1)); in testGetFloat()
469 pref.getFloat("FloatValue", new Float(0.1)); in testGetFloat()
DOldPreferencesTest.java86 p.getFloat(null, 0.1f); in testAbstractMethods()
258 pref.getFloat(null, 0f); in testGetFloat()
264 assertEquals(1f, pref.getFloat("testGetFloatKey", 0f), 0); in testGetFloat()
265 assertEquals(0f, pref.getFloat("testGetFloatKey2", 0f), 0); in testGetFloat()
515 assertEquals(3f, pref.getFloat("testPutFloatKey", 0), 0); in testPutFloat()
1013 public float getFloat(String key, float deflt) { in getFloat() method in OldPreferencesTest.MockPreferences
/libcore/ojluni/src/main/java/java/io/
DBits.java60 static float getFloat(byte[] b, int off) { in getFloat() method in Bits
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java331 public native float getFloat(Object obj, long offset); in getFloat() method in Unsafe
430 public native float getFloat(long address); in getFloat() method in Unsafe
/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/luni/src/test/java/tests/java/sql/
DMultiThreadAccessTest.java298 result.getFloat("ffloat"));
301 result.getFloat("freal"));
DSelectFunctionalityTest.java152 .valueOf(id + 0.1).floatValue(), result.getFloat("ffloat")); in test_SelectSimple()
214 (float) (id + 0.1), result.getFloat("ffloat")); in test_SelectPrepared()
/libcore/ojluni/src/main/java/java/util/prefs/
DPreferences.java718 public abstract float getFloat(String key, float def); in getFloat() method in Preferences
/libcore/ojluni/src/main/java/java/sql/
DCallableStatement.java265 float getFloat(int parameterIndex) throws SQLException; in getFloat() method
1454 float getFloat(String parameterName) throws SQLException; in getFloat() method
DResultSet.java330 float getFloat(int columnIndex) throws SQLException; in getFloat() method
618 float getFloat(String columnLabel) throws SQLException; in getFloat() method
/libcore/ojluni/src/main/java/java/lang/reflect/
DField.java515 public native float getFloat(Object obj) in getFloat() method in Field
DArray.java376 …public static float getFloat(Object array, int index) throws IllegalArgumentException, ArrayIndexO… in getFloat() method in Array
/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()
/libcore/dalvik/src/main/java/dalvik/system/
DEmulatedStackFrame.java509 return frameBuf.getFloat(); in nextFloat()

12