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

Commit 3f448e3c authored by Mady Mellor's avatar Mady Mellor
Browse files

Add some extra info to dumpsys for floating

- TaskView / ExpandedView alpha /visibility state
- Bubble view alpha / visibility state

Test: adb shell dumpsys activity service com.android.systemui | grep -A 100 BubbleController
Flag: EXEMPT trivial logs addition
Bug: 420487074
Change-Id: I9397e1b796d59cdbeda1ed4fbce7b0daf5b52ced
parent 90f9298b
Loading
Loading
Loading
Loading
+18 −5
Original line number Diff line number Diff line
@@ -77,12 +77,25 @@ public class BubbleDebugConfig {
                        && bubble == selected);
                String arrow = isSelected ? "=>" : "  ";

                sb.append(String.format("%s Bubble{act=%12d, showInShade=%d, key=%s}",
                BadgedImageView iconView = bubble.getIconView();
                if (iconView != null) {
                    sb.append(String.format(
                            "%s Bubble{act=%12d, showInShade=%d, key=%s, vis=%d, alpha=%f}",
                            arrow,
                            bubble.getLastActivity(),
                            (bubble.showInShade() ? 1 : 0),
                            bubble.getKey(),
                            iconView.getVisibility(),
                            iconView.getAlpha()));
                } else {
                    sb.append(String.format(
                            "%s Bubble{act=%12d, showInShade=%d, key=%s, icon=null}",
                            arrow,
                            bubble.getLastActivity(),
                            (bubble.showInShade() ? 1 : 0),
                            bubble.getKey()));
                }
            }
            if (i != bubbles.size() - 1) {
                sb.append("\n");
            }
+6 −0
Original line number Diff line number Diff line
@@ -1217,5 +1217,11 @@ public class BubbleExpandedView extends LinearLayout {
        pw.print(prefix); pw.print("  stackView: "); pw.println(mStackView);
        pw.print(prefix); pw.print("  contentVisibility: "); pw.println(mIsContentVisible);
        pw.print(prefix); pw.print("  isAnimating: "); pw.println(mIsAnimating);
        if (mTaskView != null) {
            pw.print(prefix); pw.print("  tv-alpha: "); pw.println(mTaskView.getAlpha());
            pw.print(prefix); pw.print("  tv-viewVis: "); pw.println(mTaskView.getVisibility());
        }
        pw.print(prefix); pw.print("  v-alpha: "); pw.println(getAlpha());
        pw.print(prefix); pw.print("  v-viewVis: "); pw.println(getVisibility());
    }
}