Dump screen off brightness sensor controller

Bug: 193224604
Test: adb shell dumpsys display
Change-Id: Id8ef1ddef589758cd6ffe2181e3bddbde2842e27
This commit is contained in:
Piotr Wilczyński
2023-01-03 14:51:49 +00:00
parent f1f50ee221
commit e77d2cbbc3
2 changed files with 5 additions and 1 deletions

View File

@@ -2746,6 +2746,10 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
dumpBrightnessEvents(pw);
}
if (mScreenOffBrightnessSensorController != null) {
mScreenOffBrightnessSensorController.dump(pw);
}
if (mHbmController != null) {
mHbmController.dump(pw);
}

View File

@@ -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);