summaryrefslogtreecommitdiff
path: root/quickstep/src/com/android/launcher3/QuickstepTransitionManager.java
AgeCommit message (Collapse)Author
2022-02-14Fix bug where back swipe to icon in All Apps search result.Jon Miranda
Issue is that All Apps is scaling during the animation, so when FloatingIconView looks for it in the view hierarchy, it's not in its final position. This would be the cleanest approach for a scv2 fix Bug: 213306709 Test: manual Change-Id: Iaec77d15c9533edccd9c82164143af8fa522158f Merged-In: Iaec77d15c9533edccd9c82164143af8fa522158f (cherry picked from commit db767aa5757878ff37b82951b1bda71be1c9be4f) Merged-In:Iaec77d15c9533edccd9c82164143af8fa522158f
2021-12-22Merge "Animate split divider" into sc-v2-devTony Huang
2021-12-15Scale, crop, and translate window when swiping back to home.Jon Miranda
This makes the animation consistent with what happens when swiping up to home. Bug: 208292857 Test: open app, swipe back to close, test on portrait and landscape Change-Id: I096b20fe3d3398001e442d41981350e7b0321a46
2021-12-07Animate split dividerVinit Nayak
* TODO currently it doesn't animate when dragging a split task back down because we need to sync that with the other task scaling animation playback controllers. * It also doesn't animate in when opening a split pair from overview because I think shell is setting it to be visible before the divider leash even makes it to launcher Bug: 202914644 Change-Id: I6c60cffdb63aa262d0b547f85acc604c0c8a3637
2021-11-23Play return to icon animation if user swipes back to All Apps.Jon Miranda
Bug: 205187702 Test: open app in all apps, swipe back to go back to all apps Change-Id: I9e79c8365fdf667321343aaac2f8d77cb60a316a
2021-11-05Play fallback animation when overlay is shown.Jon Miranda
Bug: 205086529 Test: go to -1, click to open app, swipe back Change-Id: I905511e0ac7576d2134a10088289a5ca37d1b257
2021-11-05Show divider when GroupedTaskView expanded from recentsVinit Nayak
* Also increased animation duration to allow apps to get ready Fixes: 202928293 Change-Id: I8814ec2415e7985e4f433695f6cc55f83f0c0ac2
2021-11-03Merge "Provide app-process tokens to remote transitions so they can be ↵Evan Rosky
boosted" into sc-v2-dev
2021-11-01Merge "Remove PROTOTYPE_APP_CLOSE feature flag and associated code." into ↵Jonathan Miranda
sc-v2-dev
2021-10-29Remove PROTOTYPE_APP_CLOSE feature flag and associated code.Jon Miranda
Flag was never enabled, safe to remove. Bug: 200999899 Test: manual Change-Id: Ie2646d8c4b9a1c40fac1bfd7dadf4ec714171aec
2021-10-13Fix launching window bounds for immersive appsTony Wickham
Test: Open an immersive app (e.g. fullscreen YT video), ensure it fills the screen; open a non-immersive app (e.g. Calculator), ensure it only fills up to the top of the taskbar. Fixes: 200036592 Change-Id: Id815bbc8140cbaf1e61ac587ae1f1325e7ec5b72
2021-09-28Merge "Use falllback animation when going back to no icon" into sc-v2-devTony Wickham
2021-09-28Use falllback animation when going back to no iconTony Wickham
Test: Open settings from the shade (not on home screen) and go back, ensure animates reasonably Bug: 197656915 Change-Id: I78baa3ad03655f66b9e9727e62247ec8a15f3bf9
2021-09-24Avoids animating the background when launching app targets are translucent.Jon Miranda
Bug: 200052247 Test: Pause an app, click on paused app and ensure background does not animate Change-Id: Ib0a7cac0ab866441dd8fb27831a8333d0c931723
2021-09-23Significantly reduce gesture feedback when swiping up to home screen.Jon Miranda
- Uses overscroll damping logic to reduce the velocity - The start to target rect interpolation can be from the start, center, or bottom of the rect depending on where the item is on the workspace. This reduces the amount of distance needed to travel between, which helps further reduce gesture feedback. Bug: 173107751 Test: test closing app that is on: - top row of home screen - middle of home screen - in hotseat Change-Id: I055dd61ca3491807109ff2f6c501bf710c8d340f
2021-09-21Play window close animation to home for most app to launcher scenariosJon Miranda
- Animates into icon/widget location on workspace (when applicable) - Excludes unlock animation - Excludes when user goes back to to All Apps state Bug: 197656197 Bug: 197450256 Bug: 197656915 Test: go in app, swipe back to land on home Change-Id: Icdf680bd88599f1b6288822a177087283668431c
2021-09-03Provide app-process tokens to remote transitions so they can be boostedEvan Rosky
The app process token is required for shell to request delegated transition animators to be boosted. Bug: 183993977 Test: add logging in WPC.setRunningRemoteAnimation and verify calls during transitions Change-Id: Ide2dd3e77714cca8e85e409c8d88c69c20122827
2021-09-03Merge "[DO NOT MERGE] Update QuickStepContract.getWindowCornerRadius API" ↵Shawn Lin
into sc-v2-dev
2021-08-31Fix NPE that happens occasionally on start-upEvan Rosky
Was not checking if topActivity was null. Bug: 189935087 Test: boot phone thousands of times. Change-Id: I3c779be5f09d82d52a3df9478c801a1963e0a5c2
2021-08-19[DO NOT MERGE] Update QuickStepContract.getWindowCornerRadius APIshawnlin
Update from getWindowCornerRadius(Resources) to getWindowCornerRadius(Context) Bug: 131221697 Test: make Change-Id: Ia5f10e9292e205dab7e69d97dfc82d17690816fb
2021-08-19Merge "New app animation specs." into sc-qpr1-dev am: 686d42a1d4TreeHugger Robot
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15587964 Change-Id: If21b096b1d5ac025ffb4116c805d31acba6cc662
2021-08-18New app animation specs.Jon Miranda
- New values and interpolators. Bug: 173107751 Test: open apps from different parts of the home screen Change-Id: I81bec0221aec9c04dac0bb3e926c879999699e57
2021-08-17Adds initial Taskbar Edu implementation.Andy Wickham
Currently it just pops up with one placeholder image for splitscreen. The Next button doesn't do anything. Screenshots: Light: https://screenshot.googleplex.com/B27CwBcwobHTghN.png Dark: https://screenshot.googleplex.com/48EuJZv8evd5RGW.png Known issues: - Back gesture is picked up behind by the app behind the taskbar. - When the flag is enabled, the Edu shows up each time you open an app, rather than only the first time. Bug: 180605356 Test: Manual Change-Id: Ifba9aa59abf1501b5f8ddebb3fcc13df85f6efaa
2021-08-16Extend taskbar color to entire screen in overviewTony Wickham
Only when taskbar is unstashed in apps: - Scrim workspace with the taskbar color when opening apps and in BackgroundAppState - Crop opening apps to above the taskbar - Crop TaskViews to above the taskbar during gestures If taskbar is stashed in apps, behavior is the same as before, i.e. no scrim over the wallpaper and no cropping of tasks. Added a field DeviceProfile#taskbkarPresentInApps to distinguish these cases. LauncherTaskbarUIController and TaskbarStashController ensure this value is set appropriately. Test: Ensure tasks don't appear behind taskbar when it's unstashed; set ENABLE_SCRIM_FOR_APP_LAUNCH = true to test the whole screen scrimming when opening an app Bug: 196257194 Fixes: 190681228 Change-Id: I481501457a5a6d49c380feea3db3b4058e4cf3f8
2021-07-20Part of fixing Splashcreen cts testsEvan Rosky
This passes the launcher component name into the transition filter so that it only matches if the launcher is the current home activity Bug: 194112093 Test: atest SplashscreenTests Change-Id: Ie2185545a5bef8b317e104b6ac878f6cde0d7350
2021-07-01Merge "Fix bug where app icon is gone for first frame on cold start." into ↵Jonathan Miranda
sc-dev am: 3334c32120 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15164770 Change-Id: I38ace4adec4591e9259a8859ed547e1b951b922c
2021-07-01Merge "Fix bug where app icon is gone for first frame on cold start." into ↵Jonathan Miranda
sc-dev
2021-07-01Fix bug where app icon is gone for first frame on cold start.Jon Miranda
We need the icon to be full alpha during the init pass, then when the actual animation starts, we can swap the icon with the window (splash screen that draws the icon). Bug: 192366079 Test: slow down window animations check no empty frame on cold start app launch check no empty frame on warm start app launch Change-Id: I16a1779e5252d8e88bc3c408e1dc40b264fe4cf4
2021-06-30Merge "Decouple zooms and blurs on app launch" into sc-dev am: c2ef0363afLucas Dupin
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15145970 Change-Id: Idadf9a85d4de92e584a524ff48856cca5c81d664
2021-06-29Decouple zooms and blurs on app launchLucas Dupin
We'd like to be able to disable blurs during app launch, but without disabling zooms as well. The previous sysprop would set the depth of BackgroundAppState to 0, when what we want is to conserve wallpaper zoom. Bug: 191969790 Test: adb shell setprop ro.launcher.blur.appLaunch false Change-Id: Ie4b26096f6ac723c3981bba2829557e6cc6c733b
2021-06-28Merge "Reset DEPTH at the end of launch animations" into sc-dev am: 789f01af7eLucas Dupin
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15130116 Change-Id: I5d4b3c70bf2201831ed25405083eaf6de1bdf92f
2021-06-28Merge "Reset DEPTH at the end of launch animations" into sc-devLucas Dupin
2021-06-28Reset DEPTH at the end of launch animationsLucas Dupin
This way the wallpaper won't be zoomed out if an app crashes. Test: adb am crash <some test app> Fixes: 191979512 Change-Id: I7576798f736d63c3e46bbac1b983b9d1a437647d
2021-06-26Merge "Postponing CUJ start by 1 frame" into sc-dev am: e70e6a3b0bVadim Tryshev
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15096971 Change-Id: Iaedc20bb98781ad97b8f72e064cb47e77e7f2975
2021-06-25Merge "Postponing CUJ start by 1 frame" into sc-devVadim Tryshev
2021-06-24Postponing CUJ start by 1 framevadimt
for CUJ_APP_LAUNCH_FROM_ICON, CUJ_APP_CLOSE_TO_HOME, CUJ_APP_LAUNCH_FROM_WIDGET and CUJ_APP_LAUNCH_FROM_RECENTS Test: Local perfetto run Bug: 190858586 Change-Id: I7a26d91c44a0a4c767bde3230d39a096a26d7b75
2021-06-22Merge "Fixing TaskView.launchTask.onEndCallback is not called" into sc-dev ↵Sunny Goyal
am: eb3367796a Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15032513 Change-Id: I0b76512550814f23fde9c95a59e90e50280e3dde
2021-06-21Fixing TaskView.launchTask.onEndCallback is not calledSunny Goyal
Sometimes onAnimaitonCancelled can be called without onCreate. Calling onEnd in this case so that the sate is cleared Removing additional subclassing for the runner Bug: 190856140 Test: Manual Change-Id: If105cb343cab446a4eac90a45184ce50c6e4c485
2021-06-20Merge "Fix bug where workspace alpha does not get set to 1 when animation ↵Jonathan Miranda
gets cancelled." into sc-dev am: f9df8f3682 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15023032 Change-Id: I9ab72caa407fd3e6a2e6130bcf9e924ba2c7726c
2021-06-18Fix bug where workspace alpha does not get set to 1 when animation gets ↵Jon Miranda
cancelled. - Can also remove QSB from app launch animator, since its in the hotseat now. Bug: 189458349 Test: manual Change-Id: Ib41376e3f8c58166c6ee6fbfed38bdd443663df4
2021-06-16Merge "Add ENABLE_SCRIM_FOR_APP_LAUNCH feature flag." into sc-dev am: 28e39335bcJonathan Miranda
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14987185 Change-Id: Iecfbdc781852e24aafb92744f9a3de4ff5cbbd00
2021-06-16Add ENABLE_SCRIM_FOR_APP_LAUNCH feature flag.Jon Miranda
Bug: 191088291 Test: manual Change-Id: Ia144c72e0fe1292ed856a37ee714a1cda50083d5
2021-06-15resolve merge conflicts of bea8267854585b5cf51ec15d85cac0e2ca6e4f20 to sc-v2-devJonathan Miranda
Bug: 181901105 Change-Id: I4bbe6258e0d2e5f04931d2a3d8d1f784a90f91de Merged-In: Ia904b8b96301042c900e0589f33fc625c1c1148b
2021-06-14Address LAUNCHER_APP_LAUNCH_FROM_ICON jank.Jon Miranda
- Delay app launch animations by a frame, and skip logic to skip the first frame. - Note the icon pressed state animation still occurs, so there is still some visual feedback for the user that something is happening. Bug: 181901105 Test: ensure animation still looks smooth (using window animation scale & record in slow mo) Change-Id: Ia904b8b96301042c900e0589f33fc625c1c1148b Merged-In: Ia904b8b96301042c900e0589f33fc625c1c1148b
2021-06-12Merge "Use the splash screen background color as the fallback background ↵Cyrus Boadway
color" into sc-dev am: 3616f29f83 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14881306 Change-Id: I5ad3b65fb0e74ca77e37aa9bea590f82519283a0
2021-06-10Use the splash screen background color as the fallback background colorCyrus Boadway
For the widget transition animation fallback background color, use either the splash screen background color if a task is starting or the task description-attached background color. With a background in place, allow the window to fully fade out before fading in the widget, by moving the window alpha math into an animation factory-specific implementation. Bug: 187706750 Test: Manual Change-Id: I2b5a7783b0585d447ad60534bc48d2e2176877ed
2021-06-03Merge "Read the starting surface icon size from framework" into sc-dev am: ↵Wei Sheng Shih
630efccd7a Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14609921 Change-Id: I7e9b8813fea7d2ed9cdef8c163f65875c9f026c1
2021-06-02Merge "Read the starting surface icon size from framework" into sc-devWei Sheng Shih
2021-06-02Merge "Set blur on effect layer during app launch" into sc-dev am: ee4d67c52dLucas Dupin
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14750658 Change-Id: Ibc67ff5638774294801974e4fe3c6357bf4ee22c
2021-06-02Merge "Set blur on effect layer during app launch" into sc-devLucas Dupin