Commit Graph

1709 Commits

Author SHA1 Message Date
TreeHugger Robot
652b9ab5c9 Merge "Revert "Revert "Temporarily make TouchInteractionService direct boot unaware""" into ub-launcher3-master 2019-03-08 16:47:02 +00:00
vadimt
7977961f73 Logging switching Quickstep on and off for tests
Change-Id: I9ff70850a86542715b5ef88c1f2a492bd3797ab1
2019-03-06 17:08:13 -08:00
Tony Wickham
1c22a2c7a2 Revert "Revert "Temporarily make TouchInteractionService direct boot unaware""
This reverts commit 84062d4b5d.

Reason for revert: We want TouchInteractionService to be direct boot unaware until engineers can flash to a build where sysui expects it to be direct boot aware (sorry for the churn...).

Change-Id: I27c00257819751af52df40467d5a63dc106e1917
2019-03-07 00:34:01 +00:00
Sunny Goyal
826405d095 Merge "Using the new contract for some systemUI constants" into ub-launcher3-master 2019-03-06 21:40:12 +00:00
TreeHugger Robot
5ac7eb1e37 Merge "Updates to app to icon animation, and turns on ADAPTIVE_ICON_WINDOW_ANIM flag." into ub-launcher3-master 2019-03-06 21:34:44 +00:00
Jon Miranda
4334874f1f Updates to app to icon animation, and turns on ADAPTIVE_ICON_WINDOW_ANIM flag.
- getFirstMatchForAppClose now only looks at the current page, since switching
  pages is disruptive and the animation for app closing to an icon on a
  different page is unclear.
- Searches for package name and user id (in case of work profile app)
  instead of component name to handle shortcuts and trampoline activities.

- Adaptive icon background drawable is now always centered

- Fix crash that occurs when ADAPTIVE_ICON_WINDOW_ANIM is off. We were trying
  to set FolderAdaptiveIcon as the background drawable. Simplest solution is
  to not use folder as a search criteria when the flag is off.

- Similar to DragView, FloatingIconView now uses BubbleTextView icon when
  adaptive icon support is not available. This handles legacy-treated apps.

Bug: 123900446
Change-Id: Idaf292bb39d78db511cf2ee04a16b191454846b3
2019-03-06 13:25:22 -08:00
Sunny Goyal
b7dafa6a04 Using the new contract for some systemUI constants
Change-Id: I1a0351bc9b1ac5b8fe866a92c1bda93126189543
2019-03-06 12:32:24 -08:00
Matthew Ng
04d58e841f Do not consume motion events when there is no assistant available
Bug: 112934365
Test: manual
Change-Id: If9254d974a34772357ce32d5ba2734db5a173f6b
2019-03-06 19:43:29 +00:00
Tony Wickham
40e0693234 Merge "Revert "Temporarily make TouchInteractionService direct boot unaware"" into ub-launcher3-master 2019-03-06 17:43:15 +00:00
Tony Wickham
84062d4b5d Revert "Temporarily make TouchInteractionService direct boot unaware"
This reverts commit 3a4f503e5d.

Reason for revert: need TouchInteractionService to be direct boot aware for the merge

Change-Id: I5b3c651df77f8df1d5f07245b062f2384cd760a0
2019-03-06 17:31:40 +00:00
Tracy Zhou
74130d2cea Merge "Make task launching interpolators consistent" into ub-launcher3-master 2019-03-06 01:42:40 +00:00
Tracy Zhou
797210acad Make task launching interpolators consistent
Fixes: 127532177
Test: Manual

Change-Id: I36aba881cc34c3d99af1dc1dd095c6082e2ea815
2019-03-05 16:38:12 -08:00
Tony Wickham
7550c1227e Merge "Fix some issues with MotionPauseDetector" into ub-launcher3-master 2019-03-05 22:00:24 +00:00
Tony Wickham
eb6cb3b943 Merge "Don't allow swipe up for all apps above shelf" into ub-launcher3-master 2019-03-05 21:59:14 +00:00
TreeHugger Robot
55f6416748 Merge "Using a single array instead of a list of array for trcking events" into ub-launcher3-master 2019-03-05 21:44:11 +00:00
Sunny Goyal
5654949bd0 Using a single array instead of a list of array for trcking events
In case events come out of order, the list is not properly initialized
which can lead to missing invalid states

Bug: 127282292
Change-Id: I3b4784b8e3eec890e80e62c2ea613e1ba84b6c95
2019-03-05 12:45:23 -08:00
TreeHugger Robot
a4c3d066dd Merge "Switching to setting QS on and off via writing settings." into ub-launcher3-master 2019-03-05 01:26:51 +00:00
Vadim Tryshev
8675deee02 Switching to setting QS on and off via writing settings.
We can do this now because we hav all 6 devices in the lab.

