Commit Graph

30372 Commits

Author SHA1 Message Date
Winson Chung 87f2b09072 Merging from ub-launcher3-master @ build 6925377
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6925377.html

Change-Id: I928b100c8f41abff34047df69d988622123f9939
2020-10-23 10:16:50 -07:00
Winson Chung f99351888c Revert "Revert "Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' ...""
This reverts commit 087a9e39b6.

Change-Id: I05b17a6e4aaaef6de3c2fa26aad45a39eb2833f9
2020-10-23 09:27:48 -07:00
Hongwei Wang fd2dac816b Merge "Improve PIP enter transition w/ gesture nav (3/N)" 2020-10-23 16:09:31 +00:00
TreeHugger Robot 4c3952dc60 Merge "Minor stylistic changes in Workspace.java." into ub-launcher3-master 2020-10-23 00:27:39 +00:00
Pinyao Ting cb403d9e52 flip default value of minimal device feature flag
Test: manual
Change-Id: Iaf46dffb935bdf4b46e7c57d547bdc697250ec56
2020-10-22 16:07:08 -07:00
Tracy Zhou a97557a15e Merge "Consider overscroll adjustment of RecentsView for live tile" into ub-launcher3-master 2020-10-22 18:22:56 +00:00
Hongwei Wang e4bc2af04b Improve PIP enter transition w/ gesture nav (3/N)
Directly transition Activity to PiP mode in launcher if the Activity
claims auto-pip support. Video is taken by commenting out the
requirement of setting the auto-pip flag.

Note that we need app to actively push up-to-dated
PictureInPictureParams to the framework, otherwise we won't be get
- PictureInPictureParams on first entering
- Staled PictureInPictureParams if the aspect ratio is changed

Video: http://rcll/aaaaaabFQoRHlzixHdtY/abenIxLFI1pZzF2O8t4TbS
Bug: 143965596
Test: see demo videos
Change-Id: Iea9a6ff39a79431ac1afa14aea812c500b3ca3b2
2020-10-22 11:17:52 -07:00
Marcin Oczeretko 0ee7ffca7f Update LatencyTracker usage in Launcher
Test: manual - flashed the phone and verified the logging and statsd sampling with default settings
Bug: 131859447, 162927074
Change-Id: I2d0c9fd479654c62841c714eb39f88f84e8ab114
2020-10-22 09:45:27 +00:00
Tracy Zhou 932a327ebf Consider overscroll adjustment of RecentsView for live tile
Fixes: 171450807
Test: manual
Change-Id: I83eebf1f6b61c67f289db51aabe5a971815d0df1
2020-10-21 23:29:00 -07:00
Hilary Huo f5ce80b8a0 [pixel-search] Latency analysis, add logging statement in launcher
Bug: b/170675311
Change-Id: I229ace399085bea1c3f9535eb713edd329dff8bd
2020-10-21 18:00:06 -07:00
Tracy Zhou 31b03941ef Merge "Track live tile better by considering resistance animation" into ub-launcher3-master 2020-10-21 20:03:57 +00:00
Tracy Zhou 0731273d54 Track live tile better by considering resistance animation
Fixes: 170338029
Test: Manual
Change-Id: I66536bae567aa94385d5e0352cec9d46d512927a
2020-10-21 12:03:40 -07:00
Alex Chau e0a50c9e3f Merge "Use Diplay.getMetrics in DisplayController" into ub-launcher3-master 2020-10-21 17:02:57 +00:00
Tracy Zhou d2c27a5950 Merge "[Live Tile] Support launching running task animation" into ub-launcher3-master 2020-10-21 07:19:48 +00:00
Tracy Zhou 8b488ccc2e [Live Tile] Support launching running task animation
Fixes: 170338170
Test: manual
Change-Id: I2526b7cfbacaea7899b8e2ed233f913630071d36
2020-10-20 23:42:44 -07:00
Andy Wickham 70e8b15721 Minor stylistic changes in Workspace.java.
Change-Id: Ib07611f27cbc427d11abccd8b74ea144485752f7
2020-10-20 15:36:18 -07:00
Treehugger Robot 8db774b833 [automerger skipped] Merge "Merge redfin/bramble support." am: 01e833073e -s ours am: 75338fd4ab -s ours am: 6f57774d22 -s ours am: 8e3aa20a0e -s ours
am skip reason: Change-Id I93903c258f834a9e9537b88882d77a6660482638 with SHA-1 2ef7e39983 is in history

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1465939

