History log of /packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9c3f172d9c10d8144c44c069e19d854b375e6112 29-May-2018 Sunny Goyal <sunnygoyal@google.com> Accounting for one frame jump when starting a fling animation

Bug: 80292740
Change-Id: I47bca071d42d1d217068c128f9793e87210d0286
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
9bb8ffb5e303597bd65ee4cae957c64c1f532d10 25-May-2018 Sunny Goyal <sunnygoyal@google.com> Various quickscrub fixes

> Fixing PagedView resetting the currentPage, if scrollToPage was called before first layout
This causes quickscrub to jump back to the current task if launcher activity was dead.
> Fixing missing callbacks in DeferredTouchConsumer causing missed quick scrub flings
> Sending the resents animation callbacks on the motion queue thread, to avoid synchronization
issues with sysui callbacks.
> Waiting until the recents animation is received before starting the scale down animation
> Calculating the offset for quickscrub statically incase launcher activity was dead

Bug: 80214390
Change-Id: I1b7d00b7b266655a92fcd6239f25ba191655150f
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
271dc919d0aa9fe3a107351852b5bec82cd6a5e8 25-May-2018 Sunny Goyal <sunnygoyal@google.com> Merge "Cancelling quickscrub state incease we missed quickscrub end event" into ub-launcher3-edmonton
0fb1e4b5a77cf169629b2d89cdeda54ea3995b24 24-May-2018 Sunny Goyal <sunnygoyal@google.com> Cancelling quickscrub state incease we missed quickscrub end event

> This can happen when the remote transition is cancelled while animating down
during quickscrub, cause WindowTransformSwipeHandler to get invalidated
and miss onQuickscrubEnd

Bug: 80140388
Change-Id: I0221e301d4d633bab0defaa6af76e0054776a95a
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
6ec237a26046aece0fde6dcfe866ba3570874475 24-May-2018 Sunny Goyal <sunnygoyal@google.com> Wait until the remote transtions are received before trying to quickscrub animations

Bug: 80219743
Change-Id: Ib94568827f30b996477d82f38675e3cd55031849
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
7f28fd55ff383a80caf364408c5c15d978be6c8b 23-May-2018 Sunny Goyal <sunnygoyal@google.com> Increasing the overview size while in QuickScrub mode

Bug: 80139193
Change-Id: I19ea05d3cc083628364651e9d9f581fe1aaaeaaa
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
32359e6b859358e19a561364f4a8beed948c0e27 18-May-2018 Sunny Goyal <sunnygoyal@google.com> Some quick scrub fixes

> Skipping quick scrub, if its already in progress, or is waiting on previous task launch
> Restoring to proper state is the task animation is cancelled before launcher gets onStop
> Crash when using quickscrub before last list has loaded

Bug: 77289180
Bug: 77856587
Bug: 79919440
Change-Id: I8db127bf9539cfc8f47c1e86c5030637845749d4
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
46afdf51941951c8f6e7230d59630156cb1f22db 15-May-2018 Tony Wickham <twickham@google.com> Merge "Tune quick scrub" into ub-launcher3-edmonton
d58c2d5a48f163d7f6837cef3415562a81582df9 04-May-2018 Tony Wickham <twickham@google.com> Tune quick scrub

- Change durations/interpolators when starting from home vs an app
- Increase dim animation duration after quick scrub from an app
- Also fixed contention between setting dim alpha for the animation
and setting dim alpha for scrolling
Change-Id: I2c9ea52d4eafaad8954f3ff9d3c0c459a07953bc
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
98f4fc00ac8f6ca8289c8823b07bcc400576ef09 14-May-2018 Vadim Tryshev <vadimt@google.com> Following correct pattern for using logToggleRecents

It supposed to involve checking enabledness.

Bug: 72967764
Test: No
Change-Id: I2a852932c665c24b8dc7c65f63bdaea91fa7ee5f
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
266fb59a339229f5b8c0ca6bef5e42bee8298852 14-May-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove fake 319 event generation" into ub-launcher3-edmonton
279e15152b0fd8626c88b90465f4e6bf735bd59d 12-May-2018 Vadim Tryshev <vadimt@google.com> Remove fake 319 event generation

Bug: 72967764
Test: Running perf tests
Change-Id: If012b0f8e964b9bcd5fb230e5a2232d27cea1dfd
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
9829060491919e7651b9437181e9e8e1ffd8633f 11-May-2018 Sunny Goyal <sunnygoyal@google.com> Fixing various quickscrup controls for fallback activity

> Not auto advancing to next task when swiping from home
> Starting from the current tile, when scrubing on recents activity

Bug: 79558175
Change-Id: I2975dbb254ba0004b34ce5d86d9733faad4943ff
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
6001ea2e2f1f22e08f229d07e41ff56230d0574d 11-May-2018 Sunny Goyal <sunnygoyal@google.com> Separating the draglayer alpha into multiple dimensions so that different animaitons
can run without affecting the other.

Bug: 79323355
Bug: 78880824
Change-Id: I11cb464ebdaad0a7f0a56d4bc4c3dff1d56da16b
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
1d82dd4d128da64989538358655e4288daf15018 10-May-2018 Sunny Goyal <sunnygoyal@google.com> Fixing crash when cancelAnimaiton happens while we are aboutto enter long-swipe

Bug: 79419808
Change-Id: I17741ef7b35a8b82543e52c4958289933cf04a43
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
570432f700be5880df1a41c74ffbd75ec0d1a8dd 09-May-2018 Winson Chung <winsonc@google.com> Fix lock contention while swiping up

- Don't lock when making WM calls (only lock when resetting), and use own
executor since the background executor is fixed to only two threads and
other things can be running on them already (like task loading).

Bug: 78585335

