Home
last modified time | relevance | path

Searched refs:parseFloat (Results 1 – 25 of 66) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DParseUtilsTest.java73 assertEquals(0.5f, ParseUtils.parseFloat(null, 0.5f)); in testParseFloat()
74 assertEquals(0.5f, ParseUtils.parseFloat("", 0.5f)); in testParseFloat()
75 assertEquals(0.5f, ParseUtils.parseFloat("1x", 0.5f)); in testParseFloat()
76 assertEquals(1.5f, ParseUtils.parseFloat("1.5", 0.5f)); in testParseFloat()
/frameworks/base/cmds/input/src/com/android/commands/input/
DInput.java217 sendTap(inputSource, Float.parseFloat(nextArgRequired()), in run()
218 Float.parseFloat(nextArgRequired()), displayId); in run()
246 final float x1 = Float.parseFloat(nextArgRequired()); in sendSwipe()
247 final float y1 = Float.parseFloat(nextArgRequired()); in sendSwipe()
248 final float x2 = Float.parseFloat(nextArgRequired()); in sendSwipe()
249 final float y2 = Float.parseFloat(nextArgRequired()); in sendSwipe()
293 sendMove(inputSource, Float.parseFloat(nextArgRequired()), in run()
294 Float.parseFloat(nextArgRequired()), displayId); in run()
315 sendMotionEvent(inputSource, nextArgRequired(), Float.parseFloat(nextArgRequired()), in run()
316 Float.parseFloat(nextArgRequired()), displayId); in run()
/frameworks/base/core/java/com/android/internal/util/
DParseUtils.java65 public static float parseFloat(@Nullable String value, float defValue) { in parseFloat() method in ParseUtils
70 return Float.parseFloat(value); in parseFloat()
/frameworks/base/core/java/android/util/
DSizeF.java145 return new SizeF(Float.parseFloat(string.substring(0, sep_ix)), in parseSizeF()
146 Float.parseFloat(string.substring(sep_ix + 1))); in parseSizeF()
DXmlPullAttributes.java96 return Float.parseFloat(s); in getAttributeFloatValue()
130 return Float.parseFloat(s); in getAttributeFloatValue()
DHalf.java207 mValue = toHalf(Float.parseFloat(value)); in Half()
857 return toHalf(Float.parseFloat(s)); in parseHalf()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerShellCommand.java92 brightness = Float.parseFloat(brightnessText); in setBrightness()
126 cct = Float.parseFloat(cctText); in setAmbientColorTemperatureOverride()
DAmbientBrightnessStatsTracker.java246 parsedBucketBoundaries[i] = Float.parseFloat(bucketBoundaries[i]); in readFromXML()
247 parsedBucketStats[i] = Float.parseFloat(bucketStats[i]); in readFromXML()
DBrightnessTracker.java627 builder.setBrightness(Float.parseFloat(brightness)); in readEventsLocked()
634 builder.setBatteryLevel(Float.parseFloat(batteryLevel)); in readEventsLocked()
641 builder.setLastBrightness(Float.parseFloat(lastBrightness)); in readEventsLocked()
654 luxValues[i] = Float.parseFloat(luxValuesStrings[i]); in readEventsLocked()
666 builder.setPowerBrightnessFactor(Float.parseFloat(powerSave)); in readEventsLocked()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DLoaderRaw.java59 v.mVoxelDim[0] = Float.parseFloat(voxeldim[0]); in buildRSVolume()
60 v.mVoxelDim[1] = Float.parseFloat(voxeldim[1]); in buildRSVolume()
61 v.mVoxelDim[2] = Float.parseFloat(voxeldim[2]); in buildRSVolume()
DLoaderDicom.java473 float sx = Float.parseFloat(pss[0]); in buildRSVolume()
474 float sy = Float.parseFloat(pss[1]); in buildRSVolume()
597 float sx = Float.parseFloat(pss[0]); in buildRSVolume2()
598 float sy = Float.parseFloat(pss[1]); in buildRSVolume2()
/frameworks/base/services/core/java/com/android/server/display/color/
DDisplayWhiteBalanceTintController.java94 displayNominalWhiteXYZ[i] = Float.parseFloat(nominalWhiteValues[i]); in setUp()
268 displayRedGreenBlueXYZ[i] = Float.parseFloat(displayPrimariesValues[i]); in getDisplayColorSpaceFromResources()
272 displayWhiteXYZ[i] = Float.parseFloat( in getDisplayColorSpaceFromResources()
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DPowerProfile.java361 float value = parseFloat(finishCapturingText()); in endElement()
378 mArray.add(parseFloat(finishCapturingText())); in endElement()
455 private float parseFloat(String text) throws SAXParseException { in parseFloat() method in PowerProfile.AndroidResourceHandler
457 return Float.parseFloat(text); in parseFloat()
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
DMainActivity.java95 float fval = Float.parseFloat(str); in loadPropIntText()
108 return Float.parseFloat(str); in loadFloatText()
/frameworks/base/libs/hwui/
DPathParser.cpp100 static float parseFloat(PathParser::ParseResult* result, const char* startPtr, in parseFloat() function
140 float currentValue = parseFloat(result, &pathStr[startPosition], end - startPosition); in getFloats()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DPortableFloatMap.java61 mScale = Float.parseFloat(scaleLine); in PortableFloatMap()
/frameworks/layoutlib/bridge/src/android/util/
DBridgeXmlPullAttributes.java231 return Float.parseFloat(s); in getAttributeFloatValue()
299 return Float.parseFloat(s); in getAttributeFloatValue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarInflaterView.java349 float weight = Float.parseFloat( in applySize()
354 Float.parseFloat(sizeStr.substring(0, sizeStr.indexOf(ABSOLUTE_SUFFIX)))); in applySize()
365 float size = Float.parseFloat(sizeStr); in applySize()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DTriData.java108 mVert[k++] = Float.parseFloat(s[j]); in read()
/frameworks/base/graphics/java/android/graphics/fonts/
DFontVariationAxis.java165 value = Float.parseFloat(settings.substring(i, endOfValueString)); in fromFontVariationSettings()
/frameworks/base/tools/preload/
Dsorttable.js260 aa = parseFloat(a[0].replace(/[^0-9.-]/g,''));
262 bb = parseFloat(b[0].replace(/[^0-9.-]/g,''));
/frameworks/base/sax/tests/saxtests/src/android/sax/
DSafeSaxTest.java324 ? 0.0f : Float.parseFloat(average); in newContentHandler()
444 ? 0.0f : Float.parseFloat(average); in startElement()
/frameworks/base/core/java/android/provider/
DSettingsValidators.java235 final float floatValue = Float.parseFloat(value); in validate()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGraphReader.java418 return Float.parseFloat(strValue); in getAssignmentValue()
423 result[i] = Float.parseFloat(floatStrings[i]); in getAssignmentValue()
/frameworks/base/core/java/android/database/
DMatrixCursor.java300 return Float.parseFloat(value.toString()); in getFloat()

123