Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DDisplayModeDirectorTest.java48 private static final float FLOAT_TOLERANCE = 0.01f; field in DisplayModeDirectorTest
148 float error = FLOAT_TOLERANCE / 4; in testVotingWithFloatingPointErrors()
156 Truth.assertThat(desiredSpecs.primaryRefreshRateRange.min).isWithin(FLOAT_TOLERANCE).of(60); in testVotingWithFloatingPointErrors()
157 Truth.assertThat(desiredSpecs.primaryRefreshRateRange.max).isWithin(FLOAT_TOLERANCE).of(60); in testVotingWithFloatingPointErrors()
175 Truth.assertThat(desiredSpecs.primaryRefreshRateRange.min).isWithin(FLOAT_TOLERANCE).of(60); in testBrightnessHasLowerPriorityThanUser()
176 Truth.assertThat(desiredSpecs.primaryRefreshRateRange.max).isWithin(FLOAT_TOLERANCE).of(60); in testBrightnessHasLowerPriorityThanUser()
183 Truth.assertThat(desiredSpecs.primaryRefreshRateRange.min).isWithin(FLOAT_TOLERANCE).of(90); in testBrightnessHasLowerPriorityThanUser()
184 Truth.assertThat(desiredSpecs.primaryRefreshRateRange.max).isWithin(FLOAT_TOLERANCE).of(90); in testBrightnessHasLowerPriorityThanUser()
191 Truth.assertThat(desiredSpecs.primaryRefreshRateRange.min).isWithin(FLOAT_TOLERANCE).of(90); in testBrightnessHasLowerPriorityThanUser()
192 Truth.assertThat(desiredSpecs.primaryRefreshRateRange.max).isWithin(FLOAT_TOLERANCE).of(90); in testBrightnessHasLowerPriorityThanUser()
[all …]
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsHelperRestoreTest.java43 private static final float FLOAT_TOLERANCE = 0.01f; field in SettingsHelperRestoreTest
81 FLOAT_TOLERANCE); in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue()
104 FLOAT_TOLERANCE); in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java53 private static final float FLOAT_TOLERANCE = 0.01f; field in SettingsHelper
311 return Math.abs(currentScale - defaultScale) >= FLOAT_TOLERANCE; in isAlreadyConfiguredCriticalAccessibilitySetting()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayModeDirector.java76 private static final float FLOAT_TOLERANCE = 0.01f; field in DisplayModeDirector
309 if (refreshRate < (summary.minRefreshRate - FLOAT_TOLERANCE) in filterModes()
310 || refreshRate > (summary.maxRefreshRate + FLOAT_TOLERANCE)) { in filterModes()
544 if (min < 0 || max < 0 || min > max + FLOAT_TOLERANCE) { in RefreshRateRange()