Searched refs:lux2 (Results 1 – 2 of 2) sorted by relevance
133 float lux2 = 10.0f; in testNoHysteresisAtMinBrightness() local135 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() local181 when(mAmbientBrightnessThresholds.getBrighteningThreshold(lux2)) in testNoHysteresisAtMaxBrightness()182 .thenReturn(lux2); in testNoHysteresisAtMaxBrightness()183 when(mAmbientBrightnessThresholds.getDarkeningThreshold(lux2)) in testNoHysteresisAtMaxBrightness()[all …]
1127 private boolean isDifferentZone(float lux1, float lux2) { in isDifferentZone() argument1133 if ((lux1 <= boundary && lux2 > boundary) in isDifferentZone()1134 || (lux1 > boundary && lux2 <= boundary)) { in isDifferentZone()