From 3bd77e2aaebb7e72f3acf594b12dc4341b5a5d5f Mon Sep 17 00:00:00 2001 From: Sebastian Franco Date: Fri, 23 May 2025 13:49:14 -0700 Subject: [PATCH] Moving Overview variables to OverviewProfile class Bug: 419264653 Flag: EXEMPT refactor Test: DeviceProfileDumpTest Test: All Image tests Change-Id: I01644a546a5ce867d1dced1521deb798d6fc3a19 --- .../KeyboardQuickSwitchViewController.java | 2 +- .../android/quickstep/AbsSwipeUpHandler.java | 3 +- .../quickstep/BaseContainerInterface.java | 24 +++--- .../QuickstepTestInformationHandler.java | 2 +- .../orientation/LandscapePagedViewHandler.kt | 12 +-- .../orientation/PortraitPagedViewHandler.kt | 4 +- .../orientation/SeascapePagedViewHandler.kt | 8 +- .../util/SplitAnimationController.kt | 7 +- .../quickstep/views/DesktopTaskView.kt | 4 +- .../quickstep/views/DigitalWellBeingToast.kt | 2 +- .../quickstep/views/GroupedTaskView.kt | 2 +- .../com/android/quickstep/views/IconView.kt | 12 +-- .../quickstep/views/OverviewActionsView.java | 8 +- .../android/quickstep/views/RecentsView.java | 31 +++---- .../com/android/quickstep/views/TaskView.kt | 7 +- src/com/android/launcher3/DeviceProfile.java | 81 +++++++++---------- .../deviceprofile/OverviewProfile.kt | 64 +++++++++++++++ 17 files changed, 172 insertions(+), 101 deletions(-) create mode 100644 src/com/android/launcher3/deviceprofile/OverviewProfile.kt diff --git a/quickstep/src/com/android/launcher3/taskbar/KeyboardQuickSwitchViewController.java b/quickstep/src/com/android/launcher3/taskbar/KeyboardQuickSwitchViewController.java index 679fa3e3dc..85db194d46 100644 --- a/quickstep/src/com/android/launcher3/taskbar/KeyboardQuickSwitchViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/KeyboardQuickSwitchViewController.java @@ -260,7 +260,7 @@ public class KeyboardQuickSwitchViewController { TaskbarActivityContext context = mControllers.taskbarActivityContext; final RemoteTransition slideInTransition = new RemoteTransition(new SlideInRemoteTransition( Utilities.isRtl(mControllers.taskbarActivityContext.getResources()), - context.getDeviceProfile().overviewPageSpacing, + context.getDeviceProfile().getOverviewProfile().getPageSpacing(), QuickStepContract.getWindowCornerRadius(context), AnimationUtils.loadInterpolator( context, android.R.interpolator.fast_out_extra_slow_in)), diff --git a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java index 30fc6b5df5..1867104342 100644 --- a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +++ b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java @@ -2705,7 +2705,8 @@ public abstract class AbsSwipeUpHandler< transaction.setAlpha(app.leash, 1f - fadeProgress); transaction.setPosition(app.leash, /* x= */ app.startBounds.left - + (mContainer.getDeviceProfile().overviewPageSpacing + + ( + mContainer.getDeviceProfile().getOverviewProfile().getPageSpacing() * (mRecentsView.isRtl() ? fadeProgress : -fadeProgress)), /* y= */ 0f); transaction.setScale(app.leash, 1f, 1f); diff --git a/quickstep/src/com/android/quickstep/BaseContainerInterface.java b/quickstep/src/com/android/quickstep/BaseContainerInterface.java index cc787ccfc0..47189a1a63 100644 --- a/quickstep/src/com/android/quickstep/BaseContainerInterface.java +++ b/quickstep/src/com/android/quickstep/BaseContainerInterface.java @@ -258,14 +258,15 @@ public abstract class BaseContainerInterface