Home
last modified time | relevance | path

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

1234

/frameworks/base/tools/fonts/
Dfont-scaling-array-generator.js101 const targetScale = parseFloat(targetScaleKey, 10);
105 if (scale < parseFloat(startTargetScaleKey, 10)) {
109 startTargetScale = parseFloat(startTargetScaleKey, 10);
110 endTargetScale = parseFloat(endTargetScaleKey, 10);
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DParseUtilsTest.java87 assertEquals(0.5f, ParseUtils.parseFloat(null, 0.5f), DELTA_FLOAT); in testParseFloat()
88 assertEquals(0.5f, ParseUtils.parseFloat("", 0.5f), DELTA_FLOAT); in testParseFloat()
89 assertEquals(0.5f, ParseUtils.parseFloat("1x", 0.5f), DELTA_FLOAT); in testParseFloat()
90 assertEquals(1.5f, ParseUtils.parseFloat("1.5", 0.5f), DELTA_FLOAT); in testParseFloat()
/frameworks/base/services/core/java/com/android/server/input/
DInputShellCommand.java480 sendTap(inputSource, Float.parseFloat(getNextArgRequired()), in runTap()
481 Float.parseFloat(getNextArgRequired()), displayId); in runTap()
503 final float x1 = Float.parseFloat(getNextArgRequired()); in sendSwipe()
504 final float y1 = Float.parseFloat(getNextArgRequired()); in sendSwipe()
505 final float x2 = Float.parseFloat(getNextArgRequired()); in sendSwipe()
506 final float y2 = Float.parseFloat(getNextArgRequired()); in sendSwipe()
540 sendMove(inputSource, Float.parseFloat(getNextArgRequired()), in runRoll()
541 Float.parseFloat(getNextArgRequired()), displayId); in runRoll()
549 axisValues.put(AXIS_X, Float.parseFloat(getNextArgRequired())); in runScroll()
550 axisValues.put(AXIS_Y, Float.parseFloat(getNextArgRequired())); in runScroll()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DPosition.java47 final float percentageX = Float.parseFloat(sStringCommaSplitter.next()); in fromString()
48 final float percentageY = Float.parseFloat(sStringCommaSplitter.next()); in fromString()
/frameworks/base/core/java/com/android/internal/util/
DParseUtils.java66 public static float parseFloat(@Nullable String value, float defValue) { in parseFloat() method in ParseUtils
71 return Float.parseFloat(value); in parseFloat()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerShellCommand.java82 float dimAmount = Float.parseFloat(getNextArgRequired()); in setWallpaperDimAmount()
108 float mockDimAmount = Float.parseFloat(getNextArgRequired()); in setDimmingWithUid()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/commandline/
DValueParser.kt162 private val parseFloat: ValueParser<Float> = ValueParser { value -> in value() constant
171 val Float = parseFloat
/frameworks/base/core/java/android/util/
DSizeF.java150 return new SizeF(Float.parseFloat(string.substring(0, sep_ix)), in parseSizeF()
151 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/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()
/frameworks/base/core/java/com/android/internal/accessibility/common/
DMagnificationConstants.java38 Float.parseFloat(SystemProperties.get("ro.config.max_magnification_scale", "8.0"));
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/validators/
DInclusiveFloatRangeValidator.java41 final float floatValue = Float.parseFloat(value); in validate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/settings/
DSettingsProxy.kt304 return parseFloat(v, def) in getFloat()
370 fun parseFloat(v: String?, def: Float): Float { in parseFloat() method
DUserSettingsProxy.kt25 import com.android.systemui.util.settings.SettingsProxy.Companion.parseFloat
255 return parseFloat(v, def) in putLongForUser()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
DStringToRealPerfTest.java58 Float.parseFloat(string); in timeFloat_parseFloat()
/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/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/commandline/
DValueParserTest.kt25 fun parseFloat() { in parseFloat() method in com.android.systemui.statusbar.commandline.ValueParserTest
/frameworks/base/services/core/java/com/android/server/display/color/
DDisplayWhiteBalanceTintController.java121 displayNominalWhiteXYZ[i] = Float.parseFloat(nominalWhiteValues[i]); in setUp()
434 displayRedGreenBlueXYZ[i] = Float.parseFloat(displayPrimariesValues[i]); in getDisplayColorSpaceFromResources()
438 displayWhiteXYZ[i] = Float.parseFloat( in getDisplayColorSpaceFromResources()
DReduceBrightColorsTintController.java47 mCoefficients[i] = Float.parseFloat(coefficients[i]); in setUp()
/frameworks/base/services/flags/java/com/android/server/flags/
DSettingsProxy.java257 return v != null ? Float.parseFloat(v) : def; in getFloatForUser()
277 return Float.parseFloat(v); in getFloatForUser()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DPortableFloatMap.java61 mScale = Float.parseFloat(scaleLine); in PortableFloatMap()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DNavigationBarInflaterView.java287 float weight = Float.parseFloat( in applySize()
292 Float.parseFloat(sizeStr.substring(0, sizeStr.indexOf(ABSOLUTE_SUFFIX)))); in applySize()
303 float size = Float.parseFloat(sizeStr); in applySize()

1234