Commit Graph

18115 Commits

Author SHA1 Message Date
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
TreeHugger Robot ba39c84664 Merge "Load app content descriptions for Go recents." into ub-launcher3-master 2019-03-01 18:55:01 +00: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
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
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
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
Sunny Goyal b04dabf7ef Fixing Launcher3QuickStepGoIconRecents build
Change-Id: Ieef3872fbe0ba3e6412fe6fcbfc4e20ac785ab70
2019-02-26 09:43:50 -08:00
TreeHugger Robot cf50c1b01d Merge "Using different swipe length to switch to Overview." into ub-launcher3-master 2019-02-26 01:10:48 +00:00
vadimt a31f7eb68d Using different swipe length to switch to Overview.
Depends on whether swiping from Workspace or Background.

Change-Id: I0f647e85080ee1458a0f18cb132b87890379260e
2019-02-25 16:26:43 -08:00
TreeHugger Robot 900f14438f Merge "Remove several files from Recents Go src" into ub-launcher3-master 2019-02-25 23:40:28 +00: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 3ebf9deacb Merge "Reducing the swipe length for going to overview to account for recent threshold changes" into ub-launcher3-master 2019-02-25 22:43:45 +00:00
Sunny Goyal 50d5cb85f2 Reducing the swipe length for going to overview to account for
recent threshold changes

Bug: 125795067
Change-Id: I53a9b833cc1b73626fec13742f3ea5ccbfc6abb4
2019-02-25 14:32:37 -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
Vadim Tryshev e516cb1b9f Merge "Not using pressHome to start Launcher when tests are running in-proc" into ub-launcher3-master 2019-02-25 19:05:42 +00:00
Winson Chung 1de3c5078c Fix small issue with overscroll not being dampened on the left edge.
Change-Id: I113425e6bae2ff6f6f143526a7e06363fb8d4320
2019-02-25 18:56:21 +00: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
vadimt 1dc7ab885b Not using pressHome to start Launcher when tests are running in-proc
This is a risky business, as we can be broken by platform changes like:

b/118891218

Note that TAPL itself still uses pressing Home button.

Change-Id: I55772622fac5f19f6c9f19716a185bbfdbf602a9
2019-02-22 16:21:26 -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
Kevin ef8a17b1d0 Split OverviewCommandHelper for Go recents.
This splits OverviewCommandHelper between a Go and non-Go version with
functionality differing depending on the underlying recents
implementation.

Bug: 114136250
Test: Build NexusLauncher, l3goWithQuickstep, l3goIconRecents
Change-Id: I7c78d7699e5599002de64b289b0c3a47c8c418f7
2019-02-22 11:26:32 -08:00
TreeHugger Robot 9ad094c626 Merge "Split AppToOverviewAnimation for Go" into ub-launcher3-master 2019-02-22 19:07:06 +00:00
TreeHugger Robot d3cb4c39e8 Merge "Fixing DWB toast sometimes being shown for badged apps" into ub-launcher3-master 2019-02-22 06:19:54 +00:00
Sunny Goyal dc67a77ac0 Merge "Using cachedEventDispatcher when swiping up on homescreen" into ub-launcher3-master 2019-02-22 06:04:55 +00:00
vadimt 70d5c728c6 Fixing DWB toast sometimes being shown for badged apps
Bug: 124741358
Test: Manual
Change-Id: I7e2be19fda031c7c445d1a0e4ecd245935e54838
2019-02-21 17:33:53 -08:00
Kevin 61cc109a72 Split AppToOverviewAnimation for Go
Split AppToOverviewAnimationProvider between a Go recents version and
non-Go version as the animation from the app to recents will be
different for Go recents.

Bug: 114136250
Test: Manual test NexusLauncher, l3goWithQuickstep, l3goIconRecents
Change-Id: Iefdafd3838579b780817568b8c707098b79a8cdb
2019-02-21 13:04:58 -08:00