Change-Id: I73dfc380dd99908cfc30ff7c164a9677a5a126e0
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
639b07178f6412cd931818c7787c5f6effd42317 09-May-2018 android-build-team Robot <android-build-team-robot@google.com> Merge "Using surface rotation instead of insets to determine seascape configuration" into ub-launcher3-edmonton
59d086c3ce5d9c3d800abca73762e82f2489cbec 08-May-2018 Sunny Goyal <sunnygoyal@google.com> Using surface rotation instead of insets to determine seascape configuration

Insets may not correctly indicate seascape configuration in multi-window or
when the presence of device-cutouts

Bug: 79376298
Change-Id: I8268efca0001fe527a0ffefe48cc71e774fad01c
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
28254eec60526f27768a928c142f584b78965970 07-May-2018 Sunny Goyal <sunnygoyal@google.com> Insted of animating the icon of the first task, animating the running task icon

Bug: 79236139
Change-Id: Ib85c22e3898c09a84d3a862c407c23d76a600d9d
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
76a2a6ae661813b33cce25fc0e129b8f0d03348a 07-May-2018 Winson Chung <winsonc@google.com> Clear refs to the controller and saved snapshot upon finishing animation

Bug: 79322746
Change-Id: I8786909615da3368a22300d5e33cefa4b77623fd
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
257c9ea8d193807a805c3b3ba3489612f0fa82b0 03-May-2018 Tony Wickham <twickham@google.com> Merge "Don't crash if getWidth is 0" into ub-launcher3-edmonton
181968b87ba7557281d1d5dbb13d2c5012c1dc9c 03-May-2018 Tony Wickham <twickham@google.com> Don't crash if getWidth is 0

Bug: 79203256
Change-Id: I3f91adbda40931e882c4f768794a0d803730805e
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
16593d7932d061932716b5370c7cfc329a8ef870 01-May-2018 Sunny Goyal <sunnygoyal@google.com> Handling activity recreate due to configuration changes
in the middle of the long fling

Bug: 77651657
Change-Id: I8107c424eb37512ce78c943da04a6e7faf33be65
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
433ef09d29fa833f2bb0a6ef2cd4e02aa7070db8 03-May-2018 android-build-team Robot <android-build-team-robot@google.com> Merge "Moving some callbacks from LauncherCallbacks to OverviewCallbacks" into ub-launcher3-edmonton
8e1fbc51032a3f7c6d281842912c8bd961f66d33 02-May-2018 Sunny Goyal <sunnygoyal@google.com> Moving some callbacks from LauncherCallbacks to OverviewCallbacks

Bug: 78780639
Change-Id: I90f868c741834efbe542367bdc3539f6d14f1939
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
f47e5ce3cf7e3eb4d481aea765784a8c6c19f47e 30-Apr-2018 Tony <twickham@google.com> Gracefully handle some edge cases in quick scrub

- Switch to normal overview if task fails to launch in onQuickScrubEnd()
- Stop auto-advancing if recents isn't visible
- Wait until transition to quick scrub completes before launching

Bug: 77521777
Bug: 78557737
Change-Id: I5206c0d3c52bf792f52cf3e7adcf03f8a2de18bb
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
1d2c3fb9bed2d246926b61d9de7f007576d27b7f 26-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix issue with z order layering" into ub-launcher3-edmonton
90749604f4f61cdc2b295f43c610f860c43aa6ae 25-Apr-2018 Winson Chung <winsonc@google.com> Fix issue with z order layering

- Move first frame remote animation logic into the same method to ensure
we consistently update the layers and state for every animation

Bug: 78249267
Change-Id: Id0378cfe3e1be56128c2a1cd607929225927e3b4
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
23f83a8b7b6676767a34e33cc334d6c80696f08e 26-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Revert "Revert "Fixing recents transition not getting completed when using QuickScrub""

This reverts commit dea746cb4cb61e0b507711f8fb6baf592124a8ae.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I695dbd069eeea266c74e15cb76c7fbcdf553ac84
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
6a9bc7dfa794a2fe2a3ac57b6039c15752d5633e 26-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Revert "Revert "Long swipe from an app goes all the way to all-apps""

This reverts commit 1b6e81ed14a877d5ce4687f5a6ae6a542246ec55.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I3d97f70a04a7d75d959b24f79198f6c9f7014b10
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
1b6e81ed14a877d5ce4687f5a6ae6a542246ec55 26-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Revert "Long swipe from an app goes all the way to all-apps"

This reverts commit f39e602a008ac7a172f2a244b2412bca24d9d2f7.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I4d812a200f78447d9c9a1c4c2fcc9dca0b0c2ca9
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
dea746cb4cb61e0b507711f8fb6baf592124a8ae 26-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Revert "Fixing recents transition not getting completed when using QuickScrub"

This reverts commit 22c72167ae8db28cf1dca72a0c199b59d8246291.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Iecb5d145af299c6ee2a6383d5bf8c912f546a8e9
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
22c72167ae8db28cf1dca72a0c199b59d8246291 26-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Fixing recents transition not getting completed when using QuickScrub

Bug: 78615441
Change-Id: I30a876abb1f4129c7dc022762154f4cc21e677f1
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
f39e602a008ac7a172f2a244b2412bca24d9d2f7 25-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Long swipe from an app goes all the way to all-apps

Bug: 76449024
Change-Id: Ie6a0c5b7fd6d497ea8ac5f0a861a84c2290f84b1
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
8c36e3c747f717e5799ec87f80046286c46e9b81 24-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Fixing some swipe animations for multi-window

> Calling minimized mode change on background thread (without depending on the launcher)
> Fixing swipe down from task view, causing a jump in multi-window

