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

1 2 3 4 5 6 7 8 91011>>

  /external/valgrind/VEX/priv/
host_generic_maddf.h 41 void h_generic_calc_MAddF64 ( /*OUT*/Double*, Double*, Double*,
42 Double* );
  /libcore/luni/src/test/java/libcore/java/lang/
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...]
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...]
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...]
  /external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DoubleArrayAsListTest.java 30 * Test suite covering {@link Doubles#asList(double[])}.
37 private static List<Double> asList(Double[] values) {
38 double[] temp = new double[values.length];
49 @Override protected List<Double> create(Double[] elements) {
55 @Override protected List<Double> create(Double[] elements) {
56 Double[] suffix = {Double.MIN_VALUE, Double.MAX_VALUE}
    [all...]
  /external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/
FloatTagTest.java 27 assertEquals(new Double(6.8523015e+5), getMapValue("canonical: 6.8523015e+5", "canonical"));
28 assertEquals(new Double(6.8523015e+5),
30 assertEquals(new Double(6.8523015e+5), getMapValue("fixed: 685_230.15", "fixed"));
31 assertEquals(new Double(6.8523015e+5),
33 assertEquals(Double.NEGATIVE_INFINITY,
35 assertEquals(Double.NaN, getMapValue("not a number: .NaN", "not a number"));
39 assertEquals(new Double(1), getMapValue("number: !!float 1", "number"));
43 assertEquals(new Double(1), getMapValue("number: !<tag:yaml.org,2002:float> 1", "number"));
48 map.put("number", new Double(1));
54 assertEquals(new Double(47.0), load("47.0"))
    [all...]
  /tools/tradefederation/core/src/com/android/tradefed/util/
SimpleStats.java 25 * values are stored internally as {@link Double}s.
28 private List<Double> mData = new LinkedList<Double>();
31 private double mSum = 0;
38 public void addAll(Collection<? extends Double> c) {
39 for (Double meas : c) {
50 public void add(double meas) {
58 public List<Double> getData() {
79 public Double mean() {
90 public Double median()
    [all...]
  /external/guava/guava-tests/test/com/google/common/primitives/
DoubleArrayAsListTest.java 38 * Test suite covering {@link Doubles#asList(double[])}.
45 private static List<Double> asList(Double[] values) {
46 double[] temp = new double[values.length];
55 List<ListTestSuiteBuilder<Double>> builders =
71 for (ListTestSuiteBuilder<Double> builder : builders) {
87 @Override protected List<Double> create(Double[] elements) {
93 @Override protected List<Double> create(Double[] elements)
    [all...]
  /external/dagger2/compiler/src/it/functional-tests/src/main/java/test/
ChildDoubleModule.java 9 class ChildDoubleModule extends ParentModule<Double, String, List<Double>> {
11 @Provides Double provideDouble() {
15 @Provides List<Double> provideListOfDouble() {
16 List<Double> list = new ArrayList<>();
  /external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
ChiSquaredDistribution.java 32 public interface ChiSquaredDistribution extends ContinuousDistribution, HasDensity<Double> {
39 void setDegreesOfFreedom(double degreesOfFreedom);
45 double getDegreesOfFreedom();
52 double density(Double x);
ExponentialDistribution.java 32 public interface ExponentialDistribution extends ContinuousDistribution, HasDensity<Double> {
39 void setMean(double mean);
45 double getMean();
52 double density(Double x);
GammaDistribution.java 32 public interface GammaDistribution extends ContinuousDistribution, HasDensity<Double> {
39 void setAlpha(double alpha);
45 double getAlpha();
53 void setBeta(double beta);
59 double getBeta();
66 double density(Double x);
NormalDistribution.java 33 public interface NormalDistribution extends ContinuousDistribution, HasDensity<Double> {
38 double getMean();
45 void setMean(double mean);
50 double getStandardDeviation();
57 void setStandardDeviation(double sd);
64 double density(Double x);
  /external/jcommander/src/main/java/com/beust/jcommander/converters/
DoubleConverter.java 24 * Convert a string to a double.
28 public class DoubleConverter extends BaseConverter<Double> {
34 public Double convert(String value) {
36 return Double.parseDouble(value);
38 throw new ParameterException(getErrorString(value, "a double"));
  /libcore/luni/src/test/java/libcore/java/util/function/
FunctionTest.java 32 Function<Double, Double> plusOne = x -> x + 1.0d;
33 Function<Double, Double> twice = x -> 2 *x;
38 Function<Double, Double> plusOne = x -> x + 1.0d;
46 Function<Double, Double> plusOne = x -> x + 1.0d;
47 Function<Double, Double> twice = x -> 2 *x
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
MathTest.java 22 double HYP = Math.sqrt(2.0);
24 double OPP = 1.0;
26 double ADJ = 1.0;
32 * 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 * java.lang.Math#acos(double)
78 // Test for method double java.lang.Math.acos(double
    [all...]
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 * java.lang.Double#Double(double
    [all...]
  /cts/tests/vm/src/android/vm/cts/opcodes/add_double/
AddDoubleTest.java 47 * @title Arguments = Double.MAX_VALUE, Double.NaN
51 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN));
55 * @title Arguments = Double.POSITIVE_INFINITY,
56 * Double.NEGATIVE_INFINITY
60 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY))
    [all...]
  /cts/tests/vm/src/android/vm/cts/opcodes/add_double_2addr/
AddDouble2AddrTest.java 47 * @title Arguments = Double.MAX_VALUE, Double.NaN
51 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN));
55 * @title Arguments = Double.POSITIVE_INFINITY,
56 * Double.NEGATIVE_INFINITY
60 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY,
61 Double.NEGATIVE_INFINITY))
    [all...]
  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/number/
IsNaN.java 11 public final class IsNaN extends TypeSafeMatcher<Double> {
16 public boolean matchesSafely(Double item) {
17 return Double.isNaN(item);
21 public void describeMismatchSafely(Double item, Description mismatchDescription) {
27 description.appendText("a double value of NaN");
31 * Creates a matcher of {@link Double}s that matches when an examined double is not a number.
33 * <pre>assertThat(Double.NaN, is(notANumber()))</pre>
35 public static Matcher<Double> notANumber() {
  /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::morebar()) Double(7); // expected-error{{use of undeclared identifier 'dummy'; did you mean 'fizbin::dummy'?}}
33 if (dummy::mrebar()) Double(7); // expected-error{{use of undeclared identifier 'dummy'; did you mean 'fizbin::dummy'?}}
    [all...]
  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/mul_double/
Test_mul_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, 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/vm-tests-tf/src/dot/junit/opcodes/mul_double_2addr/
Test_mul_double_2addr.java 52 * @title Arguments = Double.MAX_VALUE, Double.NaN
56 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN));
60 * @title Arguments = Double.POSITIVE_INFINITY, 0
64 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 0));
68 * @title Arguments = Double.POSITIVE_INFINITY, -2.7d
72 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/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...]
  /packages/apps/Camera2/src/com/android/camera/data/
Location.java 27 public static final Location UNKNOWN = new Location(Double.NaN, Double.NaN);
30 private final double mLatitude;
31 private final double mLongitude;
33 private Location(double latitude, double longitude) {
38 public double getLatitude() {
42 public double getLongitude() {
73 if (Double.compare(location.mLatitude, mLatitude) != 0) {
76 if (Double.compare(location.mLongitude, mLongitude) != 0)
    [all...]

Completed in 388 milliseconds

1 2 3 4 5 6 7 8 91011>>