Home
last modified time | relevance | path

Searched refs:parseDouble (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DParseUtilsTest.java79 assertEquals(0.5, ParseUtils.parseDouble(null, 0.5)); in testParseDouble()
80 assertEquals(0.5, ParseUtils.parseDouble("", 0.5)); in testParseDouble()
81 assertEquals(0.5, ParseUtils.parseDouble("1x", 0.5)); in testParseDouble()
82 assertEquals(1.5, ParseUtils.parseDouble("1.5", 0.5)); in testParseDouble()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DLoaderDicom.java475 double dzx = Double.parseDouble(s1ps[0]) - Double.parseDouble(s2ps[0]); in buildRSVolume()
476 double dzy = Double.parseDouble(s1ps[1]) - Double.parseDouble(s2ps[1]); in buildRSVolume()
477 double dzz = Double.parseDouble(s1ps[2]) - Double.parseDouble(s2ps[2]); in buildRSVolume()
599 double dzx = Double.parseDouble(s1ps[0]) - Double.parseDouble(s2ps[0]); in buildRSVolume2()
600 double dzy = Double.parseDouble(s1ps[1]) - Double.parseDouble(s2ps[1]); in buildRSVolume2()
601 double dzz = Double.parseDouble(s1ps[2]) - Double.parseDouble(s2ps[2]); in buildRSVolume2()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DXmpDepthDecode.java60 mFar = Double.parseDouble(meta.getPropertyString(XMP_DEPTHMAP, "GDepth:Far")); in XmpDepthDecode()
61 mNear = Double.parseDouble(meta.getPropertyString(XMP_DEPTHMAP, "GDepth:Near")); in XmpDepthDecode()
78 … mBlurAtInfinity = Double.parseDouble(meta.getPropertyString(XMP_FOCUS, "GFocus:BlurAtInfinity")); in XmpDepthDecode()
79 … mFocalDistance = Double.parseDouble(meta.getPropertyString(XMP_FOCUS, "GFocus:FocalDistance")); in XmpDepthDecode()
80 … mDepthOfFiled = Double.parseDouble(meta.getPropertyString(XMP_FOCUS, "GFocus:DepthOfField")); in XmpDepthDecode()
81 … mFocalPointX = Double.parseDouble(meta.getPropertyString(XMP_FOCUS, "GFocus:FocalPointX")); in XmpDepthDecode()
82 … mFocalPointY = Double.parseDouble(meta.getPropertyString(XMP_FOCUS, "GFocus:FocalPointY")); in XmpDepthDecode()
/frameworks/base/core/java/com/android/internal/util/
DParseUtils.java77 public static double parseDouble(@Nullable String value, double defValue) { in parseDouble() method in ParseUtils
82 return Double.parseDouble(value); in parseDouble()
DTypedProperties.java306 value = Double.parseDouble(st.sval); in parseValue()
DXmlUtils.java1230 array[i] = Double.parseDouble(parser.getAttributeValue(null, "value")); in readThisDoubleArrayXml()
/frameworks/base/core/java/android/util/
DJsonReader.java463 double result = Double.parseDouble(value); in nextDouble()
488 double asDouble = Double.parseDouble(value); // don't catch this NumberFormatException in nextLong()
519 double asDouble = Double.parseDouble(value); // don't catch this NumberFormatException in nextInt()
/frameworks/base/media/java/android/media/
DExifInterface.java818 return Double.parseDouble((String) value); in getDoubleValue()
1521 double doubleValue = Double.parseDouble(value); in setAttribute()
1606 rationalArray[j] = new Rational((long) Double.parseDouble(numbers[0]), in setAttribute()
1607 (long) Double.parseDouble(numbers[1])); in setAttribute()
1618 rationalArray[j] = new Rational((long) Double.parseDouble(numbers[0]), in setAttribute()
1619 (long) Double.parseDouble(numbers[1])); in setAttribute()
1629 doubleArray[j] = Double.parseDouble(values[j]); in setAttribute()
2089 double degrees = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat()
2090 / Double.parseDouble(pair[1].trim()); in convertRationalLatLonToFloat()
2093 double minutes = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat()
[all …]
DTtmlRenderer.java138 durationSeconds += (fraction != null) ? Double.parseDouble(fraction) : 0; in parseTimeExpression()
150 double value = Double.parseDouble(timeValue); in parseTimeExpression()
/frameworks/support/exifinterface/src/main/java/androidx/exifinterface/media/
DExifInterface.java3177 return Double.parseDouble((String) value); in getDoubleValue()
3873 double doubleValue = Double.parseDouble(value); in setAttribute()
3957 rationalArray[j] = new Rational((long) Double.parseDouble(numbers[0]), in setAttribute()
3958 (long) Double.parseDouble(numbers[1])); in setAttribute()
3969 rationalArray[j] = new Rational((long) Double.parseDouble(numbers[0]), in setAttribute()
3970 (long) Double.parseDouble(numbers[1])); in setAttribute()
3980 doubleArray[j] = Double.parseDouble(values[j]); in setAttribute()
4650 double degrees = Double.parseDouble(pair[0].trim())
4651 / Double.parseDouble(pair[1].trim());
4654 double minutes = Double.parseDouble(pair[0].trim())
[all …]
/frameworks/base/location/java/android/location/
DLocation.java285 val = Double.parseDouble(degrees); in convert()
298 sec = Double.parseDouble(seconds); in convert()
301 min = Double.parseDouble(minutes); in convert()
/frameworks/base/location/tests/locationtests/src/android/location/
DLocationManagerTest.java116 double minutes = Double.parseDouble(loc5b); in testLocationConversions()
/frameworks/base/core/java/android/database/
DMatrixCursor.java296 return Double.parseDouble(value.toString()); in getDouble()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DFusedPrintersProvider.java929 Double.parseDouble(parser.getAttributeValue(null, ATTR_LONGITUDE))); in parsePrinter()
931 Double.parseDouble(parser.getAttributeValue(null, ATTR_LATITUDE))); in parsePrinter()
/frameworks/base/cmds/content/src/com/android/commands/content/
DContent.java416 values.put(column, Double.parseDouble(value)); in parseBindValue()
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
DViewDataBinding.java628 return Double.parseDouble(str); in parse()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java2030 double exposureTimeValue = Double.parseDouble(exposureTime); in verifyJpegExifExtraTags()
/frameworks/base/core/java/android/content/
DIntent.java6349 else if (uri.startsWith("d.", i)) b.putDouble(key, Double.parseDouble(value)); in parseUri()
6556 intent.mExtras.putDouble(key, Double.parseDouble(value));
/frameworks/base/services/core/java/com/android/server/content/
DSyncStorageEngine.java1927 extras.putDouble(name, Double.parseDouble(value1)); in parseExtra()
/frameworks/base/config/
Dboot-image-profile.txt45367 HSPLjava/lang/Double;->parseDouble(Ljava/lang/String;)D
52503 HSPLsun/misc/FloatingDecimal;->parseDouble(Ljava/lang/String;)D
Dhiddenapi-public-dex.txt58445 Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt41234 … method public static double parseDouble(java.lang.String) throws java.lang.NumberFormatException;
/frameworks/base/api/
Dcurrent.txt56538 … method public static double parseDouble(java.lang.String) throws java.lang.NumberFormatException;