Change-Id: I16fd83dade2efb4a5285d6c4298fd7fec9e6748e
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
e6e77ca44d1ae0bfa8c76b02e177b0ccf3fc0fe0 21-Apr-2018 Winson Chung <winsonc@google.com> Hide the IME when starting quickstep.

Bug: 73285089
Change-Id: Ifad6ffe64467754ade966165ee3c274ac9445c1f
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
6aef85c41787c72c6eb05799dd6a323d292ab759 23-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Merge "Moving some swipe up complete logic to when the handler is completed." into ub-launcher3-edmonton
0bbacc705cc7c11608549b5408e05a3c1726d074 23-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Moving some swipe up complete logic to when the handler is completed.

Bug: 76449024
Change-Id: I136e665495ab7164c79e1dfa0ef61090ba50fc7a
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
0ec3ce0bdf6ede9a410fcfacf8d6aeea1af1f8c2 23-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Compute window offset when quick scrub starts" into ub-launcher3-edmonton
78595cd7dea011bcfc9b40791a5f85bdaa122c23 16-Apr-2018 Tony Wickham <twickham@google.com> Compute window offset when quick scrub starts

Instead of setting the window center to match the task center on every
update, compute the final offset when quick scrub starts and interpolate
alongside other factors such as window scale.

Bug: 78027888
Change-Id: I33b115764d46ecd6907ecb82b1ba12aeefc583c5
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
8b5c7d93159cbe387f289801aefbd356ba6dbf9f 23-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Implement all apps discovery bounce." into ub-launcher3-edmonton
e5575f9fff4dc008611a93344e3b59fe2531f375 19-Apr-2018 Tracy Zhou <tracyzhou@google.com> Implement all apps discovery bounce.

Mock: https://docs.google.com/presentation/d/1TCp1mREgsFAWq4hCnUaSRCpaqvDbzCVkN1mJuRMylIg/edit#slide=id.g36a3e190fb_0_6

Demo video: go/shelf_bounce_animation

Fixes: 70180942
Test: manual test
Change-Id: I6ecceb63612dd63cea62f2e6cb19d7522f3d76e0
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
de0e588a0731712b5238d3df1c779ca426272164 17-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Cleaning up some obsolete TODOs and methods

Change-Id: I7c3f1a68fc555899e6a1270aa2ad973197a7ed85
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
6dedc222beac9db305adf696f36fc5ada8b3d82f 18-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Handling swipe up on a third-party launcher

Bug: 78125098
Change-Id: Iba4247987825bf9ce16d3494200bfea889c931e2
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
fed15f199e9d49087fe99a84c0287d55cdc8dc12 19-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Implement swipe up and quick scrub onboarding (Pt. Launcher)" into ub-launcher3-edmonton
5c74f7bb59b936d11c9562ce9b04663ea0dc6a7c 18-Apr-2018 Tracy Zhou <tracyzhou@google.com> Implement swipe up and quick scrub onboarding (Pt. Launcher)

SysUI change: ag/3914771

Bug: 70180942
Test: manual test
Change-Id: I42ade28ebad6dcbbcee6dfb80791f22f36e78290
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
d837a329b8bfca9684a577d3bda7d02a3fd7b6a7 18-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Increasing the max fling/swipe duration

Bug: 78059672
Change-Id: Iede9982b634f48f3f28732aa0d2c8413972c390b
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
5490445898536dc437432c0b440684b014958a2b 18-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Do not allow fling if we didn't get onGestureStarted

Bug: 78232923
Change-Id: Ia37f54d7a0e2eb1d42641648ac7a5e7687e3dd0c
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
4b03a1e5a2e07ca0ee2ba3bc9a0f1d7352375630 18-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Restricting the max duration used for the swipe-down animation

> Also changing the interpolator from t^5 to t^2 so that it settles faster.

Bug: 78059672
Change-Id: Iae6e6f56eb2e249c11a8e069f04ab0f26a683063
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
3483c52e6bd81b7c37eb0089940e90a6f3e6d80c 12-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Waiting until onResume before creating the wallpaper-open animation.

Bug: 77853906
Change-Id: I5126855492da59c9dbfef0ce2a97f94662a6522b
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
9162f8187c3a1f9dfe6fecaf248121eb9cc6fd78 13-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Better handling transparent activities

> Only hiding the task associated with the current task, instead of hiding all tasks
> Maintaining a state for hidden task so that it does not get reset when alpha is changed due
to some other reason.

Bug: 77830202
Change-Id: I202e99b153c6f9e3a8d9c68d6844672b3bff41e9
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
7eff40ff2df3acea49aeba04dc78322a2b4b6208 12-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Several app transition fixes:

> If launcher already started, creating the state transition only after threshold crossed, so that previous animations are not cancelled
> Not posting animaiton callbacks at the front of the queue, as that sometimes causes it get executed before onNewIntent
> Farking the activity as forceInvisible while launching an opaque app, so that quickly pressing home/back runs the reverse animation
> Not running state animations when force-invisible is true

Bug: 77830325
Bug: 77898806
Change-Id: I50a7e915ca35fd6aeb284c8f321ecca74396fe98
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
3477804c7297bbdc33943bbfa2be4712ec840a58 12-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Using correct window bounds in multi-window for fallback activity

Also fixing a bug where insets were not updated when recreating deviceprofile

Bug: 77875376
Change-Id: I7806cf949da415ef171ccf2f4ab3e8f2b7606220
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
fceb82d4a71d094fc058b9cdd404ce9787292b0f 11-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Waiting until post draw before calling finish on the recent transition

Bug: 77695434
Change-Id: I7c3c668de7c3986760f26890fa062dee0ddb3805
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
96cf14317ae25ce3f79be4489656d05a7cfe5089 10-Apr-2018 Winson Chung <winsonc@google.com> Close system windows when starting the swipe up gesture.

