Commit Graph

46 Commits

Author SHA1 Message Date
Hyunyoung Song
a05860421f Log OVERVIEW_ACTIVITY via MetricsLogger in quickstep
Bug: 77920179

Change-Id: Id4c7dc3d535c7a8009d340183e640b04ab07408a
2018-05-02 14:34:23 -07:00
Matthew Ng
8013843fbd Secondary split screen app will be next to the navigation bar (2/2)
Refactored docked position code into PhoneWindowManager to determine
which side the docked app should go based on the position of the nav bar
in landscape (as portrait will only have top). Fixed the split screen
entrance animation for quick step's overview.

Change-Id: I0035214cecb9c6403c59f4b938c2d1ae924f34b0
Fixes: 73250406
Test: play around with splitscreen and minimized mode
2018-04-30 15:01:32 -07:00
Matthew Ng
4df80700c4 Shared touch and drag slops for quick step changes with density (2/3)
All shared touch and drag slops are not static anymore but are computed
for the current system density if the user were to switch density of
device.

Test: change density and use quick scrub
Fixes: 78244075
Change-Id: Idc35e78bdd9c6d9b31a1ccbdd9cd0e7fec87185f
2018-04-26 13:57:11 -07:00
Winson Chung
e6e77ca44d Hide the IME when starting quickstep.
Bug: 73285089
Change-Id: Ifad6ffe64467754ade966165ee3c274ac9445c1f
2018-04-23 17:32:43 -07:00
Winson Chung
64b6195bdf Revert "Update shared lib for fullscreen state to task snapshot."
This reverts commit f86337e207.

Reason for revert: Temporary revert until there is a pi-dev build that launcher folks can flash

Change-Id: I1885d7c58d8ec5c3eaccf4abd518c375ecf65164
2018-04-23 23:33:51 +00:00
Winson Chung
f86337e207 Update shared lib for fullscreen state to task snapshot.
Change-Id: I9fa585f303f2613eeb5aa30cc0546230e743bbed
2018-04-23 12:25:59 -07:00
Jorim Jaggi
cd95352ada Remove prolonged animations
Never worked in P, not needed.

Test: Enter split screen
Bug: 77993227
Change-Id: I092c4141c23dd7ded4e11a0f54156b1abfa2b1c6
2018-04-23 11:54:21 -07:00
Tracy Zhou
5c74f7bb59 Implement swipe up and quick scrub onboarding (Pt. Launcher)
SysUI change: ag/3914771

Bug: 70180942
Test: manual test
Change-Id: I42ade28ebad6dcbbcee6dfb80791f22f36e78290
2018-04-18 17:35:33 -07:00
Sunny Goyal
9162f8187c 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
2018-04-14 13:46:41 -07:00
Mehdi Alizadeh
c7ee6802c5 Uses definitions in sysui_shared lib for Settings names
Also drops a new sysui_shared.jar

Bug: 77732469
Test: verifty it builds
Change-Id: I080672be4df746ecd3124cc22ccec3ceea3b0742
2018-04-12 19:15:15 -07:00
Tracy Zhou
fd21de4489 Move QuickStep onboarding strings from Launcher to SysUI (Pt. Launcher)
Bug: 70180942
Test: N/A
Change-Id: I05e6ce27630d478a40a52bf59a9dfd25881213be
2018-04-12 11:08:28 -07:00
Sunny Goyal
fceb82d4a7 Waiting until post draw before calling finish on the recent transition
Bug: 77695434
Change-Id: I7c3c668de7c3986760f26890fa062dee0ddb3805
2018-04-11 12:50:46 -07:00
Winson Chung
c477c373ab Updating shared lib for icon loader change.
Bug: 77747389
Change-Id: I84d56a016222d844ab311bd12ade6693b084bff0
2018-04-09 21:06:21 -07:00
Sunny Goyal
59f2094dd6 Automatically switching the ActivityController based on the default home app preference
Bug: 75979063
Change-Id: If7a173cc56da021094ab9770dee26fb61ac20dd3
2018-04-09 13:25:50 -07:00
Jorim Jaggi
f4beeb8dfb Enable early wakeup during transitions
We hit GL comp likely on some devices so we start composing
earlier to avoid jank.

