Commit Graph
78507 Commits
Author SHA1 Message Date
Kevin e47543d03f Update Go recents visibility based off adapter
View visibility should be based off adapter since that's what the layout
items are based off of.

Bug: 130440957
Test: Loading UI is shown when going to recents Go
Change-Id: I1f167553b6fdce757865c739b9793b63a20e7f57
(cherry picked from commit f1a47a0fe6)
2019-04-23 19:23:57 +00:00
Kevin 29cdac41f1 Animate content fill animation to Recents Go
This CL adds the animation that occurs when transitioning from a set of
empty views to the actual task list after it is loaded. This is done by
setting a one-shot item animator that animates changes, for item views
that fade from empty to filled, and removes, for when we have too many
empty views.

Bug: 114136250
Test: Artificially increase task list load time and see animation fill
Change-Id: Ibbc09db702e591063ceea61df2359f18a3fcf8f9
(cherry picked from commit 987799dfa1)
2019-04-23 19:23:44 +00:00
Kevin 1060a0d7fc Animate to bottom view in app => overview
We always want to animate to the bottom so we should just do that if we
have the view laid out even if at the time the app task doesn't actually
match the view.

Bug: 114136250
Test: Go to recents, press overview twice quickly, see it animate
correctly
Change-Id: I0516ef127ff6ef0f865c85314c9ffe4a7c6ef9e3
(cherry picked from commit 86957f28ff)
2019-04-23 19:23:25 +00:00
Kevin 6f927ecd8e Differentiate empty UI from default in recents Go
Use the "empty" drawable as the initial UI until the recents task list
and order is loaded, then switch to default/filled UI.

Bug: 114136250
Test: Manual test; see empty UI when loading takes time
Change-Id: I85b72e6d40d7224b28217cbf4e05515ec1e9451b
(cherry picked from commit a2c4200cde)
2019-04-23 19:22:42 +00:00
Kevin 2ee78b7310 Add task content animation property
Add API to animate task item content transition from one set of task
content (icon, thumbnail) to another. To do this, we provide two things
to the caller: startContentAnimation which allows the caller to set the
icon, thumbnail, and label to animate to and the
CONTENT_TRANSITION_PROGRESS property which the caller can use to control
the transition progress.

We will eventually hook this up to onBindViewHolder for the task adapter
when there is a data change event to prepare to animate content in.
Currently it still changes immediately.

Bug: 114136250
Test: Builds
Change-Id: I16e9b757ee91be54fe8cba6780b399e3cc313e3e
(cherry picked from commit a3d80d102e)
2019-04-23 19:21:58 +00:00
vadimt d518364d53 Add tracing for non-loading model
Bug: 131170582
Change-Id: Iffc3f5f38ce896c4cfd2df55bedcf43e2018a58f
2019-04-23 12:10:44 -07:00
Tony Wickham 12e8a34ef6 Move system gesture exclusion rect to LauncherRootView
We translate DragLayer when going to -1, so the exclusion rect was off
screen when you went back from there.

Bug: 129297464
Change-Id: Ie079b2dadaca07886408ee9c1d130d7ac351a61d
2019-04-23 11:52:50 -07:00
Govinda Wasserman b3f6c1cb7d Makes Launcher hide the all apps content and scrim on assistant visible.
am: c06e151e0f

Change-Id: I6e9edb16629ed0895b887d016ff503f8943bf837
2019-04-23 11:03:54 -07:00
Govinda Wasserman e8cb3bbb65 Includes Assistant invocation type to gesture invocations
am: e7cb1fca34

Change-Id: Ie7876ea48820e3631af4ace4b9f002363a9608bd
2019-04-23 10:28:42 -07:00
Govinda Wasserman c06e151e0f 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
(cherry picked from commit 917af755e4)
2019-04-23 17:20:37 +00:00
Govinda Wasserman e7cb1fca34 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.

BUG:128982146
Change-Id: I5c7d6f317baeac3835a2ea193fe64856419dc2c4
2019-04-23 12:57:47 -04:00
Kevin 7b42d2287a Fix transition progress not applying to drawables
TaskLayerDrawable should reapply UI changes from the transition progress
when there is a new drawable. In addition, the transition should check
if the drawable in the front and back are the same (i.e. on
initialization when both are showing the empty drawable) so that it only
applies the front-drawable alpha.

Bug: 114136250
Test: Builds
Change-Id: I74836b5043da555358742ba0a3f46f170f590904
(cherry picked from commit 1531982d1e)
2019-04-23 09:27:46 -07:00
Kevin fbe9182b75 Change layout anim from Animation => Animator
Change the layout animation to use animators instead of the built-in
animation-based layout animation. Animator-based animations are more
flexible and can act on the view properties themselves, making it
easier to deal with if we need to cancel the animation later from a
conflicting animation (i.e. we find out we need to animate a view
out).

