Home
last modified time | relevance | path

Searched refs:PRECISION (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/src/com/android/settings/accessibility/
DFloatingMenuTransparencyPreferenceController.java49 static final float PRECISION = 100f; field in FloatingMenuTransparencyPreferenceController
137 return Math.round(value * PRECISION); in convertTransparencyFloatToInt()
141 return (float) value / PRECISION; in convertTransparencyIntToFloat()
147 final float minValue = MIN_PROGRESS / PRECISION; in getTransparency()
148 final float maxValue = MAX_PROGRESS / PRECISION; in getTransparency()
/packages/apps/PhoneCommon/src/com/android/phone/common/compat/
DPathInterpolatorCompat.java38 private static final float PRECISION = 0.002f; field in PathInterpolatorCompat.PathInterpolatorBase
47 final int numPoints = (int) (pathLength / PRECISION) + 1; in PathInterpolatorBase()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DFloatingMenuTransparencyPreferenceControllerTest.java24 …t static com.android.settings.accessibility.FloatingMenuTransparencyPreferenceController.PRECISION;
112 final int defaultValue = Math.round(DEFAULT_TRANSPARENCY * PRECISION); in getSliderPosition_putOutOfBoundOpacityValue_defaultValue()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java100 private static final double PRECISION = 0.001; field in BatteryUtilsTest
258 .isWithin(PRECISION).of(PERCENT_SYSTEM_USAGE); in testCalculateBatteryPercent()