Commit Graph

1760 Commits

Author SHA1 Message Date
TreeHugger Robot
f86a776602 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2019-03-27 07:31:51 +00:00
Bill Yi
3092a21532 Import translations. DO NOT MERGE
Change-Id: I3bfe6c1b97612ecc829e361fc70d98b9318da417
Auto-generated-cl: translation import
2019-03-26 22:14:07 -07:00
Winson Chung
a5354e02a2 Use system recent tasks stabilization
Bug: 111926330
Test: Swipe to last task, ensure it resets task list on timeout or interaction

Change-Id: Id09215a4cfdea63a4be6fb69fced163ad3bc10bd
2019-03-26 16:56:04 -07:00
Winson Chung
f25461c337 Updating to nav bar mode
Bug: 127366543
Test: Manual
Change-Id: I602539e5d6161c5bf6056bb60679b7ef1f168e3e
(cherry picked from commit 18841823ed)
2019-03-26 14:52:10 -07:00
Bill Yi
56635d4f85 Import translations. DO NOT MERGE
Change-Id: Ibed07a95d0eb703afc04a19e9c0018944ffaf9f7
Auto-generated-cl: translation import
2019-03-23 08:05:19 -07:00
TreeHugger Robot
c8d33f8b61 Merge "Removing graying apps in Overview" into ub-launcher3-master 2019-03-22 21:38:30 +00:00
vadimt
0ed1797fad Removing graying apps in Overview
The reason is that there is no API that reports that an app is grayed.
Not showing DWB toast for apps that ran over their limit because they
shouldn't be in Overview.

Bug: 129067053
Change-Id: Ia04e17aa85ca015b7932496ad5e730fe61b4be69
2019-03-22 12:17:48 -07:00
Tracy Zhou
e790b217e1 Properly clean up screenshot of recents animation upon cancelation
Bug: 122593881
Test: Manual
Change-Id: Ia9ce1ede08309a0898c622bcd07a9e076443d98a
(cherry picked from commit 2bd3a0225b)
2019-03-21 18:06:36 +00:00
Tony Wickham
8cfe0fe091 Merge changes If11fea2d,Ia7e1eebe,Iafa89db1 into ub-launcher3-master
* changes:
  Remove redundant resumeLastTaskForQuickstep() and use resumeLastTask() directly
  Fix some state issues with home and quick switch gestures
  Apply spring forces to animate to the final position for swipe home
2019-03-20 21:37:07 +00:00
TreeHugger Robot
5d6b7f4517 Merge "Replace translationYFactor with just translationY" into ub-launcher3-master 2019-03-20 20:46:26 +00:00
Tony
bfc9dde03e Replace translationYFactor with just translationY
Now that we don't have quick scrub, the only state that has a non-zero translation is all apps,
which just uses that to have a slight parallax. This is much simpler to define in terms of pixels
like other states do.

Change-Id: I108c8505d85591399256b3475f7566ff51e2c5ad
2019-03-20 15:36:31 -05:00
Vadim Tryshev
e8d2ef6cd0 Merge "Revert "Using startActivityForResult to open DWB properties"" into ub-launcher3-master 2019-03-20 18:27:31 +00:00
Vadim Tryshev
e73b0ec69d Revert "Using startActivityForResult to open DWB properties"
This reverts commit b480fe45ce.

Reason for revert: Conflicts with gestural navigation

Change-Id: I109fb855829b68d265458f9b3833482df2b59095
2019-03-20 18:07:11 +00:00
TreeHugger Robot
a761a0d585 Merge "Stop using magic constant 0.1 for switching from home to all apps" into ub-launcher3-master 2019-03-20 02:55:52 +00:00
vadimt
174a330d5d Stop using magic constant 0.1 for switching from home to all apps
Bug: 123904290
Change-Id: Ide4561adb2bb59c805cd9fd48f25440e68d91c7b
2019-03-19 19:17:40 -07:00
TreeHugger Robot
7b43eba730 Merge "Recycle motion event after cancel delegate from assistant input consumer" into ub-launcher3-master 2019-03-20 00:22:20 +00:00
Matthew Ng
0954d8ad49 Recycle motion event after cancel delegate from assistant input consumer
Related: ag/6737054

Test: manual
Bug: 112934365
Change-Id: I7bf439fc58c986fa9972911a02a4035cfd867c34
2019-03-19 16:32:32 -07:00
vadimt
6fe4e93d4a Stop using magic constant 0.6 for returning from all apps to overview
Bug: 123904290
Change-Id: If1b6caf562484649ee107532ffe21d25deff4b97
2019-03-19 12:16:39 -07:00
Tony
096edde056 Remove redundant resumeLastTaskForQuickstep() and use resumeLastTask() directly
Also remove STATE_SCALED_CONTROLLER_LAST_TASK, which is redundant with
STATE_RESUME_LAST_TASK. Basically this removes a path of unnecessary
indirection now that everything is on the UI thread.

