Commit Graph
49925 Commits
Author SHA1 Message Date
Wei Sheng Shih 23c0fc4ac0 Merge "Let Launcher able to receive task launching callback(4/N)" into sc-dev 2021-03-08 04:06:56 +00:00
Alina Zaidi c6fe0dd4fa Implement pipeline for a simple search based on query string matching on app names in WidgetsListBaseEntries.
This will be the default search for AOSP widget picker and a fallback search for Pixel widget picker.

Test: Tested prototype locally. Also added robolectric test.
Bug: b/157286785
Change-Id: Iad3bf2f46b2a89383a52c756fd1b9f65ecbeb40b
2021-03-07 21:23:37 +00:00
Tony Wickham b859178be9 Initiate Hotseat drag from long pressing corresponding Taskbar item am: 39938cbc94
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13779849

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6e884fcd350cbe43d055fa8b497e00242e1cc8f8
2021-03-07 04:33:51 +00:00
TreeHugger Robot 470fa377ff Merge "Moving data sanitization before bind" into sc-dev am: 3ca4b0d88f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13741856

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2b9f04b7da9bfa3abc48751d358ce24e9ba1fef3
2021-03-07 04:33:41 +00:00
TreeHugger Robot 5efa0aace3 Merge "Nullify taskbar hotseatView tag when the cell is empty" into sc-dev am: 5e88032461
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13787772

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5d38eb855c7632da776f86aeaa06efb64bae7f44
2021-03-07 04:31:13 +00:00
Winson Chung dfc0f80097 Merge "Removing old logs" into sc-dev am: b72be3e27c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13690095

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie679d3def02dc0222f94226c11387cf7545db65f
2021-03-07 04:07:39 +00:00
TreeHugger Robot 1ab01d0556 Merge "Correct Launcher3 for new sizes in App Widgets." into sc-dev am: bcadf1457c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13732707

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idb5c80c657b9e222d5585a9a3091b78cc3e59abe
2021-03-07 04:05:01 +00:00
android-build-team Robot 0fea7a8ff3 Snap for 7189849 from 39938cbc94 to sc-v2-release
Change-Id: Ic09b18969c9c09bb77b29e0af198a1c394521cc4
2021-03-07 00:08:46 +00:00
android-build-team Robot 526a5368a2 Snap for 7189849 from 39938cbc94 to sc-release
Change-Id: Iec8f15e0c9bf1ef3d8a9b73dc749686fb9b962e3
2021-03-07 00:08:44 +00:00
Tony Wickham 39938cbc94 Initiate Hotseat drag from long pressing corresponding Taskbar item
When you long press on the taskbar hotseat item, the following happens:
- We start a system drag and drop with an invisible drag shadow
- We create a new DragOptions with the simulatedDndStartPoint set to the
  drag down position, and tell Launcher to use that for the next drag
- We perform a long click on the equivalent Hotseat item in Launcher
- We pass the drag events of that operation to Launcher's DragController

This allows Launcher to handle the entire drag operation, including the
pre-drag (with popup), and taskbar already hides when the drag starts.

Test: Long press items in taskbar hotseat, able to drag them to workspace

