Commit Graph

33301 Commits

Author SHA1 Message Date
Alex Mang 713cd6fd56 Adding app search improvement flag
Bug: 125027540
Change-Id: I68fd7710b108e9f2fa1f5ff335326585a92deb23
Merged-In: I68fd7710b108e9f2fa1f5ff335326585a92deb23
(cherry picked from commit d27e31995b)
2019-08-14 21:58:57 +00:00
Sunny Goyal 7830db8205 Merging ub-launcher3-qt-r1-dev, build 5800211 am: 26bf127983
am: 04d97d9da3

Change-Id: Ie258f2fa4d31c5af4c54f7caad54c0d85d1eb7aa
2019-08-14 14:44:53 -07:00
Sunny Goyal 04d97d9da3 Merging ub-launcher3-qt-r1-dev, build 5800211
am: 26bf127983

Change-Id: I1b57843c3d753f7441b2a6cb707106cc9c8414b3
2019-08-14 14:37:59 -07:00
Sunny Goyal d8ccc772c3 Merging ub-launcher3-qt-r1-dev, build 5800211
am: 26bf127983

Change-Id: I0382183c7b4acab935dba6877c3879d50d2d0193
2019-08-14 14:37:58 -07:00
TreeHugger Robot 23582eb7c0 Merge "Refactoring some folder binding logic:" into ub-launcher3-master 2019-08-14 21:10:20 +00:00
yingleiw 6f703ccff5 Add directional accessibility page actions to PagedView
am: 02cc848896

Change-Id: Ide8077d5996de0faaec6d1ef0afee0e0e639d889
2019-08-14 13:09:36 -07:00
Becky Qiu 1289197487 Merge "Log the event for swiping up to dismiss a task in Overview." into ub-launcher3-qt-qpr1-dev
am: 22edac9bf5

Change-Id: Iae05c668fecf84c79086cfb6821e9644ac08bb71
2019-08-14 13:09:14 -07:00
Xin Li 5487e82df5 DO NOT MERGE - Merge qt-dev-plus-aosp-without-vendor (5713463) into stage-aosp-master
Bug: 134405016
Change-Id: I279b64afeef1fff82e47faf8a65da7e3454e9604
2019-08-14 12:04:08 -07:00
Sunny Goyal 11a50747ed Refactoring some folder binding logic:
> Moving grid calcutation in a separate class
> Moving content saving logic to folder instead of relying on item bind

Bug: 139051851
Change-Id: I81b226dbebe13652482a767c992e8cc8f4f35a60
2019-08-14 12:03:09 -07:00
Felipe Leme 6e4a1ef16c Fixed PredictionAppTracker as service might not be available on device.
Fixes: 139416391
Bug: 135218095

Test: echo 'in TreeHugger we trust'

Change-Id: Iea89b3d379792327657e01869c9494975e7b0306
(cherry picked from commit 214a45ee02)
2019-08-14 11:20:20 -07:00
yingleiw 02cc848896 Add directional accessibility page actions to PagedView
For PagedView, when isPageOrderFlipped is true, it means the LTR mode is
flipped. For the "recents" in launcher, isPageOrderFlipped is true.
However, this doesn't affect the directional page operations since
scrollLeft()/Right() already has correct Rtl considerations. See
b/78788182 for more information on the LTR mode.

Test: Tested with the "recents" in launcher. Verified that page left
action always move pages to the right (so that the next page from the
left side shows), and page right actions always move pages to the left
(so that the next page from the right side shows). Also tested with the
home screen 1/2, 2/2 paging.
Bug: 136277517

Change-Id: I965d651c37d258eaa8ea347d1ad6f698f9b590bf
2019-08-14 18:05:08 +00:00
Becky Qiu 22edac9bf5 Merge "Log the event for swiping up to dismiss a task in Overview." into ub-launcher3-qt-qpr1-dev 2019-08-14 17:48:45 +00:00
Vadim Tryshev 3cc153813a Merge "Improving screenshot path" into ub-launcher3-qt-qpr1-dev
am: b13fdc8d6f

Change-Id: I13b492655978c173cd2944c81a7d4753f2655494
2019-08-14 10:33:43 -07:00
Vadim Tryshev b13fdc8d6f Merge "Improving screenshot path" into ub-launcher3-qt-qpr1-dev 2019-08-14 17:25:22 +00:00
Felipe Leme 214a45ee02 Fixed PredictionAppTracker as service might not be available on device.
Fixes: 139416391
Bug: 135218095

Test: echo 'in TreeHugger we trust'

Change-Id: Iea89b3d379792327657e01869c9494975e7b0306
2019-08-14 09:53:04 -07:00
vadimt cc5b17b351 Improving screenshot path
Change-Id: If61bbf0bbc8ace31142bc0e2d598d72ce48de360
2019-08-13 17:49:15 -07:00
Samuel Fufa 866ff00eb3 Add a "Dismiss" option for predicted apps in Launcher
Test: LongPress on a pridicted app to see dismiss options.
Bug:139020180
Change-Id: I877863c65def0d845c0ae2f0987fe7a4f6277565
2019-08-13 23:57:11 +00:00
Sunny Goyal 26bf127983 Merging ub-launcher3-qt-r1-dev, build 5800211
Test: Manual

