Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/test/java/util/stream/
DTestDoubleSumAverage.java102 testCases.put(() -> DoubleStream.of(MAX_VALUE, MAX_VALUE), POSITIVE_INFINITY); in testNonfiniteSum() local
105 testCases.put(() -> DoubleStream.of(1.0d, POSITIVE_INFINITY, 1.0d), POSITIVE_INFINITY); in testNonfiniteSum()
106 testCases.put(() -> DoubleStream.of(POSITIVE_INFINITY), POSITIVE_INFINITY); in testNonfiniteSum() local
107 … testCases.put(() -> DoubleStream.of(POSITIVE_INFINITY, POSITIVE_INFINITY), POSITIVE_INFINITY); in testNonfiniteSum() local
108 …testCases.put(() -> DoubleStream.of(POSITIVE_INFINITY, POSITIVE_INFINITY, 0.0), POSITIVE_INFINITY); in testNonfiniteSum() local
117 testCases.put(() -> DoubleStream.of(1.0d, NEGATIVE_INFINITY, POSITIVE_INFINITY, 1.0d), NaN); in testNonfiniteSum()
118 testCases.put(() -> DoubleStream.of(1.0d, POSITIVE_INFINITY, NEGATIVE_INFINITY, 1.0d), NaN); in testNonfiniteSum()
119 testCases.put(() -> DoubleStream.of(POSITIVE_INFINITY, NaN), NaN); in testNonfiniteSum()
121 testCases.put(() -> DoubleStream.of(NaN, POSITIVE_INFINITY), NaN); in testNonfiniteSum()
/libcore/luni/src/test/java/libcore/java/lang/
DOldAndroidStrictMathTest.java98 Double.POSITIVE_INFINITY, StrictMath in testCbrtD()
99 .cbrt(Double.POSITIVE_INFINITY)); in testCbrtD()
153 Double.POSITIVE_INFINITY, StrictMath in testCosh_D()
154 .cosh(Double.POSITIVE_INFINITY)); in testCosh_D()
156 Double.POSITIVE_INFINITY, StrictMath in testCosh_D()
162 Double.POSITIVE_INFINITY, StrictMath.cosh(1234.56)); in testCosh_D()
164 Double.POSITIVE_INFINITY, StrictMath.cosh(-1234.56)); in testCosh_D()
173 Double.POSITIVE_INFINITY, StrictMath.cosh(Double.MAX_VALUE)); in testCosh_D()
192 Double.POSITIVE_INFINITY, StrictMath.expm1(Double.POSITIVE_INFINITY)); in testExpm1D()
207 Double.POSITIVE_INFINITY, StrictMath in testExpm1D()
[all …]
DOldAndroidMathTest.java109 assertEquals("wrong atan(+INF)", PI / 2, Math.atan(Double.POSITIVE_INFINITY), 0); in testAtanD()
158 Double.POSITIVE_INFINITY, Math in testCbrtD()
159 .cbrt(Double.POSITIVE_INFINITY), 0D); in testCbrtD()
203 Double.POSITIVE_INFINITY, Math.cosh(Double.POSITIVE_INFINITY), 0D); in testCoshD()
205 Double.POSITIVE_INFINITY, Math.cosh(Double.NEGATIVE_INFINITY), 0D); in testCoshD()
210 Double.POSITIVE_INFINITY, Math.cosh(1234.56), 0D); in testCoshD()
212 Double.POSITIVE_INFINITY, Math.cosh(-1234.56), 0D); in testCoshD()
221 Double.POSITIVE_INFINITY, Math.cosh(Double.MAX_VALUE), 0D); in testCoshD()
238 Double.POSITIVE_INFINITY, Math.expm1(Double.POSITIVE_INFINITY), 0D); in testExpm1D()
253 Double.POSITIVE_INFINITY, Math in testExpm1D()
[all …]
DOldDoubleTest.java34 assertEquals(0x7ff0000000000000L, Double.doubleToLongBits(Double.POSITIVE_INFINITY)); in test_doubleToLongBitsD()
40 assertEquals(0x7ff0000000000000L, Double.doubleToLongBits(Double.POSITIVE_INFINITY)); in test_doubleToRawLongBitsD()
45 assertEquals(Double.POSITIVE_INFINITY, new Double("1.7976931348623159E308").doubleValue()); in test_doubleValue()
52 assertEquals(Float.POSITIVE_INFINITY, new Double("3.4028236E38").floatValue()); in test_floatValue()
76 assertEquals("Returned incorrect value", Double.POSITIVE_INFINITY, in test_parseDouble_LString_AndroidRegression()
DOldFloatTest.java34 assertTrue("Created incorrect float", f.floatValue() == Float.POSITIVE_INFINITY); in test_ConstructorD()
52 assertEquals(0x7f800000, Float.floatToIntBits(Float.POSITIVE_INFINITY)); in test_floatToIntBitsF()
58 assertEquals(0x7f800000, Float.floatToRawIntBits(Float.POSITIVE_INFINITY)); in test_floatToRawIntBitsF()
68 assertEquals(Float.POSITIVE_INFINITY, Float.intBitsToFloat(0x7f800000)); in test_intBitsToFloatI()
DFloatTest.java50 assertEquals(Float.POSITIVE_INFINITY, Float.parseFloat("+Infinity")); in testNamedFloats()
51 assertEquals(Float.POSITIVE_INFINITY, Float.parseFloat("Infinity")); in testNamedFloats()
104 assertEquals(Float.POSITIVE_INFINITY, Float.parseFloat("1.0e+39")); in testExponentParsing()
108 assertEquals(Float.POSITIVE_INFINITY, Float.parseFloat("1.0e+9999999999")); in testExponentParsing()
113 assertEquals(Float.POSITIVE_INFINITY, Float.parseFloat("320.0E+2147483647")); in testExponentParsing()
DDoubleTest.java48 assertEquals(Double.POSITIVE_INFINITY, Double.parseDouble("+Infinity")); in testNamedDoubles()
49 assertEquals(Double.POSITIVE_INFINITY, Double.parseDouble("Infinity")); in testNamedDoubles()
104 assertEquals(Double.POSITIVE_INFINITY, Double.parseDouble("1.0e+309")); in testExponentParsing()
108 assertEquals(Double.POSITIVE_INFINITY, Double.parseDouble("1.0e+9999999999")); in testExponentParsing()
113 assertEquals(Double.POSITIVE_INFINITY, Double.parseDouble("320.0e+2147483647")); in testExponentParsing()
DOldAndroidFloatDoubleTest.java43 float pzero = 1.0f / Float.POSITIVE_INFINITY; in testFloat()
98 double pzero = 1.0 / Double.POSITIVE_INFINITY; in testDouble()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DMathTest.java124 assertEquals(Double.POSITIVE_INFINITY, Math.cbrt(Double.POSITIVE_INFINITY), 0D); in test_cbrt_D()
156 Double.POSITIVE_INFINITY, Double.MAX_VALUE, 3.4E302, 2.3,
228 Float.POSITIVE_INFINITY, Float.MAX_VALUE, 3.4E12f, 2.3f,
311 Double.POSITIVE_INFINITY, Math.cosh(Double.POSITIVE_INFINITY), 0D); in test_cosh_D()
313 Double.POSITIVE_INFINITY, Math.cosh(Double.NEGATIVE_INFINITY), 0D); in test_cosh_D()
318 Double.POSITIVE_INFINITY, Math.cosh(1234.56), 0D); in test_cosh_D()
320 Double.POSITIVE_INFINITY, Math.cosh(-1234.56), 0D); in test_cosh_D()
329 Double.POSITIVE_INFINITY, Math.cosh(Double.MAX_VALUE), 0D); in test_cosh_D()
352 Double.POSITIVE_INFINITY, Math.expm1(Double.POSITIVE_INFINITY), 0D); in test_expm1_D()
367 Double.POSITIVE_INFINITY, Math in test_expm1_D()
[all …]
DStrictMathTest.java133 Double.POSITIVE_INFINITY, StrictMath in test_cbrt_D()
134 .cbrt(Double.POSITIVE_INFINITY)); in test_cbrt_D()
326 Double.POSITIVE_INFINITY, StrictMath in test_cosh_D()
327 .cosh(Double.POSITIVE_INFINITY)); in test_cosh_D()
329 Double.POSITIVE_INFINITY, StrictMath in test_cosh_D()
335 Double.POSITIVE_INFINITY, StrictMath.cosh(1234.56)); in test_cosh_D()
337 Double.POSITIVE_INFINITY, StrictMath.cosh(-1234.56)); in test_cosh_D()
346 Double.POSITIVE_INFINITY, StrictMath.cosh(Double.MAX_VALUE)); in test_cosh_D()
371 Double.POSITIVE_INFINITY, StrictMath.expm1(Double.POSITIVE_INFINITY)); in test_expm1_D()
386 Double.POSITIVE_INFINITY, StrictMath in test_expm1_D()
[all …]
DFloatTest.java134 Float.POSITIVE_INFINITY, Float.NaN }; in test_compare()
245 (new Float(Float.POSITIVE_INFINITY).isInfinite() && new Float( in test_isInfinite()
255 assertTrue(Float.isInfinite(Float.POSITIVE_INFINITY)); in test_isInfiniteF()
268 assertFalse(Float.isFinite(Float.POSITIVE_INFINITY)); in test_isFiniteF()
448 assertEquals("Returned incorrect value", Float.POSITIVE_INFINITY, actual, 0.0F); in test_parseFloat_LString_Unusual()
451 assertEquals("Returned incorrect value", Float.POSITIVE_INFINITY, actual, 0.0F); in test_parseFloat_LString_Unusual()
454 assertEquals("Returned incorrect value", Float.POSITIVE_INFINITY, actual, 0.0F); in test_parseFloat_LString_Unusual()
457 assertEquals("Returned incorrect value", Float.POSITIVE_INFINITY, actual, 0.0F); in test_parseFloat_LString_Unusual()
920 assertTrue("Floattest5", posInfinite.equals(new Float(Float.POSITIVE_INFINITY))); in test_valueOfLjava_lang_String()
923 assertTrue("Floattest6", posInfiniteSigned.equals(new Float(Float.POSITIVE_INFINITY))); in test_valueOfLjava_lang_String()
[all …]
DDoubleTest.java250 Double.POSITIVE_INFINITY, Double.NaN }; in test_compare()
351 assertTrue("POSITIVE_INFINITY returned false", new Double(Double.POSITIVE_INFINITY) in test_isInfinite()
362 assertTrue(Double.isInfinite(Double.POSITIVE_INFINITY)); in test_isInfiniteD()
375 assertFalse(Double.isFinite(Double.POSITIVE_INFINITY)); in test_isFiniteD()
691 assertEquals("Returned incorrect value", Double.POSITIVE_INFINITY, actual, 0.0D); in test_parseDouble_LString_FromHexString()
712 assertEquals("Returned incorrect value", Double.POSITIVE_INFINITY, actual, 0.0D); in test_parseDouble_LString_FromHexString()
715 assertEquals("Returned incorrect value", Double.POSITIVE_INFINITY, actual, 0.0D); in test_parseDouble_LString_FromHexString()
718 assertEquals("Returned incorrect value", Double.POSITIVE_INFINITY, actual, 0.0D); in test_parseDouble_LString_FromHexString()
721 assertEquals("Returned incorrect value", Double.POSITIVE_INFINITY, actual, 0.0D); in test_parseDouble_LString_FromHexString()
1309 assertTrue("Doubletest4", posInfinite.equals(new Double(Double.POSITIVE_INFINITY))); in test_valueOfLjava_lang_String()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DFloatConsts.java41 public static final float POSITIVE_INFINITY = java.lang.Float.POSITIVE_INFINITY; field in FloatConsts
DDoubleConsts.java41 public static final double POSITIVE_INFINITY = java.lang.Double.POSITIVE_INFINITY; field in DoubleConsts
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DFormatterTest.java2913 { Double.POSITIVE_INFINITY, "%e", "Infinity" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE()
2914 { Double.POSITIVE_INFINITY, "%#.0e", "Infinity" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE()
2915 { Double.POSITIVE_INFINITY, "%#- (9.8e", " Infinity" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE()
2916 { Double.POSITIVE_INFINITY, "%#+0(8.4e", "+Infinity" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE()
2917 { Double.POSITIVE_INFINITY, "%-+(1.6e", "+Infinity" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE()
2918 { Double.POSITIVE_INFINITY, "% 0(12e", " Infinity" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionE()
3022 { Float.POSITIVE_INFINITY, "%g", "Infinity" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionG()
3023 { Float.POSITIVE_INFINITY, "%- (,9.8g", " Infinity" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionG()
3024 { Float.POSITIVE_INFINITY, "%+0(,8.4g", "+Infinity" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionG()
3025 { Float.POSITIVE_INFINITY, "%-+(,1.6g", "+Infinity" }, in test_formatLjava_lang_String$Ljava_lang_Object_FloatConversionG()
[all …]
DArrays2Test.java41 Double.POSITIVE_INFINITY, Double.NaN }; in test_binarySearch$DD()
60 Float.MIN_VALUE, 2f, Float.MAX_VALUE, Float.POSITIVE_INFINITY, in test_binarySearch$FF()
133 …] { Double.NaN, Double.MAX_VALUE, Double.MIN_VALUE, 0d, -0d, Double.POSITIVE_INFINITY, Double.NEGA… in test_sort$D()
134 …double[] specials2 = new double[] { 0d, Double.POSITIVE_INFINITY, -0d, Double.NEGATIVE_INFINITY, D… in test_sort$D()
135 …ATIVE_INFINITY, -0d, 0d, Double.MIN_VALUE, Double.MAX_VALUE, Double.POSITIVE_INFINITY, Double.NaN … in test_sort$D()
169 …oat[] { Float.NaN, Float.MAX_VALUE, Float.MIN_VALUE, 0f, -0f, Float.POSITIVE_INFINITY, Float.NEGAT… in test_sort$F()
170 …float[] specials2 = new float[] { 0f, Float.POSITIVE_INFINITY, -0f, Float.NEGATIVE_INFINITY, Float… in test_sort$F()
171 …NEGATIVE_INFINITY, -0f, 0f, Float.MIN_VALUE, Float.MAX_VALUE, Float.POSITIVE_INFINITY, Float.NaN }; in test_sort$F()
/libcore/ojluni/src/main/java/java/lang/
DFloat.java55 public static final float POSITIVE_INFINITY = 1.0f / 0.0f; field in Float
475 return (v == POSITIVE_INFINITY) || (v == NEGATIVE_INFINITY); in isInfinite()
DDouble.java55 public static final double POSITIVE_INFINITY = 1.0 / 0.0; field in Double
562 return (v == POSITIVE_INFINITY) || (v == NEGATIVE_INFINITY); in isInfinite()
/libcore/ojluni/src/main/java/java/text/
DChoiceFormat.java207 startValue = Double.POSITIVE_INFINITY; in applyPattern()
217 if (ch == '<' && startValue != Double.POSITIVE_INFINITY && in applyPattern()
279 if (choiceLimits[i] == Double.POSITIVE_INFINITY) { in toPattern()
/libcore/ojluni/src/main/java/java/util/
DDoubleSummaryStatistics.java68 private double min = Double.POSITIVE_INFINITY;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerConvertTest.java221 assertTrue(aNumber == Double.POSITIVE_INFINITY); in testDoubleValuePositiveInfinity1()
231 assertTrue(aNumber == Double.POSITIVE_INFINITY); in testDoubleValuePositiveInfinity2()
472 assertTrue(aNumber == Float.POSITIVE_INFINITY); in testFloatValuePositiveInfinity1()
482 assertTrue(aNumber == Float.POSITIVE_INFINITY); in testFloatValuePositiveInfinity2()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DDouble.java168 public static final double POSITIVE_INFINITY = (1.0 / 0.0); field in Double
/libcore/benchmarks/src/benchmarks/regression/
DRealToStringBenchmark.java39 Float.toString(Float.POSITIVE_INFINITY); in timeFloat_toString_POSITIVE_INFINITY()
/libcore/luni/src/test/java/libcore/java/util/
DDoubleSummaryStatisticsTest.java31 assertEquals(Double.POSITIVE_INFINITY, dss.getMin()); in test_empty()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DDouble.annotated.java109 public static final double POSITIVE_INFINITY = (1.0/0.0); field in Double

12