Home
last modified time | relevance | path

Searched refs:lightSensor (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/tests/Input/src/com/android/server/input/
DAmbientKeyboardBacklightControllerTests.kt87 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/
DScreenOffBrightnessSensorController.java56 Sensor lightSensor, in ScreenOffBrightnessSensorController() argument
62 mLightSensor = lightSensor; in ScreenOffBrightnessSensorController()
DBrightnessTracker.java344 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()
DAutomaticBrightnessController.java283 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()
DDisplayPowerController.java3179 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/
DAutoBrightnessFallbackStrategy.java193 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/
DDisplayModeDirectorTest.java1304 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/
DAutoBrightnessFallbackStrategyTest.java70 Sensor lightSensor, Handler handler, in before()
/frameworks/base/services/core/java/com/android/server/display/mode/
DDisplayModeDirector.java2193 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/
DBrightnessTrackerTest.java1062 SensorEventListener sensorListener, Sensor lightSensor, Handler handler) { in registerSensorListener() argument
1064 mLightSensor = lightSensor; in registerSensorListener()
DDisplayPowerControllerTest.java2273 SensorManager sensorManager, Sensor lightSensor, in getAutomaticBrightnessController() argument
2301 SensorManager sensorManager, Sensor lightSensor, Handler handler, in getScreenOffBrightnessSensorController() argument