Searched refs:lightSensor (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | AutomaticBrightnessControllerTest.java | 73 private AutomaticBrightnessController setupController(Sensor lightSensor) { in setupController() argument 81 () -> { }, mContext.getMainLooper(), mSensorManager, lightSensor, in setupController() 101 Sensor lightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, "Light Sensor"); in testNoHysteresisAtMinBrightness() local 102 AutomaticBrightnessController controller = setupController(lightSensor); in testNoHysteresisAtMinBrightness() 106 verify(mSensorManager).registerListener(listenerCaptor.capture(), eq(lightSensor), in testNoHysteresisAtMinBrightness() 128 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux1)); in testNoHysteresisAtMinBrightness() 142 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux2)); in testNoHysteresisAtMinBrightness() 148 Sensor lightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, "Light Sensor"); in testNoHysteresisAtMaxBrightness() local 149 AutomaticBrightnessController controller = setupController(lightSensor); in testNoHysteresisAtMaxBrightness() 153 verify(mSensorManager).registerListener(listenerCaptor.capture(), eq(lightSensor), in testNoHysteresisAtMaxBrightness() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeScreenBrightness.java | 74 SensorManager sensorManager, Sensor lightSensor, in DozeScreenBrightness() argument 81 mLightSensor = lightSensor; in DozeScreenBrightness() 99 SensorManager sensorManager, Sensor lightSensor, in DozeScreenBrightness() argument 102 this(context, service, sensorManager, lightSensor, broadcastDispatcher, host, handler, in DozeScreenBrightness()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayModeDirector.java | 1225 Sensor lightSensor = null; in restartObserver() local 1231 lightSensor = sensor; in restartObserver() 1237 if (lightSensor == null) { in restartObserver() 1238 lightSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in restartObserver() 1241 if (lightSensor != null) { in restartObserver() 1245 mLightSensor = lightSensor; in restartObserver()
|
D | AutomaticBrightnessController.java | 215 SensorManager sensorManager, Sensor lightSensor, BrightnessMappingStrategy mapper, in AutomaticBrightnessController() argument 222 this(new Injector(), callbacks, looper, sensorManager, lightSensor, mapper, in AutomaticBrightnessController() 232 SensorManager sensorManager, Sensor lightSensor, BrightnessMappingStrategy mapper, in AutomaticBrightnessController() argument 266 mLightSensor = lightSensor; in AutomaticBrightnessController()
|
D | BrightnessTracker.java | 1032 Sensor lightSensor = sensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in registerSensorListener() local 1034 lightSensor, SensorManager.SENSOR_DELAY_NORMAL, handler); in registerSensorListener()
|
D | DisplayPowerController.java | 502 Sensor lightSensor = findDisplayLightSensor(lightSensorType); in DisplayPowerController() local 507 handler.getLooper(), sensorManager, lightSensor, mBrightnessMapper, in DisplayPowerController()
|