Bug:138881088 P1 Sometimes home gesture mis-interpreted as overview
Change-Id: Ic0b841c32910f77592b4a6eb372751a85350bae5
2019-08-13 16:35:28 -07:00
Sunny Goyal 237441a2b4 Always go to home in case of fling-up am: a2cfc2d95e
am: f3dac0ef13

Change-Id: I3ff8759dcf2134d8d0bc991dff78af57880c137b
2019-08-13 15:08:00 -07:00
Sunny Goyal f3dac0ef13 Always go to home in case of fling-up
am: a2cfc2d95e

Change-Id: I560fd690882998a9b503d5c30eda7f9397db138e
2019-08-13 14:58:45 -07:00
Sunny Goyal a2cfc2d95e Always go to home in case of fling-up
Bug: 138881088
Change-Id: I86bf4c7a495805d5912b102470e72a51e843a222
2019-08-13 11:45:06 -07:00
TreeHugger Robot d21505bcb7 Merge "Moving section names to model, to avoid an unnecessary hashmap" into ub-launcher3-master 2019-08-13 18:24:25 +00:00
TreeHugger Robot 10ed86af1d Merge "Build rule cleanup" into ub-launcher3-master 2019-08-13 00:57:42 +00:00
Alex Mang cdbf19aa60 Merge "Adding app search improvement flag" into ub-launcher3-master 2019-08-12 19:22:25 +00:00
Danning Chen f566d3f5d9 Merge "Create a HotseatPlugin interface." into ub-launcher3-master 2019-08-12 16:58:36 +00:00
android-build-team Robot d4c84f847c Snap for 5794870 from b6fcc1f46e to qt-qpr1-release
Change-Id: Iff69818a3bebf91316df2dda160128e27e4fe631
2019-08-10 23:08:15 +00:00
Danning Chen ba4077d9e0 Create a HotseatPlugin interface.
Change-Id: I382795262433879be4c4360fa12ab5bd1e41a297
2019-08-09 11:37:47 -07:00
Becky Qiu 90ea00b399 Log the event for swiping up to dismiss a task in Overview.
Test: manual
Bug: 137777105

Demo logging for dismissing a task:
  data {
    elapsed_timestamp_nanos: 70772067228810
    atom {
      launcher_event {
        action: DISMISS_TASK
        src_state: OVERVIEW
        dst_state: BACKGROUND
        is_swipe_up_enabled: true
      }
    }
  }

Change-Id: I5569b80e2e1f35661bc5e9e343c6c298791a1ec1
2019-08-09 10:57:05 -07:00
vadimt 3c523040cb Support for memory tests
am: c1a2764a6e

Change-Id: Ife853a32fa9e52f8993d25167af61dabc7fd64b8
2019-08-09 10:40:20 -07:00
Alex Mang d27e31995b Adding app search improvement flag
Bug: 125027540
Change-Id: I68fd7710b108e9f2fa1f5ff335326585a92deb23
2019-08-09 01:51:23 +00:00
android-build-team Robot c87bbeea6b Merge cherrypicks of [9169765, 9170440, 9170173, 9170474, 9170250, 9170251, 9170252, 9170462, 9170463, 9170464, 9170264, 9170422, 9170465] into qt-release
Change-Id: Ibd56f04c2e465a1ddb728e0ef98a900069f5f5a1
2019-08-08 21:26:17 +00:00
Tony a50cf9772a Don't end launcher components anim early even if it does nothing
The janky animation that ends on the home screen with an invisible
task on top is caused by the following scenario (for example):
- Quick switch from task A to task B
- After landing on B, but before we get the callback that it was
  successfully launched, switch back to A (or you could go to C)

Now we are animating back to A, but we are still waiting to hear
whether B was successfully launched. If we hear that the launch
was indeed successful, we dutifully clean up after ourselves  by
returning launcher to its default state. Unfortunately, that
clobbers the current animation that is scrolling back to A, and
we end up in the bad state where we are showing the default
launcher state even though we just launched task B and were
about to launch task A.

Normally we avoid cleaning up the state animation if the user
is still controlling it. The reason we weren't doing that here
is because we ended the launcher animation early even though
the window animation was still running. Instead, we should keep
the launcher animation running for the full duration, so that
it prevents a cleanup from occurring in the middle.

Bug: 138620399
Change-Id: I959e62a52638a5b974ef9b406555078c928b91f1
(cherry picked from commit 03c548901f)
(cherry picked from commit c5555c459b)
2019-08-08 21:25:41 +00:00
vadimt c1a2764a6e Support for memory tests
Change-Id: I867a232a293f7bddbc630f563f18c0db94ac4b6e
2019-08-08 12:03:09 -07:00
Vinit Nayak 268e4ff95c Remove activityInfo from cache on package uninstall
We were keeping stale activityInfo objects from
package manager after an application got uninstalled.
We also were not removing task icons from the
cache after they were removed, which meant killing an
app and then re-opening would put 2 entries in the cache
since the two had unique process IDs.