Change-Id: If11fea2d6064ba909a439b9b88d7c80fb1ad9d73
2019-03-19 11:08:54 -05:00
Tony
687ff6afe1 Fix some state issues with home and quick switch gestures
Handle the fact that LAUNCHER_STARTED can come 25ms+ later than LAUNCHER_PRESENT
- Don't call prepareRecentsUi() if we already completed the gesture to go home
  - Previously it was possible to get LAUNCHER_PRESENT -> GESTURE_STARTED ->
    GESTURE_COMPLETED -> LAUNCHER_STARTED. Because we go to BACKGROUND_APP state in
    LAUNCHER_STARTED, this sequence ended up there instead of home (b/124338231)
- Call setupRecentsViewUi() in LAUNCHER_PRESENT instead of LAUNCHER_START
  - Because setupRecentsViewUi() sets RecentsView to show the running task, it was
    interferring with quick switches that had the state sequence above

Other quick switch fixes
- Set canBeContinued = true for LAST_TASK gesture target. This handles cases like:
  switch from task 0 to task 1, intercept and go back to 0 (LAST_TASK), intercept
  again to go to 1
- Ignore deferred touch down target if we're continuing the previous gesture
- Set STATE_HANDLER_INVALIDATED as soon as we start finishing recents animation
  instead of waiting until the new task is launched. This is what we do when
  re-launching the last task, and it allows us to start a new gesture sooner.

One race condition still exists with consecutive quick switches: if you switch to
a new task, the next gesture might get stuck if it starts after finishing the
recents animation but before the task is fully launched/launcher is stopped.

Bug: 124338231
Bug: 111926330
Change-Id: Ia7e1eebe6e81e2f10bb42a10b2f46fd720da0dc1
2019-03-19 10:55:27 -05:00
TreeHugger Robot
e498e99fe2 Merge "Moved assistant gesture to corners" into ub-launcher3-master 2019-03-18 22:12:46 +00:00
Matthew Ng
a3b03418c1 Moved assistant gesture to corners
The corners will be separated with quick switch by detecting at the slop
of the angle from touch down to that position. If over 30 deg then
assistant will be tracked otherwise quick switch while swipe up will not
be tracked at all.

Test: manual
Bug: 112934365
Change-Id: I6a3aeb1509d9706696a30ef1fba3ce7e3e5ec07c
2019-03-18 14:53:11 -07:00
vadimt
b480fe45ce Using startActivityForResult to open DWB properties
This will let the callee to figure out who has activated it.

Bug: 118319143
Change-Id: Ica31ecb15df6cc01038000b051712716da5519de
2019-03-15 17:32:00 -07:00
Tony
0d447c88b8 Apply spring forces to animate to the final position for swipe home
Now instead of an incorrect hack that simulated accelerating to the target,
we actually apply spring forces to make it feel realistic and work no matter
where the target is.

Added two helper classes for this:
- FlingSpringAnim handles the fling, applying friction until reaching the target,
  then a spring to pull towards the final position (also applies if fling wasn't
  in the right direction or strong enough to reach the target).
- RectFSpringAnim uses 2 FlingSpringAnims (x + y) to animate from a starting rect
  to a target rect. It also has an animation to scale from the start rect to the
  target rect, sending progress update callbacks to the caller.

Bug: 123900446
Change-Id: Iafa89db1d55c42816acfa9f1bb84a7519b69ff12
2019-03-15 17:38:41 -05:00
Tony
d5a3df7b83 Don't close popup container if touch came from nav bar
Moved EDGE_NAV_BAR from quickstep package to launcher3

Bug: 127917144
Change-Id: Ic619ea49896ca8e49a9a539b7dc7d682291241b7
2019-03-15 17:08:51 -05:00
TreeHugger Robot
d082129ef8 Merge "Switching swipe-up to overview to using test info provider" into ub-launcher3-master 2019-03-15 18:52:25 +00:00
vadimt
d64b4f44da Switching swipe-up to overview to using test info provider
Also moving test provider to Quickstep to have access to the new info;
and now Launcher3 doesn't have it.

Bug: 123904290
Change-Id: I653376610e83839d102beb9c0604950dd314e8ba
2019-03-15 11:42:06 -07:00
TreeHugger Robot
1235b0ee1e Merge "Number of DEBUG_STATES was 1 less than necessary" into ub-launcher3-master 2019-03-15 01:24:49 +00:00
TreeHugger Robot
72ac60d551 Merge "Remove f/b based jars out of the Android.mk" into ub-launcher3-master 2019-03-15 01:24:00 +00:00
Jonathan Miranda
fb53843dc6 Merge "Set window corner radius to 0 for app tranition anims in multi-window mode." into ub-launcher3-master 2019-03-14 23:16:41 +00:00
Tony
40f1d863f6 Number of DEBUG_STATES was 1 less than necessary
Change-Id: I0a9289f9bcf99df0d9a466ad3ff00996192921f2
2019-03-14 18:03:55 -05:00
Hyunyoung Song
319b5a6ace Remove f/b based jars out of the Android.mk
Benefit! we would not get merge conflict when one of these jars update
and we need to do code merge.

