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

Commit 7773a40b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add dump method to BubbleBarExpandedView and include it in Bubble dump" into main

parents fc6eb8bd 0e53f9c6
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;

@@ -807,4 +808,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);
    }
}