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

Commit 4e14a67b authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Dump state listeners to bug reports

It's fairly common to leak those listeners, knowing which ones are
registered will make debugging easier.

Test: adb shell dumpsys activity service com.android.systemui/.SystemUIService' StatusBarStateControllerImpl
Fixes: 200161871
Change-Id: I89f2132ee907dfd25e251e5bfd1c9367d479d7d3
parent b86ec0a5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -507,6 +507,10 @@ public class StatusBarStateControllerImpl implements
        pw.println(" mLeaveOpenOnKeyguardHide=" + mLeaveOpenOnKeyguardHide);
        pw.println(" mKeyguardRequested=" + mKeyguardRequested);
        pw.println(" mIsDozing=" + mIsDozing);
        pw.println(" mListeners{" + mListeners.size() + "}=");
        for (RankedListener rl : mListeners) {
            pw.println("    " + rl.mListener);
        }
        pw.println(" Historical states:");
        // Ignore records without a timestamp
        int size = 0;