/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/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/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/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...] |
/cts/tools/dx-tests/src/dxc/junit/opcodes/dadd/ |
Test_dadd.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...] |
/cts/tools/vm-tests/src/dot/junit/opcodes/add_double/ |
Test_add_double.java | 53 * @title Types of arguments - long, double. Dalvik doens't distinguish 64-bits types internally, 54 * so this sum of long and double makes no sense but shall not crash the VM. 65 * @title Arguments = Double.MAX_VALUE, Double.NaN 69 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); 73 * @title Arguments = Double.POSITIVE_INFINITY, 74 * Double.NEGATIVE_INFINITY 78 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY [all...] |
/cts/tools/vm-tests/src/dot/junit/opcodes/add_double_2addr/ |
Test_add_double_2addr.java | 50 * @title Types of arguments - long, double. Dalvik doens't distinguish 64-bits types internally, 51 * so this sum of long and double makes no sense but shall not crash the VM. 62 * @title Arguments = Double.MAX_VALUE, Double.NaN 66 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); 70 * @title Arguments = Double.POSITIVE_INFINITY, 71 * Double.NEGATIVE_INFINITY 75 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY [all...] |
/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; 70 public static double abs(double d) { 125 * Returns the closest double approximation of the arc cosine of the 139 public static native double acos(double d); 142 * Returns the closest double approximation of the arc sine of the argumen [all...] |
/bionic/libm/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...] |
/cts/tools/dx-tests/src/dxc/junit/opcodes/dmul/ |
Test_dmul.java | 51 * @title Arguments = Double.MAX_VALUE, Double.NaN 55 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); 59 * @title Arguments = Double.POSITIVE_INFINITY, 0 63 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 0)); 67 * @title Arguments = Double.POSITIVE_INFINITY, -2.7d 71 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY [all...] |
/cts/tools/dx-tests/src/dxc/junit/opcodes/dsub/ |
Test_dsub.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.POSITIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, 64 Double.NEGATIVE_INFINITY)) [all...] |
/cts/tools/vm-tests/src/dot/junit/opcodes/mul_double/ |
Test_mul_double.java | 51 * @title Types of arguments - long, double. Dalvik doens't distinguish 64-bits types internally, 64 * @title Arguments = Double.MAX_VALUE, Double.NaN 68 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); 72 * @title Arguments = Double.POSITIVE_INFINITY, 0 76 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 0)); 80 * @title Arguments = Double.POSITIVE_INFINITY, -2.7 [all...] |
/cts/tools/vm-tests/src/dot/junit/opcodes/mul_double_2addr/ |
Test_mul_double_2addr.java | 52 * @title Types of arguments - long, double. Dalvik doens't distinguish 64-bits types internally, 65 * @title Arguments = Double.MAX_VALUE, Double.NaN 69 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); 73 * @title Arguments = Double.POSITIVE_INFINITY, 0 77 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 0)); 81 * @title Arguments = Double.POSITIVE_INFINITY, -2.7 [all...] |