Bug: 179886115
Bug: 171917176
Change-Id: I576b80cb1bd0225cdc91cf7689fdee0481265109
2021-03-06 03:39:54 +00:00
android-build-team Robot d3d2cc05a6 Snap for 7188367 from b72be3e27c to sc-v2-release
Change-Id: I7881731ed18ba6f459619671fef1eeb35f231d66
2021-03-06 02:07:56 +00:00
android-build-team Robot 79c4319039 Snap for 7188367 from b72be3e27c to sc-release
Change-Id: I03c6d91f4fa42db2d618b202129cee8373482e2c
2021-03-06 02:07:41 +00:00
TreeHugger Robot 3ca4b0d88f Merge "Moving data sanitization before bind" into sc-dev 2021-03-06 01:19:15 +00:00
TreeHugger Robot 5e88032461 Merge "Nullify taskbar hotseatView tag when the cell is empty" into sc-dev 2021-03-06 00:04:05 +00:00
Winson Chung b72be3e27c Merge "Removing old logs" into sc-dev 2021-03-05 22:59:43 +00:00
TreeHugger Robot d96dcbcf55 Merge "Removing some animation special casing for 2-button mode" into sc-dev am: 2ef625b414
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13776498

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7d5e17eafecb524da3954e7d2dd8ad613497d185
2021-03-05 22:51:49 +00:00
TreeHugger Robot aeb723ea4e Merge "Removing some animation special casing for 2-button mode" into sc-dev am: 2ef625b414
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13776498

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iffb5607497b61f87f506610c60dc2ac5f24b42ce
2021-03-05 22:51:48 +00:00
TreeHugger Robot bcadf1457c Merge "Correct Launcher3 for new sizes in App Widgets." into sc-dev 2021-03-05 22:44:57 +00:00
TreeHugger Robot 2ef625b414 Merge "Removing some animation special casing for 2-button mode" into sc-dev 2021-03-05 22:28:40 +00:00
Tracy Zhou 2df9df061f Merge "Remove LiveTileOverlay" into sc-dev am: 64c6428acc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13785972

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7f71dcc67a81c90b413b0ee7a5d981a0e87b894c
2021-03-05 21:15:45 +00:00
Tracy Zhou 7cb4586168 Merge "Remove LiveTileOverlay" into sc-dev am: 64c6428acc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13785972

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4e1026122475de1c920ed00239a54d51090c037c
2021-03-05 21:14:33 +00:00
Winson Chung 2149995b9d Merge "Add some logging for failure to get recents" into sc-dev am: 90d5e6bc42
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13776496

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibabfeca598e3266224a2d901e0e2d1ab10d1f314
2021-03-05 21:14:29 +00:00
Winson Chung dc6dca569f Merge "Add some logging for failure to get recents" into sc-dev am: 90d5e6bc42
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13776496

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I04d317d3030170f6012d1195db5d7d48a9b0ddea
2021-03-05 21:14:27 +00:00
Tracy Zhou 64c6428acc Merge "Remove LiveTileOverlay" into sc-dev 2021-03-05 21:09:17 +00:00
Samuel Fufa e2358949d4 [Search] Support flexible results-per-row in AllApps
Bug: 181987314
Test: Manual
Change-Id: Idc3d24dafc42944a7cc925e0991118c86a89b318
2021-03-05 15:00:38 -06:00
Winson Chung 90d5e6bc42 Merge "Add some logging for failure to get recents" into sc-dev 2021-03-05 20:46:30 +00:00
Alex Chau f937b5777b Merge "Animate task from overview grid when launching" into sc-dev am: 56a83b0dd4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13787178

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic0804b57d6a21bc73ea181fd0c08e3e2a9e3297a
2021-03-05 20:35:48 +00:00
Alex Chau 33fa2051b8 Merge "Animate task from overview grid when launching" into sc-dev am: 56a83b0dd4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13787178

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9ed50c99baab8b2867fd2c7b8f04ad4859bd541d
2021-03-05 20:34:36 +00:00
Alex Chau 56a83b0dd4 Merge "Animate task from overview grid when launching" into sc-dev 2021-03-05 20:06:40 +00:00
Steven Ng 46b0d8e291 Inflate layout preview for work profile
Also fix a bug which LivePreviewCells are not used in full widgets
sheet.

Test: Temporarily replace the previewLayout with initialLayout
      from the code. Then, open both the full and bottom widgets
      sheet. Observe initial layout is rendered correctly for both
      personal and work profile.

Screenshot: https://screenshot.googleplex.com/BgJycVjzeoU3PNf.png

Bug: 181061277
Change-Id: Id635ee778008b6f94009f50bf4373d3b0f545417
2021-03-05 20:02:31 +00:00
Tony Wickham 6643088959 Nullify taskbar hotseatView tag when the cell is empty
This ensures that a removed view becomes invisible.

Test: turn off hotseat suggestions, drag an item out
and verify it's removed from taskbar as well
Bug: 179886115
Bug: 171917176