Bug: 77725504
Change-Id: If8ca7f8b192d365c06f30fe33d108a88378a9d2d
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
6cf86a37ea25f65cd184237d2fc9723d39409c63 10-Apr-2018 Tony Wickham <twickham@google.com> Make a copy of DeviceProfile before updating its insets

Change-Id: Ic0fb6dd103ac7af810373c8454cb0bad84e7fddd
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
681bab045a346c6e1ec3c448b5f98a82e6ce7359 07-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Fallback recents activity fixes:

> Always deferring the start activity call
> Fixing quickscrub when start activtiy is deferred
> Preventing finish() call on the activity
> Fixing initTrack to work when the activity already exists

Bug: 75979063
Change-Id: Id6038c1f6c2680ec920222fb6a85c0ecc0172ed4
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
a0c9d90e7023f243ea93be99b7a5feb935008ea1 06-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Fixing taskView sometimes visible during swipe-up transition

Caused by change-id: I4defce3a9745407523de651aeb28a37867567507

Change-Id: I670e20da6086d257b4de45d4e1310ef6b4314c46
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
9054843a1fad9198fd70d8183d1305734dfd6395 05-Apr-2018 Sunny Goyal <sunnygoyal@google.com> Simplifying fallback recents animation

Instead of using WindowTransformSwipeHandler, keeping the launcher UI in place and
just animating the window

Change-Id: I4defce3a9745407523de651aeb28a37867567507
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
9800e730a2ab7469002cf971ad9c8dd92d3cf372 04-Apr-2018 Winson Chung <winsonc@google.com> Fix animations home

- To prevent surface thrashing, we no longer hide the home activity before
starting the transition home. This prevents the launcher from being added
to the remote animation target list, which means that we default to
skipping the launcher animation. As a workaround, we special case the
flow and force the animation to run when starting the recents animation.

Bug: 74405472
Test: Go home from an app, ensure there is an animation.
Change-Id: Ifd2b39444fdeab323ee79a368b580a6264c3e5b9
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
bc5bfc11196d40234f077b1e8de07e4d9ad80263 30-Mar-2018 Winson Chung <winsonc@google.com> Make recents animation work with fallback activity.

Bug: 77157702
Bug: 77152886
Change-Id: Ide312b750efb8214a7c262f7380b5dbd2ef4647f
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
dbff75e3dec3c4c3654a2c8bf4e7cd065ef0bef5 16-Mar-2018 Winson Chung <winsonc@google.com> Update dock divider during recents animation.

- Move all wrapper calls to the bg thread
- Account for position now that the task leash is in the app animation
layer

Bug: 73118672
Change-Id: I5b680a688c0ad4ca34c76e22e1d5cee24133f40f
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
1c6f12d11900f2b7462b09bf4ff9eba208b71417 03-Apr-2018 Tony Wickham <twickham@google.com> Swipe down on hotseat to launch recent task

If you're ever in overview and swipe down on the hotseat, it will launch
the focused task *unless* you entered overview from the workspace and
have not scrolled past the first task. This is a hidden state to allow
for reversibility of the swipe up from workspace.

Also moved PendingAnimation from quickstep to launcher3.

Change-Id: Iea077bc0ef7c74f6bf7b98d0a638892b9c5fe36c
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
953a8eb35c0db47da8812eb1a767b83bdb9979f3 31-Mar-2018 Winson Chung <winsonc@google.com> Fix crash when swiping up from task that doesn't appear in the list

Bug: 74567248
Test: Clear all tasks, open assistant and swipe up
Change-Id: Ie5e81ffbc921f76eb6b279f38b5e7aa423fc5af2
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
41e7328cb5c32bba713f88296cb0fa5e618274b1 30-Mar-2018 Sunny Goyal <sunnygoyal@google.com> Fixing LauncherState not getting applied in some cases

> In case of swipe-up from homescreen, super method was not called everytime
> When swiping up from an app, repply() state was skipping as we didn't finish the
last animation, leading to views staying visible and interactive
> Intercepting touch in RecentsView and pagesView based on visibility

Bug: 76467534

Change-Id: Ia5ef58d508b656f371a32cd2f1de00dd18c6aa5c
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
e9054e320789703a6a98782928105aa1314a83ea 15-Mar-2018 Tony <twickham@google.com> Remove quick switch and improve quick scrub

- Hide hotseat and center recents vertically during quick scrub
- Don't animate the state change if launcher wasn't already visible, but still
wait until the window animation completes before scrubbing past the next app
- Change interpolator of window as it scales offscreen during quick scrub, so that
it gets out of the way faster and you can see the motion of the next app taking
its place
- Remove haptic when snapping to task when quick scrub starts (there's already a
haptic from the home button)

Bug: 70180755
Change-Id: I83f25bc8b791da0676c13fd62698e1f486dc016f
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
4f37b93e9bf2ee2f0d4c8faf0e03ef4040acd9c9 20-Mar-2018 Sunny Goyal <sunnygoyal@google.com> Adding support for single tap & double tap on the recents button

Bug: 75979063
Change-Id: I4dd0595cf94edf77dbedad56f047d86aaf227dac
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
7185dd63eb8942dec65c2babeb39ee6ec64b4533 15-Mar-2018 Sunny Goyal <sunnygoyal@google.com> Changing the overviewState to show appsearch and floating header

Change-Id: I2cfd61cfc9978e4c8e4520f0f7217e49e7344c79
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
9d69c8da9a4f933cc700ef1672b4e60d34a2fb10 19-Mar-2018 Sunny Goyal <sunnygoyal@google.com> Abstracting out all the Laucher related logic

> Enabling swipe up geture for fallback activity
> Using a preferecens for showing back button

