Searched refs:FLOAT_DELTA (Results 1 – 1 of 1) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessTrackerTest.java | 81 private static final float FLOAT_DELTA = 0.01f; field in BrightnessTrackerTest 268 assertEquals(1.0f, event.luxValues[0], FLOAT_DELTA); in testBrightnessEvent() 271 assertEquals(brightness, event.brightness, FLOAT_DELTA); in testBrightnessEvent() 272 assertEquals(DEFAULT_INITIAL_BRIGHTNESS, event.lastBrightness, FLOAT_DELTA); in testBrightnessEvent() 304 assertEquals(brightness, event.brightness, FLOAT_DELTA); in testBrightnessFullPopulatedEvent() 305 assertEquals(initialBrightness, event.lastBrightness, FLOAT_DELTA); in testBrightnessFullPopulatedEvent() 306 assertEquals(0.5, event.batteryLevel, FLOAT_DELTA); in testBrightnessFullPopulatedEvent() 347 assertEquals(systemUpdatedBrightness, events.get(0).lastBrightness, FLOAT_DELTA); in testIgnoreAutomaticBrightnessChange() 348 assertEquals(firstUserUpdateBrightness, events.get(0).brightness, FLOAT_DELTA); in testIgnoreAutomaticBrightnessChange() 350 assertEquals(firstUserUpdateBrightness, events.get(1).lastBrightness, FLOAT_DELTA); in testIgnoreAutomaticBrightnessChange() [all …]
|