Commit Graph

18291 Commits

Author SHA1 Message Date
TreeHugger Robot 84eb812bcd Merge "Include Launcher3QuickstepLib for tapl" into ub-launcher3-master 2019-03-04 22:25:31 +00:00
Tony Wickham c920b5986d Merge "Scale and translate hotseat with workspace instead of all apps" into ub-launcher3-master 2019-03-04 19:47:38 +00:00
Miranda Kephart 516bb587af Merge "Add AiAi overview chips to Launcher" into ub-launcher3-master 2019-03-04 19:07:50 +00:00
Hyunyoung Song 494dd8da82 Include Launcher3QuickstepLib for tapl
Bug: 123904290
Change-Id: I388061edcc5a2978d6c6f1102d92e09155678e34
2019-03-04 10:57:54 -08:00
TreeHugger Robot ccf00ab063 Merge "Assign default adaptive icon background color" into ub-launcher3-master 2019-03-04 18:29:50 +00:00
Hyunyoung Song de87a22773 Assign default adaptive icon background color
Bug: 126327184
Change-Id: I8c6db3cc0c2bf334862b60b0aa27aee4850039f1
2019-03-04 09:47:45 -08: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 4bb4b89b9a Scale and translate hotseat with workspace instead of all apps
- Move the hotseat alongside workspace instead of on top of all apps in xml layout
- Set pivot point of hotseat to match the workspace's, and apply the same scale
- Translate the hotseat with the workspace instead of all apps
- SpringLoadedState does not scale or translate the hotseat

Change-Id: Ic45fe99f83f0e0012afa78073d9577e65da444e2
2019-03-03 15:43:50 -08:00
Hyunyoung Song 0a13878b96 Add launcher-log-proto-nano rule in Android.bp
Bug: 123904290
Test: m launcher-log-proto-nano

Change-Id: I71c749be60df20ad474a7b898c8668642a67a72f
(cherry picked from commit 46e1145ecc)
2019-03-02 08:03:27 +00: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
Matthew Ng 3ab13c9de1 Changed assistant debug flag to global
Bug: 112934365
Test: manual
Change-Id: Ibf5f02d41d879f35ba7ee011dc35e264606b751b
2019-03-01 16:21:32 -08:00
TreeHugger Robot 9db9d62b27 Merge "Removing the home button press check" into ub-launcher3-master 2019-03-01 23:07:18 +00:00
Sunny Goyal 9df474ab53 Removing the home button press check
When home key is pressed, we skip the schedular check as it comes
in onNewIntent (explicitIntent).

Bug: 118441555
Change-Id: I934bb14e4d188cf61faed0360c3f6d7cac8d2fed
2019-03-01 14:09:34 -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
Winson Chung 1942d5a54a Fix issue with flashing on overscroll
- Apply the bounded current scroll to the overscroll instead of assuming
  the max scroll (on the last tick, the overscroll amount can be zero,
  causing us to shift to the max scroll until the next draw)

Bug: 126767319
Change-Id: Ia60ecb0c3f18e68d0c91620aa79b21df72c213cf
2019-03-01 13:32:32 -08:00
TreeHugger Robot dd79438ee9 Merge "Reapply the current state after onCreate" into ub-launcher3-master 2019-03-01 21:25:53 +00:00
Sunny Goyal bbece869eb Reapply the current state after onCreate
In case of normal restart we were never applying the NORMAL state and
so various state properties didn't start with correct default values.
We generally get insets after start which reapplies the state and
fixes this issue but that is not always the case.

Bug: 126416861
Bug: 118441555
Change-Id: Iaa178556618f8a49197187d0820d8b8afdc73378
2019-03-01 13:16:29 -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
TreeHugger Robot 8d6c7da9de Merge "Add loader for recents Go." into ub-launcher3-master 2019-03-01 20:31:22 +00:00
Jonathan Miranda 67e0019907 Merge "Revert "Add remote animation for unlocking device."" into ub-launcher3-master 2019-03-01 20:03:45 +00:00
Kevin 45f81fd732 Add loader for recents Go.
This CL introduces a loader specific to recents Go that utilizes the
underlying recents model already built in. The class is responsible for
maintaining the data source for the recycler view and also loading the
task list and content. We also provide a hook into the recents view
class to call a load when the transition to recents starts.

