Reload the Ambient Light Sensor on Display Change
This change fixes the multi display scenario - when the underlying display device changes, we should reload the appropriate ambient light sensor for the default display. Bug: 198125195 Test: adb shell dumpsys sensorservice Test: atest com.android.server.display Change-Id: I8b2d76d916d79f7dae22d81adc3ce69780bf9bfc
Showing
- services/core/java/com/android/server/display/DisplayDeviceConfig.java 3 additions, 0 deletions.../java/com/android/server/display/DisplayDeviceConfig.java
- services/core/java/com/android/server/display/DisplayModeDirector.java 74 additions, 43 deletions.../java/com/android/server/display/DisplayModeDirector.java
- services/core/java/com/android/server/display/utils/SensorUtils.java 4 additions, 0 deletions...re/java/com/android/server/display/utils/SensorUtils.java
- services/tests/servicestests/src/com/android/server/display/DisplayModeDirectorTest.java 58 additions, 0 deletions...c/com/android/server/display/DisplayModeDirectorTest.java
Loading
Please register or sign in to comment