/frameworks/base/tests/Input/src/com/android/server/input/ |
D | AmbientKeyboardBacklightControllerTests.kt | 87 private lateinit var lightSensor: Sensor in <lambda>() variable in com.android.server.input.AmbientKeyboardBacklightControllerTests 143 lightSensor = Sensor(lightSensorInfo) in <lambda>() 145 `when`(sensorManager.getSensorList(anyInt())).thenReturn(listOf(lightSensor)) in <lambda>() 149 eq(lightSensor), in <lambda>() 161 eq(lightSensor) in <lambda>() 353 ambientController.onSensorChanged(SensorEvent(lightSensor, 0, 0, floatArrayOf(luxValue))) in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | ScreenOffBrightnessSensorController.java | 56 Sensor lightSensor, in ScreenOffBrightnessSensorController() argument 62 mLightSensor = lightSensor; in ScreenOffBrightnessSensorController()
|
D | BrightnessTracker.java | 344 public void setLightSensor(Sensor lightSensor) { in setLightSensor() argument 345 mBgHandler.obtainMessage(MSG_SENSOR_CHANGED, 0 /*unused*/, 0/*unused*/, lightSensor) in setLightSensor() 443 private void handleSensorChanged(Sensor lightSensor) { in handleSensorChanged() argument 444 if (mLightSensor != lightSensor) { in handleSensorChanged() 445 mLightSensor = lightSensor; in handleSensorChanged() 1057 SensorEventListener sensorListener, Sensor lightSensor, Handler handler) { in registerSensorListener() argument 1060 lightSensor, SensorManager.SENSOR_DELAY_NORMAL, handler); in registerSensorListener()
|
D | AutomaticBrightnessController.java | 283 SensorManager sensorManager, Sensor lightSensor, in AutomaticBrightnessController() argument 297 this(new Injector(), callbacks, looper, sensorManager, lightSensor, in AutomaticBrightnessController() 312 SensorManager sensorManager, Sensor lightSensor, in AutomaticBrightnessController() argument 358 mLightSensor = lightSensor; in AutomaticBrightnessController()
|
D | DisplayPowerController.java | 3179 SensorManager sensorManager, Sensor lightSensor, in getAutomaticBrightnessController() argument 3196 return new AutomaticBrightnessController(callbacks, looper, sensorManager, lightSensor, in getAutomaticBrightnessController() 3217 Sensor lightSensor, in getScreenOffBrightnessSensorController() argument 3224 lightSensor, in getScreenOffBrightnessSensorController()
|
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/ |
D | AutoBrightnessFallbackStrategy.java | 193 Sensor lightSensor, in getScreenOffBrightnessSensorController() argument 210 SensorManager sensorManager, Sensor lightSensor, Handler handler, in getScreenOffBrightnessSensorController() argument 214 sensorManager, lightSensor, handler, clock, sensorValueToLux, brightnessMapper); in getScreenOffBrightnessSensorController()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/ |
D | DisplayModeDirectorTest.java | 1304 Sensor lightSensor = createLightSensor(); 1305 SensorManager sensorManager = createMockSensorManager(lightSensor); 1322 eq(lightSensor), 1329 sensorListener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, 20 /*lux*/)); 1343 sensorListener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, 1000 /*lux*/)); 1379 Sensor lightSensor = createLightSensor(); 1380 SensorManager sensorManager = createMockSensorManager(lightSensor); 1401 eq(lightSensor), 1408 sensorListener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, /* lux= */ 20)); 1422 sensorListener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, /* lux= */ 1000)); [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/ |
D | AutoBrightnessFallbackStrategyTest.java | 70 Sensor lightSensor, Handler handler, in before()
|
/frameworks/base/services/core/java/com/android/server/display/mode/ |
D | DisplayModeDirector.java | 2193 Sensor lightSensor = getLightSensor(); in restartObserver() local 2195 if (lightSensor != null && lightSensor != mLightSensor) { in restartObserver() 2199 mLightSensor = lightSensor; in restartObserver()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | BrightnessTrackerTest.java | 1062 SensorEventListener sensorListener, Sensor lightSensor, Handler handler) { in registerSensorListener() argument 1064 mLightSensor = lightSensor; in registerSensorListener()
|
D | DisplayPowerControllerTest.java | 2273 SensorManager sensorManager, Sensor lightSensor, in getAutomaticBrightnessController() argument 2301 SensorManager sensorManager, Sensor lightSensor, Handler handler, in getScreenOffBrightnessSensorController() argument
|