Commit Graph

34630 Commits

Author SHA1 Message Date
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
android-build-team Robot 71fe58a7ff Snap for 5342135 from 57920a8087 to qt-release
Change-Id: Ie81274ec8abecf589aa94371510ac59247d9ef8a
2019-02-28 04:08:27 +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
android-build-team Robot d1647f3998 Snap for 5339364 from 3d6f8aab63 to qt-release
Change-Id: I994cf2f5a50d1c121e0cba654e8e10a92602a926
2019-02-27 04:16:25 +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
Tracy Zhou 57920a8087 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 00:30:42 +00: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 3d6f8aab63 Merging ub-launcher3-master, build 5338033
Test: Manual

Bug: 111926330 n Bug: 114136250 n Bug: 115854326 n Bug: 118891218 n Bug: 119290867 n Bug: 120550382 n Bug: 123539954 n Bug: 123541334 n Bug: 123900446 n Bug: 123915937 n Bug: 124252507 n Bug: 124255113 n Bug: 124392764 n Bug: 124451190 n Bug: 124741358 n Bug: 125795067 n
Change-Id: I4fa280443b9d79cb75e0a809d5da846459c907b0
2019-02-26 11:30:50 -08:00
Sunny Goyal b04dabf7ef Fixing Launcher3QuickStepGoIconRecents build
Change-Id: Ieef3872fbe0ba3e6412fe6fcbfc4e20ac785ab70
2019-02-26 09:43:50 -08:00
android-build-team Robot 020671c177 Snap for 5335706 from 9615cce5d6 to qt-release
Change-Id: I21649eceb90b92a6dc21b11f02ff6b6d3984f0ec
2019-02-26 04:15:38 +00: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