Commit Graph

18667 Commits

Author SHA1 Message Date
Kevin cd88cf8d1c Clear all button should not be swipable
Unlike other task items in the recycler view, the clear all button
should not be swipable as you obviously can't remove the button.

Bug: 114136250
Test: Go to recents, attempt to swipe clear all, does not work
Change-Id: I0ab00c03b697f2174431b69bbf758c3ff104db97
2019-04-22 13:11:28 -07:00
Sunny Goyal 1942fabf6f Listening only for "android" package for overlay changes
am: 8b0cb4113f

Change-Id: Iad175d29f655b589bb3f967a7c02b4ec7b672d79
2019-04-22 10:35:58 -07:00
Sunny Goyal 8b0cb4113f Listening only for "android" package for overlay changes
Bug: 130917995
Change-Id: I37160a886a0afdc02dca8f7da6e8aa54c795882d
2019-04-22 09:02:08 -07:00
vadimt 131b0e72c2 Merge "Adding wellbeing toast test" into ub-launcher3-qt-dev
am: bf81b2ca0c

Change-Id: I83dcb903292127d725453a633940fc133bc7e227
2019-04-22 08:42:45 -07:00
TreeHugger Robot bf81b2ca0c Merge "Adding wellbeing toast test" into ub-launcher3-qt-dev 2019-04-22 15:30:28 +00:00
vadimt 736adde1c7 Adding wellbeing toast test
Bug: 130914022
Change-Id: I777440884c122ec040e5e00bfbed41f2eb86b5b0
2019-04-19 19:15:37 -07:00
TreeHugger Robot e575b40437 Merge "Add clear all view that scales off device height" into ub-launcher3-master 2019-04-20 01:49:20 +00:00
TreeHugger Robot 75f5047b92 Merge "Ensure recents scrolled to first task in landscape" into ub-launcher3-master 2019-04-20 01:13:16 +00:00
Kevin 64bb5bbb78 Ensure recents scrolled to first task in landscape
The app should animate to the bottom view which means we should ensure
the bottom view is scrolled to be visible at the bottom when we animate
in. Note that this is only a consideration in landscape since in
portrait, all tasks are always visible and the recyclver view is not
scrollable.

Bug: 114136250
Test: Go to recents Go from app in landscape mode
Change-Id: If4ea35759cc881f2c32565368d031620b62a45dd
2019-04-19 17:46:04 -07:00
Tony 56ae76deb0 Merge "Jump to the nearest page to launch when swiping down on shelf" into ub-launcher3-qt-dev
am: a22c2b5d08

Change-Id: If83d18066c57cf954a6f691f5a580bc332984277
2019-04-19 17:11:01 -07:00
TreeHugger Robot a22c2b5d08 Merge "Jump to the nearest page to launch when swiping down on shelf" into ub-launcher3-qt-dev 2019-04-19 23:48:40 +00:00
Tony 8138888197 Add touch slop before sending home intent from DeviceLockedInputConsumer
am: 72eadbad80

Change-Id: Ic3134feecd4ae21ac6eff8a3277fbc6a2625f40d
2019-04-19 16:47:52 -07:00
Jon Miranda 24833d55c7 Add ListenerView so that we can fast finish the FloatingIconView fade anim.
am: de0093dfa5

Change-Id: I9d7edb00eee2fc45bfc7a79421fa33fcb955b868
2019-04-19 16:47:29 -07:00
Tony 52a0d7712e Jump to the nearest page to launch when swiping down on shelf
Bug: 78240090
Change-Id: I1e26f66242fa3b45a4b6241721f0ff0465770aaf
2019-04-19 16:34:30 -07:00
Tony 72eadbad80 Add touch slop before sending home intent from DeviceLockedInputConsumer
Bug: 128808922
Change-Id: I4eaa5ba627f123022310c23663b6711c0eb62518
2019-04-19 16:32:31 -07:00
Kevin 20e1f17340 Enable landscape mode for Recents Go.
Set rotate state to request rotate on the overview state being enabled

Bug: 114136250
Test: Go to recents go, rotate screen
Test: Go to recents from app
Change-Id: If63bf25f61b873f67986e463a980e6d67a9b5ae4
2019-04-19 16:09:52 -07:00
Jon Miranda de0093dfa5 Add ListenerView so that we can fast finish the FloatingIconView fade anim.
This change allows us to quickly end the animation if the user begins
interacting with launcher before the animation is over. This can currently
happen when the user swipes up to go home, and then quickly swipes up again
to enter overview.

Bug: 129421279
Change-Id: I88c7d55ef8ac09f999c082317de3bb3693c11466
2019-04-19 15:13:10 -07:00
vadimt 68d8e30d96 Merge "Disabling DefaultLayoutProviderTest due to flakiness" into ub-launcher3-qt-dev
am: 0f8c7c0e91

