HomeSort by relevance Sort by last modified time
    Searched refs:POSITIVE_INFINITY (Results 26 - 50 of 247) sorted by null

12 3 4 5 6 7 8 910

  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/mul_float_2addr/
Test_mul_float_2addr.java 59 * @title Arguments = Float.POSITIVE_INFINITY, 0
63 assertEquals(Float.NaN, t.run(Float.POSITIVE_INFINITY, 0));
67 * @title Arguments = Float.POSITIVE_INFINITY, -2.7f
71 assertEquals(Float.NEGATIVE_INFINITY, t.run(Float.POSITIVE_INFINITY,
76 * @title Arguments = Float.POSITIVE_INFINITY,
81 assertEquals(Float.NEGATIVE_INFINITY, t.run(Float.POSITIVE_INFINITY,
106 assertEquals(Float.POSITIVE_INFINITY, t.run(Float.MAX_VALUE,
  /libcore/luni/src/test/java/libcore/java/lang/
OldFloatTest.java 34 assertTrue("Created incorrect float", f.floatValue() == Float.POSITIVE_INFINITY);
52 assertEquals(0x7f800000, Float.floatToIntBits(Float.POSITIVE_INFINITY));
58 assertEquals(0x7f800000, Float.floatToRawIntBits(Float.POSITIVE_INFINITY));
68 assertEquals(Float.POSITIVE_INFINITY, Float.intBitsToFloat(0x7f800000));
OldAndroidMathTest.java 117 assertEquals("Should return Double.POSITIVE_INFINITY",
118 Double.POSITIVE_INFINITY, Math
119 .cbrt(Double.POSITIVE_INFINITY), 0D);
162 assertEquals("Should return POSITIVE_INFINITY",
163 Double.POSITIVE_INFINITY, Math.cosh(Double.POSITIVE_INFINITY), 0D);
164 assertEquals("Should return POSITIVE_INFINITY",
165 Double.POSITIVE_INFINITY, Math.cosh(Double.NEGATIVE_INFINITY), 0D);
169 assertEquals("Should return POSITIVE_INFINITY",
170 Double.POSITIVE_INFINITY, Math.cosh(1234.56), 0D)
    [all...]
OldAndroidStrictMathTest.java 97 assertEquals("Should return Double.POSITIVE_INFINITY",
98 Double.POSITIVE_INFINITY, StrictMath
99 .cbrt(Double.POSITIVE_INFINITY));
152 assertEquals("Should return POSITIVE_INFINITY",
153 Double.POSITIVE_INFINITY, StrictMath
154 .cosh(Double.POSITIVE_INFINITY));
155 assertEquals("Should return POSITIVE_INFINITY",
156 Double.POSITIVE_INFINITY, StrictMath
161 assertEquals("Should return POSITIVE_INFINITY",
162 Double.POSITIVE_INFINITY, StrictMath.cosh(1234.56))
    [all...]
DoubleTest.java 48 assertEquals(Double.POSITIVE_INFINITY, Double.parseDouble("+Infinity"));
49 assertEquals(Double.POSITIVE_INFINITY, Double.parseDouble("Infinity"));
104 assertEquals(Double.POSITIVE_INFINITY, Double.parseDouble("1.0e+309"));
108 assertEquals(Double.POSITIVE_INFINITY, Double.parseDouble("1.0e+9999999999"));
113 assertEquals(Double.POSITIVE_INFINITY, Double.parseDouble("320.0e+2147483647"));
FloatTest.java 50 assertEquals(Float.POSITIVE_INFINITY, Float.parseFloat("+Infinity"));
51 assertEquals(Float.POSITIVE_INFINITY, Float.parseFloat("Infinity"));
104 assertEquals(Float.POSITIVE_INFINITY, Float.parseFloat("1.0e+39"));
108 assertEquals(Float.POSITIVE_INFINITY, Float.parseFloat("1.0e+9999999999"));
113 assertEquals(Float.POSITIVE_INFINITY, Float.parseFloat("320.0E+2147483647"));
  /art/test/436-rem-float/src/
Main.java 84 expectApproxEquals(0F, $opt$Rem(0F, Float.POSITIVE_INFINITY));
86 expectApproxEquals(4F, $opt$Rem(4F, Float.POSITIVE_INFINITY));
88 expectApproxEquals(-4F, $opt$Rem(-4F, Float.POSITIVE_INFINITY));
98 expectApproxEquals(Float.MIN_NORMAL, $opt$Rem(Float.MIN_NORMAL, Float.POSITIVE_INFINITY));
102 expectApproxEquals(Float.MIN_VALUE, $opt$Rem(Float.MIN_VALUE, Float.POSITIVE_INFINITY));
104 expectApproxEquals(Float.MAX_VALUE, $opt$Rem(Float.MAX_VALUE, Float.POSITIVE_INFINITY));
115 expectNaN($opt$Rem(Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY));
116 expectNaN($opt$Rem(Float.POSITIVE_INFINITY, Float.MIN_VALUE));
117 expectNaN($opt$Rem(Float.POSITIVE_INFINITY, Float.MAX_VALUE));
118 expectNaN($opt$Rem(Float.POSITIVE_INFINITY, Float.MIN_NORMAL))
    [all...]
  /art/test/417-optimizing-arith-div/src/
Main.java 172 expectEquals(0F, $opt$Div(0F, Float.POSITIVE_INFINITY));
173 expectEquals(0F, $opt$Div(11F, Float.POSITIVE_INFINITY));
181 expectNaN($opt$Div(Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY));
182 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY));
183 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY));
185 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.NaN));
187 expectEquals(Float.POSITIVE_INFINITY, $opt$Div(3F, 0F));
189 expectEquals(Float.POSITIVE_INFINITY, $opt$Div(Float.MAX_VALUE, Float.MIN_VALUE));
201 expectEquals(0D, $opt$Div(0D, Float.POSITIVE_INFINITY));
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
MathTest.java 124 assertEquals(Double.POSITIVE_INFINITY, Math.cbrt(Double.POSITIVE_INFINITY), 0D);
156 Double.POSITIVE_INFINITY, Double.MAX_VALUE, 3.4E302, 2.3,
228 Float.POSITIVE_INFINITY, Float.MAX_VALUE, 3.4E12f, 2.3f,
310 assertEquals("Should return POSITIVE_INFINITY",
311 Double.POSITIVE_INFINITY, Math.cosh(Double.POSITIVE_INFINITY), 0D);
312 assertEquals("Should return POSITIVE_INFINITY",
313 Double.POSITIVE_INFINITY, Math.cosh(Double.NEGATIVE_INFINITY), 0D);
317 assertEquals("Should return POSITIVE_INFINITY",
    [all...]
StrictMathTest.java 132 assertEquals("Should return Double.POSITIVE_INFINITY",
133 Double.POSITIVE_INFINITY, StrictMath
134 .cbrt(Double.POSITIVE_INFINITY));
325 assertEquals("Should return POSITIVE_INFINITY",
326 Double.POSITIVE_INFINITY, StrictMath
327 .cosh(Double.POSITIVE_INFINITY));
328 assertEquals("Should return POSITIVE_INFINITY",
329 Double.POSITIVE_INFINITY, StrictMath
334 assertEquals("Should return POSITIVE_INFINITY",
335 Double.POSITIVE_INFINITY, StrictMath.cosh(1234.56))
    [all...]
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_double/
Test_div_double.java 61 * @title Arguments = Double.POSITIVE_INFINITY,
66 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY,
71 * @title Arguments = Double.POSITIVE_INFINITY, -2.7d
75 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY,
116 assertEquals(Double.POSITIVE_INFINITY, t.run(1, Double.MIN_VALUE));
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_double_2addr/
Test_div_double_2addr.java 61 * @title Arguments = Double.POSITIVE_INFINITY,
66 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY,
71 * @title Arguments = Double.POSITIVE_INFINITY, -2.7d
75 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY,
116 assertEquals(Double.POSITIVE_INFINITY, t.run(1, Double.MIN_VALUE));
  /external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue183/
NumberBeanTest.java 37 number.number = Float.POSITIVE_INFINITY;
42 assertEquals(Float.POSITIVE_INFINITY, loaded.number.floatValue());
47 number.number = Double.POSITIVE_INFINITY;
52 assertEquals(Double.POSITIVE_INFINITY, loaded.number.doubleValue());
  /frameworks/base/core/java/android/annotation/
FloatRange.java 48 double to() default Double.POSITIVE_INFINITY;
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmpg_double/
Test_cmpg_double.java 74 * @title Arguments = Double.POSITIVE_INFINITY, Double.MAX_VALUE
78 assertEquals(1, t.run(Double.POSITIVE_INFINITY, Double.MAX_VALUE));
82 * @title Arguments = Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY
86 assertEquals(1, t.run(Double.POSITIVE_INFINITY,
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmpg_float/
Test_cmpg_float.java 74 * @title Arguments = Float.POSITIVE_INFINITY, Float.MAX_VALUE
78 assertEquals(1, t.run(Float.POSITIVE_INFINITY, Float.MAX_VALUE));
82 * @title Arguments = Float.POSITIVE_INFINITY,
87 assertEquals(1, t.run(Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY));
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmpl_double/
Test_cmpl_double.java 74 * @title Arguments = Double.POSITIVE_INFINITY, Double.MAX_VALUE
78 assertEquals(1, t.run(Double.POSITIVE_INFINITY, Double.MAX_VALUE));
82 * @title Arguments = Double.POSITIVE_INFINITY,
87 assertEquals(1, t.run(Double.POSITIVE_INFINITY,
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmpl_float/
Test_cmpl_float.java 74 * @title Arguments = Float.POSITIVE_INFINITY, Float.MAX_VALUE
78 assertEquals(1, t.run(Float.POSITIVE_INFINITY, Float.MAX_VALUE));
82 * @title Arguments = Float.POSITIVE_INFINITY,
87 assertEquals(1, t.run(Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY));
  /external/guava/guava-tests/test/com/google/common/math/
DoubleUtilsTest.java 53 assertEquals(Double.POSITIVE_INFINITY, DoubleUtils.ensureNonNegative(Double.POSITIVE_INFINITY));
  /cts/tests/tests/util/src/android/util/cts/
RationalTest.java 126 Rational posInf = POSITIVE_INFINITY;
158 assertEquals(POSITIVE_INFINITY, posInf);
187 assertGreaterThan(NaN, POSITIVE_INFINITY);
192 assertCompareEquals(POSITIVE_INFINITY, new Rational(1, 0));
193 assertGreaterThan(POSITIVE_INFINITY, UNIT);
194 assertGreaterThan(POSITIVE_INFINITY, NEGATIVE_INFINITY);
195 assertGreaterThan(POSITIVE_INFINITY, ZERO);
200 assertLessThan(NEGATIVE_INFINITY, POSITIVE_INFINITY);
222 assertFinite(POSITIVE_INFINITY, false);
229 assertInfinite(POSITIVE_INFINITY, true)
    [all...]
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
RationalTest.java 145 Rational posInf = POSITIVE_INFINITY;
177 assertEquals(POSITIVE_INFINITY, posInf);
206 assertGreaterThan(NaN, POSITIVE_INFINITY);
211 assertCompareEquals(POSITIVE_INFINITY, new Rational(1, 0));
212 assertGreaterThan(POSITIVE_INFINITY, UNIT);
213 assertGreaterThan(POSITIVE_INFINITY, NEGATIVE_INFINITY);
214 assertGreaterThan(POSITIVE_INFINITY, ZERO);
219 assertLessThan(NEGATIVE_INFINITY, POSITIVE_INFINITY);
241 assertFinite(POSITIVE_INFINITY, false);
248 assertInfinite(POSITIVE_INFINITY, true)
    [all...]
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_float/
Test_div_float.java 58 * @title Arguments = Float.POSITIVE_INFINITY,
63 assertEquals(Float.NaN, t.run(Float.POSITIVE_INFINITY,
68 * @title Arguments = Float.POSITIVE_INFINITY, -2.7f
72 assertEquals(Float.NEGATIVE_INFINITY, t.run(Float.POSITIVE_INFINITY,
113 assertEquals(Float.POSITIVE_INFINITY, t.run(1, Float.MIN_VALUE));
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_float_2addr/
Test_div_float_2addr.java 58 * @title Arguments = Float.POSITIVE_INFINITY,
63 assertEquals(Float.NaN, t.run(Float.POSITIVE_INFINITY,
68 * @title Arguments = Float.POSITIVE_INFINITY, -2.7f
72 assertEquals(Float.NEGATIVE_INFINITY, t.run(Float.POSITIVE_INFINITY,
113 assertEquals(Float.POSITIVE_INFINITY, t.run(1, Float.MIN_VALUE));
  /external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
TDistributionImpl.java 154 * <code>Double.POSITIVE_INFINITY</code> for p=1.</p>
170 return Double.POSITIVE_INFINITY;
247 * @return upper bound of the support (always Double.POSITIVE_INFINITY)
251 return Double.POSITIVE_INFINITY;
297 return Double.POSITIVE_INFINITY;
  /art/test/041-narrowing/src/
Main.java 9 System.out.println("Double.POSITIVE_INFINITY = "
10 + Long.toHexString(Double.doubleToRawLongBits(Double.POSITIVE_INFINITY)));
13 System.out.println("Float.POSITIVE_INFINITY = "
14 + Long.toHexString(Double.doubleToRawLongBits(Float.POSITIVE_INFINITY)));
49 double dbl3 = Double.POSITIVE_INFINITY;
51 System.out.println("(byte) Double.POSITIVE_INFINITY = "
54 System.out.println("(short) Double.POSITIVE_INFINITY = "
57 System.out.println("(int) Double.POSITIVE_INFINITY = "
59 System.out.println("(long) Double.POSITIVE_INFINITY = " + Long.toHexString((long)dbl3)
73 float fl3 = Float.POSITIVE_INFINITY;
    [all...]

Completed in 969 milliseconds

12 3 4 5 6 7 8 910