Commit Graph
28165 Commits
Author SHA1 Message Date
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
TreeHugger Robot 8f9830ec05 Merge "Do not draw anying in FloatingIconView if we are not hiding the original icon" into ub-launcher3-qt-dev 2019-04-18 00:56:11 +00:00
Kevin 77f01524bd Fix NPE and make getTask return Optional
Fix an NPE when attempting to update the thumbnail in IconRecentsView.
If the task item is binding the loading UI, it has no task so the app
will crash, so we just need to ensure the task is actually present
first.

While we're here, also change the API to return an Optional<Task> and
make a tighter contract, making it harder to make this mistake in the
future.

Bug: 130746661
Fix: 130746661
Test: Go from app => overview on recents Go
Change-Id: I1402fcd2e58bdeb703c7dcc1b9dcf0d258808b3d
2019-04-17 14:48:21 -07:00
vadimt 6ca4b41b01 Merge "Fix a bug in bitwise logic" into ub-launcher3-qt-dev
am: 58ba7c10ec

Change-Id: Ia58fdb4c867ded99705b0466c7283ad6b778ea02
2019-04-17 14:03:39 -07:00
Jon Miranda 799c54a89a Do not draw anying in FloatingIconView if we are not hiding the original icon
Bug: 129328259
Change-Id: Id4312d692b2a337aefe082e40faec344e76ecabb
2019-04-17 13:52:08 -07:00
TreeHugger Robot 58ba7c10ec Merge "Fix a bug in bitwise logic" into ub-launcher3-qt-dev 2019-04-17 20:31:21 +00:00
vadimt f4d0139a43 Fix a bug in bitwise logic
For an example of the effect, see the bug.

Bug: 130415177
Change-Id: I59ed0c0c1a486653b3df0c601dd9af2a07e719f3
2019-04-17 13:12:04 -07:00
Govinda Wasserman 917af755e4 Makes Launcher hide the all apps content and scrim on assistant visible.
This hides the quick search bar and the suggested apps. Visibility is
unchanged when the all apps view is fully expanded.

Test: Tested locally
Change-Id: I6bc453b5ad89ca3d1280957e595bf2a3f074a72d
BUG:129755311
FIX:129755311
2019-04-17 14:28:15 -04:00
Kevin 60f21a8d3a Fix ViewTreeObserver crash on Recents Go
The view tree we originally attach the onGlobalLayout listener to may no
longer be alive when we get the callback as the view tree observer
merges when the view attaches to a view hierarchy, giving us an
exception. Instead, we should request the view tree observer again and
remove it from there.

Bug: 130740246
Fix: 130740246
Test: Manual test, no longer crashes
Change-Id: Idb982022e72db75b8e20fd5bea00655212dc0258
2019-04-17 11:16:22 -07:00
TreeHugger Robot 194c12aec7 Merge "Fix snapshots not updating on app => overview." into ub-launcher3-master 2019-04-17 00:49:53 +00:00
TreeHugger Robot b06a2a6ccc Merge "Fix views not being visible on Recents Go." into ub-launcher3-master 2019-04-17 00:44:44 +00:00
TreeHugger Robot eeb8cdd87a Merge "Smarter task laying out based off onMeasure" into ub-launcher3-master 2019-04-17 00:24:36 +00:00
Kevin c98f116b77 Smarter task laying out based off onMeasure
Previously laid out via calls to layoutParams. This isn't as optimized
as being baked into the measure + layout system and has the issue of
being less flexible. For example, if the device profile changes (e.g.
orientation change), we'd have to apply new layout params for all the
views. With this CL, we would only need to do this for top-level views
and the children will resolve themselves.

Bug: 114136250
Test: Check layout on marlin + walleye
Change-Id: Iddd503a8844bdde7724d3f804660da61719d5c90
2019-04-16 17:12:46 -07:00
Tony Wickham d8256e54e0 Merge "Don't special case swipe up animation if launcher was visible" into ub-launcher3-qt-dev
am: 3deb42f281

Change-Id: I9605fba44772a690c7ceae88962e227f9795081a
2019-04-16 14:50:24 -07:00
Tony Wickham 3deb42f281 Merge "Don't special case swipe up animation if launcher was visible" into ub-launcher3-qt-dev 2019-04-16 21:19:17 +00:00
Sunny Goyal 47dd148ffe Merge "ShortcutInfo renamed to WorkspaceItemInfo" into ub-launcher3-qt-dev
am: 762d1fc64f

Change-Id: I3e6333f7df25f9244a03dc011ea205e393f7c92b
2019-04-16 13:07:19 -07:00