/libcore/luni/src/main/java/java/lang/ |
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 native double abs(double d); 87 * Returns the closest double approximation of the arc cosine of the 102 public static native double acos(double d); 105 * Returns the closest double approximation of the arc sine of the argumen [all...] |
Double.java | 21 * The wrapper for the primitive type {@code double}. 26 public final class Double extends Number implements Comparable<Double> { 42 private final double value; 45 * Constant for the maximum {@code double} value, (2 - 2<sup>-52</sup>) * 48 public static final double MAX_VALUE = 1.79769313486231570e+308; 51 * Constant for the minimum {@code double} value, 2<sup>-1074</sup>. 53 public static final double MIN_VALUE = 5e-324; 58 * Constant for the Not-a-Number (NaN) value of the {@code double} type. 60 public static final double NaN = 0.0 / 0.0 [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
DoubleBenchmark.java | 24 private double d = 1.2; 30 result = Double.doubleToLongBits(d); 40 result = Double.doubleToRawLongBits(d); 48 double result = 123.0; 50 result = Double.longBitsToDouble(l); 53 throw new RuntimeException(Double.toString(result) + " " + Double.doubleToRawLongBits(result));
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rem_double/ |
Test_rem_double.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, 60 * Double.NEGATIVE_INFINITY 64 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 65 Double.NEGATIVE_INFINITY)) [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rem_double_2addr/ |
Test_rem_double_2addr.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, 60 * Double.NEGATIVE_INFINITY 64 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 65 Double.NEGATIVE_INFINITY)) [all...] |
/external/guava/guava/src/com/google/common/math/ |
DoubleUtils.java | 26 * Utilities for {@code double} primitives. Some of these are exposed in JDK 6, 37 static double next(double x, boolean up) { 40 return up ? Double.MIN_VALUE : -Double.MIN_VALUE; 42 long bits = Double.doubleToRawLongBits(x); 48 return Double.longBitsToDouble(bits); 52 // Double#doubleToRawLongBits(double)} spec. 56 // Double#doubleToRawLongBits(double)} spec [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_double/ |
Test_div_double.java | 61 * @title Arguments = Double.POSITIVE_INFINITY, 62 * Double.NEGATIVE_INFINITY 66 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 67 Double.NEGATIVE_INFINITY)); 71 * @title Arguments = Double.POSITIVE_INFINITY, -2.7d 75 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, 80 * @title Arguments = -2.7d, Double.NEGATIVE_INFINITY 84 assertEquals(0d, t.run(-2.7d, Double.NEGATIVE_INFINITY)) [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_double_2addr/ |
Test_div_double_2addr.java | 61 * @title Arguments = Double.POSITIVE_INFINITY, 62 * Double.NEGATIVE_INFINITY 66 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 67 Double.NEGATIVE_INFINITY)); 71 * @title Arguments = Double.POSITIVE_INFINITY, -2.7d 75 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, 80 * @title Arguments = -2.7d, Double.NEGATIVE_INFINITY 84 assertEquals(0d, t.run(-2.7d, Double.NEGATIVE_INFINITY)) [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmpg_double/ |
Test_cmpg_double.java | 50 * @title Arguments = Double.NaN, Double.MAX_VALUE 54 assertEquals(1, t.run(Double.NaN, Double.MAX_VALUE)); 66 * @title Arguments = Double.NEGATIVE_INFINITY, Double.MIN_VALUE 70 assertEquals(-1, t.run(Double.NEGATIVE_INFINITY, Double.MIN_VALUE)); 74 * @title Arguments = Double.POSITIVE_INFINITY, Double.MAX_VALU [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmpl_double/ |
Test_cmpl_double.java | 50 * @title Arguments = Double.NaN, Double.MAX_VALUE 54 assertEquals(-1, t.run(Double.NaN, Double.MAX_VALUE)); 66 * @title Arguments = Double.NEGATIVE_INFINITY, Double.MIN_VALUE 70 assertEquals(-1, t.run(Double.NEGATIVE_INFINITY, Double.MIN_VALUE)); 74 * @title Arguments = Double.POSITIVE_INFINITY, Double.MAX_VALU [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/neg_double/ |
Test_neg_double.java | 60 * @title Argument = Double.NaN 64 assertEquals(Double.NaN, t.run(Double.NaN)); 68 * @title Argument = Double.NEGATIVE_INFINITY 72 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.NEGATIVE_INFINITY)); 76 * @title Argument = Double.POSITIVE_INFINITY 80 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY)); 84 * @title Argument = Double.MAX_VALU [all...] |
/external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/ |
DoubleSerializer.java | 40 * Double serializer. 47 public Double readObject(ByteBuffer data, Class c) throws IOException { 52 buffer.putDouble((Double)object);
|
/libcore/json/src/main/java/org/json/ |
JSON.java | 23 static double checkDouble(double d) throws JSONException { 24 if (Double.isInfinite(d) || Double.isNaN(d)) { 44 static Double toDouble(Object value) { 45 if (value instanceof Double) { 46 return (Double) value; 51 return Double.valueOf((String) value); 65 return (int) Double.parseDouble((String) value); 79 return (long) Double.parseDouble((String) value) [all...] |
/frameworks/base/core/java/android/webkit/ |
DeviceMotionAndOrientationManager.java | 45 public void setMockOrientation(boolean canProvideAlpha, double alpha, boolean canProvideBeta, 46 double beta, boolean canProvideGamma, double gamma) { 53 public void onMotionChange(Double x, Double y, Double z, double interval) { 60 public void onOrientationChange(Double alpha, Double beta, Double gamma) [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
PowerProfile.java | 163 ArrayList<Double> array = new ArrayList<Double>(); 177 sPowerMap.put(arrayName, array.toArray(new Double[array.size()])); 189 double value = 0; 191 value = Double.valueOf(power); 203 sPowerMap.put(arrayName, array.toArray(new Double[array.size()])); 219 public double getAveragePower(String type) { 222 if (data instanceof Double[]) { 223 return ((Double[])data)[0]; 225 return (Double) sPowerMap.get(type) [all...] |
/external/smali/dexlib/src/main/java/org/jf/dexlib/EncodedValue/ |
DoubleEncodedValue.java | 36 public final double value; 47 value = Double.longBitsToDouble(longValue); 54 public DoubleEncodedValue(double value) { 60 byte[] bytes = EncodedValueUtils.encodeRightZeroExtendedValue(Double.doubleToRawLongBits(value)); 74 Double.doubleToRawLongBits(value)); 81 return Double.compare(value, other.value); 91 return (int)Double.doubleToRawLongBits(value);
|
/dalvik/dx/tests/054-dex-high16/ |
Blort.java | 31 public static void sink(double d) { 68 sink(Double.NEGATIVE_INFINITY); 71 sink(Double.POSITIVE_INFINITY); 72 sink(Double.NaN);
|
/dalvik/tests/041-narrowing/src/ |
Main.java | 9 System.out.println("Double.POSITIVE_INFINITY = " 10 + Long.toHexString(Double.doubleToRawLongBits(Double.POSITIVE_INFINITY))); 11 System.out.println("Double.NEGATIVE_INFINITY = " 12 + Long.toHexString(Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY))); 14 + Long.toHexString(Double.doubleToRawLongBits(Float.POSITIVE_INFINITY))); 16 + Long.toHexString(Double.doubleToRawLongBits(Float.NEGATIVE_INFINITY))); 17 System.out.println("Double.NaN = " 18 + Long.toHexString(Double.doubleToRawLongBits(Double.NaN))) [all...] |
/external/clang/test/Sema/ |
cast.c | 10 double b; 11 b = (double)a; // expected-error {{pointer cannot be cast to type}} 23 typedef double Double; 27 typedef _Complex double CDouble; 36 (void) (Double) v; 50 (void) (Double) v; 64 (void) (Double) v; 78 (void) (Double) v; 85 void testDouble(Double v) [all...] |
/dalvik/tests/302-float-conversion/src/ |
Main.java | 19 static volatile double negInfinity = Double.NEGATIVE_INFINITY;
|
/external/smali/baksmali/src/main/java/org/jf/baksmali/Renderers/ |
DoubleRenderer.java | 36 public static void writeTo(IndentingWriter writer, double val) throws IOException { 37 writer.write(Double.toString(val));
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/double_to_int/ |
Test_double_to_int.java | 59 * @title Argument = Double.MAX_VALUE 63 assertEquals(Integer.MAX_VALUE, t.run(Double.MAX_VALUE)); 67 * @title Argument = Double.MIN_VALUE 71 assertEquals(0, t.run(Double.MIN_VALUE)); 79 assertEquals(0, t.run(Double.NaN)); 87 assertEquals(Integer.MAX_VALUE, t.run(Double.POSITIVE_INFINITY)); 95 assertEquals(Integer.MIN_VALUE, t.run(Double.NEGATIVE_INFINITY));
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/double_to_long/ |
Test_double_to_long.java | 50 * @title Argument = Double.MAX_VALUE 54 assertEquals(Long.MAX_VALUE, t.run(Double.MAX_VALUE)); 58 * @title Argument = Double.MIN_VALUE 62 assertEquals(0, t.run(Double.MIN_VALUE)); 78 assertEquals(0l, t.run(Double.NaN)); 86 assertEquals(Long.MAX_VALUE, t.run(Double.POSITIVE_INFINITY)); 94 assertEquals(Long.MIN_VALUE, t.run(Double.NEGATIVE_INFINITY));
|
/external/v8/src/ |
bignum-dtoa.cc | 37 #include "double.h" 44 while ((significand & Double::kHiddenBit) == 0) { 57 static void InitialScaledStartValues(double v, 92 void BignumDtoa(double v, BignumDtoaMode mode, int requested_digits, 95 ASSERT(!Double(v).IsSpecial()); 96 uint64_t significand = Double(v).Significand(); 98 int exponent = Double(v).Exponent(); 121 // Make sure the bignum can grow large enough. The smallest double equals 123 // The maximum double is 1.7976931348623157e308 which needs fewer than 162 // double, so it converts to v when read [all...] |
/external/guava/guava-tests/test/com/google/common/primitives/ |
DoublesTest.java | 19 import static java.lang.Double.NaN; 44 private static final double[] EMPTY = {}; 45 private static final double[] ARRAY1 = {(double) 1}; 46 private static final double[] ARRAY234 47 = {(double) 2, (double) 3, (double) 4}; 49 private static final double LEAST = Double.NEGATIVE_INFINITY [all...] |