From bc9870c5ea85726766b9c4e6181a2d677b1ee5a6 Mon Sep 17 00:00:00 2001 From: Lyn Han Date: Mon, 14 Mar 2022 18:19:29 -0500 Subject: [PATCH] Add y position to nssl debug lines Bug: 224616650 Test: manually on device Change-Id: Ib24d4986207a2cdb25113c59699c44040df73532 --- .../stack/NotificationStackScrollLayout.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java index 5b9dbd0f33616..a6ec52f40f4da 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java @@ -758,29 +758,30 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable mDebugTextUsedYPositions.clear(); } int y = mTopPadding; - drawDebugInfo(canvas, y, Color.RED, /* label= */ "mTopPadding"); + drawDebugInfo(canvas, y, Color.RED, /* label= */ "mTopPadding = "+y); y = getLayoutHeight(); - drawDebugInfo(canvas, y, Color.YELLOW, /* label= */ "getLayoutHeight()"); + drawDebugInfo(canvas, y, Color.YELLOW, /* label= */ "getLayoutHeight() = "+y); y = (int) mMaxLayoutHeight; - drawDebugInfo(canvas, y, Color.MAGENTA, /* label= */ "mMaxLayoutHeight"); + drawDebugInfo(canvas, y, Color.MAGENTA, /* label= */ "mMaxLayoutHeight = "+y); if (mKeyguardBottomPadding >= 0) { y = getHeight() - (int) mKeyguardBottomPadding; drawDebugInfo(canvas, y, Color.GRAY, - /* label= */ "getHeight() - mKeyguardBottomPadding"); + /* label= */ "getHeight() - mKeyguardBottomPadding = "+y); } y = getHeight() - getEmptyBottomMargin(); - drawDebugInfo(canvas, y, Color.GREEN, /* label= */ "getHeight() - getEmptyBottomMargin()"); + drawDebugInfo(canvas, y, Color.GREEN, + /* label= */ "getHeight() - getEmptyBottomMargin() = "+y); y = (int) (mAmbientState.getStackY()); - drawDebugInfo(canvas, y, Color.CYAN, /* label= */ "mAmbientState.getStackY()"); + drawDebugInfo(canvas, y, Color.CYAN, /* label= */ "mAmbientState.getStackY() = "+y); y = (int) (mAmbientState.getStackY() + mAmbientState.getStackHeight()); drawDebugInfo(canvas, y, Color.BLUE, - /* label= */ "mAmbientState.getStackY() + mAmbientState.getStackHeight()"); + /* label= */ "mAmbientState.getStackY() + mAmbientState.getStackHeight() = "+y); } private void drawDebugInfo(Canvas canvas, int y, int color, String label) {