Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DParseUtilsTest.java95 assertEquals(0.5, ParseUtils.parseDouble(null, 0.5), DELTA_DOUBLE); in testParseDouble()
96 assertEquals(0.5, ParseUtils.parseDouble("", 0.5), DELTA_DOUBLE); in testParseDouble()
97 assertEquals(0.5, ParseUtils.parseDouble("1x", 0.5), DELTA_DOUBLE); in testParseDouble()
98 assertEquals(1.5, ParseUtils.parseDouble("1.5", 0.5), DELTA_DOUBLE); 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.java78 public static double parseDouble(@Nullable String value, double defValue) { in parseDouble() method in ParseUtils
83 return Double.parseDouble(value); in parseDouble()
DTypedProperties.java306 value = Double.parseDouble(st.sval); in parseValue()
DXmlUtils.java227 return Double.parseDouble(getAttributeValue(index)); in getAttributeDouble()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
DStringToRealPerfTest.java67 Double.parseDouble(string); in timeDouble_parseDouble()
/frameworks/base/telephony/java/android/telephony/
DCbGeoUtils.java414 Double.parseDouble(geoParameters[2]))); in parseGeometriesFromString()
497 return new LatLng(Double.parseDouble(latLng[0]), Double.parseDouble(latLng[1])); in parseLatLngFromString()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/pidfparser/pidf/
DContact.java97 mPriority = Double.parseDouble(priority); in parse()
/frameworks/base/services/core/java/com/android/server/location/
DLocationShellCommand.java337 location.setLatitude(Double.parseDouble(locationInput[0])); in handleSetTestProviderLocation()
338 location.setLongitude(Double.parseDouble(locationInput[1])); in handleSetTestProviderLocation()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/
DXmlSerializePerfTest.java105 mDataset[i] = Double.parseDouble(splitStrings[i]); in setUp()
/frameworks/base/core/java/android/util/
DJsonReader.java466 double result = Double.parseDouble(value); in nextDouble()
491 double asDouble = Double.parseDouble(value); // don't catch this NumberFormatException in nextLong()
522 double asDouble = Double.parseDouble(value); // don't catch this NumberFormatException in nextInt()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/easing/
DMonotonicCurveFit.java339 values[count++] = Double.parseDouble(tmp); in buildWave()
344 values[count++] = Double.parseDouble(tmp); in buildWave()
/frameworks/base/media/java/android/media/
DExifInterface.java972 return Double.parseDouble((String) value); in getDoubleValue()
1806 double doubleValue = Double.parseDouble(value); in setAttribute()
1894 rationalArray[j] = new Rational((long) Double.parseDouble(numbers[0]), in setAttribute()
1895 (long) Double.parseDouble(numbers[1])); in setAttribute()
1906 rationalArray[j] = new Rational((long) Double.parseDouble(numbers[0]), in setAttribute()
1907 (long) Double.parseDouble(numbers[1])); in setAttribute()
1917 doubleArray[j] = Double.parseDouble(values[j]); in setAttribute()
2545 double degrees = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat()
2546 / Double.parseDouble(pair[1].trim()); in convertRationalLatLonToFloat()
2549 double minutes = Double.parseDouble(pair[0].trim()) in convertRationalLatLonToFloat()
[all …]
DTtmlRenderer.java141 durationSeconds += (fraction != null) ? Double.parseDouble(fraction) : 0; in parseTimeExpression()
153 double value = Double.parseDouble(timeValue); in parseTimeExpression()
/frameworks/base/core/java/android/location/
DLocation.java1177 val = Double.parseDouble(degrees); in convert()
1190 sec = Double.parseDouble(seconds); in convert()
1193 min = Double.parseDouble(minutes); in convert()
/frameworks/base/core/java/android/database/
DMatrixCursor.java309 return Double.parseDouble(value.toString()); in getDouble()
/frameworks/base/errorprone/refaster/
DEfficientXml.java269 return Double.parseDouble(in.getAttributeValue(null, n)); in beforeParse()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DFusedPrintersProvider.java928 Double.parseDouble(parser.getAttributeValue(null, ATTR_LONGITUDE))); in parsePrinter()
930 Double.parseDouble(parser.getAttributeValue(null, ATTR_LATITUDE))); in parsePrinter()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DGraphicBufferMetrics.java194 return (long)(1000000.0 * Double.parseDouble(timeStampStr)); in getTimeStamp()
/frameworks/libs/modules-utils/java/com/android/modules/utils/
DBinaryXmlPullParser.java875 return Double.parseDouble(valueString); in getValueDouble()
/frameworks/base/cmds/content/src/com/android/commands/content/
DContent.java456 return Pair.create(column, Double.parseDouble(value)); in parseBindValue()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java2102 double exposureTimeValue = Double.parseDouble(exposureTime); in verifyJpegExifExtraTags()
/frameworks/base/core/java/android/content/
DIntent.java8247 else if (uri.startsWith("d.", i)) b.putDouble(key, Double.parseDouble(value)); in parseUriInternal()
8457 intent.mExtras.putDouble(key, Double.parseDouble(value));
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerShellCommand.java4017 values[i][j] = Double.parseDouble(vals[j]);

12