Bug: 75979063
Change-Id: I8bbb44d8e250428c3da9bde57975dc4f952624be
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
4eeafdecd4e82f32b9374ea863318282cb33fda8 19-Mar-2018 Sunny Goyal <sunnygoyal@google.com> Removing screenshot based quickstep logic

Bug: 75324790
Change-Id: Ifa6c2d9db64791f2d8151eda6ecf0d1f7406e1f3
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
35208bbf04ee55aaee215784080f025da446863d 09-Mar-2018 Jorim Jaggi <jjaggi@google.com> Control SystemUI flags depending on swipe-up progress

Test: Swipe up on light nav/status bar app.
Bug: 73498721
Change-Id: I65805e3b6ad588c3f50fcf8b11d8f2417e35f9ea
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
f633ef5f4310b6f79087797a2dc215812f841b70 13-Mar-2018 Sunny Goyal <sunnygoyal@google.com> Adding fallback recents activity

> Refactoring RecentsView to a common base class
> Moving some dependency form Launcher to BaseActivity
> Using the Recents view in RecentsActivity

Change-Id: Ie0e6741d356291e77420798c140c999121de3a0d
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
7eee62b313f2dfb5577e6d0e718e652646fe61f1 13-Mar-2018 Sunny Goyal <sunnygoyal@google.com> Merge "Ensuring that we finish the last transition before starting a new one." into ub-launcher3-master
6586062f711a5194d22d870b66ba7e5a8467576f 12-Mar-2018 Sunny Goyal <sunnygoyal@google.com> Ensuring that we finish the last transition before starting a new one.

> Finishing the active animation instead of cancelling it. This ansures
that the animation callbacks are called properly and RecentsAnimaiton is finished
> If a transition is already running, using main thread for next transtion so that
this new transition is not started before the last transition is finished.
> If the transition is expected to finish at Launcher, directly use the Launcher
consumer. RunningTaskInfo is not updated until the screen shot is complete.

Bug: 74481901
Change-Id: I2b1128f1f2eff0e6bd94b3adb9cef6ae0578bd0c
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
2cb4760c42b08c9bd30da7fbc050bdc6dcd7660b 09-Mar-2018 Vadim Tryshev <vadimt@google.com> Generating ACTION_TOGGLE_RECENTS events

Bug: 72967764
Test: atest google/perf/app-transition/sysui-latency-test, watch for 1_*
entries in output

Change-Id: I1bf2bb8f482f6113ed86600afa53407561dc66d0
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
404e625516151bfacb849e7c84df19e0cfb59a91 09-Mar-2018 Tony <twickham@google.com> Remove workspace card

Swiping up for recents scales down workspace and hides it, similar to the transition
to all apps. Simultaneously, recents slides in from the side.

Also removed the setting for swiping to the first task, as it is required now.

Change-Id: Id0845db6650a37917a4faa9c8a434a2270913904
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
5c143255a54f3217f2a38385a9100c3596e132cc 09-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fade away half-screen assistant on swipe-to-recents gesture." into ub-launcher3-master
b09d25b26c5a95bc0a03d2b64cc3d70f8e0146ce 07-Mar-2018 Vadim Tryshev <vadimt@google.com> Fade away half-screen assistant on swipe-to-recents gesture.

Half-screen assistant is not in task stack, and will be faded away.

Workspace-to-recents case with half-screen assistant needs more work
after we decide whether we should swipe to the workspace preview or to
the first task.

Bug: 70789568
Test: Manual: swipe a normal app to Recents; swipe an app with a
half-screen assistant on top of it to Recents.

Change-Id: I6e3acc2b94bb3b56d6590a72073d37a1771a1da5
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
584f530721e53302bebd582af1ed3bc75aa2ec02 08-Mar-2018 Winson Chung <winsonc@google.com> Ensure we register the input consumer on the ui thread.

- We register the input consumer on the interim choreographer thread
but unregister the input consumer on the UI thread when invalidating
the previous handler. This may have caused a race condition where
the disposal of the input consumer overlapped with the registration
of the new one (they share a key in the input consumer map in the
system)

Bug: 73505150
Test: Unable to reproduce, this is a hypothetical fix
Change-Id: I20a9a7be967f5072bbf50ce12e5e61cb939e3c75
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
ca845525054aefb295ec83651b229d7e42dfed1d 05-Mar-2018 Winson Chung <winsonc@google.com> Revert "Revert "Adding a separate state for QuickScrub""

This reverts commit 2687257c9881f44243924db7a064cff4f59fcc1b.

Reason for revert: Reverting post-build

Change-Id: Ic3a1e8ed84a227b42bc35b91d4f0eed60bb2e29c
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
2687257c9881f44243924db7a064cff4f59fcc1b 05-Mar-2018 Winson Chung <winsonc@google.com> Revert "Adding a separate state for QuickScrub"

This reverts commit 6c6c2f45f77d9e577143e16f7eef21ed98aa6367.

Reason for revert: Temporary revert for build.

Change-Id: I3947e9b2d4e5788f9d2a0c4e2e8b7d425d5bc775
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
623eddd7e80784e1d3dd758503fe014a15f6c1c8 02-Mar-2018 Sunny Goyal <sunnygoyal@google.com> Updating Launcher rotation logic

When auto-rotate is on, launcher allways allows rotation. This allows uses to use
locked rotation feature is available on the device
When auto-rotate is off, workspace does not allow rotation, but overview in quickstep
will allow rotation

Bug: 73872056
Change-Id: Ie12365c268fd5e4958634ed97b5a33dcadc691e2
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
6c6c2f45f77d9e577143e16f7eef21ed98aa6367 02-Mar-2018 Sunny Goyal <sunnygoyal@google.com> Adding a separate state for QuickScrub

