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

Commit 5188ceb9 authored by Julia Reynolds's avatar Julia Reynolds Committed by Android (Google) Code Review
Browse files

Merge "Add extra info to NSSL dumpsys" into main

parents 3d3e9ea6 041e5bf1
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -116,6 +116,7 @@ import com.android.systemui.statusbar.notification.NotificationActivityStarter;
import com.android.systemui.statusbar.notification.NotificationFadeAware;
import com.android.systemui.statusbar.notification.NotificationTransitionAnimatorController;
import com.android.systemui.statusbar.notification.NotificationUtils;
import com.android.systemui.statusbar.notification.PhysicsPropertyAnimator;
import com.android.systemui.statusbar.notification.SourceType;
import com.android.systemui.statusbar.notification.collection.BundleEntryAdapter;
import com.android.systemui.statusbar.notification.collection.EntryAdapter;
@@ -4657,7 +4658,8 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
            pw.println(this);
            pw.print("visibility: " + getVisibility());
            pw.print(", alpha: " + getAlpha());
            pw.print(", translation: " + getTranslation());
            pw.print(", translationX: " + getTranslation());
            pw.print(", translationY: " + getTranslationY());
            pw.print(", entry dismissable: " + canEntryBeDismissed());
            pw.print(", mOnUserInteractionCallback==null: " + (mOnUserInteractionCallback == null));
            pw.print(", removed: " + isRemoved());
@@ -4706,6 +4708,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
                mBigPictureIconManager.dump(pw, args);
            }
            dumpBackgroundView(pw, args);
            dumpPhysicalAnimationProperties(pw);

            int transientViewCount = mChildrenContainer == null
                    ? 0 : mChildrenContainer.getTransientViewCount();
@@ -4722,6 +4725,15 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
        });
    }

    protected void dumpPhysicalAnimationProperties(IndentingPrintWriter pw) {
        pw.println("PhysicalAnimation#translationY: " +
                (getTag(PhysicsPropertyAnimator.Y_TRANSLATION.getTag()) != null
                        ? getTag(PhysicsPropertyAnimator.Y_TRANSLATION.getTag())
                        : "none"));
        pw.println("PhysicalAnimation#height: " +
                (getTag(TAG_ANIMATOR_HEIGHT) != null ? getTag(TAG_ANIMATOR_HEIGHT) : "none"));
    }

    private void dumpChildren(IndentingPrintWriter pw, String[] args) {
        List<ExpandableNotificationRow> notificationChildren = getAttachedChildren();
        pw.print("Children: " + notificationChildren.size() + " {");