Bug: 75985430
Change-Id: I94ff218c79fb512002a2fb7f8aa600d6662f269e
2018-04-09 16:45:06 +02:00
Sunny Goyal
6dcf030c49 Updating the system shared lib
Change-Id: I442e124bb8b78f89c23605ce311400032d7ccdad
2018-04-04 14:42:00 -07:00
Winson Chung
dbff75e3de 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
2018-04-03 12:42:09 -07:00
Matthew Ng
e1a9c7ed3f Added two touch slops for easier home press (3/3)
The first slop starts the drag either for quick step or scrub. At this
point either launcher can animate swipe up or the home button moves for
scrub, however the home button is still active and can be pressed or
long pressed. The second slop is for activating quick step or scrub.
Similar to before when an operation has activated, the home button
cannot be pressed or long pressed. This allows the home button to have a
larger area to be clicked.

Change-Id: Ie792845a09ecf5d8bdbeae9e8ef7210e2299c69d
Fixes: 76430825
Test: scrub or swipe up
2018-04-02 10:59:00 -07:00
Tony
e9054e3207 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
2018-03-22 15:50:19 -07:00
Sunny Goyal
9d69c8da9a 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
2018-03-19 19:22:20 -07:00
Jorim Jaggi
3025fb5c8d Import new lib
Bug: 73498721
Change-Id: Ia9d2bd49d69d566b75355fe12b7127434f18079d
2018-03-16 14:15:45 +01:00
Sunny Goyal
038e454df6 Using the task primary color as the background for the wrapped icon
Bug: 74445840
Change-Id: I6c6248c8c71cc9b27cbf301e36400a983127da18
2018-03-13 09:35:54 -07:00
Vadim Tryshev
2cb4760c42 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
2018-03-12 13:20:29 -07:00
Sunny Goyal
773bf8fbd0 Initial changes for handling overview button in Launcher
Adding a debug flag to show the overview button and placeholder methods
for handling the callbacks

Change-Id: I35055e768d96b43b835bac2eb146e47850a7f4b1
2018-03-12 10:48:51 -07:00
Vadim Tryshev
b09d25b26c 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
2018-03-08 17:03:25 -08:00
Tony Wickham
dd535466bf Don't show Pin option when an locked to app is active
Also isLockToAppEnabled is renamed to isScreenPinningEnabled

Bug: 72799389
Change-Id: I46d4c57e3719f7401887e79cbb7397e23f162e44
2018-03-01 12:43:17 -08:00
Winson Chung
efa671294e Fix some issues with split screen animation
- Notify WM when the next draw after split screen happens
- Close the menu once we invoke split screen

Bug: 73118672
Change-Id: I9a42635f1f5c29e347bdec3034f6aa8be332c8d2
2018-02-27 16:52:32 -08:00
Sunny Goyal
338d15d232 Normalizing icons in recents view
Change-Id: I1d95c1abf158044ca5666473f976b49f7997ca27
2018-02-23 12:26:25 -08:00
Winson Chung
d782394132 Revert "Revert "Remove back button when on home screen""
This reverts commit dd176e65e3.

Reason for revert: Post-drop revert

Change-Id: If93eb4bca636bfba2471c8992621a59895bfcbe2
2018-02-16 03:23:47 +00:00
Winson Chung
dd176e65e3 Revert "Remove back button when on home screen"
This reverts commit 663759e444.

Reason for revert: Temporary revert for NL build

Change-Id: I8614ee348e6e9290c0de0dfdf3e24663f220e356
2018-02-16 02:42:26 +00:00
Tony Wickham
663759e444 Remove back button when on home screen
Add OverviewInteractionState to handle setting OverviewInteractionFlags.

