/libcore/luni/src/test/java/libcore/java/lang/ |
D | DoubleTest.java | 34 assertEquals(Double.NaN, Double.parseDouble("NaN")); in testNamedDoubles() 35 assertEquals(Double.NaN, Double.parseDouble("-NaN")); in testNamedDoubles() 36 assertEquals(Double.NaN, Double.parseDouble("+NaN")); in testNamedDoubles() 38 Double.parseDouble("NNaN"); in testNamedDoubles() 43 Double.parseDouble("NaNN"); in testNamedDoubles() 48 assertEquals(Double.POSITIVE_INFINITY, Double.parseDouble("+Infinity")); in testNamedDoubles() 49 assertEquals(Double.POSITIVE_INFINITY, Double.parseDouble("Infinity")); in testNamedDoubles() 50 assertEquals(Double.NEGATIVE_INFINITY, Double.parseDouble("-Infinity")); in testNamedDoubles() 52 Double.parseDouble("IInfinity"); in testNamedDoubles() 57 Double.parseDouble("Infinityy"); in testNamedDoubles() [all …]
|
D | OldDoubleTest.java | 73 double actual = Double.parseDouble("9e551027"); in test_parseDouble_LString_AndroidRegression()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | DoubleTest.java | 190 result = Double.parseDouble(originalDoubleString); in doTestCompareRawBits() 231 …d = Double.parseDouble("-1.23399999999999996511673809963093681727585202138420992908181304283780288… in test_ConstructorLjava_lang_String() 430 .parseDouble("2.4703282292062327208828439643411e-324"), 0.0); in test_parseDoubleLjava_lang_String() 432 .parseDouble("2.4703282292062327208828439643412e-324") == Double.MIN_VALUE); in test_parseDoubleLjava_lang_String() 435 Double.parseDouble("3.4e-" + i); in test_parseDoubleLjava_lang_String() 438 Double.parseDouble("1.2e" + i); in test_parseDoubleLjava_lang_String() 589 Double.parseDouble("0.0p0D"); in test_parseDouble_LString_Illegal() 596 Double.parseDouble("+0x.p1d"); in test_parseDouble_LString_Illegal() 603 Double.parseDouble("0Xg.gp1D"); in test_parseDouble_LString_Illegal() 610 Double.parseDouble("-0x1.1p"); in test_parseDouble_LString_Illegal() [all …]
|
/libcore/ojluni/src/test/java/lang/Double/ |
D | ParseDoubleTest.java | 48 double n = Double.parseDouble(val); in check() 126 double n = Double.parseDouble(val); in check() 568 d = Double.parseDouble(input[i]); in testParsing() 681 double convertedLowerBound = Double.parseDouble(lowerBound.toString()); in testSubnormalPowers() 682 double convertedUpperBound = Double.parseDouble(upperBound.toString()); in testSubnormalPowers() 695 … Assert.assertEquals(Double.parseDouble(minValue.multiply(new BigDecimal(0.5)).toString()), 0.0, in testSubnormalPowers() 697 …Assert.assertEquals(Double.parseDouble(minValue.multiply(new BigDecimal(0.50000000001)).toString()… in testSubnormalPowers() 699 …Assert.assertEquals(Double.parseDouble(minValue.multiply(new BigDecimal(1.49999999999)).toString()… in testSubnormalPowers() 701 …Assert.assertEquals(Double.parseDouble(minValue.multiply(new BigDecimal(1.5)).toString()), 2*Doubl… in testSubnormalPowers() 735 conversion = Double.parseDouble(decimal); in testStrictness()
|
D | NaNInfinityParsingTest.java | 129 double d = Double.parseDouble(naNString); in testValidNaNStrings() 139 double d = Double.parseDouble(infinityString); in testValidInfinityStrings() 158 double d = Double.parseDouble(invalidString); in testAlmostValidStrings()
|
D | ToHexStringTest.java | 134 String result = Double.toHexString(Double.parseDouble(testCases1[i][0])); in testToHexString() 217 String result = Double.toHexString(Double.parseDouble(testCases2[i][0])); in testToHexString()
|
D | ParseHexFloatingPointTest.java | 86 double result = Double.parseDouble(s5); in testCase() 410 "Double = " + Double.toHexString(Double.parseDouble(resultIn)) + in testFloat()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | CSVTest.java | 67 double expectedOutput = Double.parseDouble(testCase[1]); in runTest() 68 double input = Double.parseDouble(testCase[2]); in runTest() 71 double input2 = Double.parseDouble(testCase[3]); in runTest()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Double.java | 625 return new Double(parseDouble(s)); in valueOf() 661 public static double parseDouble(String s) throws NumberFormatException { in parseDouble() method in Double 662 return FloatingDecimal.parseDouble(s); in parseDouble() 746 value = parseDouble(s); in Double()
|
/libcore/json/src/main/java/org/json/ |
D | JSON.java | 65 return (int) Double.parseDouble((String) value); in toInteger() 79 return (long) Double.parseDouble((String) value); in toLong()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | StringToRealBenchmark.java | 42 Double.parseDouble(string); in timeDouble_parseDouble()
|
/libcore/ojluni/src/test/java/math/BigInteger/ |
D | PrimitiveConversionTests.java | 74 double expected = Double.parseDouble(big.toString()); in testDoubleValue()
|
/libcore/ojluni/annotations/flagged_api/java/lang/ |
D | Double.annotated.java | 46 public static double parseDouble(java.lang.String s) throws java.lang.NumberFormatException { throw… in parseDouble() method in Double
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Double.annotated.java | 45 public static double parseDouble(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberF… in parseDouble() method in Double
|
/libcore/benchmarks/src/benchmarks/ |
D | XmlSerializeBenchmark.java | 91 dataset[i] = Double.parseDouble(splitted[i]); in setUp()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Double.java | 60 public static double parseDouble(java.lang.String s) throws java.lang.NumberFormatException { in parseDouble() method in Double
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | FloatingDecimal.java | 53 public static double parseDouble(java.lang.String s) throws java.lang.NumberFormatException { in parseDouble() method in FloatingDecimal
|
/libcore/ojluni/src/main/java/java/text/ |
D | ChoiceFormat.java | 216 startValue = Double.parseDouble(tempBuffer); in applyPattern()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | DoubleBufferTest.java | 212 double negativeZero = Double.parseDouble("-0"); 213 double positiveZero = Double.parseDouble("+0");
|
/libcore/ojluni/src/main/java/java/util/prefs/ |
D | AbstractPreferences.java | 620 result = Double.parseDouble(value); in getDouble()
|
/libcore/luni/src/test/java/tests/java/sql/ |
D | SelectFunctionalityTest.java | 509 resDouble = Double.parseDouble(result.getString(name)); in func()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Scanner.java | 2541 typeCache = Double.valueOf(Double.parseDouble(s)); in hasNextDouble() 2587 return Double.parseDouble(processFloatToken(next(floatPattern()))); in nextDouble()
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LocaleMatcher.java | 508 w = Double.parseDouble(range.substring(index)); in parse()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DecimalFormatTest.java | 1673 d, Double.parseDouble(Double.toString(d))); in assertDecimalFormatIsLossless() 1682 double doubleParsed = Double.parseDouble(result); in assertDecimalFormatIsLossless()
|
/libcore/ojluni/src/main/java/jdk/internal/math/ |
D | FloatingDecimal.java | 109 public static double parseDouble(String s) throws NumberFormatException { in parseDouble() method in FloatingDecimal
|