Dump screen off brightness sensor controller
Bug: 193224604 Test: adb shell dumpsys display Change-Id: Id8ef1ddef589758cd6ffe2181e3bddbde2842e27
This commit is contained in:
@@ -2746,6 +2746,10 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
dumpBrightnessEvents(pw);
|
||||
}
|
||||
|
||||
if (mScreenOffBrightnessSensorController != null) {
|
||||
mScreenOffBrightnessSensorController.dump(pw);
|
||||
}
|
||||
|
||||
if (mHbmController != null) {
|
||||
mHbmController.dump(pw);
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ public class ScreenOffBrightnessSensorController implements SensorEventListener
|
||||
|
||||
/** Dump current state */
|
||||
public void dump(PrintWriter pw) {
|
||||
pw.println("ScreenOffBrightnessSensorController:");
|
||||
pw.println("Screen Off Brightness Sensor Controller:");
|
||||
IndentingPrintWriter idpw = new IndentingPrintWriter(pw);
|
||||
idpw.increaseIndent();
|
||||
idpw.println("registered=" + mRegistered);
|
||||
|
||||
Reference in New Issue
Block a user