Bug: 74014237
Change-Id: Ie86ac589f0ad0e1470fb6b0b71263ec6593eb1e3
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
4c1abea9cd08ab9c5e591c2e7ae6514be41030f8 01-Mar-2018 Vadim Tryshev <vadimt@google.com> Fixing generation of fake app-to-recents events

Due to some changes, Launcher started to generate these events also upon
pressing Home. Moving the generation to a right place triggered only
upon the app-to-recents transition.

Bug: 72967764
Test: atest google/perf/app-transition/app-transition-to-recents
Change-Id: I48e9450765474ed103e558b60ff5bf2b7d6b497d
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
5a22795484bb39fd63e694eaf993e471e18f6814 26-Feb-2018 Tony Wickham <twickham@google.com> Merge "Animate launcher when launching recent tasks" into ub-launcher3-master
005df0ba69e38aa94a9f55eb43819a426c0cd3cc 13-Feb-2018 Tony Wickham <twickham@google.com> Animate launcher when launching recent tasks

- Scale up adjacent recent tasks and translate away from center
- Workspace card instead recenters in the screen
- Translate hotseat offscreen

Clicking on one of the adjacent tasks will scale it up to the
center of the screen while the center and other adjacent task
parallax to the right beneath it.

Change-Id: If96eec987c100458b8444a6cd698ec7bf6e6ba6b
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
790822ab2209115d5a449a5df4258e7e4131239c 26-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Ensuring that all the pending tasks are run before marking the ViewOnDrawExecutor as completed." into ub-launcher3-master
a52d2eca83d7c594fc0ec25a581980517182b062 23-Feb-2018 Sunny Goyal <sunnygoyal@google.com> Moving the hotseat by same amount as the task window bottom when dragging

Bug: 73354752
Change-Id: I7d20e718aab9bc9be75b4d536f1aa8b87c385caf
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
0e7724cef788a8e78e1ed5ae70583d4360ce9fc5 22-Feb-2018 Sunny Goyal <sunnygoyal@google.com> Ensuring that all the pending tasks are run
before marking the ViewOnDrawExecutor as completed.

Also fixing model writer not updated on rotation

Change-Id: I5ecd7ac865b939ffa4c02afe892bd773d9f275c3
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
a7843583be7603e1656a5d413a8b5d70468d952f 23-Feb-2018 Winson Chung <winsonc@google.com> Fix flash when switching from app window to snapshot.

- If there is any delay in launcher draw, then we will finish the
transition and hide the app window before launcher has had a chance to
draw the task view with the updated snapshot.

Change-Id: I81c5b467f32520fd7474bde0e89819336292e84f
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
5c86b5d9cd4543e6d04f8ef7fb1ba8f1c881c7ff 22-Feb-2018 Sunny Goyal <sunnygoyal@google.com> Synchronizing invalidating interaction handler with the eventQueue.

In some cases, eventQueue could be running on the background thread where as
the invalidate happens on the UI thread, which could cause race conditions in
touch consumer

Change-Id: Iebd84238eb2b5d6774beaa3bc21afdeb09e62561
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
d70e75a514f62628ee59d4eb53160bbf2d1743fe 22-Feb-2018 Sunny Goyal <sunnygoyal@google.com> Removing launcher dependency when logging quickstep interaction
as Launcher may not be ready when the touch gesture completes.

Change-Id: Ia69eb7bfb0340f7b7ce9b6c67be8851e5429f867
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
668dd40a984a66ae505878f711da4b34bca74b89 22-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixing window transform not changing monotonically with shift" into ub-launcher3-master
b1e2e2956e78b4845bdb2abbe3654de6445785f2 21-Feb-2018 Sunny Goyal <sunnygoyal@google.com> Fixing window transform not changing monotonically with shift

Change-Id: I40f095e73ca1cdb994d34aecc2c6be90f3e0f25b
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
41431af541588bd7d8e77a5462b0707b8fcec43a 21-Feb-2018 Hyunyoung Song <hyunyoungs@google.com> Merge "Quick step/scrub/switch logging - state transition happening due to Home and back is handled by specifying src target as 'from' container and dst target as the 'to' container - Source and Destination container shows FROM and TO state for SWIPE/FLING - event.isStateChange = true indicates that an action resulted in state transition - Elapsed container millis is the screen time on the source container" into ub-launcher3-master
b3fbc0ba8f94a6a0f60822dc7fc209c45d7501d9 14-Feb-2018 Hyunyoung Song <hyunyoungs@google.com> Quick step/scrub/switch logging
- state transition happening due to Home and back is handled by
specifying src target as 'from' container and dst target as the 'to'
container
- Source and Destination container shows FROM and TO state for SWIPE/FLING
- event.isStateChange = true indicates that an action resulted in
state transition
- Elapsed container millis is the screen time on the source container

Bug: 70181187

- logcat printout with setprop log.tag.UserEvent VERBOSE
1) State: WORKSPACE -> ALLAPPS
action:FLING direction=UP
Source child:HOTSEAT id=0 parent:WORKSPACE id=0
Destination child:ALLAPPS
Elapsed container 1225 ms, session 1225 ms, action 0 ms

2) ALLAPPS -> HOMESCREEN
action:FLING direction=DOWN
Source child:ALLAPPS parent:ALLAPPS
Destination child:WORKSPACE id=0
Elapsed container 971 ms, session 2197 ms, action 0 ms

3) HOMESCREEN -> OVERVIEW
action:FLING direction=UP
Source child:NAVBAR parent:WORKSPACE id=0
Destination child:TASKSWITCHER
Elapsed container 4834 ms, session 4834 ms, action 0 ms

4) OVERVIEW-> ALLAPPS
action:FLING direction=UP
Source child:TASK parent:TASKSWITCHER
Destination child:ALLAPPS
Elapsed container 2176 ms, session 7010 ms, action 0 ms

