Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DAutomaticBrightnessControllerTest.java133 float lux2 = 10.0f; in testNoHysteresisAtMinBrightness() local
135 when(mAmbientBrightnessThresholds.getBrighteningThreshold(lux2)) in testNoHysteresisAtMinBrightness()
136 .thenReturn(lux2); in testNoHysteresisAtMinBrightness()
137 when(mAmbientBrightnessThresholds.getDarkeningThreshold(lux2)) in testNoHysteresisAtMinBrightness()
138 .thenReturn(lux2); in testNoHysteresisAtMinBrightness()
143 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux2)); in testNoHysteresisAtMinBrightness()
179 float lux2 = 110.0f; in testNoHysteresisAtMaxBrightness() local
181 when(mAmbientBrightnessThresholds.getBrighteningThreshold(lux2)) in testNoHysteresisAtMaxBrightness()
182 .thenReturn(lux2); in testNoHysteresisAtMaxBrightness()
183 when(mAmbientBrightnessThresholds.getDarkeningThreshold(lux2)) in testNoHysteresisAtMaxBrightness()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DDisplayModeDirector.java1127 private boolean isDifferentZone(float lux1, float lux2) { in isDifferentZone() argument
1133 if ((lux1 <= boundary && lux2 > boundary) in isDifferentZone()
1134 || (lux1 > boundary && lux2 <= boundary)) { in isDifferentZone()