Change-Id: I378758a76f08535fc7db69fb849583d2ce6cf7be
2019-04-19 14:20:21 -07:00
Amin Shaikh 7dca8cd4df Merge "Revert "Add overlayable.xml to res"" into ub-launcher3-qt-dev
am: a87f601cf1

Change-Id: I7300898bb97f646e893e86a78ee4a6cf60ba3132
2019-04-19 14:16:24 -07:00
TreeHugger Robot 0f8c7c0e91 Merge "Disabling DefaultLayoutProviderTest due to flakiness" into ub-launcher3-qt-dev 2019-04-19 21:14:36 +00:00
vadimt 1048100581 Disabling DefaultLayoutProviderTest due to flakiness
Bug: 130562632
Change-Id: I332f06b52e94919612f4cb96e59528886364837f
2019-04-19 13:53:54 -07:00
TreeHugger Robot a87f601cf1 Merge "Revert "Add overlayable.xml to res"" into ub-launcher3-qt-dev 2019-04-19 20:22:30 +00:00
Amin Shaikh 13a229c318 Revert "Add overlayable.xml to res"
This reverts commit 520d9133a3.

Reason for revert: b/130438597#6 outlines why we can't yet check this in.

Change-Id: Id7a00e926b16ca2ffc3396cbfae19c753b4b7ee9
2019-04-19 20:12:00 +00:00
Kevin a2b8ca8830 Add clear all view that scales off device height
Add a custom clear all view that scales its height based off the height
of the device in portrait. This view holds and lays out the actual
button.

Bug: 114136250
Test: Task items + clear all scale to fit flush with screen size
Change-Id: I72b175681c104588970d57cde34cebc0f06b55a0
2019-04-19 13:06:17 -07:00
Vadim Tryshev 91616b1105 Merge "Add more test diags" into ub-launcher3-qt-dev
am: 9ccc21b637

Change-Id: I0c555166162d6b16a18434fea4ccc438648825d8
2019-04-19 12:36:38 -07:00
Miranda Kephart 6582efefdd Merge "Remove obsolete ChipsContainer" into ub-launcher3-qt-dev
am: b177185af2

Change-Id: I05abe9c041605b4806ce0ba8ffe14e410a86c210
2019-04-19 12:35:33 -07:00
Vadim Tryshev 9ccc21b637 Merge "Add more test diags" into ub-launcher3-qt-dev 2019-04-19 19:11:54 +00:00
vadimt 9c3b6bbe04 Add more test diags
Bug: 129434166
Change-Id: I1e2646e2e878eb3f7c93840937b33b2837aa31ac
2019-04-19 11:51:55 -07:00
TreeHugger Robot 00fb36fdab Merge "Remove old recyclerview layout logic" into ub-launcher3-master 2019-04-19 18:45:46 +00:00
TreeHugger Robot 71025d4333 Merge "Calculate task height directly off portrait height" into ub-launcher3-master 2019-04-19 18:42:56 +00:00
Miranda Kephart b177185af2 Merge "Remove obsolete ChipsContainer" into ub-launcher3-qt-dev 2019-04-19 18:35:21 +00:00
Kevin cacf7df2d4 Remove old recyclerview layout logic
Remove old layout logic for recycler view as there is no need for the
recycler view height to change based off device profile. Instead the
task items themselves will change.

Bug: 114136250
Test: Builds
Change-Id: Ia6dae22e3e73fafe46d4adf834bf7d24af36a607
2019-04-19 11:28:06 -07:00
Kevin 3172c6811b Calculate task height directly off portrait height
Change task height calculation implementation to be directly based off
device height in portrait mode. This allows the recycler view
layout manager's job to be simpler while still ensuring that task height
changes dynamically based off device configuration changes.

Bug: 114136250
Test: Go to recents Go, task height is based off portrait mode height
Change-Id: I9c7cada3b89d2b2cea5ece8c357a40ce5974a2e6
2019-04-19 11:25:28 -07:00
Miranda Kephart c8f33f7aca Merge "Don't shrink overview bitmap for chips" into ub-launcher3-qt-dev
am: 6b31012350

Change-Id: I6ee88b65724a50b2a665a4382a4f891258181c0e
2019-04-19 11:25:16 -07:00
Miranda Kephart 6b31012350 Merge "Don't shrink overview bitmap for chips" into ub-launcher3-qt-dev 2019-04-19 18:10:40 +00:00
Miranda Kephart bbc2b688a7 Remove obsolete ChipsContainer
Overview chips are now shown on top of the SuggestView, so there is
no need to implement them separately in Launcher (now they live in
the AiAi UI library).

Change-Id: I49bfdcae7ed5ea3f1c40a539217579dfce5b3172
2019-04-19 14:01:25 -04:00
Kevin 420115e7f1 Fix task adapter notify merge conflict
Resolved merge conflict of ag/7093095 incorrectly and accidentally kept
both HEAD and CL changes. Resolved in this CL.