5) ALLAPPS->OVERVIEW
action:FLING direction=DOWN
Source child:ALLAPPS parent:ALLAPPS
Destination child:TASKSWITCHER
Elapsed container 3683 ms, session 10693 ms, action 0 ms

6) OVERVIEW-> HOMESCREEN
action:FLING direction=DOWN
Source child:TASK parent:TASKSWITCHER
Destination child:WORKSPACE id=0
Elapsed container 2108 ms, session 12801 ms, action 0 ms

7) APPS-> OVERVIEW
action:FLING direction=UP
Source child:NAVBAR parent:APP
Destination child:TASKSWITCHER
Elapsed container 104 ms, session 104 ms, action 0 ms

8) Quickscrub: action:DRAGANDDROP Source child: QUICK

9) Quickswitch: action:FLING Source child: QUICK

Change-Id: I5898230859ff600f48a2a873a40b670fe4d39a0d
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
60876ac0d77cbf3abda9eb609f6cd49ea3081cfa 20-Feb-2018 Sunny Goyal <sunnygoyal@google.com> Handling recents animation cancelation

When the animation is cancelled, if remove the pending handler
(incase it has not executed yet) and revert back to the old
state if it has executed.

Change-Id: Iddc305aaaeae78c06cbf6c1c271254409cc1487d
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
ff359219260427d52c3b6a700286d68cb251a231 19-Feb-2018 Tony <twickham@google.com> Fix task icon not showing if you press home

Instead of setting the icon scale to 0 in showTask(), which is
called whenever we get a new intent, only set it to 0 when
starting the swipe up gesture.

Change-Id: I657a1c5763c60b65e28f453ffe854ae8dab83bbc
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
841bbf07d0b521bcebe0ef59254e72dbaad52405 15-Feb-2018 Sunny Goyal <sunnygoyal@google.com> Serializing all event handling from SystemUI

> EventQueue is only accessed on the binder thread
> For every new touch down, we use a new event queue to prevent race conditions
> All event hendling are serialized by event queue (including quick switch/scrub)
> Using state handlers for quick scrub

Bug: 73356768
Change-Id: Idde33a348270b8167a087129f177d5d2b54f5822
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
bd3a798aa2e326625e4a152f4d3e6cece1d892a1 16-Feb-2018 Tony Wickham <twickham@google.com> Merge "Fix a couple quickscrub issues" into ub-launcher3-master
021c06cde938cd3950301b0e41bf37f8ebe54fec 16-Feb-2018 Winson Chung <winsonc@google.com> Don't rely on ORIENTATION_BEHIND, lock th rotation during the gesture.

Bug: 73486148
Change-Id: I83650c6a3ba8634fb37a5792614e958fb01dd7b8
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
fa3efe94943e4f8a48c35114b5d5beaf2330b04e 16-Feb-2018 Tony Wickham <twickham@google.com> Fix a couple quickscrub issues

- Always launch workspace card if it's focused when quick scrub ends
- Previously it would get stuck if quick scrub end was called on
a background thread (since it was trying to touch RecentsView)
- Prevent user from being able to get to the workspace card if
starting quick scrub from an app by introducing bounds checking
- Prevent getting stuck in overview when ending quick scrub
- There was a race condition where the task wouldn't launch if
the animation to recents hadn't yet finished. Now there is a
callback to ensure that launchTask() is always called after.

Bug: 70180755
Change-Id: I3c131011634880a97de8c2935c3ebdab26494b48
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
9004912eaa0d9cfddb520a8131bf6e5291e79cc0 15-Feb-2018 Winson Chung <winsonc@google.com> Prevent rotation during quickscrub gesture.

Bug: 73486148
Change-Id: Ia435608484e49daf93ff4aa675da11ea4f0fd421
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
db3a95c956f5a4f8f2b4b9afcb91d7ba6f43bad2 14-Feb-2018 Winson Chung <winsonc@google.com> Reset the interaction handler if it hasn't been recreated.

Bug: 73356768
Change-Id: Ie3236c95cdb8d9ce809bf8651e02d1d803f0b802
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
ff02cd54d44ff5767264fca22a3926c9cb135f57 14-Feb-2018 Winson Chung <winsonc@google.com> Skip updating displacement if handler is already invalidated.

Bug: 73338391
Change-Id: I091e8a682f95631e15b3f2cbe3e281c4f18003b9
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
cc394cdc7585949e3276616e9616a18e1d62a0a2 13-Feb-2018 Winson Chung <winsonc@google.com> Re-enable input consumer to catch touches over window

- No handler at the moment, it just ignores touches

Change-Id: I2130e01c0515298433b5fbde835dfe97864038c9
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
a066e4434be37714fe3bbaf5e2b86101c5fee667 10-Feb-2018 Tony Wickham <twickham@google.com> Re-enable quick scrub/switch from launcher

When we get the onQuickScrubStart() or onQuickSwitch() callbacks, we go
to the overview state with a quicker duration (the same used from apps).
Then we follow the same logic as starting quick scrub/switch from apps
except that we allow you to scrub back to the workspace card.

Bug: 70180755
Change-Id: Iebcdcc4c4ad1e1210e2d1c11e5007c27d3c1eef3
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
8cb3002619e917ab15057d4e5748f26eab3764de 09-Feb-2018 Tony Wickham <twickham@google.com> Move window to align with first task during quick scrub

Bug: 70180755
Change-Id: I5932462bd1af08ec141518a344c60605b8730d9d
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
05a31ede4f00c842d7eb18f31483cc149488d14d 09-Feb-2018 Winson Chung <winsonc@google.com> Defer launching the quickscrub task until after the page settles

- Tweak the durations to be less laggy
- Add some state logging

