Commit Graph

33301 Commits

Author SHA1 Message Date
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
vadimt b647866cd0 Adopt shell permission only to set and unset time limit.
We don't want this permission to "help" Launcher with calling other
APIs.

Bug: 130914022
Change-Id: I649dede958aa6e4a67ccf332151a15cad53b0e9f
2019-04-22 11:32:43 -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
vadimt 2ff40b0cfb Disabling all DefaultLayoutProviderTest tests
See the bug for details. The problem is probably in
DefaultLayoutProviderTest.writeLayout.

Bug: 130562632
Change-Id: Ic1a14c9dd3cac4a4cf644c6bc9619d631295f92b
2019-04-22 10:32:21 -07:00
Sunny Goyal 7368fa4369 Skip state animation if animations are disabled
> Also update the animation disabled check to use new-API

Bug: 118678948
Change-Id: Ib709844e34bdb7e369b368a7c33f2e8ff120024b
2019-04-22 10:00:01 -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