Commit Graph

18291 Commits

Author SHA1 Message Date
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
TreeHugger Robot ba7d8e2ac4 Merge "Move hints from Go src." into ub-launcher3-master 2019-02-21 20:35:26 +00:00
Kevin 14a97986f0 Remove assist cache from go recents src.
Go recents does not build as it uses the recently removed assist
structure. This finishes the removal for the Go src as well.

Bug: 114136250
Test: Build launcher3GoIconRecents
Change-Id: Ifdb6dacfce72caaf2d072157956e6617338e73b0
2019-02-21 12:07:09 -08:00
Kevin f0c46645ea Move hints from Go src.
Currently, Go icon recents does not build because the shared hints src
uses resources only available in recents_ui_overrides. This fixes the
issue by moving out hints from the shared source to
recents_ui_overrides as Go recents will not use hints.

Bug: 114136250
Test: Build NexusLauncher, l3GoWithQuickstep
Change-Id: If416d6e45f1b390b76c195a9ecd89c4779e2281b
2019-02-21 12:00:57 -08:00
TreeHugger Robot 6c396fdf61 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2019-02-21 17:35:30 +00:00
Bill Yi 8a924860a8 Import translations. DO NOT MERGE
Change-Id: If286ea171fe2d58b96ce77d0fee6053bd40d9f78
Auto-generated-cl: translation import
2019-02-21 08:23:37 -08:00
Sunny Goyal 4ee9b79a68 Using cachedEventDispatcher when swiping up on homescreen
Change-Id: I483030099a1b265bfa4df0e9fc0dabe101cc6797
2019-02-20 15:54:07 -08:00
Sunny Goyal 6dc4cb9092 Adding utility class to debug binder calls on UI thread
Change-Id: Ic25b788f3f8c9b01b986f148d9d4a568a610f8d5
2019-02-20 15:39:12 -08:00
TreeHugger Robot 9c5b0ed372 Merge "Passing all events to RecentsView instead of passing the calculated velocity" into ub-launcher3-master 2019-02-20 21:54:49 +00:00
Sunny Goyal 4bb8b06ef3 Passing all events to RecentsView instead of passing the calculated velocity
Velocity tracker is able to calculate the velocity using cached copy of motionEvent
as long as the event as correct timeStamp

Change-Id: I2b0f612e010fdfcf144d5bed928c5a96b36f3ac7
2019-02-20 13:45:27 -08:00
Miranda Kephart 1a359a261d Add hints in Overview
If the ENABLE_HINTS_IN_OVERVIEW flag is enabled, pulls chip hint
data (currently from the NavBarHint plugin; eventually from AiAi)
and shows the chips between the task view screenshot and the QSB.

Screenshot: https://screenshot.googleplex.com/Ww05W13XjBv

BUG:124390101

Change-Id: I7686673b705257eca31f2fa40e2744e197153c7c
2019-02-20 15:17:03 -05:00
TreeHugger Robot 7b4215d633 Merge "Removing support for capturing assist structure on swipe up" into ub-launcher3-master 2019-02-20 00:15:48 +00:00
TreeHugger Robot 774f825b04 Merge "Moving some recents controller methods into wrapper class and better tracking the controller states" into ub-launcher3-master 2019-02-20 00:12:59 +00:00
Tony Wickham 39b6378255 Merge "Only stabilize tasks during quick switch session" into ub-launcher3-master 2019-02-20 00:01:47 +00:00
TreeHugger Robot d0d8e2c6d2 Merge "Implement fallback recents activity for Go" into ub-launcher3-master 2019-02-19 23:26:53 +00:00
Sunny Goyal 74e4fea394 Removing support for capturing assist structure on swipe up
Change-Id: I381b4d1254cd9ced30b5d2a873dbe0736b2924ee
2019-02-19 15:12:33 -08:00
Sunny Goyal 77ee7f1e58 Moving some recents controller methods into wrapper class and better tracking
the controller states

Change-Id: I561cd74dde0a49f5734cbc7fe6930703b7e998dd
2019-02-19 15:10:12 -08:00
Tony 60ac5d2b34 Only stabilize tasks during quick switch session
- A stabilization session starts when going to a new task via a quick switch
- A stabilization session ends after 5 seconds on the same task or when completing
  a gesture to go to home or overview
- We track the system task order and copy it for the duration of the stabilization session
- After the session ends, we switch back to the system task order
- Remove ENABLE_TASK_STABILIZATION flag (and also QUICK_SWITCH)

Bug: 111926330
Change-Id: I2c18dff2d20ad02b73a4935ac534e9fc9f5f49c0
2019-02-19 14:54:23 -08:00
TreeHugger Robot f913db949e Merge "Removing support for long swipe to all-apps" into ub-launcher3-master 2019-02-19 22:53:00 +00:00
Kevin 750bbe08da Implement fallback recents activity for Go
Implement recents activity for Go for when the default launcher does not
have recents implemented. To do this, we factor out some common recents
activity functionality from RecentsActivity and extend it to make a Go
specific activity that pops in the icon recents fragment.

Bug: 114136250
Test: Manual test NexusLauncher and Launcher3QuickstepGo by installing a
quickstep-less launcher and setting it to default
Change-Id: I936568489e8966da4a62e4b779ae660a220f2aeb
2019-02-19 14:12:42 -08:00
Tony Wickham 8d7778fa37 Merge "Dispatch ACTION_POINTER_UP to recents view" into ub-launcher3-master 2019-02-19 21:47:06 +00:00
Sunny Goyal 3432a2afa5 Removing support for long swipe to all-apps
Change-Id: I29e6b2d283126e584de6e49b6f658c153d582d6b
2019-02-19 13:07:37 -08:00
TreeHugger Robot 06ed106de2 Merge "Some live tile and state fixes" into ub-launcher3-master 2019-02-19 20:24:21 +00:00
Tony Wickham aa66a288c3 Dispatch ACTION_POINTER_UP to recents view
Bug: 123539954
Change-Id: I298599445d644eb82e05a116ce85425d239839fe
2019-02-19 11:35:25 -08:00
Winson Chung 201840ba23 Merge "Disable Launcher when starting in a managed profile" into ub-launcher3-master 2019-02-19 18:38:56 +00:00