Change-Id: I9055a5378ae26bea550fdd1c94838d8d43f1d9aa
2020-10-20 21:08:02 +00:00
Treehugger Robot 8e3aa20a0e [automerger skipped] Merge "Merge redfin/bramble support." am: 01e833073e -s ours am: 75338fd4ab -s ours am: 6f57774d22 -s ours
am skip reason: Change-Id I93903c258f834a9e9537b88882d77a6660482638 with SHA-1 2ef7e39983 is in history

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1465939

Change-Id: Icaa64e02aa1daad17f419196c5052184c00e9486
2020-10-20 20:18:20 +00:00
Treehugger Robot 6f57774d22 [automerger skipped] Merge "Merge redfin/bramble support." am: 01e833073e -s ours am: 75338fd4ab -s ours
am skip reason: Change-Id I93903c258f834a9e9537b88882d77a6660482638 with SHA-1 2ef7e39983 is in history

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1465939

Change-Id: Id0a423d4ba56a56c311d17aaf3c130ef09a4e9fd
2020-10-20 19:34:01 +00:00
Alex Chau acfac6187d Use Diplay.getMetrics in DisplayController
- This is a workaround of b/163815566, where DisplayMetrics is stale
  when onDisplayChanged is called.
- Instead of relying on stale DisplayConext, get the DisplayMetrics
  from the Display directly.
- Also optimized how DisplayController.Info is created by passing in
  Display only
- Use mDisplayContext.getDisplay directly if availalbe

Bug: 163815566, 160544577
Test: DPI looks correct on device boot
Change-Id: I2a7454bb8cf2073ce592e8662781b87fc998444f
(cherry picked from commit 177c38243dc3bf245d1f7db3c265dfb56522f441)
2020-10-20 20:19:57 +01:00
Treehugger Robot 75338fd4ab [automerger skipped] Merge "Merge redfin/bramble support." am: 01e833073e -s ours
am skip reason: Change-Id I93903c258f834a9e9537b88882d77a6660482638 with SHA-1 2ef7e39983 is in history

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1465939

Change-Id: Ib03e45e36f9145f9e9acb7959a00fc72661762c5
2020-10-20 19:03:47 +00:00
TreeHugger Robot ff8febabb0 Merge "Makes Plugin Settings gear adjust to dark mode." into ub-launcher3-master 2020-10-20 17:46:09 +00:00
Hyunyoung Song b03d2b4161 Merge "Search query method should support multiple consumers" into ub-launcher3-master 2020-10-20 15:25:56 +00:00
Schneider Victor-tulias fb79f5541d Merge "Add the ability to specify a list of tutorial steps in the gesture sandbox tutorial intent." into ub-launcher3-master 2020-10-20 13:51:06 +00:00
Hyunyoung Song f6b05068d9 Invert the badging
Bug: 171171594
Change-Id: If84fdc03254105c843e16f39f479505b16e1cd5f
2020-10-20 00:19:29 -07:00
Hyunyoung Song caa1e9c399 Search query method should support multiple consumers
Bug: 170488559
Change-Id: I64bef9523d3c3950c4ca3a4b9ce1d506d1672200
2020-10-19 22:09:10 -07:00
Andy Wickham 1027468233 Makes Plugin Settings gear adjust to dark mode.
It wasn't visible in dark mode before because it was
black on black. This makes it adjust automatically.