Bug: 67957962
Bug: 70180755
Change-Id: Ia0caa5178b3ed976705eb2d973bc00d8f1b9e3ca
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
006239bab96963b4f2578554744e97093d0ff36a 07-Feb-2018 Winson Chung <winsonc@google.com> Fix blocking issues re. window transitions and quick scrub

- Clean up the consumer when starting quickscrub/switch in addition to
motion up
- Defer invalidating the handler until after quickscrub ends
- Ensure that we always finish the remote animation

Bug: 67957962
Bug: 70180755

Change-Id: Id5af5dc9917638f1dfb8e4a04c358aadb19fd67a
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
168ca694f9eb7166280763af9942dc5392c1602d 08-Feb-2018 Sunny Goyal <sunnygoyal@google.com> Merge "Adding callback to notify LauncherCallbacks when quickstep starts" into ub-launcher3-master
2fda6ced2aaabb47bef678a9f39b0520380d2773 31-Jan-2018 Winson Chung <winsonc@google.com> Handle transition from multi-window

- Make use of app/home insets and minimized home size to calculate the
proper clipping and target bounds for the task view in home.

Test: Swipe up when in multiwindow

Change-Id: Ibef7a6dc319ded7867ee559dd31c5e87fd76cadb
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
3bac2c2b91023896dbfa096b03951b77dc2217ae 07-Feb-2018 Sunny Goyal <sunnygoyal@google.com> Adding callback to notify LauncherCallbacks when quickstep starts

Bug: 73081875
Change-Id: Ieccba6ecb16553ed5211f277b49e9f2ed2d7c745
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
ef3ae11014720a91cf2c06c7d20f11d6b172e0c4 06-Feb-2018 Sunny Goyal <sunnygoyal@google.com> Only initialize the animation control when gesture starts

Change-Id: Ic7fe373b826d3a11348f84671bf7bda618820546
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
5a090a724222853390dd35219778748f559bd75a 06-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Preserving the last state when going to overview." into ub-launcher3-master
af161fd20c0ae75f8aa6d609159248612c191e38 06-Feb-2018 Sunny Goyal <sunnygoyal@google.com> Preserving the last state when going to overview.

> Resetting the state to NORMAL on every onStop so that the user
never starts on the overview screen

Change-Id: If3c17693b7125a3969809e60891a2ab978fe83bc
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
c4341e8a1b196285800f8ee6c55f7b23f2a64d66 06-Feb-2018 Sunny Goyal <sunnygoyal@google.com> Using state property for animating hotseat

Bug: 72664334
Change-Id: Ib9f9b94380e04a9ea43ae164cc2ff587d3d3a9a8
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
24bd85a848bda4daa8d2c747f8f7a2634aea9a5e 05-Feb-2018 Winson Chung <winsonc@google.com> Fix issue with reseting touch handler

- Cleaning up/removing some extraneous code

Change-Id: I770383b7c3a4efb75e890dfb48196265636a2c44
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
8b264568a127d8c865b635178a0189e50973e6c6 04-Feb-2018 Sunny Goyal <sunnygoyal@google.com> Waiting for a small timeout for launcher draw, before performing the swipe gesture.

This allow for a better synchronized motion, in case launcher draw was fast enough

Change-Id: Ie59aa1e8a2ffa94f3640b4ea08a0c23eeabafb54
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
0ecca76f7c374dff999eafafc811b3a459428401 02-Feb-2018 Sunny Goyal <sunnygoyal@google.com> Refactoring the touch handling into a different class.

This makes it easier to maintain states for a single touch session (from down to up/cancel)

Change-Id: I27da239376337cd02c104fea54e39b2e30b53fab
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
85a7fe086b4732bedb42281ee1e29fe6abd9af90 02-Feb-2018 Sunny Goyal <sunnygoyal@google.com> Some fixes for quickstep when configuration changes

> Creating the launcher animation after first draw, so that the UI is in correct state
> Using correct workspace size, when layout is not valid
> Snapping pagedView to correct page when page size changes
> Resoting to correct workspace page on rebind

Change-Id: I74e61a05aae3a3c4912d4c5c8eb4d5d036d9005a
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
7dde1c3b9b4b45c77121d75da19c6599293757c5 31-Jan-2018 Winson Chung <winsonc@google.com> Start the recents window animation on touch down.

Change-Id: Ib95f0c41e2dc0e9274268e70da63b63e3092fc94
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
7d7783b6182057c074c8b0312828e047402e7fbc 30-Jan-2018 Winson Chung <winsonc@google.com> Only keep running task id.

Change-Id: I5a1488aacd4e3ec8d2131ddbd953db6409d737fd
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
7718fdc178ca009648bb6d8299d56ce8fe1b864d 31-Jan-2018 Sunny Goyal <sunnygoyal@google.com> Fixing Launcher UI jump if the fling animation is completed before launcehr first frame

Also temporarily removing input consumer, as that might be causing event to getmissed
(similar to b/72715390)

Change-Id: I82918133d334fae5d3da267b0d03ff2af8f02e67
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
8317b6935afeffbc3002ce5bd77b011dedc8fcce 30-Jan-2018 Sunny Goyal <sunnygoyal@google.com> Using a background thread for controlling window animation

Animate the task window on the background thread, until the launcher UI is ready.
After the first frame of launcher is drawn, we switch the input handling to UI thread
and fade in the launcher UI.

Change-Id: Ia3d04b697530af3db441b14ad34827208b923137
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java
1a341002fcd8b6491701f6b7a8583c6e02ee34ba 17-Jan-2018 Winson Chung <winsonc@google.com> Add code path for the recents animation using window transitions.

Test: Enable in settings, swipe up

Change-Id: I1053f9e519c2f612bd3db0b66cd16ad9a30bfeb4
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/WindowTransformSwipeHandler.java