Commit Graph

34630 Commits

Author SHA1 Message Date
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
vadimt 8e01ddd9b5 Patching null dereference in AbstractFloatingView.getOpenView()
If there is a better solution, bug assignee, please proceed with it.

I'll land this immediately, as a lot of tests are broken.

Bug: 130739123
Change-Id: Iacdb9adbbf41f1f9de1390c3e7525ee0bd7beda6
(cherry picked from commit 5a22ef7e61)
2019-04-19 17:27:05 +00:00
Govinda Wasserman 175b94c4aa Includes Assistant invocation type to gesture invocations
This will allow logging of the way that the Assistant gets triggered as
well as allowing the Assistant to modify its behavior based on how it is
invoked.

Test: Checked value added to bundle
BUG:128982146
Change-Id: I24a276155e0564bba222859b150dc3696979d9b5
2019-04-19 09:53:52 -04:00
android-build-team Robot 8c61404042 Snap for 5485752 from 917af755e4 to qt-release
Change-Id: I2699bbf026b916feb1a8f8814b51aab0976d28a4
2019-04-19 04:24:17 +00: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
Vadim Tryshev 0859e561a8 Merge "Improving TAPL diags" into ub-launcher3-qt-dev
am: 8d513677ea

Change-Id: I3184b068dc147139a8d578f76807d26b8ea8c64d
2019-04-18 12:09:46 -07:00
Jon Miranda 876e1c60a8 Merge "Use ActivityOptions.makeBasic for App Info animation." into ub-launcher3-qt-dev
am: 6492eacaa9

Change-Id: Ic6c060e2b6c67c2633e176ee681f8cb129a8b46f
2019-04-18 12:01:46 -07:00
Vadim Tryshev 8d513677ea Merge "Improving TAPL diags" into ub-launcher3-qt-dev 2019-04-18 19:00:08 +00:00
vadimt 5243d0fff8 Improving TAPL diags
Change-Id: Ic84a65e26c4d05776d7e2acd592bcc227dc86a42
2019-04-18 11:45:20 -07:00
TreeHugger Robot 6492eacaa9 Merge "Use ActivityOptions.makeBasic for App Info animation." into ub-launcher3-qt-dev 2019-04-18 18:41:33 +00:00
Hyunyoung Song aa24159319 Merge "Add overlayable.xml to res" into ub-launcher3-qt-dev
am: 607969bb06

Change-Id: I96f6c474fb50051a4ab672d0dc19f48ac298a0b5
2019-04-18 10:43:28 -07:00
Jon Miranda cd17e6db95 Use ActivityOptions.makeBasic for App Info animation.
Bug: 130442915
Change-Id: I4ca416d7aa27fc8c52fe5fe36384fe5839e83e06
2019-04-18 10:40:31 -07:00
TreeHugger Robot 607969bb06 Merge "Add overlayable.xml to res" into ub-launcher3-qt-dev 2019-04-18 17:34:27 +00:00
Vadim Tryshev 07413dea24 Merge "Patching null dereference in AbstractFloatingView.getOpenView()" into ub-launcher3-qt-dev
am: 44a063a16f

Change-Id: Ic6c2e8c7ab79724e1c08ac6f75aef6c0092de2cf
2019-04-18 08:32:06 -07:00
Vadim Tryshev 44a063a16f Merge "Patching null dereference in AbstractFloatingView.getOpenView()" into ub-launcher3-qt-dev 2019-04-18 15:20:11 +00:00
vadimt 5a22ef7e61 Patching null dereference in AbstractFloatingView.getOpenView()
If there is a better solution, bug assignee, please proceed with it.

I'll land this immediately, as a lot of tests are broken.

Bug: 130739123
Change-Id: Iacdb9adbbf41f1f9de1390c3e7525ee0bd7beda6
2019-04-18 08:18:33 -07:00
Hyunyoung Song 520d9133a3 Add overlayable.xml to res
Bug: 128649657

Add list of drawable/ic_* that can be replaced using RRO via themepicker

Change-Id: I4d4c653b68e6cfa8d6e7449bd040e770cc77f93d
2019-04-18 13:53:06 +00:00
Govinda Wasserman 5ca34bacc8 Makes Launcher hide the all apps content and scrim on assistant visible. am: 917af755e4
am: 5f4e88a2b1

Change-Id: Ief718dd512b3f44e4d974333c75beb047638cba4
2019-04-18 06:12:45 -07:00
Govinda Wasserman 5f4e88a2b1 Makes Launcher hide the all apps content and scrim on assistant visible.
am: 917af755e4

Change-Id: Ie6e3bb024ddb37f63536644db563ab81d2fdb536
2019-04-18 06:08:40 -07:00
Jon Miranda d724acc25f Restore line to make original view invisible when hideOriginal is true.
am: 2d08ca47f6

Change-Id: I5d07b3f08a859eb0840a4deeb5b7293bdbd958e3
2019-04-17 23:03:51 -07:00
TreeHugger Robot 4973ee62c6 Merge "Fix NPE and make getTask return Optional" into ub-launcher3-master 2019-04-18 04:09:23 +00:00
Jon Miranda 2d08ca47f6 Restore line to make original view invisible when hideOriginal is true.
Accidentally removed the entire if statement in
Id4312d692b2a337aefe082e40faec344e76ecabb.

Change-Id: I14f87bc516a85986bbbd305f78e7b60f03a021ba
2019-04-17 18:27:35 -07:00
Jon Miranda c88047b50e Merge "Do not draw anying in FloatingIconView if we are not hiding the original icon" into ub-launcher3-qt-dev
am: 8f9830ec05

Change-Id: Id2591053a2af61670a4c994bd4915c14b0db16fd
2019-04-17 18:08:06 -07:00