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

Commit 0e53f9c6 authored by Mady Mellor's avatar Mady Mellor
Browse files

Add dump method to BubbleBarExpandedView and include it in Bubble dump

Flag: EXEMPT adding to dump methods
Test: manual - have bubble bar in stack and in overflow
             - adb shell dumpsys activity service com.android.systemui | grep -A 50 BubbleController
Bug: 416297086
Change-Id: I7047b82ff0df5c4d8b05312c13bf22d22d9b2f2a
parent fecb36ff
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1362,6 +1362,9 @@ public class Bubble implements BubbleViewProvider {
        if (mExpandedView != null) {
            mExpandedView.dump(pw, "  ");
        }
        if (mBubbleBarExpandedView != null) {
            mBubbleBarExpandedView.dump(pw, "  ");
        }
    }

    @Override
+14 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ import com.android.wm.shell.shared.bubbles.BubbleBarLocation;
import com.android.wm.shell.shared.handles.RegionSamplingHelper;
import com.android.wm.shell.taskview.TaskView;

import java.io.PrintWriter;
import java.util.concurrent.Executor;
import java.util.function.Supplier;

@@ -805,4 +806,17 @@ public class BubbleBarExpandedView extends FrameLayout implements BubbleTaskView
            return false;
        }
    }

    /**
     * Description of current expanded view state.
     */
    public void dump(@android.annotation.NonNull PrintWriter pw,
            @android.annotation.NonNull String prefix) {
        pw.print(prefix); pw.println("BubbleBarExpandedView:");
        pw.print(prefix); pw.print("  taskId: "); pw.println(getTaskId());
        pw.print(prefix); pw.print("  contentVisibility: "); pw.println(mIsContentVisible);
        pw.print(prefix); pw.print("  isAnimating: "); pw.println(mIsAnimating);
        pw.print(prefix); pw.print("  isDragging: "); pw.println(mIsDragging);
        pw.print(prefix); pw.print("  visibilityState: "); pw.println(mVisibilityState);
    }
}