diff options
| author | 2022-09-22 14:37:32 +0000 | |
|---|---|---|
| committer | 2022-09-23 09:29:14 +0000 | |
| commit | 1e6f72a0a06b8efc8cd8b72c16eae6afde9e0fa1 (patch) | |
| tree | df47ab45b888fd4a6f1b195e8ba37d861184e7fe | |
| parent | 646b0c13e6235be24a94b57a3e67be81baa25aaf (diff) | |
Improve dumps for NotificationShelf views
Bug: 244695510
Test: check the dumps from a bugreport manually
Change-Id: If0f71a778358a207cb2ed87eb23cb8b05b2bebdf
3 files changed, 25 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java index 41c0367772b5..d67f94f11e65 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java @@ -168,6 +168,17 @@ public class NotificationShelf extends ActivatableNotificationView implements return new ShelfState(); } + @Override + public String toString() { + return "NotificationShelf(" + + "hideBackground=" + mHideBackground + " notGoneIndex=" + mNotGoneIndex + + " hasItemsInStableShelf=" + mHasItemsInStableShelf + + " statusBarState=" + mStatusBarState + " interactive=" + mInteractive + + " animationsEnabled=" + mAnimationsEnabled + + " showNotificationShelf=" + mShowNotificationShelf + + " indexOfFirstViewInShelf=" + mIndexOfFirstViewInShelf + ')'; + } + /** Update the state of the shelf. */ public void updateState(StackScrollAlgorithm.StackScrollAlgorithmState algorithmState, AmbientState ambientState) { diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java index 039a3625c70c..827d0d0f8444 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java @@ -36,7 +36,6 @@ import android.graphics.Paint; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.graphics.drawable.Icon; -import android.os.Parcelable; import android.os.Trace; import android.os.UserHandle; import android.service.notification.StatusBarNotification; @@ -551,9 +550,12 @@ public class StatusBarIconView extends AnimatedImageView implements StatusIconDi } } + @Override public String toString() { - return "StatusBarIconView(slot=" + mSlot + " icon=" + mIcon - + " notification=" + mNotification + ")"; + return "StatusBarIconView(" + + "slot='" + mSlot + " alpha=" + getAlpha() + " icon=" + mIcon + + " iconColor=#" + Integer.toHexString(mIconColor) + + " notification=" + mNotification + ')'; } public StatusBarNotification getNotification() { diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconContainer.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconContainer.java index 7b8c5fc998fa..5a70d89908f8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconContainer.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconContainer.java @@ -278,6 +278,15 @@ public class NotificationIconContainer extends ViewGroup { } } + @Override + public String toString() { + return "NotificationIconContainer(" + + "dozing=" + mDozing + " onLockScreen=" + mOnLockScreen + + " inNotificationIconShelf=" + mInNotificationIconShelf + + " speedBumpIndex=" + mSpeedBumpIndex + + " themedTextColorPrimary=#" + Integer.toHexString(mThemedTextColorPrimary) + ')'; + } + @VisibleForTesting public void setIconSize(int size) { mIconSize = size; |