Searched refs:Double (Results 1 - 25 of 355) sorted by relevance

1234567891011>>

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
H A DConcurrentModTest.java36 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) su
[all...]
/external/guava/guava-tests/test/com/google/common/primitives/
H A DDoubleArrayAsListTest.java44 private static List<Double> asList(Double[] values) {
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) {
92 Double[] suffix = {Double
[all...]
H A DDoublesTest.java19 import static java.lang.Double.NaN;
49 private static final double LEAST = Double.NEGATIVE_INFINITY;
50 private static final double GREATEST = Double.POSITIVE_INFINITY;
53 LEAST, -Double.MAX_VALUE, -1.0, -0.0, 0.0, 1.0, Double.MAX_VALUE, GREATEST,
54 Double.MIN_NORMAL, -Double.MIN_NORMAL, Double.MIN_VALUE, -Double.MIN_VALUE,
63 assertEquals(((Double) valu
[all...]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/
H A DDoubleTest.java190 result = Double.parseDouble(originalDoubleString);
191 rawBits = Double.doubleToLongBits(result);
192 convertedString = new Double(result).toString();
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)
209 Double
[all...]
H A DMathTest.java80 long lr = Double.doubleToLongBits(r);
81 long t = Double.doubleToLongBits(ADJ / HYP);
92 long lr = Double.doubleToLongBits(r);
93 long t = Double.doubleToLongBits(OPP / HYP);
123 assertTrue("Should return Double.NaN", Double.isNaN(Math
124 .cbrt(Double.NaN)));
125 assertEquals("Should return Double.POSITIVE_INFINITY",
126 Double.POSITIVE_INFINITY, Math
127 .cbrt(Double
[all...]
H A DStrictMathTest.java130 assertTrue("Should return Double.NaN", Double.isNaN(StrictMath
131 .cbrt(Double.NaN)));
132 assertEquals("Should return Double.POSITIVE_INFINITY",
133 Double.POSITIVE_INFINITY, StrictMath
134 .cbrt(Double.POSITIVE_INFINITY));
135 assertEquals("Should return Double.NEGATIVE_INFINITY",
136 Double.NEGATIVE_INFINITY, StrictMath
137 .cbrt(Double.NEGATIVE_INFINITY));
138 assertEquals(Double
[all...]
/external/v8/test/cctest/
H A Dtest-double.cc19 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();
71 CHECK(Double(min_double6
[all...]
/external/chromium_org/v8/test/cctest/
H A Dtest-double.cc44 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();
97 CHECK(Double(min_double6
[all...]
H A Dtest-code-stubs.cc48 int32_t shifted_mask = static_cast<int32_t>(Double::kExponentMask >> 32);
50 (Double::kPhysicalSignificandSize - 32)) -
55 static_cast<uint32_t>(Double::kPhysicalSignificandSize);
57 if ((exponent - Double::kPhysicalSignificandSize) < 32) {
58 result = dbl.u[0] << (exponent - Double::kPhysicalSignificandSize);
62 (BitCast<uint64_t>(d) & Double::kSignificandMask) | Double::kHiddenBit;
63 big_result = big_result >> (Double::kPhysicalSignificandSize - exponent);
/external/clang/test/SemaCXX/
H A Dmissing-namespace-qualifier-typo-corrections.cpp10 int Double(int x) { return x + x; } function
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(
[all...]
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/
H A DCstDouble.java29 new CstDouble(Double.doubleToLongBits(0.0));
33 new CstDouble(Double.doubleToLongBits(1.0));
63 Double.longBitsToDouble(bits) + '}';
79 return Double.toString(Double.longBitsToDouble(getLongBits()));
88 return Double.longBitsToDouble(getLongBits());
/external/junit/src/org/junit/internal/
H A DInexactComparisonCriteria.java14 if (expected instanceof Double)
15 Assert.assertEquals((Double)expected, (Double)actual, fDelta);
/external/chromium_org/base/test/android/javatests/src/org/chromium/base/test/util/
H A DScalableTimeout.java13 private static Double sTimeoutScale = null;
20 sTimeoutScale = Double.parseDouble(new String(data));
/external/guava/guava/src/com/google/common/math/
H A DDoubleUtils.java40 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.
60 // Double#doubleToRawLongBits(double)} spec.
79 long bits = Double.doubleToRawLongBits(d);
100 long bits = Double.doubleToRawLongBits(d);
103 return Double
[all...]
/external/jmonkeyengine/engine/src/networking/com/jme3/network/serializing/serializers/
H A DDoubleSerializer.java40 * Double serializer.
47 public Double readObject(ByteBuffer data, Class c) throws IOException {
52 buffer.putDouble((Double)object);
/external/smali/dexlib/src/main/java/org/jf/dexlib/EncodedValue/
H A DDoubleEncodedValue.java47 value = Double.longBitsToDouble(longValue);
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);
/external/clang/test/Sema/
H A Dcast.c23 typedef double Double; typedef
36 (void) (Double) v;
50 (void) (Double) v;
72 (void) (Double) v;
86 (void) (Double) v;
93 void testDouble(Double v) {
98 (void) (Double) v;
110 (void) (Double) v;
122 (void) (Double) v;
134 (void) (Double)
[all...]
/external/smali/baksmali/src/main/java/org/jf/baksmali/Renderers/
H A DDoubleRenderer.java37 writer.write(Double.toString(val));
/external/chromium_org/third_party/WebKit/Source/wtf/dtoa/
H A Ddouble.h42 class Double { class in namespace:WTF::double_conversion
51 Double() : d64_(0) {} function in class:WTF::double_conversion::Double
52 explicit Double(double d) : d64_(double_to_uint64(d)) {} function in class:WTF::double_conversion::Double
53 explicit Double(uint64_t d64) : d64_(d64) {} function in class:WTF::double_conversion::Double
54 explicit Double(DiyFp diy_fp) function in class:WTF::double_conversion::Double
57 // The value encoded by this Double must be greater or equal to +0.0.
65 // The value encoded by this Double must be strictly greater than 0.
89 if (d64_ == kInfinity) return Double(kInfinity).value();
95 return Double(d64_ - 1).value();
97 return Double(d64
[all...]
H A Dbignum-dtoa.cc43 while ((significand & Double::kHiddenBit) == 0) {
94 ASSERT(!Double(v).IsSpecial());
95 uint64_t significand = Double(v).Significand();
97 int exponent = Double(v).Exponent();
412 numerator->AssignUInt64(Double(v).Significand());
413 numerator->ShiftLeft(Double(v).Exponent());
425 delta_plus->ShiftLeft(Double(v).Exponent());
428 delta_minus->ShiftLeft(Double(v).Exponent());
435 uint64_t v_bits = Double(v).AsUint64();
436 if ((v_bits & Double
[all...]
/external/chromium_org/v8/src/
H A Dbignum-dtoa.cc44 while ((significand & Double::kHiddenBit) == 0) {
95 ASSERT(!Double(v).IsSpecial());
96 uint64_t significand = Double(v).Significand();
98 int exponent = Double(v).Exponent();
413 numerator->AssignUInt64(Double(v).Significand());
414 numerator->ShiftLeft(Double(v).Exponent());
426 delta_plus->ShiftLeft(Double(v).Exponent());
429 delta_minus->ShiftLeft(Double(v).Exponent());
436 uint64_t v_bits = Double(v).AsUint64();
437 if ((v_bits & Double
[all...]
/external/v8/src/
H A Dbignum-dtoa.cc44 while ((significand & Double::kHiddenBit) == 0) {
95 ASSERT(!Double(v).IsSpecial());
96 uint64_t significand = Double(v).Significand();
98 int exponent = Double(v).Exponent();
413 numerator->AssignUInt64(Double(v).Significand());
414 numerator->ShiftLeft(Double(v).Exponent());
426 delta_plus->ShiftLeft(Double(v).Exponent());
429 delta_minus->ShiftLeft(Double(v).Exponent());
436 uint64_t v_bits = Double(v).AsUint64();
437 if ((v_bits & Double
[all...]
/external/guava/guava/src/com/google/common/primitives/
H A DDoubles.java23 import static java.lang.Double.NEGATIVE_INFINITY;
24 import static java.lang.Double.POSITIVE_INFINITY;
39 * already found in either {@link Double} or {@link Arrays}.
54 public static final int BYTES = Double.SIZE / Byte.SIZE;
58 * {@code ((Double) value).hashCode()}.
64 return ((Double) value).hashCode();
66 // long bits = Double.doubleToLongBits(value);
72 * returned is the same as that of <code>((Double) a).{@linkplain
73 * Double#compareTo compareTo}(b)</code>. As with that method, {@code NaN} is
82 return Double
[all...]
/external/guava/guava-tests/test/com/google/common/math/
H A DMathTesting.java187 Double.MAX_EXPONENT - 1, Double.MAX_EXPONENT, Double.MAX_EXPONENT + 1)) {
203 static final ImmutableSet<Double> INTEGRAL_DOUBLE_CANDIDATES;
204 static final ImmutableSet<Double> FRACTIONAL_DOUBLE_CANDIDATES;
205 static final Iterable<Double> FINITE_DOUBLE_CANDIDATES;
206 static final Iterable<Double> POSITIVE_FINITE_DOUBLE_CANDIDATES;
207 static final Iterable<Double> ALL_DOUBLE_CANDIDATES;
209 ImmutableSet.Builder<Double> integralBuilder = ImmutableSet.builder();
210 ImmutableSet.Builder<Double> fractionalBuilde
[all...]
/external/smack/src/org/xbill/DNS/
H A DGPOSRecord.java52 this.longitude = Double.toString(longitude).getBytes();
53 this.latitude = Double.toString(latitude).getBytes();
54 this.altitude = Double.toString(altitude).getBytes();
136 return Double.parseDouble(getLongitudeString());
152 return Double.parseDouble(getLatitudeString());
168 return Double.parseDouble(getAltitudeString());

Completed in 2032 milliseconds

1234567891011>>