Change-Id: Ia6a4a632474a7b19aaede1d20d1373902da1400c
2019-03-14 13:44:14 -07:00
TreeHugger Robot
44ba75fd0b Merge "Adding logging for showing DWB toast" into ub-launcher3-master 2019-03-14 20:24:06 +00:00
vadimt
c28aa1a197 Adding logging for showing DWB toast
We generate an event upon every invocation of Overview with at least one
DWB toast.

Bug: 123892673
Change-Id: Ia24f4be8e9f0f6ab6d31095b8367b73fb6c8cd7f
2019-03-14 12:22:29 -07:00
Sunny Goyal
1e6641fc74 Merge "Removing fade animation on swipe up" into ub-launcher3-master 2019-03-13 22:05:27 +00:00
TreeHugger Robot
da60846197 Merge "Revert "Temporarily make TouchInteractionService direct boot unaware"" into ub-launcher3-master 2019-03-13 20:28:46 +00:00
Tony Wickham
1ccc31379e Revert "Temporarily make TouchInteractionService direct boot unaware"
This reverts commit 3a4f503e5d.

Reason for revert: SystemUI now expects our service to be direct boot aware

Change-Id: I6f7906046e79f83848cb46f5cce63c827d9fbf4d
2019-03-13 20:19:08 +00:00
Tracy Zhou
6f064f9d3f Fix NPE caught in FallbackRecentsTest
Change-Id: Ia586bebd9a24e5bbfcbed50c7c260134911e073b
Fixes: 128464669
Test: N/A
2019-03-12 22:37:33 -07:00
Tracy Zhou
ec2713e153 Merge "Log back key events from Overview in live tile mode." into ub-launcher3-master 2019-03-13 05:22:54 +00:00
Tracy Zhou
e8edaff41a Log back key events from Overview in live tile mode.
Change-Id: If633df84fc46f8b2c80785f983ac5b77a5553747
Fixes: 127837913
Test: N/A
2019-03-12 16:27:05 -07:00
Sunny Goyal
58ddac1d09 Removing fade animation on swipe up
Fade animation is no longer required as the transform is also handled on
the main thread. So we will get the RecentsAnimaiton always after Launcher
has drawn

Change-Id: Ieb05406c9a5b9132b0518155bdbda16c1f73a6ec
2019-03-12 16:24:05 -07:00
TreeHugger Robot
a086df0047 Merge "Stress test for starting Launcher via gestures" into ub-launcher3-master 2019-03-12 22:34:01 +00:00
Jon Miranda
a014ffa3ec Set window corner radius to 0 for app tranition anims in multi-window mode.
Otherwise we see a jump from corner radius to 0 corner radius when the
animation completes.

Change-Id: I46a65342d4ea531dc16c866aee305478067959d3
2019-03-11 15:27:10 -07:00
Tracy Zhou
0bef2bf84c Merge "App icon transitions with app window in overview" into ub-launcher3-master 2019-03-11 22:15:22 +00:00
Tony Wickham
adbd4d6c1d Merge "Send onGestureStarted() when continuing a quick switch gesture" into ub-launcher3-master 2019-03-11 20:47:09 +00:00
vadimt
c1f88db00a Stress test for starting Launcher via gestures
Ideally, we should have a race condition tests, but with the new
single-threaded model, this requires more work. This is a temporary
measure.

Change-Id: Ie180883f4b186e4c4087dc77fed1e4d946402465
2019-03-11 13:38:46 -07:00
vadimt
7d7979df1e Not using reflection for app-usage API
Bug: 118319143
Test: Manual
Change-Id: I304c2d92f2cddccb6f187436cfd5465d06a14867
2019-03-11 20:19:56 +00:00
Tony Wickham
28d43c580a Send onGestureStarted() when continuing a quick switch gesture
When continuing the gesture, we set mPassedTouchSlop = true in order to
make the second gesture responsive/fluid. However, we only call
notifyGestureStarted() when passing that slop, meaning we don't call it
in this case. Now we call it immediately on touch down when continuing
the previous gesture.

This cleans up a lot of inconsistent state issues, such as not creating
the launcher animation controller as part of the second quick switch
gesture.

Bug: 111926330
Change-Id: I03c3ed9a8d364fbfdc2d04bafb58a63bf61e2f63
2019-03-11 10:28:48 -07:00
Tony Wickham
0aa0e2737e Merge "Quickly fade in QSB when swiping up when SWIPE_HOME = false" into ub-launcher3-master 2019-03-11 17:21:54 +00:00
Tony Wickham
836602e313 Quickly fade in QSB when swiping up when SWIPE_HOME = false
Now that the "hook" gesture is supported for old quickstep to switch
apps, we need to fade out the QSB so it doesn't overlap the TaskView we
are switching to.

Bug: 111926330
Change-Id: Ie04c7909f6b96d12c810b438db89eedf8ea5bdeb
2019-03-11 08:46:49 -07:00