Test: Manual test
Change-Id: Iad42ab12b486201f496c83f99c8c6094273543f3
2019-04-18 17:03:04 -07:00
Kevin 8659925532 Move clear all to recycler view (2/2)
This finishes moving the clear all button to the recycler view.
Primarily, this CL deals with changes to calls that depended on recycler
children being task item views and starting at the 0th index.

Bug: 114136250
Test: Build, manual test
Change-Id: Icecf257409207de351345997205def11e1048ab0
2019-04-18 16:31:03 -07:00
Kevin 8573ff04b4 Move clear all to recycler view (1/2)
First part of moving clear all button to recycler view.  This CL adds
support in the recycler view adapter for a clear all holder type and
hooks it up to the previous clear all animation.

Adding this breaks several assumptions made externally on the type of
the item and index which will be addressed in the second part.

Bug: 114136250
Test: Builds, testing pending 2nd part
Change-Id: Ib16790028d4e9f520945a987b3dace40d19f2468
2019-04-18 16:19:08 -07:00
TreeHugger Robot 717a03704c Merge "Only switch item animator on content fill if needed" into ub-launcher3-master 2019-04-18 21:59:40 +00:00
Vadim Tryshev 70455cd59b Merge "Adding more icons to Launcher for tests" into ub-launcher3-qt-dev
am: 42c6843ef9

Change-Id: I54eba0a12fd5cc4d40edac21c36f47f94c6f3624
2019-04-18 14:47:19 -07:00
Kevin 035f0d2157 Only switch item animator on content fill if needed
We currently switch to a different recycler view item animator for a
special content fill animation when we have loading item UI up and want
to animate to the actual content. However, it's possible if the task
content loading is fast enough, we may return before the adapter
changes have actually propogated to the recycler view layout. In this
case there is no loading UI to fill and we should not switch item
animators.

Bug: 130820737
Test: Go from app => overview, try to remove, remove animation occurs
properly
Change-Id: Ic95854d04df98023f444daf967c58bdd8177722a
2019-04-18 14:46:32 -07:00
Vadim Tryshev 42c6843ef9 Merge "Adding more icons to Launcher for tests" into ub-launcher3-qt-dev 2019-04-18 21:41:45 +00:00
vadimt 6b9dabc657 Adding more icons to Launcher for tests
Virtual device comes with too few preinstalled icons, so All Apps can't
scroll, which make tests fail.

Change-Id: Ie0901f6d6fe645c530a66c417c0405ef31787543
2019-04-18 14:25:23 -07:00
Adam Cohen 09f976a4b1 Merge "Tune Assistant Gesture" into ub-launcher3-qt-dev
am: f243ca416e

Change-Id: Ic2188ef41de240dc1c1a1b6384b7a304fa2a868d
2019-04-18 13:52:08 -07:00
Adam Cohen f243ca416e Merge "Tune Assistant Gesture" into ub-launcher3-qt-dev 2019-04-18 20:35:48 +00:00
Adam Cohen b117707d31 Tune Assistant Gesture
=> bumping detectable region to 48 dp horizontal + vertical within corner
=> centering detectable angle;  total 70 degrees (ie. btw 10 off the vertical and 10 off the horizontal)
=> pilfering touch events when slop is passed and assistant gesture is engaged
=> Fixing issue where we were incorrectly using “sharedState” causing incorrect handling of gestures subsequent to AssistantTouchConsumer being invoked (it was forgetting to clear it’s input state and hence reporting “active” when it wasn’t). The symptom was that gestures after the AssistantTouchConsumer would never actually move the active window even though state was being updated; you’d feel the Overview haptic.
=> Devices with large corner radii are still somewhat problematic as the initial touch down often lands high on the display (ie. above the 48 dp region).

Change-Id: I3d5761112f4cb8b7b1eee987de5afe9aee260304
2019-04-18 12:54:28 -07:00
Vadim Tryshev 2875b81664 Merge "Enabling continuous testing of all 3 modes of navigation" into ub-launcher3-qt-dev
am: ba0ff3665c

Change-Id: I582b798684e524c74f82c33fd175b6c8aca8b404
2019-04-18 12:47:56 -07:00
Vadim Tryshev ba0ff3665c Merge "Enabling continuous testing of all 3 modes of navigation" into ub-launcher3-qt-dev 2019-04-18 19:36:26 +00:00
vadimt dd0b3624a5 Enabling continuous testing of all 3 modes of navigation
This is likely going to result in flaky tests, but we'll benefit more
from having these tests than not.

We'll track all flakes that are going to pop up as bugs.

Change-Id: I73902a1bce8181d522376ff912e238ec84ef1eed
2019-04-18 12:16:01 -07:00