Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 357f2014 authored by Fiona Campbell's avatar Fiona Campbell
Browse files

Add displayId to DPC logs

Bug: 188017897
Test: logcat | grep DisplayPowerController
Change-Id: Ic60ee280182dc61a4c412cca8d810f7dcb5cbb3c
parent e7701b84
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -96,7 +96,6 @@ import java.io.PrintWriter;
 */
final class DisplayPowerController implements AutomaticBrightnessController.Callbacks,
        DisplayWhiteBalanceController.Callbacks {
    private static final String TAG = "DisplayPowerController";
    private static final String SCREEN_ON_BLOCKED_TRACE_NAME = "Screen on blocked";
    private static final String SCREEN_OFF_BLOCKED_TRACE_NAME = "Screen off blocked";

@@ -149,6 +148,8 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
    private static final int REPORTED_TO_POLICY_SCREEN_ON = 2;
    private static final int REPORTED_TO_POLICY_SCREEN_TURNING_OFF = 3;

    private final String TAG;

    private final Object mLock = new Object();

    private final Context mContext;
@@ -450,6 +451,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
            Runnable onBrightnessChangeRunnable) {
        mLogicalDisplay = logicalDisplay;
        mDisplayId = mLogicalDisplay.getDisplayIdLocked();
        TAG = "DisplayPowerController[" + mDisplayId + "]";
        mDisplayDevice = mLogicalDisplay.getPrimaryDisplayDeviceLocked();
        mUniqueDisplayId = logicalDisplay.getPrimaryDisplayDeviceLocked().getUniqueId();
        mHandler = new DisplayControllerHandler(handler.getLooper());