Change-Id: Iec509c2f0c420cee6f86feb293419bb2249a8dc4
2021-03-05 10:25:15 -08:00
Steven Ng 58266226db Merge "Add shortcuts count as a subtitle in the full widgets sheet" into sc-dev am: 1f4a3414f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13712833

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib9f628ed5ec312972dc43af1a0a6a41ea6957413
2021-03-05 18:07:49 +00:00
Steven Ng e06e2e78b5 Merge "Add shortcuts count as a subtitle in the full widgets sheet" into sc-dev am: 1f4a3414f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13712833

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I23b6b0382084bd7bb6937ee0b20510b6431d736d
2021-03-05 18:07:44 +00:00
Steven Ng 1f4a3414f1 Merge "Add shortcuts count as a subtitle in the full widgets sheet" into sc-dev 2021-03-05 17:56:11 +00:00
Samuel Fufa 8c4d83cfee Merge "Defer AllAppsUpdate while edu test is running" into sc-dev am: 119110ab4e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13775476

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ief439723f5049949243df30f1b0618b357d5a45f
2021-03-05 17:50:57 +00:00
Samuel Fufa 13652ffbb9 Merge "Defer AllAppsUpdate while edu test is running" into sc-dev am: 119110ab4e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13775476

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I89a8e973ab2878e501e3c2dca998ed0753ec37fb
2021-03-05 17:49:55 +00:00
Tracy Zhou 78003e9ea6 Merge "Reset primary and secondary translation of mLiveTileSimulator after settling into Overview" into sc-dev am: 72d748f718
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13784321

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic35afd32f7c4815bdab907554183cb681257c837
2021-03-05 17:48:42 +00:00
Tracy Zhou d9f4a30ecd Merge "Reset primary and secondary translation of mLiveTileSimulator after settling into Overview" into sc-dev am: 72d748f718
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13784321

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3141e1bdc9f3cda10b8b51d6a544cb4ae9d8de9c
2021-03-05 17:48:18 +00:00
Samuel Fufa 119110ab4e Merge "Defer AllAppsUpdate while edu test is running" into sc-dev 2021-03-05 17:45:20 +00:00
Tracy Zhou 72d748f718 Merge "Reset primary and secondary translation of mLiveTileSimulator after settling into Overview" into sc-dev 2021-03-05 17:28:22 +00:00
TreeHugger Robot 9d3ebfa28e Merge "Fix scrolling bugs in full widgets sheet" into sc-dev am: bd16cc3cf3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13754140

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idc7101515efa946def1f054ef7dccb8793b15e20
2021-03-05 17:18:02 +00:00
Alina Zaidi 5256bbd288 Merge "Interface for WidgetPickerSearchPipeline." into sc-dev am: 94b622da80
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13690209

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icccc124ed4a5ef1b889a0fb24c277283b6b94548
2021-03-05 17:17:56 +00:00
TreeHugger Robot 7fbeda3828 Merge "Fix scrolling bugs in full widgets sheet" into sc-dev am: bd16cc3cf3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13754140

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3b8dc0ab25884aaeb00649421b6f7d4e54482476
2021-03-05 17:17:31 +00:00
Alina Zaidi d815ff8e20 Merge "Interface for WidgetPickerSearchPipeline." into sc-dev am: 94b622da80
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13690209

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5e93b1ca7eac7e33cf2e0c024f6f5c1dbb6eebcd
2021-03-05 17:17:19 +00:00
Alex Chau 718d0c3e2f Animate task from overview grid when launching
Bug: 174464863
Test: Manually launching from different grid positions
Change-Id: Iafb03b86c6b85fb0ebabc0f2ba98acf89d7ea971
2021-03-05 16:59:29 +00:00
TreeHugger Robot bd16cc3cf3 Merge "Fix scrolling bugs in full widgets sheet" into sc-dev 2021-03-05 16:55:44 +00:00
Alina Zaidi 94b622da80 Merge "Interface for WidgetPickerSearchPipeline." into sc-dev 2021-03-05 16:50:38 +00:00
wilsonshih 77c1673e64 Let Launcher able to receive task launching callback(4/N)
Ref doc: go/starting_window_android_s
Test: build/flash
Bug: 131311659
Bug: 131727939
Bug: 152480470

Change-Id: I4354ef33fe60c6026ab7f5e47fa024011e637359
2021-03-05 20:57:45 +08:00
Steven Ng 7f7b2f7ee9 Fix scrolling bugs in full widgets sheet
Bugs:
1. Layout margins were not taken into account
2. Fast scroller offset has a different scale to the recycler view
3. Update padding & margin in onMeasure rather than in onLayout

TODO: fast scroller measurement doesn't take into account of
      expanded item. It naively use the same height for all items
      from the recycler view adapter.

Test: Open full widgets sheet for both work profile and non-work
      profile setup. Scrollbar initial position is correct. Scroll
      up and down to confirm views vertical translation is correct.

Video: https://drive.google.com/file/d/1kp3iSm23RVk_otBNeYalEPPkWjjWMOY0/view?usp=sharing

Bug: 181629430
Change-Id: I398a94510751782e78aa8f426f37b03ecca8ec99
2021-03-05 11:44:47 +00:00
Pierre Barbier de Reuille 18d159a250 Correct Launcher3 for new sizes in App Widgets.
This follow recommendations from the API council review.

Also removes two public functions introduced recently by
http://ag/13473552 and are not needed anymore.

Bug: 181611658
Test: Manual testing with local widget.
Change-Id: I8d0c90a80a0d45981bd5d16e69cd86639d5ec7d8
2021-03-05 11:44:11 +00:00