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

Commit 041e5bf1 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Add extra info to NSSL dumpsys

Specifically y translation and physical notification
movement status

Test: bugreport
Bug: 439537914
Flag: EXEMPT bug fix
Change-Id: Ic03f658a6f81b6b2b4023f26ed789b1ae95ab4ea
parent 2304bb13
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() + " {");