Home
last modified time | relevance | path

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

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DAutomaticBrightnessControllerTest.java209 float lux1 = 100.0f; in testNoHysteresisAtMinBrightness() local
212 when(mAmbientBrightnessThresholds.getBrighteningThreshold(lux1)) in testNoHysteresisAtMinBrightness()
213 .thenReturn(lux1); in testNoHysteresisAtMinBrightness()
214 when(mAmbientBrightnessThresholds.getDarkeningThreshold(lux1)) in testNoHysteresisAtMinBrightness()
215 .thenReturn(lux1); in testNoHysteresisAtMinBrightness()
216 when(mBrightnessMappingStrategy.getBrightness(eq(lux1), eq(null), anyInt())) in testNoHysteresisAtMinBrightness()
226 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, (int) lux1)); in testNoHysteresisAtMinBrightness()
253 float lux1 = 100.0f; in testNoHysteresisAtMaxBrightness() local
255 when(mAmbientBrightnessThresholds.getBrighteningThreshold(lux1)) in testNoHysteresisAtMaxBrightness()
256 .thenReturn(lux1); in testNoHysteresisAtMaxBrightness()
[all …]
/frameworks/base/services/core/java/com/android/server/display/mode/
DDisplayModeDirector.java2576 private boolean isDifferentZone(float lux1, float lux2, float[] luxThresholds) { in isDifferentZone() argument
2580 if ((lux1 <= boundary && lux2 > boundary) in isDifferentZone()
2581 || (lux1 > boundary && lux2 <= boundary)) { in isDifferentZone()