HomeSort by relevance Sort by last modified time
    Searched refs:Double (Results 1 - 25 of 685) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/luni/src/test/java/libcore/java/lang/
DoubleTest.java 24 assertEquals("0.008", Double.toString(0.008));
25 assertEquals("0.008366", Double.toString(0.008366));
27 assertEquals("0.009", Double.toString(0.009));
29 assertEquals("0.008567856012638986", Double.toString(0.008567856012638986));
30 assertEquals("0.010206713752229896", Double.toString(0.010206713752229896));
34 assertEquals(Double.NaN, Double.parseDouble("NaN"));
35 assertEquals(Double.NaN, Double.parseDouble("-NaN"));
36 assertEquals(Double.NaN, Double.parseDouble("+NaN"))
    [all...]
OldDoubleTest.java 24 Double d = new Double(Byte.MAX_VALUE);
26 d= new Double(Byte.MIN_VALUE);
28 d= new Double(Double.MAX_VALUE);
33 assertEquals(0x7ff8000000000000L, Double.doubleToLongBits(Double.NaN));
34 assertEquals(0x7ff0000000000000L, Double.doubleToLongBits(Double.POSITIVE_INFINITY));
35 assertEquals(0xfff0000000000000L, Double.doubleToLongBits(Double.NEGATIVE_INFINITY))
    [all...]
OldAndroidFloatDoubleTest.java 27 Double d = Double.valueOf(1.0);
95 double pz = 0.0;
96 double nz = -0.0;
98 double pzero = 1.0 / Double.POSITIVE_INFINITY;
99 double nzero = 1.0 / Double.NEGATIVE_INFINITY;
123 assertEquals(Double.valueOf(pz), Double.valueOf(pz))
    [all...]