Bug: 114136250
Test: Go to recents, see items animate in
Change-Id: Id8227cd50e81999cac98912ac58cd2d6864c40af
(cherry picked from commit 26ad999b10)
2019-04-23 09:26:52 -07:00
Kevin 6092a6ee1e Add drawable for default thumbnail for Recents Go
This CL adds a drawable for the default thumbnail view and
refactors the logic to get the default icon/thumbnail/label if
null to separate methods for re-use in later CLs.

Bug: 114136250
Test: Manual; Go to icon recents
Change-Id: I511ea40ace040fc53ffc69c27149f24d69bda7b0
(cherry picked from commit 34ee30c4f9)
2019-04-23 09:25:54 -07:00
Siarhei Vishniakou dff3beb6b9 Use GestureDetector in WorkspaceTouchListener
Replace the current callback logic in WorkspaceTouchListener with the
use of GestureDetector.
Platform-provided api will now be used  for detecting long press.

Test: long press on empty home screen
Bug: 126596502
Change-Id: I5beb9158ee0d9ec6ac031465f15923eed2d5f066
2019-04-23 10:00:59 -05:00
android-build-team Robot 5a22203378 Snap for 5495412 from d89298d659 to qt-release
Change-Id: Ic0ce7c64b46dcf544897abf48e90320c8718a941
2019-04-23 03:12:18 +00:00
android-build-team Robot fceafdd26b Snap for 5495088 from 0f92864597 to rvc-release
Change-Id: Ib4974061f031604008ae1258c308f16454729135
2019-04-23 03:10:28 +00:00
Kevin 2804830c1a [automerger skipped] Merge "Add task layer drawable class for Recents Go." into ub-launcher3-qt-dev
am: 3cccc666b6 -s ours
am skip reason: SHA1 3cccc666b6 skipped by user kevhan

Change-Id: I5b70cf2f76fe5a754ab2c59eaa0ac014e7509632
2019-04-22 18:36:07 -07:00
TreeHugger Robot 3cccc666b6 Merge "Add task layer drawable class for Recents Go." into ub-launcher3-qt-dev 2019-04-23 01:16:56 +00:00
Vadim Tryshev f7915a410d Merge "Annotating ignored tests with requests to enable them" into ub-launcher3-qt-dev
am: 2e63330386

Change-Id: I953e5509e879fb713291c8d1bc78406d29cdefcb
2019-04-22 18:07:04 -07:00
Vadim Tryshev 2e63330386 Merge "Annotating ignored tests with requests to enable them" into ub-launcher3-qt-dev 2019-04-23 00:56:56 +00:00
vadimt a585e5ca0b Small cleanup in StartLauncherViaGestureTests
am: 736982d74b

Change-Id: I81bdf0f1dfc1ee80a980b1283a668eee66a689fe
2019-04-22 17:56:54 -07:00
Kevin e6e1463ed2 Add task layer drawable class for Recents Go.
Add a custom drawable class that provides a hook to the caller to
control a crossfade animation between two drawables. This will be
helpful going forward to sync up all the animations to the controller.

Note that this CL only adds the class and does not replace the current
implementation.

Bug: 114136250
Test: Builds
Change-Id: I3cc6be79cb2ca5d64c8cc2945ff7f2ebd49632b6
(cherry picked from commit bb956bd028)
2019-04-23 00:42:49 +00:00
vadimt 677abe2117 Annotating ignored tests with requests to enable them
Bug: 117106893
Change-Id: Ib8e578913ceebee44a507b5e333e7da07c6120d0
2019-04-22 17:34:29 -07:00
vadimt 736982d74b Small cleanup in StartLauncherViaGestureTests
Bug: 117106893
Change-Id: Iba0a571dd1c20a776fcbe1f305f163cada22befb
2019-04-22 17:09:10 -07:00
Vadim Tryshev 0b15a465f6 Merge "Not using browser app in testing. It may not start." into ub-launcher3-qt-dev
am: b226f28a8c

Change-Id: I9bb3d1057d106a511d0cc53958b31a878bf7056d
2019-04-22 16:35:11 -07:00
TreeHugger Robot bb9c22a215 Merge "Clear all button should not be swipable" into ub-launcher3-master 2019-04-22 23:29:37 +00:00
Sunny Goyal d28d881329 Merge "Removing ShortcutInfoCompat and directly using ShortcutInfo" into ub-launcher3-qt-dev
am: 67e52822a4

Change-Id: I93741c0de878d130d02edc3ff1ddb90f7468eb1b
2019-04-22 16:00:56 -07:00
Vadim Tryshev b226f28a8c Merge "Not using browser app in testing. It may not start." into ub-launcher3-qt-dev 2019-04-22 22:58:32 +00:00
Matthew Ng 69a329e79e Removing left over experimental overlays and frame width (2/2)
Frame width is not used because navigation bar is always on the bottom.

