summaryrefslogtreecommitdiffstats
path: root/quickstep/src/com/android
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug where rounded corners were being set despite being disabled.Jon Miranda2019-07-251-1/+4
| | | | | | Bug: 138117089 Change-Id: Icb852e2e07d80c45ad3406ef432b89720887fccf (cherry picked from commit e734efba8dc58ea145dc0a620f18cbe2032f70ce)
* Merge "Revert "Enable FLAG_SLIPPERY window flag when swipe down on ↵TreeHugger Robot2019-06-281-51/+17
|\ | | | | | | workspace"" into ub-launcher3-qt-dev
| * Revert "Enable FLAG_SLIPPERY window flag when swipe down on workspace"Winson Chung2019-06-281-51/+17
| | | | | | | | | | | | | | | | This reverts commit 35062f8ed32ea4a868be077fdae37409a700e759. Reason for revert: Moving to R1 Change-Id: Ifd19d78015a66c9fbe9a67845232d13e011943d3
* | Merge "Resetting UI state when the last has launched" into ub-launcher3-qt-devTreeHugger Robot2019-06-281-0/+2
|\ \
| * | Resetting UI state when the last has launchedSunny Goyal2019-06-281-0/+2
| | | | | | | | | | | | | | | Bug: 135038270 Change-Id: Ie0af9c7d47f69b32caedd72f98ed1706bdbef5fa
* | | Fixing accessibility arrowSunny Goyal2019-06-271-4/+15
|/ / | | | | | | | | | | | | | | > Hiding arrow in background state and during quick switch > Preventing arrow overlapping with search box in overview state Bug: 135885458 Change-Id: Iadefba044717351d69480cde7d784cd04289d086
* | Merge "Enable FLAG_SLIPPERY window flag when swipe down on workspace" into ↵Winson Chung2019-06-261-17/+51
|\| | | | | | | ub-launcher3-qt-dev
| * Enable FLAG_SLIPPERY window flag when swipe down on workspaceHyunyoung Song2019-06-261-17/+51
| | | | | | | | | | | | | | Bug: 131356741 Test: manual Change-Id: Ibe0e3a03e7406d5d882a1c63265d6e4e0253983e
* | Finish recents animation when starting a new activityWinson Chung2019-06-261-1/+1
|/ | | | | | | | | - Defer starting the activity when an activity is paused, and finish the current animation to trigger launcher to be resumed Bug: 132811175 Test: Swipe up and launch a new app Change-Id: I78b76800052512eb93f69ccf0523f4d752a82ece
* Merge "Clean up some more refs to thumbnail data" into ub-launcher3-qt-devWinson Chung2019-06-261-1/+11
|\
| * Clean up some more refs to thumbnail dataWinson Chung2019-06-251-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | - Always return a copy of the task list to ensure that the model doesn't hold refs to the thumbnail data if it was loaded into the same task - Always clear the task thumbnail data ref once the visibility of the task view changes to be invisible Bug: 132309376 Test: Enter overview scroll to the end of the list, relaunch app and take heap dump Change-Id: I4437fd30172a5fe2a78c111f780163a1e6bbbb54
* | Enabling simple gesture navigation for 3P launcherSunny Goyal2019-06-251-1/+26
|/ | | | | | | | In case of 3P launcher, swipe-up will go to Launcher and there will be no way to reach overview. Bug: 135769778 Change-Id: Ib2c6bb1b13e6055d30b7360ec077b0a2fece66ff
* Fixing rounding error when computing bottom clipWinson Chung2019-06-201-1/+1
| | | | | | | | | | | | - In TaskThumbnailView.updateThumbnailMatrix() we compare the rounded scaled bitmap height with the height of the task/thumbnail view. Since the position is also non-integer, the rounding of the sum is not equivalent to the rounding of the individual components, which causes the check to fail. Bug: 135150767 Test: Quickswitch on sargo Change-Id: I849b4732569e5b8699f00f5ff210f41fb505f1e7
* Merge "Some improvements to home to overview transition for 0 button mode" ↵Sunny Goyal2019-06-192-3/+24
|\ | | | | | | into ub-launcher3-qt-dev
| * Some improvements to home to overview transition for 0 button modeTony Wickham2019-06-192-3/+24
| | | | | | | | | | | | | | | | | | | | | | - Peek in overview further, and with more overshoot - Fade out and scale down workspace faster while swiping up - Scale and translate workspace slower when letting go to enter overview (so it doesn't zoom out at warp speed) - Fade in all apps shelf sooner Bug: 132455160 Change-Id: Ieafad0ccf9bb587889bc35d536627661db10e358
* | Trigger heap dump when heap exceeds a limitWinson Chung2019-06-191-0/+13
|/ | | | | Bug: 135150619 Change-Id: I2b207bed1f66407f573abeae879aae34e98741bd
* Merge "Add QuickstepProcessInitializer back to common src" into ↵Rajeev Kumar2019-06-181-0/+54
|\ | | | | | | ub-launcher3-qt-dev
| * Add QuickstepProcessInitializer back to common srcKevin2019-06-171-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | While removing unused files in Go version of quickstep, I removed QuickstepProcessInitializer which seemed unused but is actually initialized as a resource based ovverride. This CL puts it back as common src so that both Launcher3GoIconRecents and the rest of the variants all use this class. Bug: 135472635 Test: Run Launcher3GoIconRecents => no exception Test: Run Launcher3 => no exception Change-Id: I56f319bac536ec4da96285fab932fe574afa4520
* | Adding check for no default home before registering new receiverWinson Chung2019-06-181-1/+5
|/ | | | | | Bug: 135473571 Test: Manual, try restarting with no default launcher set? Change-Id: Ibb68070ee95ca856b38a74823bcbfbc7890f329e
* Preloads the icon drawable for app open to reduce latency b/w swapping views.Jon Miranda2019-06-131-0/+7
| | | | | | | For app close, we already load the icon as soon as we can. Bug: 135130011 Change-Id: Ia2c45737cf24d1ab5911b222ae097d7a1f9d6a31
* Merge "Adding support for custom callback when starting ProxyActivity" into ↵TreeHugger Robot2019-06-121-6/+12
|\ | | | | | | ub-launcher3-qt-dev
| * Adding support for custom callback when starting ProxyActivitySunny Goyal2019-06-121-6/+12
| | | | | | | | | | Bug: 133443741 Change-Id: Ifd6a289b7f49d52efe0767b600cecc2b460a87fc
* | Merge "Gracefully handle failed task launches during quick switch" into ↵Tony Wickham2019-06-121-0/+2
|\ \ | | | | | | | | | ub-launcher3-qt-dev
| * | Gracefully handle failed task launches during quick switchTony Wickham2019-06-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | When quick switching from home or overview, go to OverviewState if the task launch failed. Otherwise we get stuck in BackgroundAppState. Bug: 135038270 Change-Id: I42785c261cef0df95666bc106ec5ca6ef0553cc7
* | | Fading out the home surface if home and recents are shown in separate surfaceSunny Goyal2019-06-121-0/+6
|/ / | | | | | | | | Bug: 134725160 Change-Id: Ia4c5e0eefc4d8b869840645f403d943831c471f1
* / Translate recents when attaching to app window instead of fadingTony Wickham2019-06-101-0/+1
|/ | | | | | | | When attaching recents, translate it offscreen and use a spring to pull it into position. When detaching, use the same spring to pull it back offscreen. Bug: 129985827 Change-Id: I05339e2ec0932070365023bfafc83cbf2a4e178e
* Disable seamless rotation for 3 and 2 button modeSunny Goyal2019-06-061-5/+8
| | | | | Bug: 134095068 Change-Id: I8603e49a85b5524a02c9085485a180b022e3f91e
* Reduce alpha delay 25ms to reduce flashy feeling of appearing large.Jon Miranda2019-06-051-1/+1
| | | | | Bug: 123900446 Change-Id: Ia8ff74eb6b65affbf5c6c1599f4d168b459f324e
* Fix getting stuck in BackgroundAppState for 2-button modeTony Wickham2019-05-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | When ending in recents, we reapply the state - therefore, it's important to make sure we are in OverviewState before onSwipeUpComplete(). This is done by mLauncherTransitionController, which sets OverviewState on end. We already force mLauncherTransitionController to end before calling onSwipeUpComplete(), but in this case we were calling cancel() and setting mLauncherTransitionController = null, which meant we could never call end() on it. Instead, we should always call end() if we set it to null. Also ensure mLauncherTransitionController is created even if the gesture is completed, if an existing controller isn't already running. This can happen if you swipe up quickly enough that we get onGestureEnd before launcher is drawn, and in that case we still want the launcher component to animate once its ready. This is even more important for 2-button mode, because again, we rely on mLauncherTransitionController to set the state to OverviewState before we reapply it. Finally, clarified some methods by renaming "swipeUp" to "swipeUpToRecents". Bug: 132757019 Change-Id: Ieb24a4f36a39780e5d64d7bc312791608db474d1
* Tuning app open/close animation.Jon Miranda2019-05-301-2/+5
| | | | | | | | * Mostly value changes. * Added a way to round the corners during swipe up to home animation. Bug: 123900446 Change-Id: Id61d241d919ba51ced0633585e36b7d93efe30b0
* Merge "Animate workspace upwards when opening an app." into ub-launcher3-qt-devTreeHugger Robot2019-05-291-1/+1
|\
| * Animate workspace upwards when opening an app.Jon Miranda2019-05-291-1/+1
| | | | | | | | | | Bug: 123900446 Change-Id: I3d08985f8362038f50728e91e2fedf1c97e326ff
* | Add staggered springs animation when swiping up to home.Jon Miranda2019-05-291-0/+4
|/ | | | | Bug: 123900446 Change-Id: I275e34c6dca5b026f272ab216b18651c0df27bc4
* Merge "Support individual lock task features" into ub-launcher3-qt-devWinson Chung2019-05-293-1/+30
|\
| * Support individual lock task featuresWinson Chung2019-05-233-1/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - If screen pinning is enabled, disable gestures and wrap with input consumer to break out of screen pinning (existing logic) - If Home & Overview are both disabled, disable gestures completely - If only Home is disabled, then always launch the user into fallback recents (to simplify logic around breaking out of overview into Home) - If only Overview is disabled, then prevent swiping from going into overview or from triggering overview from home - Switch to using screen pinning flag check instead of binder call Bug: 133113732 Bug: 131698989 Change-Id: Ie6f447520d4cc3fa1eaaf8427ee014851688bf37
* | Continue scaling down recents past final position in 0 button modeTony2019-05-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Previously, we clamped the progress to 1 when reaching mTransitionDragLength. Now, we allow dragging all the way to the top of the screen, and store this new top progress in mDragLengthFactor (> 1f). - Because the launcher animation controller is inherently bound to a progress between 0 and 1, we have to do a bit of trickery involving interpolators. Specifically, we normalize the progress to 0 to 1 by dividing by mDragLengthFactor, but then we set the interpolators to multiply their progress by mDragLengthFactor. The result is that the animation progress appears to go from 0 to mDragLengthFactor, just like the window progress. - To avoid scaling too small, we start interpolating the progress at a certain point, ending at a specified max progress when reaching the top of the screen. Bug: 131741395 Change-Id: Ie8b4b56d37249cd1456f93c110c26c78fe052dc0
* | Launcher reports whe 0-button swipe-up gesture pause is detected.vadimt2019-05-241-0/+4
| | | | | | | | | | | | | | | | | | This eliminates an unreliable timeout. Also removing an unnecessary check for harness that is done by the called method. Change-Id: If954580060415cbb2952532c16ea0ae4dc7b9469
* | Moving TestInformationProvider to Launcher3 so that it can be used forSunny Goyal2019-05-232-127/+36
| | | | | | | | | | | | | | | | testing Launcher3 without quickstep Also keeping the provider as disabled until needed Change-Id: Ib5f459e02ae551724b390f3b74f43d601568d749
* | Merge "Adding a utility class to cache views at an activity level" into ↵TreeHugger Robot2019-05-221-6/+5
|\ \ | | | | | | | | | ub-launcher3-qt-dev
| * | Adding a utility class to cache views at an activity levelSunny Goyal2019-05-221-6/+5
| |/ | | | | | | | | Bug: 122345781 Change-Id: I9a939e0b19c06c1089c1ceb515f8b97fb5dbb49e
* / Enable debug tracing for a lab-only non-starting app from all appsvadimt2019-05-221-2/+2
|/ | | | | Bug: 132900132 Change-Id: I9c5bb51e49f865ea1e1d3d2209a8dfb149f66e87
* Adding tracing for a lab-only flakevadimt2019-05-211-0/+8
| | | | | | | | | We had a resolved case in the past where an app's context menu didn't open on a long click (thanks to app updates), now the menu opens, but the drag gesture doesn't drag the icon. Bug: 133009122 Change-Id: I45d104a92fab6556ecd937aef76f0a8147e67f56
* Using a proxy activity for startActivityForResultSunny Goyal2019-05-153-0/+226
| | | | | | | This ensures that the home task is never blocked by a different task Bug: 74500048 Change-Id: I01fd26f1d6242e39b2d8fabac5e064b748aebe62
* Fix landscape app open/close animations.Jon Miranda2019-05-151-9/+30
| | | | | | Bug: 123900446 Bug: 124510042 Change-Id: I3db80d6f8064ce26f97cdede63c0d25499416e98
* Merge "Preemptively clear the thumbnail cache as tasks are removed" into ↵Winson Chung2019-05-143-0/+23
|\ | | | | | | ub-launcher3-qt-dev
| * Preemptively clear the thumbnail cache as tasks are removedWinson Chung2019-05-133-0/+23
| | | | | | | | | | | | | | | | - Also reset the task thumbnail as the task views are recycled Bug: 132309376 Change-Id: Ic2cc846e451b6b59ae76326930cb4b85627e95c4
* | Implement 3 shades of folder icon/container fill colorHyunyoung Song2019-05-141-0/+8
|/ | | | | | Bug: 130451254 Change-Id: I36d885a2b0247f1bb84cb98073459853ae723331
* Use device profile width instead of drag layer width for overview translationTony2019-05-131-1/+1
| | | | | | | | | | | This fixes the issue where overview doesn't come in from offscreen the first time you enter overview from home. Test: - Force stop launcher, quick switch from home - Force stop launcher, swipe up and hold Change-Id: Ia4dbd36267008bc199cff088833979606238d3eb
* Merge "Initial app open/close polish using tuned values." into ↵Jonathan Miranda2019-05-101-9/+14
|\ | | | | | | ub-launcher3-qt-dev
| * Initial app open/close polish using tuned values.Jon Miranda2019-05-101-9/+14
| | | | | | | | | | | | | | | | * Rect and radius now match the app window size. Bug: 124510042 Bug: 122843905 Change-Id: Ibc85bfe1d75d01cefe00b6bf32557e04a0ee4716