OldAndroidMathTest.java 25 private static final double HYP = Math.sqrt(2.0);
27 private static final double OPP = 1.0;
29 private static final double ADJ = 1.0;
34 public static void assertEquals(String message, double expected, double actual, double delta) {
51 // Test for method double java.lang.Math.abs(double)
53 assertTrue("Incorrect double abs value",
55 assertTrue("Incorrect double abs value"
    [all...]
OldAndroidStrictMathTest.java 24 private final double HYP = StrictMath.sqrt(2.0);
26 private final double OPP = 1.0;
28 private final double ADJ = 1.0;
34 // Test for method double java.lang.StrictMath.abs(double)
36 assertTrue("Incorrect double abs value",
38 assertTrue("Incorrect double abs value",
67 // Test for method double java.lang.StrictMath.acos(double)
73 // Test for method double java.lang.StrictMath.asin(double
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
ConcurrentModTest.java 36 Double one = new Double(1.0);
37 Double two = new Double(2.0);
38 Double three = new Double(3.0);
39 Double four = new Double(4.0);
47 assertTrue(((Double) sub.get(1)).doubleValue() <= 3.0);
48 assertTrue(((Double) sub.get(1)).doubleValue() > 2.0)
    [all...]
  /external/guava/guava-tests/test/com/google/common/primitives/
DoubleArrayAsListTest.java 37 * Test suite covering {@link Doubles#asList(double[])}.
44 private static List<Double> asList(Double[] values) {
45 double[] temp = new double[values.length];
53 List<ListTestSuiteBuilder<Double>> builders =
69 for (ListTestSuiteBuilder<Double> builder : builders) {
85 @Override protected List<Double> create(Double[] elements) {
91 @Override protected List<Double> create(Double[] elements)
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
DoubleTest.java 187 double result;
190 result = Double.parseDouble(originalDoubleString);
191 rawBits = Double.doubleToLongBits(result);
192 convertedString = new Double(result).toString();
198 private void test_toString(double dd, String answer) {
199 assertEquals(answer, Double.toString(dd));
200 Double d = new Double(dd);
201 assertEquals(answer, Double.toString(d.doubleValue()));
206 * @tests java.lang.Double#Double(double
    [all...]
MathTest.java 22 double HYP = Math.sqrt(2.0);
24 double OPP = 1.0;
26 double ADJ = 1.0;
32 * @tests java.lang.Math#abs(double)
35 // Test for method double java.lang.Math.abs(double)
37 assertTrue("Incorrect double abs value",
39 assertTrue("Incorrect double abs value",
75 * @tests java.lang.Math#acos(double)
78 // Test for method double java.lang.Math.acos(double
    [all...]
StrictMathTest.java 32 double HYP = StrictMath.sqrt(2.0);
34 double OPP = 1.0;
36 double ADJ = 1.0;
42 * @tests java.lang.StrictMath#abs(double)
45 // Test for method double java.lang.StrictMath.abs(double)
47 assertTrue("Incorrect double abs value",
49 assertTrue("Incorrect double abs value",
87 * @tests java.lang.StrictMath#acos(double)
90 // Test for method double java.lang.StrictMath.acos(double
    [all...]
  /external/v8/test/cctest/
test-double.cc 10 #include "double.h"
19 CHECK_EQ(3512700564088504e-318, Double(ordered).value());
22 CHECK_EQ(5e-324, Double(min_double64).value());
25 CHECK_EQ(1.7976931348623157e308, Double(max_double64).value());
30 DiyFp diy_fp = Double(ordered).AsDiyFp();
36 diy_fp = Double(min_double64).AsDiyFp();
42 diy_fp = Double(max_double64).AsDiyFp();
50 DiyFp diy_fp = Double(ordered).AsNormalizedDiyFp();
56 diy_fp = Double(min_double64).AsNormalizedDiyFp();
62 diy_fp = Double(max_double64).AsNormalizedDiyFp()
    [all...]
  /external/chromium_org/v8/test/cctest/
test-double.cc 35 #include "double.h"
44 CHECK_EQ(3512700564088504e-318, Double(ordered).value());
47 CHECK_EQ(5e-324, Double(min_double64).value());
50 CHECK_EQ(1.7976931348623157e308, Double(max_double64).value());
56 DiyFp diy_fp = Double(ordered).AsDiyFp();
62 diy_fp = Double(min_double64).AsDiyFp();
68 diy_fp = Double(max_double64).AsDiyFp();
76 DiyFp diy_fp = Double(ordered).AsNormalizedDiyFp();
82 diy_fp = Double(min_double64).AsNormalizedDiyFp();
88 diy_fp = Double(max_double64).AsNormalizedDiyFp()
    [all...]
  /external/clang/test/SemaCXX/
missing-namespace-qualifier-typo-corrections.cpp 10 int Double(int x) { return x + x; }
12 Double(toFoobar()); // expected-error{{use of undeclared identifier 'toFoobar'; did you mean 'barstool::toFoobar'?}}
26 if (toFoobar()) Double(7); // expected-error{{use of undeclared identifier 'toFoobar'; did you mean 'barstool::toFoobar'?}}
27 if (noFoobar()) Double(7); // expected-error{{use of undeclared identifier 'noFoobar'; did you mean 'barstool::toFoobar'?}}
28 if (moreFoobar()) Double(7); // expected-error{{use of undeclared identifier 'moreFoobar'; did you mean 'fizbin::nested::moreFoobar'}}
29 if (lessFoobar()) Double(7); // expected-error{{use of undeclared identifier 'lessFoobar'; did you mean 'fizbin::nested::lessFoobar'?}}
30 if (baztool::toFoobar()) Double(7); // expected-error{{use of undeclared identifier 'baztool'; did you mean 'fizbin::baztool'?}}
31 if (nested::moreFoobar()) Double(7); // expected-error{{use of undeclared identifier 'nested'; did you mean 'fizbin::nested'?}}
32 if (dummy::moreFoobar()) Double(7); // expected-error{{use of undeclared identifier 'dummy'; did you mean 'fizbin::dummy'?}}
33 if (dummy::mreFoobar()) Double(7); // expected-error{{use of undeclared identifier 'dummy'; did you mean 'fizbin::dummy'?}}
    [all...]
  /libcore/luni/src/main/native/
java_lang_Double.cpp 17 #define LOG_TAG "Double"
27 union Double {
29 double d;
35 Double d;
42 Double d;
48 Double d;
54 NATIVE_METHOD(Double, doubleToLongBits, "(D)J"),
55 NATIVE_METHOD(Double, doubleToRawLongBits, "(D)J"),
56 NATIVE_METHOD(Double, longBitsToDouble, "(J)D"),
59 return jniRegisterNativeMethods(env, "java/lang/Double", gMethods, NELEM(gMethods))
    [all...]
  /libcore/luni/src/test/java/tests/api/java/util/
ConcurrentModTest.java 36 Double one = new Double(1.0);
37 Double two = new Double(2.0);
38 Double three = new Double(3.0);
39 Double four = new Double(4.0);
47 assertTrue(((Double) sub.get(1)).doubleValue() <= 3.0);
48 assertTrue(((Double) sub.get(1)).doubleValue() > 2.0)
    [all...]
  /dalvik/dexgen/src/com/android/dexgen/rop/cst/
CstDouble.java 29 new CstDouble(Double.doubleToLongBits(0.0));
33 new CstDouble(Double.doubleToLongBits(1.0));
39 * @param bits the {@code double} value as {@code long} bits
52 * @param bits the {@code double} value as {@code long} bits
62 return "double{0x" + Hex.u8(bits) + " / " +
63 Double.longBitsToDouble(bits) + '}';
68 return Type.DOUBLE;
74 return "double";
79 return Double.toString(Double.longBitsToDouble(getLongBits()))
    [all...]
  /dalvik/dx/src/com/android/dx/rop/cst/
CstDouble.java 29 new CstDouble(Double.doubleToLongBits(0.0));
33 new CstDouble(Double.doubleToLongBits(1.0));
39 * @param bits the {@code double} value as {@code long} bits
52 * @param bits the {@code double} value as {@code long} bits
62 return "double{0x" + Hex.u8(bits) + " / " +
63 Double.longBitsToDouble(bits) + '}';
68 return Type.DOUBLE;
74 return "double";
79 return Double.toString(Double.longBitsToDouble(getLongBits()))
    [all...]
  /external/dexmaker/src/dx/java/com/android/dx/rop/cst/
CstDouble.java 29 new CstDouble(Double.doubleToLongBits(0.0));
33 new CstDouble(Double.doubleToLongBits(1.0));
39 * @param bits the {@code double} value as {@code long} bits
52 * @param bits the {@code double} value as {@code long} bits
62 return "double{0x" + Hex.u8(bits) + " / " +
63 Double.longBitsToDouble(bits) + '}';
68 return Type.DOUBLE;
74 return "double";
79 return Double.toString(Double.longBitsToDouble(getLongBits()))
    [all...]
  /external/junit/src/org/junit/internal/
InexactComparisonCriteria.java 6 public double fDelta;
8 public InexactComparisonCriteria(double delta) {
14 if (expected instanceof Double)
15 Assert.assertEquals((Double)expected, (Double)actual, fDelta);
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_double/
Test_add_double.java 53 * @title Arguments = Double.MAX_VALUE, Double.NaN
57 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN));
61 * @title Arguments = Double.POSITIVE_INFINITY,
62 * Double.NEGATIVE_INFINITY
66 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY,
67 Double.NEGATIVE_INFINITY))
    [all...]
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_double_2addr/
Test_add_double_2addr.java 50 * @title Arguments = Double.MAX_VALUE, Double.NaN
54 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN));
58 * @title Arguments = Double.POSITIVE_INFINITY,
59 * Double.NEGATIVE_INFINITY
63 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY,
64 Double.NEGATIVE_INFINITY))
    [all...]
  /libcore/luni/src/main/java/java/lang/
StrictMath.java 39 * The double value closest to e, the base of the natural logarithm.
41 public static final double E = Math.E;
44 * The double value closest to pi, the ratio of a circle's circumference to
47 public static final double PI = Math.PI;
66 public static double abs(double d) {
106 * Returns the closest double approximation of the arc cosine of the
120 public static native double acos(double d);
123 * Returns the closest double approximation of the arc sine of the argumen
    [all...]
Math.java 28 * The double value closest to e, the base of the natural logarithm.
30 public static final double E = 2.718281828459045;
33 * The double value closest to pi, the ratio of a circle's circumference to
36 public static final double PI = 3.141592653589793;
57 public static double abs(double d) {
58 return Double.longBitsToDouble(Double.doubleToRawLongBits(d) & 0x7fffffffffffffffL);
95 * Returns the closest double approximation of the arc cosine of the
110 public static native double acos(double d)
    [all...]
  /bionic/libm/upstream-freebsd/lib/msun/bsdsrc/
mathimpl.h 47 * IEEE double variable to zero. It must be expression-like for syntactic
55 _b_trunc(volatile double *_dp)
63 struct Double {
64 double a;
65 double b;
71 double __exp__D(double, double);
72 struct Double __log__D(double);
    [all...]
  /external/chromium_org/base/test/android/javatests/src/org/chromium/base/test/util/
ScalableTimeout.java 13 private static Double sTimeoutScale = null;
20 sTimeoutScale = Double.parseDouble(new String(data));

Completed in 1012 milliseconds

1 2 3 4 5 6 7 8 91011>>