Hide back button when in NORMAL state and launcher's window is focused.
Show it when in other states or when launcher's window loses focus.

Change-Id: I35919561b9972789e995f1cc434c23e2afe9e77c
2018-02-15 12:20:16 -08:00
Winson Chung
c2ef02ee15 Cancel the animation when cleaning up the touch tracking
Bug: 72953248
Test: Add artificial delay and launch home from home button
Change-Id: I3f864ff4e0a90a4c62dbf5fe123bb3e2257c06fa
2018-02-13 16:31:31 -08:00
Winson Chung
2fda6ced2a 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
2018-02-07 14:56:24 -08:00
Tony Wickham
03c8e3ffad Add quickstep onboarding text and send to sysui
Bug: 72999860
Change-Id: I3b67f197e16fdf7d646a81210baa6fd24ead61ed
2018-02-06 16:19:01 -08:00
Tony
aed78b7636 Use sysui lib to determine if screen pinning is enabled
Bug: 70294936
Change-Id: Ie71984a1693ad2ffbb308a1830486511cb2c3577
2018-02-02 12:02:16 -06:00
Winson Chung
1a341002fc Add code path for the recents animation using window transitions.
Test: Enable in settings, swipe up

Change-Id: I1053f9e519c2f612bd3db0b66cd16ad9a30bfeb4
2018-01-29 14:14:07 -08:00
Jorim Jaggi
4ed2c9db82 Make app-controlled animations more robust
- Sometimes the system decides to destroy our surface before we
have finished animating. While this is a bug in the system, we
need to protect ourselves against any crashes in this case by
checking getNextFrameNumber() != -1 with the new SystemUI lib.
- Apply position of animation target for multi-window open
animation.

Test: Open Drive multiple times, observe no crash
Fixes: 72301120

Change-Id: I47520cea0d11cab109bf6190ea0cc828efc62275
2018-01-22 20:16:53 +01:00
Jon Miranda
69057173a7 Synchronized opening app transition animations.
Bug: 70220260
Change-Id: I3c8e1c477266fb3bd7a39f74e3e1191e82ce58e9
2018-01-18 09:44:54 -08:00
Tony
6d6fe041c7 Implement quick scrub and quick switch callbacks
Bug: 70180755
Change-Id: I011dd5b0435cea7ba493e83b973ce5be7d18c1f0
2018-01-11 17:20:35 -08:00
Sunny Goyal
1dc8a1f3ca Batching MotionEvents and processing them on the UI thread
Change-Id: I2dc972af8360e719db743740074893bac0213ded
2017-11-16 15:12:42 -08:00
Winson Chung
0485e357db Fetching graphic buffer instead of bitmap for current screenshot.
Bug: 69166452
Change-Id: Iaeeca788c9afadb1ce6f7ee3056dddf9b2e339b2
2017-11-16 09:46:16 -08:00
Winson Chung
117386c9b7 Add option to not preload titles.
Bug: 3236757

Change-Id: I305b659d8ce35ee9c269b25b88558fd29de79ba0
2017-11-15 18:14:42 -08:00
Winson Chung
b63b44c3d5 Load some recent tasks
Bug: 69166452
Test: Build quickstep
Change-Id: Id4b0172256d6920616a6b9529d61abd1fe0c1a36
2017-11-13 18:02:44 -08:00
Winson Chung
8ae4198a44 Adding some task views.
Bug: 69166452
Test: Build quickstep
Change-Id: Iee4cb0b9ac32716f588082a197a90ec1b2655047
2017-11-10 12:03:43 -08:00
Sunny Goyal
416fc0b328 Updating the systemUI lib
Change-Id: Ie945325ea5c436188c79a8f79082d5098357de6d
2017-11-03 14:04:17 -07:00
Sunny Goyal
73133391e5 Adding a placeholder recents activity
Change-Id: Idde86b4008559cde8bcf13fba90a8c72c3f1f591
2017-11-02 11:23:31 -07:00