Searched refs:FLOAT_TOLERANCE (Results 1 – 4 of 4) sorted by relevance
48 private static final float FLOAT_TOLERANCE = 0.01f; field in DisplayModeDirectorTest148 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 …]
43 private static final float FLOAT_TOLERANCE = 0.01f; field in SettingsHelperRestoreTest81 FLOAT_TOLERANCE); in testRestoreAccessibilityDisplayMagnificationScale_alreadyConfigured_doesNotRestoreValue()104 FLOAT_TOLERANCE); in testRestoreAccessibilityDisplayMagnificationScale_notAlreadyConfigured_restoresValue()
53 private static final float FLOAT_TOLERANCE = 0.01f; field in SettingsHelper311 return Math.abs(currentScale - defaultScale) >= FLOAT_TOLERANCE; in isAlreadyConfiguredCriticalAccessibilitySetting()
76 private static final float FLOAT_TOLERANCE = 0.01f; field in DisplayModeDirector309 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()