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

Commit ebd1caeb authored by Sergey Pinkevich's avatar Sergey Pinkevich Committed by Android (Google) Code Review
Browse files

Merge "[CUJ] Jank CUJ: Desktop > Split Screen" into main

parents 3c7a57ae a736696b
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -458,8 +458,17 @@ public class Cuj {
     */
    public static final int CUJ_LAUNCHER_WIDGET_PICKER_APP_EXPAND = 142;

    /**
     * Track exiting from Desktop Windowing mode and moving into Split screen mode.
     *
     * <p>Tracking starts when user initiates exiting from Desktop Windowing (by tapping the
     * split-screen button in the app header menu) and finishes when transition to Split screen is
     * finished (animation ended, system is ready to choose another app to split).
     */
    public static final int CUJ_DESKTOP_MODE_MOVE_TO_SPLIT_SCREEN = 143;

    // When adding a CUJ, update this and make sure to also update CUJ_TO_STATSD_INTERACTION_TYPE.
    @VisibleForTesting static final int LAST_CUJ = CUJ_LAUNCHER_WIDGET_PICKER_APP_EXPAND;
    @VisibleForTesting static final int LAST_CUJ = CUJ_DESKTOP_MODE_MOVE_TO_SPLIT_SCREEN;

    /** @hide */
    @IntDef({
@@ -594,6 +603,7 @@ public class Cuj {
            CUJ_DESKTOP_MODE_TILE_RESIZING,
            CUJ_LAUNCHER_WIDGET_PICKER_OPEN,
            CUJ_LAUNCHER_WIDGET_PICKER_APP_EXPAND,
            CUJ_DESKTOP_MODE_MOVE_TO_SPLIT_SCREEN,
    })
    @Retention(RetentionPolicy.SOURCE)
    public @interface CujType {}
@@ -738,6 +748,7 @@ public class Cuj {
        CUJ_TO_STATSD_INTERACTION_TYPE[CUJ_DESKTOP_MODE_TILE_RESIZING] = FrameworkStatsLog.UIINTERACTION_FRAME_INFO_REPORTED__INTERACTION_TYPE__DESKTOP_MODE_TILE_RESIZING;
        CUJ_TO_STATSD_INTERACTION_TYPE[CUJ_LAUNCHER_WIDGET_PICKER_OPEN] = FrameworkStatsLog.UIINTERACTION_FRAME_INFO_REPORTED__INTERACTION_TYPE__LAUNCHER_WIDGET_PICKER_OPEN;
        CUJ_TO_STATSD_INTERACTION_TYPE[CUJ_LAUNCHER_WIDGET_PICKER_APP_EXPAND] = FrameworkStatsLog.UIINTERACTION_FRAME_INFO_REPORTED__INTERACTION_TYPE__LAUNCHER_WIDGET_PICKER_APP_EXPAND;
        CUJ_TO_STATSD_INTERACTION_TYPE[CUJ_DESKTOP_MODE_MOVE_TO_SPLIT_SCREEN] = FrameworkStatsLog.UIINTERACTION_FRAME_INFO_REPORTED__INTERACTION_TYPE__DESKTOP_MODE_MOVE_TO_SPLIT_SCREEN;
    }

    private Cuj() {
@@ -1018,6 +1029,8 @@ public class Cuj {
                return "LAUNCHER_WIDGET_PICKER_OPEN";
            case CUJ_LAUNCHER_WIDGET_PICKER_APP_EXPAND:
                return "LAUNCHER_WIDGET_PICKER_APP_EXPAND";
            case CUJ_DESKTOP_MODE_MOVE_TO_SPLIT_SCREEN:
                return "DESKTOP_MODE_MOVE_TO_SPLIT_SCREEN";
        }
        return "UNKNOWN";
    }