Change-Id: I5176cffc01842509ddafc4f30ff5029a0c4b8050
2020-10-19 19:06:52 -07:00
Treehugger Robot 01e833073e Merge "Merge redfin/bramble support." 2020-10-19 23:20:08 +00:00
TreeHugger Robot 744a0fbeae Merge "Call click event on IME quick select for SearchResultIcon" into ub-launcher3-master 2020-10-19 22:17:26 +00:00
TreeHugger Robot 29c79947ec Merge "Removing condition for CUJ tracing/metrics" into ub-launcher3-master 2020-10-19 18:42:05 +00:00
Samuel Fufa 71f24588c0 Call click event on IME quick select for SearchResultIcon
Bug: 171131394
Change-Id: I8a703e8d0ca10570e3f774510610d3fb4c0eaab8
2020-10-19 10:19:31 -07:00
Xin Li 44d6bb7d21 Merge redfin/bramble support.
Bug: 171218636
Merged-In: I93903c258f834a9e9537b88882d77a6660482638
Change-Id: I189617bec65de28e012bcda724ea06b5c350e481
2020-10-19 10:08:22 -07:00
Samuel Fufa 13a2a010de Handle IME event for SearchResultIcon
Bug: 171131394
Test: Manual
Change-Id: I2ed1c61053c78aaecc3324418229d69634a72ae4
2020-10-18 21:19:57 -07:00
Samuel Fufa 1f79eeda76 Remove hardcoded itemTypes from SearchTarget
- Introduces componentName and userHandle members to SearchTarget
- SearchTargetEvent now has searchTarget member
- Builder pattern for SearchTarget and SearchTargetEvent
- Search backend should add headers manually instead of launcher inferring sections

Bug: 171026321
Test: Manual
Change-Id: I28e0455e82b925277a17703b9aa061c8f9f15262
2020-10-17 15:41:45 -07:00
vadimt a68ac3e5dd Removing condition for CUJ tracing/metrics
Is doesn't reflect whether jank monitors is collecting metrics,
which will eventually be always true anyways.

Change-Id: Iaebdc838ed2b2cebd32c8c48d7e45bdd93f76fb4
2020-10-16 10:48:28 -07:00
Sunny Goyal 9228ff53c2 Trimming activity and task label
Bug: 170648272
Change-Id: Icd099acee65305e0aa0f98a2a301a0df8a27cf07
2020-10-16 17:10:33 +00:00
TreeHugger Robot 7a09177e50 Merge "Setup SearchResultIcon for single cell results" into ub-launcher3-master 2020-10-15 22:36:14 +00:00
Pinyao Ting 0960b45dbc Fix the issue where shortcuts are removed in minimal device mode
When loading the workspace, Launcher pins/unpins shortcuts in comply
with the loaded workspace. Since minimal device mode creates a mostly
empty workspace, existing shortcuts are getting unpinned as a result.

To mitigate the issue this CL compares the db name and only invoke
sanitizeData when it matches the one defined in InvariantDeviceProfile.

Bug: 170611866
Test: manual
1. add some deep shortcut in workspace (e.g. long tap on chrome, drag
"incognito tab" to workspace)
2. opt-in to sunshine fishfood (g/sunshine-teamfood)
3. enable bedtime mode with minimal device in Settings -> Digital
Wellbeing -> Show Your Data -> Bedtime mode -> Customize -> minimal
device
4. toggle bedtime mode, wait for apps in minimal device to show, then
toggle off bedtime mode
5. verify the deep shortcut still exist

Change-Id: Ie18216ecb288e7481aa2404c4cb3ea418aee85cb
(cherry picked from commit 702ed27886)
2020-10-15 22:07:14 +00:00
TreeHugger Robot 37ed5ead39 Merge "Fix the issue where shortcuts are removed in minimal device mode" into ub-launcher3-master 2020-10-15 22:06:12 +00:00
Samuel Fufa 314761a808 Setup SearchResultIcon for single cell results
SearchResultIcon will be able to render apps, shortcuts and remote actions. It can also handle its own focused state drawing.

Screenshot: https://screenshot.googleplex.com/C3KgjJtLQTBPgaf

