Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DBrightnessTrackerTest.java83 private static final float FLOAT_DELTA = 0.01f; field in BrightnessTrackerTest
297 assertEquals(1.0f, event.luxValues[0], FLOAT_DELTA); in testBrightnessEvent()
300 assertEquals(brightness, event.brightness, FLOAT_DELTA); in testBrightnessEvent()
301 assertEquals(DEFAULT_INITIAL_BRIGHTNESS, event.lastBrightness, FLOAT_DELTA); in testBrightnessEvent()
333 assertEquals(brightness, event.brightness, FLOAT_DELTA); in testBrightnessFullPopulatedEvent()
334 assertEquals(initialBrightness, event.lastBrightness, FLOAT_DELTA); in testBrightnessFullPopulatedEvent()
335 assertEquals(0.5, event.batteryLevel, FLOAT_DELTA); in testBrightnessFullPopulatedEvent()
373 assertEquals(systemUpdatedBrightness, events.get(0).lastBrightness, FLOAT_DELTA); in testIgnoreAutomaticBrightnessChange()
374 assertEquals(firstUserUpdateBrightness, events.get(0).brightness, FLOAT_DELTA); in testIgnoreAutomaticBrightnessChange()
376 assertEquals(firstUserUpdateBrightness, events.get(1).lastBrightness, FLOAT_DELTA); in testIgnoreAutomaticBrightnessChange()
[all …]