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

Commit 178653e2 authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

Add extra logs for when pulse is dropped

Test: adb shell settings put global systemui/buffer/DozeLog v,
check logs
Bug: 197176772

Change-Id: I2251426fe7feabb1c982a8e9c95320868a60546b
Merged-In: I2251426fe7feabb1c982a8e9c95320868a60546b
parent 0d1290e7
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -116,11 +116,18 @@ public class DozeScrimController implements StateListener {

        if (!mDozing || mPulseCallback != null) {
            if (DEBUG) {
                Log.d(TAG, "Pulse supressed. Dozing: " + mDozeParameters + " had callback? "
                Log.d(TAG, "Pulse suppressed. Dozing: " + mDozeParameters + " had callback? "
                        + (mPulseCallback != null));
            }
            // Pulse suppressed.
            callback.onPulseFinished();
            if (!mDozing) {
                mDozeLog.tracePulseDropped("device isn't dozing");
            } else {
                mDozeLog.tracePulseDropped("already has pulse callback mPulseCallback="
                        + mPulseCallback);
            }

            return;
        }