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

Commit 2370406e authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato
Browse files

Add CUJ_LAUNCHER_APP_SWIPE_TO_RECENTS

Bug: 231130484
Bug: 228969045
Test: recorded prefetto trace while going to recents
Change-Id: If33daaa22f904c928f5d4a561a7ac1a03d82b7eb
parent 276e72c2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -939,6 +939,8 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
                            InteractionJankMonitorWrapper.CUJ_QUICK_SWITCH, 2000 /* ms timeout */);
                    InteractionJankMonitorWrapper.begin(mRecentsView,
                            InteractionJankMonitorWrapper.CUJ_APP_CLOSE_TO_HOME);
                    InteractionJankMonitorWrapper.begin(mRecentsView,
                            InteractionJankMonitorWrapper.CUJ_APP_SWIPE_TO_RECENTS);

                    rv.post(() -> rv.getViewTreeObserver().removeOnDrawListener(this));
                }
@@ -1044,6 +1046,10 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
            InteractionJankMonitorWrapper.cancel(
                    InteractionJankMonitorWrapper.CUJ_APP_CLOSE_TO_HOME);
        }
        if (endTarget != RECENTS) {
            InteractionJankMonitorWrapper.cancel(
                    InteractionJankMonitorWrapper.CUJ_APP_SWIPE_TO_RECENTS);
        }

        switch (endTarget) {
            case HOME:
+2 −0
Original line number Diff line number Diff line
@@ -165,6 +165,8 @@ public class RecentsAnimationController {
            mController.finish(toRecents, sendUserLeaveHint);
            InteractionJankMonitorWrapper.end(InteractionJankMonitorWrapper.CUJ_QUICK_SWITCH);
            InteractionJankMonitorWrapper.end(InteractionJankMonitorWrapper.CUJ_APP_CLOSE_TO_HOME);
            InteractionJankMonitorWrapper.end(
                    InteractionJankMonitorWrapper.CUJ_APP_SWIPE_TO_RECENTS);
            MAIN_EXECUTOR.execute(mPendingFinishCallbacks::executeAllAndDestroy);
        });
    }