Test: manual
Bug: 113952590
Change-Id: I48c29ffa4ca982a7aa20e2cced019e50580fe302
2019-04-22 15:53:38 -07:00
TreeHugger Robot 67e52822a4 Merge "Removing ShortcutInfoCompat and directly using ShortcutInfo" into ub-launcher3-qt-dev 2019-04-22 22:51:27 +00:00
Vadim Tryshev ce19bdd101 Merge "Logging TAPL interaction model" into ub-launcher3-qt-dev
am: d5f95bf852

Change-Id: Ibd6b4870b9a8aba4f29fc0ee580a9724f7d0bf91
2019-04-22 15:41:46 -07:00
Sunny Goyal 6bbf6004f8 Removing ShortcutInfoCompat and directly using ShortcutInfo
Change-Id: I2842689e192a206c0d31558c8126eae1c7904598
2019-04-22 15:39:40 -07:00
vadimt 1256912237 Not using browser app in testing. It may not start.
Change-Id: I48b129d84ea9cf8f97193bcb769ba20738046ef5
2019-04-22 15:36:18 -07:00
Vadim Tryshev d5f95bf852 Merge "Logging TAPL interaction model" into ub-launcher3-qt-dev 2019-04-22 22:15:11 +00:00
Vadim Tryshev 17d5a4fb16 Merge "Verifying that test initialization switched to workspace" into ub-launcher3-qt-dev
am: e028324d0a

Change-Id: Ibb189e7b56fa6c25e2ee8bc4d55742b14e6e3ee9
2019-04-22 14:57:37 -07:00
Vadim Tryshev e028324d0a Merge "Verifying that test initialization switched to workspace" into ub-launcher3-qt-dev 2019-04-22 21:42:09 +00:00
vadimt a7cb479954 Logging TAPL interaction model
Change-Id: I7c44d1b145677919991338fa87e736712587a695
2019-04-22 14:41:12 -07:00
TreeHugger Robot a3a03038dc Merge "Use custom drawable for Recents Go thumbnails (1/2)" into ub-launcher3-master 2019-04-22 21:08:22 +00:00
vadimt 24c7c0af98 Verifying that test initialization switched to workspace
Change-Id: I4d33f831a6fbb6632dc21d056fb239d9d1dcddd8
2019-04-22 14:07:23 -07:00
Govinda Wasserman 0f92864597 Merge "Includes Assistant invocation type to gesture invocations" into qt-dev am: d89298d659
am: 50c0fa4123

Change-Id: I6452a71acf2b3c80772504cf03340c02b8ca5608
2019-04-22 13:14:52 -07:00
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
Govinda Wasserman 50c0fa4123 Merge "Includes Assistant invocation type to gesture invocations" into qt-dev
am: d89298d659

Change-Id: I3cd874bb4175021ffd113ff60191cabee055b330
2019-04-22 12:52:40 -07:00
Sunny Goyal 3335748b31 Merge "Skip state animation if animations are disabled" into ub-launcher3-qt-dev
am: f31848fe8d

Change-Id: I814010b97d71e400a00cd8439efdcf6606fe5c3a
2019-04-22 12:39:45 -07:00
TreeHugger Robot f31848fe8d Merge "Skip state animation if animations are disabled" into ub-launcher3-qt-dev 2019-04-22 19:36:44 +00:00
Vadim Tryshev 1901b92fc4 Merge "Adopt shell permission only to set and unset time limit." into ub-launcher3-qt-dev
am: 4c8d7a0401

Change-Id: Id226c9a9acbc9f9daba7d5eccc6f6bf407649626
2019-04-22 12:30:40 -07:00
vadimt 6d1bbbcd40 Disabling all DefaultLayoutProviderTest tests
am: 2ff40b0cfb

Change-Id: I09f0f77e6aa86e5e260aa8df23752f36d091bf3d
2019-04-22 12:24:29 -07:00
Vadim Tryshev 4c8d7a0401 Merge "Adopt shell permission only to set and unset time limit." into ub-launcher3-qt-dev 2019-04-22 19:20:10 +00:00
Kevin 518ff10856 Use custom drawable for Recents Go thumbnails (1/2)
In order to support rotated thumbnails based off the device orientation,
we should create a custom drawable that supports drawing a rotated
bitmap based off some requested orientation. This CL adds this class,
and we'll use it in a later CL.

By baking this directly into the drawable, we prevent unnecessary
allocations of rotated bitmaps.

Bug: 114136250
Bug: 131095241
Test: Builds
Change-Id: Ib4e83e3619028c583e10f1b8d743a365ec310346
2019-04-22 12:08:40 -07:00
Govinda Wasserman d89298d659 Merge "Includes Assistant invocation type to gesture invocations" into qt-dev 2019-04-22 18:48:29 +00:00