Searched refs:lightSensor (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | AutomaticBrightnessControllerTest.java | 76 private AutomaticBrightnessController setupController(Sensor lightSensor) { in setupController() argument 84 () -> { }, mContext.getMainLooper(), mSensorManager, lightSensor, in setupController() 103 Sensor lightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, "Light Sensor"); in testNoHysteresisAtMinBrightness() local 104 AutomaticBrightnessController controller = setupController(lightSensor); in testNoHysteresisAtMinBrightness() 108 verify(mSensorManager).registerListener(listenerCaptor.capture(), eq(lightSensor), in testNoHysteresisAtMinBrightness() 128 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux1)); in testNoHysteresisAtMinBrightness() 143 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux2)); in testNoHysteresisAtMinBrightness() 149 Sensor lightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, "Light Sensor"); in testNoHysteresisAtMaxBrightness() local 150 AutomaticBrightnessController controller = setupController(lightSensor); in testNoHysteresisAtMaxBrightness() 154 verify(mSensorManager).registerListener(listenerCaptor.capture(), eq(lightSensor), in testNoHysteresisAtMaxBrightness() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeScreenBrightness.java | 72 SensorManager sensorManager, Sensor lightSensor, DozeHost host, in DozeScreenBrightness() argument 78 mLightSensor = lightSensor; in DozeScreenBrightness() 95 SensorManager sensorManager, Sensor lightSensor, DozeHost host, in DozeScreenBrightness() argument 97 this(context, service, sensorManager, lightSensor, host, handler, in DozeScreenBrightness()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayModeDirector.java | 954 Sensor lightSensor = null; in restartObserver() local 960 lightSensor = sensor; in restartObserver() 966 if (lightSensor == null) { in restartObserver() 967 lightSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in restartObserver() 970 if (lightSensor != null) { in restartObserver() 974 mLightSensor = lightSensor; in restartObserver()
|
D | AutomaticBrightnessController.java | 222 SensorManager sensorManager, Sensor lightSensor, BrightnessMappingStrategy mapper, in AutomaticBrightnessController() argument 229 this(new Injector(), callbacks, looper, sensorManager, lightSensor, mapper, in AutomaticBrightnessController() 239 SensorManager sensorManager, Sensor lightSensor, BrightnessMappingStrategy mapper, in AutomaticBrightnessController() argument 273 mLightSensor = lightSensor; in AutomaticBrightnessController()
|
D | BrightnessTracker.java | 1010 Sensor lightSensor = sensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in registerSensorListener() local 1012 lightSensor, SensorManager.SENSOR_DELAY_NORMAL, handler); in registerSensorListener()
|
D | DisplayPowerController.java | 491 Sensor lightSensor = findDisplayLightSensor(lightSensorType); in DisplayPowerController() local 496 handler.getLooper(), sensorManager, lightSensor, mBrightnessMapper, in DisplayPowerController()
|