Bug: 170752716
Test: Manual
Change-Id: I460a9c128ea3f5814784e342c5d5fa5b7e310882
2020-10-15 14:32:19 -07:00
Pinyao Ting 702ed27886 Fix the issue where shortcuts are removed in minimal device mode
When loading the workspace, Launcher pins/unpins shortcuts in comply
with the loaded workspace. Since minimal device mode creates a mostly
empty workspace, existing shortcuts are getting unpinned as a result.

To mitigate the issue this CL compares the db name and only invoke
sanitizeData when it matches the one defined in InvariantDeviceProfile.

Bug: 170611866
Test: manual
1. add some deep shortcut in workspace (e.g. long tap on chrome, drag
"incognito tab" to workspace)
2. opt-in to sunshine fishfood (g/sunshine-teamfood)
3. enable bedtime mode with minimal device in Settings -> Digital
Wellbeing -> Show Your Data -> Bedtime mode -> Customize -> minimal
device
4. toggle bedtime mode, wait for apps in minimal device to show, then
toggle off bedtime mode
5. verify the deep shortcut still exist

Change-Id: Ie18216ecb288e7481aa2404c4cb3ea418aee85cb
2020-10-15 12:56:44 -07:00
Schneider Victor-tulias cf0b275a48 Add the ability to specify a list of tutorial steps in the gesture sandbox tutorial intent.
Added tutorial_steps string array in the intent to allow specifying an ordered list of tutorial steps.

Change-Id: Ic42a65598a74a64f8441a22f58c6cd988a5762e3
2020-10-15 10:27:30 -04:00
Samuel Fufa d5bbe6809d Rename shrotcut container to deep-shrotcuts
Change-Id: If94f0dfa447235f3b1a652f7b6c749695b42d97c
2020-10-14 15:39:38 -07:00
Samuel Fufa 26c1105fa0 [search api part 1] Setup centralized SearchEventTracker
- Rename AdapterItemWIthPayload to SearchAdapterItem, PayloadResultHandler to SearchTargetHandler
- Setup SliceViewWrapper for self contained slices

Bug: 170702596
Change-Id: I0baf984ec8123c95011abcc17372f8d055e98ad7
2020-10-13 12:40:22 -07:00
Xin Li 103dbab650 [automerger skipped] Merge ab/6749736 in stage. am: 2ef7e39983 -s ours am: f6b4389da9 -s ours am: 5767441c19 -s ours
am skip reason: Change-Id Id9c756552c08d7690b99987dafadc13448a0c236 with SHA-1 0581f5b05b is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12804054

Change-Id: I0ea6e626d9c3ac31e9ff6a93ce05929dca203571
2020-10-13 04:50:29 +00:00
Xin Li 5767441c19 [automerger skipped] Merge ab/6749736 in stage. am: 2ef7e39983 -s ours am: f6b4389da9 -s ours
am skip reason: Change-Id Id9c756552c08d7690b99987dafadc13448a0c236 with SHA-1 0581f5b05b is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12804054

Change-Id: Iacae332383fb32b8b3460642c6408671c090372b
2020-10-13 04:22:37 +00:00
Xin Li f6b4389da9 [automerger skipped] Merge ab/6749736 in stage. am: 2ef7e39983 -s ours
am skip reason: Change-Id Id9c756552c08d7690b99987dafadc13448a0c236 with SHA-1 0581f5b05b is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12804054

Change-Id: I5c166c4b778272882283ec85d5945912abf52f7a
2020-10-13 03:50:59 +00:00
TreeHugger Robot 057f2d0d7d Merge "Introduce shortcut container for hotseat event reporting" into ub-launcher3-master 2020-10-13 01:57:47 +00:00
TreeHugger Robot 4bb65ff516 Merge "Search UI clean up" into ub-launcher3-master 2020-10-13 00:07:36 +00:00
Samuel Fufa 2afcab804b Search UI clean up
- Resolve spacing issue when work profile is installed
- Cache play icons and use icon shape
- Only draw focus indicator for the first result

Bug: 170487752
Bug: 170665892
Change-Id: I864d2e796786637132e127ef9b418c0a76c74d6e
2020-10-12 16:19:41 -07:00