Change-Id: I5d5fcd89086a3f945ed3fc204461cacbdde61a8a
2019-03-04 16:49:50 -08:00
Miranda Kephart
516bb587af Merge "Add AiAi overview chips to Launcher" into ub-launcher3-master 2019-03-04 19:07:50 +00:00
Miranda Kephart
cd5beb3e62 Add AiAi overview chips to Launcher
Overview chips are constructed in AiAi and inserted into a Launcher
container (similar to what's done for the SuggestView). This CL
(and its sibling) remove the dependency on the NavBarHint plugin
for chip hint data, and instead obtain the information from AiAi.

BUG: 124390101
Change-Id: I07beb79dba2edaafb231b03e70b647ae211b5c1b
2019-03-04 11:51:53 -05:00
Tony Wickham
37d3a1ff41 Don't crash if there's no running task view when going home
Change-Id: Ib5e9ce961aa4dc6b15da34713967f6ad9dde2054
2019-03-01 16:34:59 -08:00
TreeHugger Robot
6d2bb0b548 Merge "Added assistant gesture swipe up right side region on nav bar" into ub-launcher3-master 2019-03-01 22:02:23 +00:00
Matthew Ng
077c29e091 Added assistant gesture swipe up right side region on nav bar
Bug: 112934365
Test: manual
Change-Id: I467e71f13da4afba3a556fafb0bfdf01650ab4bf
2019-03-01 13:53:13 -08:00
Jon Miranda
1a49fb5733 Transform closing window to icon on workspace using adaptive icons.
With adaptive icons, we can have FloatingIconView match the shape
and size of the closing window, regardless of the icon shape.

FloatingIconView starts off as a rounded rect (same corners as task view)
and then morphs into the icon shape using FolderShape#createRevealAnimator
in reverse.

Decided to add FeatureFlag.ADAPTIVE_ICON_WINDOW_ANIM since there are still
some issues with folders, badges, and a visible jump when swapping the
FloatingIconView with the original icon.

Bug: 123900446

Change-Id: I94969eea6d5f4b932a84a11eb403611276042b46
2019-03-01 12:48:25 -08:00
Jonathan Miranda
67e0019907 Merge "Revert "Add remote animation for unlocking device."" into ub-launcher3-master 2019-03-01 20:03:45 +00:00
Tony Wickham
421d04193c Don't allow swipe up for all apps above shelf
It's confusing that swiping up and holding on the shelf brings up
overview, but swiping up and holding slightly above the shelf doesn't.
The reason is that a different controller that just went straight to all
apps was used in the second case; removing that reduces confusion.

Change-Id: Idceed909cd51f27e1d6ffc97d874e5f664d1fc1d
2019-03-01 11:15:18 -08:00
TreeHugger Robot
7419d8174d Merge "DWB Toast: rounding up to minute if duration > 1 minute" into ub-launcher3-master 2019-03-01 18:56:05 +00:00
TreeHugger Robot
ba39c84664 Merge "Load app content descriptions for Go recents." into ub-launcher3-master 2019-03-01 18:55:01 +00:00
vadimt
c71ac7bcc7 DWB Toast: rounding up to minute if duration > 1 minute
See bug.

Bug: 124730625
Change-Id: Ia5e18736df1eec0d52f0a993bb831891a1e622f9
2019-03-01 10:46:12 -08:00
Kevin
5a3f7ae764 Load app content descriptions for Go recents.
Recents Go with icons will use the app's title description as the app
label, so we need this to actually load when we load the task's content
even if accessibility is disabled. This CL puts this behind a static
flag only set to true in recents Go code.

Bug: 114136250
Test: Log that titles/labels are appropriately fetched
Change-Id: I4fe7d8758b3141695a82c0677cec97686c977934
2019-03-01 10:43:00 -08:00
Jon Miranda
69e03dd082 Revert "Add remote animation for unlocking device."
This reverts commit 55a32272be.

Reverting until we can revisit this animation.

Bug: 123906429
Change-Id: Ic2d6e5a8198900fb15abd60dd140091681f828dd
2019-02-28 20:37:03 -08:00
Tony Wickham
3a4f503e5d Temporarily make TouchInteractionService direct boot unaware
Change-Id: I2fa760bcefe3b669dfdc18a79bf2d9879c2c8f36
2019-02-28 16:20:43 -08:00
Tony
573c3e1712 Make TouchInteractionService direct boot aware
- Add directBootAware="true" to TouchInteractionService manifest component
- Add DeviceLockedInputConsumer which just sends a home intent on touch down

Test:
- Reboot
- Swipe up anywhere to get to bouncer (pin/password/pattern)
- Click "Emergency" to launch dialer while still in direct boot
- Swipe up from the nav bar to exit/bring up bouncer

Test:
- Lock screen
- Double press power to launch camera
- Swipe up from nav bar to exit/bring up bouncer

Bug: 125364936
Change-Id: I7a4cd2dc3a635daf4bb9a643a1e5251ca4e91e33
2019-02-28 14:39:27 -08:00
Tony Wickham
ac60d91cec Fix some issues with MotionPauseDetector
- Orthogonal displacement now checks angle instead of fixed amount
- Only allow timeout when passed min primary displacement and not
  orthogonal displacement
- Don't set timeout for !SWIPE_HOME, which should never detect pause

Change-Id: I3d810831316affff138968dfc62b921b20c752c5
2019-02-27 16:40:59 -08:00
TreeHugger Robot
7ceb6f358a Merge "Fix RecentTasksList change id incrementing" into ub-launcher3-master 2019-02-27 21:33:07 +00:00
Kevin
ccbb4f3bf3 Fix RecentTasksList change id incrementing
The change id in RecentTasksList would never actually increment as we
never register it as a TaskStackListener. As a result, we always execute
the result callback immediately when getting a task and the task list is
always valid.

In addition, when the list IS up to date, we still fetch the list again
in the background when we should instead just return early.

This CL addresses both of these issues.

Test: Added logs to see that task loading wasn't happening when lists
are the same

Change-Id: I228f8d7cd3cb22ef88d71e1bee40708c2bcf26d6
2019-02-27 12:16:37 -08:00
Tracy Zhou
6ab0832739 Handle key events in Launcher.
Change-Id: I7531080a7534ba2788cebec723ce552609c92b1c
Fixes: 125551024
Test: Swipe up from app and press back. It takes user back to the current app.
2019-02-27 10:21:42 -08:00
Winson Chung
21950c52f8 Adding workaround to defer recents animation cancel
Bug: 126336729
Test: Open gmail, quickly tap home
Change-Id: I98575f0c949ad105c214c6a4a2338a67d1496972
2019-02-26 17:37:56 -08:00
Tracy Zhou
ff979d2d05 Fix rounded corner regression upon swipe up
ag/5990051 introduced the regression.

Change-Id: Ia34eba3d109b0f8bc87b46585dce85a9e86baf12
Fixes: 126045978
Test: Manual
2019-02-26 14:23:01 -08:00
Sunny Goyal
327e01d98c Fixing task snapshots not getting updated in recents view
Bug: 124620962
Change-Id: I7c6b9d1183faa01a0836194e42a9cd8517c8b61a
2019-02-26 13:05:57 -08:00
Kevin
576d203a91 Remove several files from Recents Go src
As Go will not be using RecentsView, there are several files that are
unneeded in the recents Go source. This moves these files to
recents_ui_overrides where they will be used for non-Go builds.

Bug: 114136250
Test: Build NexusLauncher, aospWithQuickstep, l3GoWithQuickstep
Change-Id: I9d0154a75f4f2c71b865d414448e262b3019b2b9
2019-02-25 14:53:04 -08:00
TreeHugger Robot
6873fe517b Merge "Stub out most of TouchInteractionService for Go" into ub-launcher3-master 2019-02-25 22:02:10 +00:00
Kevin
eee12ee4cf Stub out most of TouchInteractionService for Go
Most of TouchInteractionService is not used in Go since we don't support
a lot of the gestures, so this code swaps the file and stubs out
everything except the atomic overview commands for Go only.

Bug: 114136250
Test: Manual test NexusLauncher, l3GoIconRecents
Change-Id: I449746d01d3bbf619663399deb9600f0e4ecc000
2019-02-25 13:39:42 -08:00
Kevin
f96d74017e Remove unused variable.
Remove an unused variable from FallbackActivityControllerHelper.

Test: Build NexusLauncher, l3GoIconRecents
Change-Id: I77b5ae40b9e6aee47f23e6c3b4f718e744987200
2019-02-22 16:50:40 -08:00
TreeHugger Robot
517163e0ae Merge "Split FallbackActivityControllerHelper for Go" into ub-launcher3-master 2019-02-22 23:27:31 +00:00
TreeHugger Robot
4b88b357a7 Merge "Split TaskUtils for Go recents" into ub-launcher3-master 2019-02-22 23:27:30 +00:00
TreeHugger Robot
4dcb34fbb4 Merge "Split OverviewCommandHelper for Go recents." into ub-launcher3-master 2019-02-22 23:05:01 +00:00
Kevin
6fb2b78320 Split FallbackActivityControllerHelper for Go
This splits FallbackActivityControllerHelper for Go and non-Go depending
on the underlying recents implementation. We also introduce a
GoActivityControllerHelper implementation as a base class to share the
stubbed methods for the Go ActivityControlHelper implementations.

Bug: 114136250
Test: Manual test NexusLauncher, l3GoWithIconRecents
Change-Id: I8a061bb83a851dd1d9988af17194f3e4aed24bb0
2019-02-22 14:41:27 -08:00
Sunny Goyal
238124eb17 Ensure that icon and cached display size is always non-zero
Bug: 119290867
Change-Id: If9309df2f62f707b7ebd0c5808d4d872f6d63c61
2019-02-22 22:22:03 +00:00
Kevin
295954ba78 Split TaskUtils for Go recents
This CL splits the static methods in TaskUtils based off which ones
assume a RecentsView recents implementation. The new TaskViewUtils
is then only used by non-Go recents whereas the generic TaskUtils which
only deals with Task logic is shared.

Bug: 114136250
Test: Build NexusLauncher, l3GoIconRecents
Change-Id: If33d19dbdb421ae805767387a991769166e865c5
2019-02-22 14:01:33 -08:00