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

Commit 3961654d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add new interaction jank hook point for cuj tests"

parents 9ae3afc2 e0c19e7f
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1140,6 +1140,7 @@ public class NotificationPanelViewController extends PanelViewController {
        if (isFullyCollapsed()) {
        if (isFullyCollapsed()) {
            expand(true /* animate */);
            expand(true /* animate */);
        } else {
        } else {
            traceQsJank(true /* startTracing */, false /* wasCancelled */);
            flingSettings(0 /* velocity */, FLING_EXPAND);
            flingSettings(0 /* velocity */, FLING_EXPAND);
        }
        }
    }
    }
+2 −0
Original line number Original line Diff line number Diff line
@@ -862,6 +862,8 @@ public abstract class PanelViewController {
                            mView.getViewTreeObserver().removeOnGlobalLayoutListener(this);
                            mView.getViewTreeObserver().removeOnGlobalLayoutListener(this);
                            if (mAnimateAfterExpanding) {
                            if (mAnimateAfterExpanding) {
                                notifyExpandingStarted();
                                notifyExpandingStarted();
                                InteractionJankMonitor.getInstance().begin(
                                        CUJ_NOTIFICATION_SHADE_EXPAND_COLLAPSE);
                                fling(0, true /* expand */);
                                fling(0, true /* expand */);
                            } else {
                            } else {
                                setExpandedFraction(1f);
                                setExpandedFraction(1f);