Home
last modified time | relevance | path

Searched refs:floatValue (Results 1 – 25 of 39) sorted by relevance

12

/dalvik/libcore/support/src/test/java/tests/support/
DSupport_GetPutFields.java41 public float floatValue = 0.0f; field in Support_GetPutFields
81 floatValue = 24.12f; in initTestValues()
98 floatValue == other.floatValue && in equals()
112 floatValue = getField.get("floatValue", 0.0f); in readObject()
126 putField.put("floatValue", floatValue); in writeObject()
DSupport_GetPutFieldsDeprecated.java43 public float floatValue = 0.0f; field in Support_GetPutFieldsDeprecated
83 floatValue = 43.22f; in initTestValues()
100 floatValue == other.floatValue && in equals()
113 floatValue = getField.get("floatValue", 0.0f); in readObject()
127 putField.put("floatValue", floatValue); in writeObject()
DSupport_GetPutFieldsDefaulted.java52 public float floatValue = 0.0f; field in Support_GetPutFieldsDefaulted
92 floatValue = 298.54f; in initTestValues()
109 floatValue == other.floatValue && in equals()
123 floatValue = getField.get("floatValue", 298.54f); in readObject()
/dalvik/libcore/math/src/test/java/org/apache/harmony/math/tests/java/math/
DBigIntegerConvertTest.java439 float aNumber = new BigInteger(a).floatValue(); in testFloatValueZero()
456 float aNumber = new BigInteger(a).floatValue(); in testFloatValuePositive1()
473 float aNumber = new BigInteger(a).floatValue(); in testFloatValuePositive2()
490 float aNumber = new BigInteger(a).floatValue(); in testFloatValueNegative1()
507 float aNumber = new BigInteger(a).floatValue(); in testFloatValueNegative2()
526 float aNumber = new BigInteger(aSign, a).floatValue(); in testFloatValuePosRounded1()
546 float aNumber = new BigInteger(aSign, a).floatValue(); in testFloatValuePosRounded2()
563 float aNumber = new BigInteger(aSign, a).floatValue(); in testFloatValuePosNotRounded()
581 float aNumber = new BigInteger(aSign, a).floatValue(); in testFloatValueNegRounded1()
601 float aNumber = new BigInteger(aSign, a).floatValue(); in testFloatValueNegRounded2()
[all …]
DBigDecimalConvertTest.java153 assertTrue("incorrect value", aNumber.floatValue() == result); in testFloatValueNeg()
169 assertTrue("incorrect value", aNumber.floatValue() == result); in testFloatValuePos()
185 assertTrue("incorrect value", aNumber.floatValue() == result); in testFloatValuePosInfinity()
201 assertTrue("incorrect value", aNumber.floatValue() == result); in testFloatValueNegInfinity()
217 float result = aNumber.floatValue(); in testFloatValueMinusZero()
234 float result = aNumber.floatValue(); in testFloatValuePlusZero()
/dalvik/libcore/luni/src/main/java/java/lang/
DNumber.java58 public abstract float floatValue(); in floatValue() method in Number
DShort.java156 public float floatValue() { in floatValue() method in Short
DByte.java160 public float floatValue() { in floatValue() method in Byte
DFloat.java198 public float floatValue() { in floatValue() method in Float
DDouble.java195 public float floatValue() { in floatValue() method in Double
/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/
DDecimalFormatTestICU.java162 assertEquals(0.01f, format.parse("1E-2").floatValue()); in test_positiveExponentSign()
170 assertEquals(0.00123f, format.parse("12.3E-4").floatValue()); in test_positiveExponentSign()
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/atomic/
DAtomicInteger.java220 public float floatValue() { in floatValue() method in AtomicInteger
DAtomicLong.java245 public float floatValue() { in floatValue() method in AtomicLong
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
DNumberTest.java37 public float floatValue() { in floatValue() method in NumberTest.MockNumber
DFloatTest.java116 assertTrue("Created incorrect float", f.floatValue() == 900.89f); in test_ConstructorF()
128 assertTrue("Created incorrect float", f.floatValue() == Float.POSITIVE_INFINITY); in test_ConstructorD()
144 assertTrue("Created incorrect Float", f.floatValue() == 900.89f); in test_ConstructorLjava_lang_String()
276 assertTrue("Returned incorrect floatValue", f.floatValue() == 87.657f in test_floatValue()
277 && (f2.floatValue() == -0.876f)); in test_floatValue()
1136 + Float.toString(f.floatValue()) + ")", Float.toString(f.floatValue()).equals( in test_toString()
DByteTest.java417 assertEquals(-1F, new Byte((byte) -1).floatValue(), 0F); in test_floatValue()
418 assertEquals(0F, new Byte((byte) 0).floatValue(), 0F); in test_floatValue()
419 assertEquals(1F, new Byte((byte) 1).floatValue(), 0F); in test_floatValue()
674 assertEquals(127F, new Byte((byte) 127).floatValue(), 0.0);
DLongTest.java984 assertEquals(-1F, new Long(-1).floatValue(), 0F); in test_floatValue()
985 assertEquals(0F, new Long(0).floatValue(), 0F); in test_floatValue()
986 assertEquals(1F, new Long(1).floatValue(), 0F); in test_floatValue()
988 assertEquals(Long.MAX_VALUE, new Long(Long.MAX_VALUE).floatValue(), 0F); in test_floatValue()
989 assertEquals(Long.MIN_VALUE, new Long(Long.MIN_VALUE).floatValue(), 0F); in test_floatValue()
DShortTest.java775 assertEquals(-1F, new Short((short)-1).floatValue(), 0F); in test_floatValue()
776 assertEquals(0F, new Short((short)0).floatValue(), 0F); in test_floatValue()
777 assertEquals(1F, new Short((short)1).floatValue(), 0F); in test_floatValue()
DDoubleTest.java382 floatValue() - 999999999999999.9999999999999f) < 1); in test_floatValue()
383 assertEquals(Float.POSITIVE_INFINITY, new Double("3.4028236E38").floatValue()); in test_floatValue()
384 assertEquals(Float.NEGATIVE_INFINITY, new Double("-3.4028236E38").floatValue()); in test_floatValue()
385 assertEquals(Float.MAX_VALUE, new Double("3.4028235E38").floatValue()); in test_floatValue()
386 assertEquals(Float.MIN_VALUE, new Double("1.4E-45").floatValue()); in test_floatValue()
DIntegerTest.java270 .floatValue() == 65535.0f); in test_floatValue2()
272 .floatValue() == -65535.0f); in test_floatValue2()
1189 assertEquals(-1F, new Integer(-1).floatValue(), 0F); in test_floatValue()
1190 assertEquals(0F, new Integer(0).floatValue(), 0F); in test_floatValue()
1191 assertEquals(1F, new Integer(1).floatValue(), 0F); in test_floatValue()
/dalvik/libcore/luni/src/main/java/java/io/
DEmulatedFieldsForDumping.java223 .floatValue() : (float) 0); in write()
/dalvik/libcore/support/src/test/java/tests/util/
DCallVerificationStack.java246 return value.floatValue(); in popFloat()
/dalvik/libcore/math/src/test/java/tests/api/java/math/
DBigDecimalTest.java454 fl1.floatValue() == 234563782344567f); in test_floatValue()
457 .floatValue() == 2.345E37F); in test_floatValue()
460 .floatValue() == -1.00E-44F); in test_floatValue()
463 .floatValue() == -3E12F); in test_floatValue()
467 fl2.floatValue() == Float.POSITIVE_INFINITY); in test_floatValue()
471 fl2.floatValue() == Float.NEGATIVE_INFINITY); in test_floatValue()
/dalvik/libcore/concurrent/src/test/java/tests/api/java/util/concurrent/
DAtomicIntegerTest.java245 assertEquals((float)i, ai.floatValue()); in testFloatValue()
DAtomicLongTest.java233 assertEquals((float)i, ai.floatValue()); in testFloatValue()

12