fixes: 137731960
Test: Download app from play store, open it,
go to overview and observe that correct icon showing.
Uninstall it, download same app again, open it, and
in overview confirm that correct app icon is still showing

Change-Id: Icf482b0ad0ae66c10d52547582d8eeb2a544fb88
2019-08-08 11:11:03 -07:00
Miranda Kephart 96b355c994 Add distance threshold for assistant gesture fling
It was possible to invoke the assistant accidentally. This change
adds a minimum distance threshold before we register a fling (the
same distance as used for drag, 55dp).

Bug: 137106918
Test: manual; tested that accidental flings were much more difficult,
but intentional invocations were still easy to register

Change-Id: I40c8bd43c1a28c7b161467804a1e44746b8e92ef
2019-08-08 15:23:24 +00:00
Hyunyoung Song a68fba3abf Build rule cleanup
Bug: 122333437
Change-Id: Iabb6dcc4e6615112fdf730f41fe39d34fdac8737
2019-08-08 02:02:20 -07:00
android-build-team Robot a29d19e079 Snap for 5788400 from eee1b0df6e to rvc-release
Change-Id: I896ee8869f2670c5a8c02802ab59b9f5c2ea6352
2019-08-08 03:13:12 +00:00
android-build-team Robot 39cfd39938 Snap for 5787825 from 103974c88f to qt-qpr1-release
Change-Id: I0bec4228965fde7c888c7aac21403ac98a8925e1
2019-08-08 03:10:35 +00:00
android-build-team Robot 170c1a15ea Snap for 5788294 from 652ee1e49b to qt-c2f2-release
Change-Id: I5ed696273f27853793703db968079363a36c292e
2019-08-08 03:10:20 +00:00
Tony eee1b0df6e Merge "Don't end launcher components anim early even if it does nothing am: c5555c459b am: dd3198b78b" into qt-r1-dev-plus-aosp am: 8cca88e9ca
am: 902f4bc2b7

Change-Id: Ia71ff893dfaf5b407603848397123fae9576d57b
2019-08-07 18:37:16 -07:00
Tony a0839a4e7f Don't end launcher components anim early even if it does nothing am: c5555c459b am: 652ee1e49b am: e232a2e208
am: f74bf2f7c9

Change-Id: I4bf88f141f2b7e300b2f3069de96423353a27323
2019-08-07 18:36:58 -07:00
Tony bf2c663baf Don't end launcher components anim early even if it does nothing am: c5555c459b am: 652ee1e49b am: b6fcc1f46e
am: d4a769be4c

Change-Id: Ic6dd0c053f1e008fbe7e1e45c86618dc1b9da7c5
2019-08-07 18:36:39 -07:00
Tony 902f4bc2b7 Merge "Don't end launcher components anim early even if it does nothing am: c5555c459b am: dd3198b78b" into qt-r1-dev-plus-aosp
am: 8cca88e9ca

Change-Id: I4731a2a4e9a455a14c6a7ce5ecd6b2abe3028cf9
2019-08-07 18:27:59 -07:00
Tony f74bf2f7c9 Don't end launcher components anim early even if it does nothing am: c5555c459b am: 652ee1e49b
am: e232a2e208

Change-Id: I9d4af81882238a855786244c7edb8ad6d0cc4ed3
2019-08-07 18:27:40 -07:00
Tony d4a769be4c Don't end launcher components anim early even if it does nothing am: c5555c459b am: 652ee1e49b
am: b6fcc1f46e

Change-Id: Ifd316f204b90e4021351ac79d211ed9012e7febe
2019-08-07 18:26:39 -07:00
Android Build Merger (Role) 8cca88e9ca Merge "Don't end launcher components anim early even if it does nothing am: c5555c459b am: dd3198b78b" into qt-r1-dev-plus-aosp 2019-08-08 01:15:48 +00:00
Tony b6fcc1f46e Don't end launcher components anim early even if it does nothing am: c5555c459b
am: 652ee1e49b

Change-Id: I0b1b5dfb8ba3b1483310c4566226f8d0d8578da3
2019-08-07 18:15:37 -07:00
Tony e232a2e208 Don't end launcher components anim early even if it does nothing am: c5555c459b
am: 652ee1e49b

Change-Id: I0981c5f23de9da16720a5f10e6d6fdede74dfc35
2019-08-07 18:15:37 -07:00
Tony 0c14faee6d Don't end launcher components anim early even if it does nothing am: c5555c459b
am: dd3198b78b

Change-Id: I6cc7969dee6600e476182f86252d912541e19076
2019-08-07 18:15:36 -07:00
Tony 652ee1e49b Don't end launcher components anim early even if it does nothing
am: c5555c459b

Change-Id: I46a657c3bce2b034e7f38b91f66acc126055de4a
2019-08-07 18:05:37 -07:00