Bug: 114136250
Test: Build Launcher3GoIconRecents
Change-Id: I22ce6f767852b0f37961e2fd06dfcb6475c91235
2019-03-01 11:46:51 -08: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 Wickham 3efd32adea Merge "Make TouchInteractionService direct boot aware" into ub-launcher3-master 2019-02-28 23:48:03 +00: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
Hyunyoung Song 9272d0d31b Merge "Inherit TextAppearance.DeviceDefault for the RRO text font" into ub-launcher3-master 2019-02-28 07:44:47 +00:00
Hyunyoung Song 72dae7f4ce Inherit TextAppearance.DeviceDefault for the RRO text font
Bug: 126229665
Change-Id: I54f59f64888847c8a3ce2ea63be12a4c9199bb05
2019-02-27 16:58:57 -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 069988354a Merge "Add recycler view for recents Go" into ub-launcher3-master 2019-02-28 00:06:10 +00:00
TreeHugger Robot 7ceb6f358a Merge "Fix RecentTasksList change id incrementing" into ub-launcher3-master 2019-02-27 21:33:07 +00:00
Kevin 1c2b6c4594 Add recycler view for recents Go
Add recycler view to view hierarchy for recents Go to hold the list of
recent tasks.

Bug: 114136250
Test: Manual test, see view in place
Change-Id: I255bb4a7737726b0e211b52aec3f2fb8f4723513
2019-02-27 13:05:42 -08: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 fd6d850d72 Merge "Adding workaround to defer recents animation cancel" into ub-launcher3-master 2019-02-27 16:40:09 +00:00
Vadim Tryshev b47f73919e Merge "Slowing down dismiss gesture to reduce flakiness" into ub-launcher3-master 2019-02-27 01:39:03 +00: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
TreeHugger Robot e13895182b Merge "Fix build break for Launcher3GoIconRecents" into ub-launcher3-master 2019-02-27 01:31:36 +00:00
Vadim Tryshev ceedc95d4c Slowing down dismiss gesture to reduce flakiness
Change-Id: I13a1d2053e841994df537896c4fe397f68fa4a65
2019-02-26 17:24:08 -08:00
Kevin dd50f6a7dc Fix build break for Launcher3GoIconRecents
The make rule for recents Go was called Launcher3QuickStepGoIconRecents
in the make file while the one in the presubmit build rule is called
Launcher3GoIconRecents.  I opted to change the one in the make file
since the one in presubmit is shorter.

Test: Builds
Change-Id: I740534707206d79d364312bfaf3a623a3c429f52
2019-02-26 17:08:49 -08:00
TreeHugger Robot 66ae05f1dd Merge "Fix issue keeping Go recents view GONE" into ub-launcher3-master 2019-02-27 00:20:14 +00:00
Kevin 34cf2616b5 Fix issue keeping Go recents view GONE
Go recents view was always GONE before. This is because Go was missing
logic in its CONTENT_ALPHA property to set visibility on appropriate
alpha changes. This CL fixes this.

Bug: 114136250
Test: Manual test and see the view is there
Change-Id: I45fea6d695b9b3154be9d2e6fae25ca8a8aa288e
2019-02-26 14:34:26 -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
TreeHugger Robot 7eb9c93416 Merge "Add TaskAdapter to recents Go." into ub-launcher3-master 2019-02-26 22:20:15 +00:00
Kevin 0fcd22fc66 Add TaskAdapter to recents Go.
This CL adds a recycler view adapter for tasks to manage the item
control logic. The data source itself and view hierarchy is planned to
be added in future CLs.

Bug: 114136250
Test: Build l3GoIconRecents
Change-Id: I72d4f9df68d17fd745947d36522cde342ea58317
2019-02-26 13:30:14 -08:00