Loading quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java +0 −8 Original line number Diff line number Diff line Loading @@ -316,12 +316,4 @@ public abstract class BaseQuickstepLauncher extends Launcher public void setHintUserWillBeActive() { addActivityFlags(ACTIVITY_STATE_USER_WILL_BE_ACTIVE); } @Override public void onAttachedToWindow() { super.onAttachedToWindow(); if (Utilities.ATLEAST_R) { InteractionJankMonitorWrapper.init(getWindow().getDecorView()); } } } quickstep/src/com/android/launcher3/QuickstepAppTransitionManagerImpl.java +1 −1 Original line number Diff line number Diff line Loading @@ -763,7 +763,7 @@ public abstract class QuickstepAppTransitionManagerImpl extends LauncherAppTrans anim.addListener(new AnimationSuccessListener() { @Override public void onAnimationStart(Animator animation) { InteractionJankMonitorWrapper.begin(cuj); InteractionJankMonitorWrapper.begin(mDragLayer, cuj); super.onAnimationStart(animation); } Loading quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +6 −4 Original line number Diff line number Diff line Loading @@ -721,9 +721,9 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<?>, Q extends @UiThread public void onGestureStarted(boolean isLikelyToStartNewTask) { InteractionJankMonitorWrapper.begin( InteractionJankMonitorWrapper.begin(mRecentsView, InteractionJankMonitorWrapper.CUJ_QUICK_SWITCH, 2000 /* ms timeout */); InteractionJankMonitorWrapper.begin( InteractionJankMonitorWrapper.begin(mRecentsView, InteractionJankMonitorWrapper.CUJ_APP_CLOSE_TO_HOME); notifyGestureStartedAsync(); setIsLikelyToStartNewTask(isLikelyToStartNewTask, false /* animate */); Loading Loading @@ -805,7 +805,8 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<?>, Q extends maybeUpdateRecentsAttachedState(false); final GestureEndTarget endTarget = mGestureState.getEndTarget(); if (endTarget != NEW_TASK) { InteractionJankMonitorWrapper.cancel(InteractionJankMonitorWrapper.CUJ_QUICK_SWITCH); InteractionJankMonitorWrapper.cancel( InteractionJankMonitorWrapper.CUJ_QUICK_SWITCH); } if (endTarget != HOME) { InteractionJankMonitorWrapper.cancel( Loading Loading @@ -1165,7 +1166,8 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<?>, Q extends TaskInfoCompat.getPipSourceRectHint(runningTaskTarget.pictureInPictureParams), TaskInfoCompat.getWindowConfigurationBounds(taskInfo), startBounds, destinationBounds); destinationBounds, mRecentsView); // We would assume home and app window always in the same rotation While homeRotation // is not ROTATION_0 (which implies the rotation is turned on in launcher settings). if (homeRotation == ROTATION_0 Loading quickstep/src/com/android/quickstep/OverviewCommandHelper.java +3 −1 Original line number Diff line number Diff line Loading @@ -175,7 +175,9 @@ public class OverviewCommandHelper { return; } InteractionJankMonitorWrapper.begin(InteractionJankMonitorWrapper.CUJ_QUICK_SWITCH); InteractionJankMonitorWrapper.begin( mActivityInterface.getCreatedActivity().getRootView(), InteractionJankMonitorWrapper.CUJ_QUICK_SWITCH); // Otherwise, start overview. mListener = mActivityInterface.createActivityInitListener(this::onActivityReady); Loading quickstep/src/com/android/quickstep/util/SwipePipToHomeAnimator.java +4 −2 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ import android.graphics.RectF; import android.util.Log; import android.view.Surface; import android.view.SurfaceControl; import android.view.View; import androidx.annotation.NonNull; Loading Loading @@ -91,7 +92,8 @@ public class SwipePipToHomeAnimator extends ValueAnimator implements @NonNull Rect sourceRectHint, @NonNull Rect appBounds, @NonNull Rect startBounds, @NonNull Rect destinationBounds) { @NonNull Rect destinationBounds, @NonNull View view) { mTaskId = taskId; mComponentName = componentName; mLeash = leash; Loading @@ -110,7 +112,7 @@ public class SwipePipToHomeAnimator extends ValueAnimator implements addListener(new AnimationSuccessListener() { @Override public void onAnimationStart(Animator animation) { InteractionJankMonitorWrapper.begin(CUJ_APP_CLOSE_TO_PIP); InteractionJankMonitorWrapper.begin(view, CUJ_APP_CLOSE_TO_PIP); super.onAnimationStart(animation); } Loading Loading
quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java +0 −8 Original line number Diff line number Diff line Loading @@ -316,12 +316,4 @@ public abstract class BaseQuickstepLauncher extends Launcher public void setHintUserWillBeActive() { addActivityFlags(ACTIVITY_STATE_USER_WILL_BE_ACTIVE); } @Override public void onAttachedToWindow() { super.onAttachedToWindow(); if (Utilities.ATLEAST_R) { InteractionJankMonitorWrapper.init(getWindow().getDecorView()); } } }
quickstep/src/com/android/launcher3/QuickstepAppTransitionManagerImpl.java +1 −1 Original line number Diff line number Diff line Loading @@ -763,7 +763,7 @@ public abstract class QuickstepAppTransitionManagerImpl extends LauncherAppTrans anim.addListener(new AnimationSuccessListener() { @Override public void onAnimationStart(Animator animation) { InteractionJankMonitorWrapper.begin(cuj); InteractionJankMonitorWrapper.begin(mDragLayer, cuj); super.onAnimationStart(animation); } Loading
quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +6 −4 Original line number Diff line number Diff line Loading @@ -721,9 +721,9 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<?>, Q extends @UiThread public void onGestureStarted(boolean isLikelyToStartNewTask) { InteractionJankMonitorWrapper.begin( InteractionJankMonitorWrapper.begin(mRecentsView, InteractionJankMonitorWrapper.CUJ_QUICK_SWITCH, 2000 /* ms timeout */); InteractionJankMonitorWrapper.begin( InteractionJankMonitorWrapper.begin(mRecentsView, InteractionJankMonitorWrapper.CUJ_APP_CLOSE_TO_HOME); notifyGestureStartedAsync(); setIsLikelyToStartNewTask(isLikelyToStartNewTask, false /* animate */); Loading Loading @@ -805,7 +805,8 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<?>, Q extends maybeUpdateRecentsAttachedState(false); final GestureEndTarget endTarget = mGestureState.getEndTarget(); if (endTarget != NEW_TASK) { InteractionJankMonitorWrapper.cancel(InteractionJankMonitorWrapper.CUJ_QUICK_SWITCH); InteractionJankMonitorWrapper.cancel( InteractionJankMonitorWrapper.CUJ_QUICK_SWITCH); } if (endTarget != HOME) { InteractionJankMonitorWrapper.cancel( Loading Loading @@ -1165,7 +1166,8 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<?>, Q extends TaskInfoCompat.getPipSourceRectHint(runningTaskTarget.pictureInPictureParams), TaskInfoCompat.getWindowConfigurationBounds(taskInfo), startBounds, destinationBounds); destinationBounds, mRecentsView); // We would assume home and app window always in the same rotation While homeRotation // is not ROTATION_0 (which implies the rotation is turned on in launcher settings). if (homeRotation == ROTATION_0 Loading
quickstep/src/com/android/quickstep/OverviewCommandHelper.java +3 −1 Original line number Diff line number Diff line Loading @@ -175,7 +175,9 @@ public class OverviewCommandHelper { return; } InteractionJankMonitorWrapper.begin(InteractionJankMonitorWrapper.CUJ_QUICK_SWITCH); InteractionJankMonitorWrapper.begin( mActivityInterface.getCreatedActivity().getRootView(), InteractionJankMonitorWrapper.CUJ_QUICK_SWITCH); // Otherwise, start overview. mListener = mActivityInterface.createActivityInitListener(this::onActivityReady); Loading
quickstep/src/com/android/quickstep/util/SwipePipToHomeAnimator.java +4 −2 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ import android.graphics.RectF; import android.util.Log; import android.view.Surface; import android.view.SurfaceControl; import android.view.View; import androidx.annotation.NonNull; Loading Loading @@ -91,7 +92,8 @@ public class SwipePipToHomeAnimator extends ValueAnimator implements @NonNull Rect sourceRectHint, @NonNull Rect appBounds, @NonNull Rect startBounds, @NonNull Rect destinationBounds) { @NonNull Rect destinationBounds, @NonNull View view) { mTaskId = taskId; mComponentName = componentName; mLeash = leash; Loading @@ -110,7 +112,7 @@ public class SwipePipToHomeAnimator extends ValueAnimator implements addListener(new AnimationSuccessListener() { @Override public void onAnimationStart(Animator animation) { InteractionJankMonitorWrapper.begin(CUJ_APP_CLOSE_TO_PIP); InteractionJankMonitorWrapper.begin(view, CUJ_APP_CLOSE_TO_PIP); super.onAnimationStart(animation); } Loading