Commit Graph
49925 Commits
Author SHA1 Message Date
Alina Zaidi 8eacef0e48 Merge "Refactor SearchAlgorithm and SearchCallback interface to work on generic search result type." into sc-dev am: 4ffd4f03c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13581959

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I78b42f5565dfe1cc9e520165083db49226c8c6e8
2021-02-26 15:53:06 +00:00
Alina Zaidi 4ffd4f03c6 Merge "Refactor SearchAlgorithm and SearchCallback interface to work on generic search result type." into sc-dev 2021-02-26 15:44:37 +00:00
Steven Ng 167f81b931 Add a header container view to the widgets full sheet
A header container view will contain
1. A horizontal bar: for indicating the popup view can be dragged
   to dismiss:
2. A title view: a title of the widgets full sheet popup view.
3. A search bar: for widgets / shortcut search. Since we will be
   making the fallback search algorithm available in AOSP, the
   search bar will now live in the Launcher3 codebase.
4. Recommended widgets (coming soon...)

This CL also added a scroll effect which gradually collapses the
title view when the user scrolls down the recycler view. The title
view will gradually restore its height when the user scroll to the
top of the recycler view.

Test: Manually test widgets pickers in work profile and non work
      profile setup. Verified the fast scroll bar works well in
      both setup.
      With searchbar: https://drive.google.com/file/d/19grUHL_LspLhMD_5p6-i0CiMW1FpflmD/view?usp=sharing
      Without searchbar: https://drive.google.com/file/d/1KRPgEAESHUhJDo1UJsQN80JO1c9Y8Nhl/view?usp=sharing

Bug: 179797520

Change-Id: If0016e3b3c693414897140e7912531ed9bd5deef
2021-02-26 10:03:36 +00:00
Andy Wickham 75845ed9a8 Adds a removeChangeListener to FeatureFlags$BooleanFlag.
This will help us avoid leaks, etc.

Also changes ENABLE_SMARTSPACE_ENHANCED back to a DeviceFlag

Bug: 181194850
Bug: 181077020
Test: atest NexusLauncherOutOfProcTests:com.android.launcher3.memory.MemoryTests -- --abi armeabi-v7a
Change-Id: I6f54af3e6b6302a073b8b7d448ff72b05a803d8f
2021-02-26 07:41:45 +00:00
android-build-team Robot c71cfdb5bc Snap for 7171622 from d6844dcb7f to sc-v2-release
Change-Id: Ie5c8d490ba140e2393c6f875e4b4df6985d8d485
2021-02-26 03:38:31 +00:00
android-build-team Robot f56acece7d Snap for 7171598 from d6844dcb7f to sc-release
Change-Id: I82eb6c2b619ae4b3b5df4de5a96479aecba39a9f
2021-02-26 03:38:21 +00:00
vadimt 6e2a8e86df Diagnosing expected selector in app-start
Test: manual
Bug: 179392551
Change-Id: I4c7173e784caaa6435927f94eef6b269884d0ce9
2021-02-25 19:32:41 -08:00
vadimt 5f21f104f0 Waiting for the state of views to settle after orientation change
Presumably, we currently have flakes when immediately
after orientation change, we check for the presence of certain
views, and they are still not present.

Test: presubmit
Bug: 181057446
Change-Id: I6dbcb757a47c19728d4096283da6710f6dd5aa02
2021-02-25 18:50:49 -08:00
Zak Cohen 452005a14e Update ArrowPopup to accommodate more rounded dialogs.
Adjusts layouts to accommodate more rounded dialogs, includes adding a
new rounded triangle drawable that can be clipped by a rounded rect.



Bug: 179922117
Test: checked all instances and RTL
Change-Id: I4c2f0ead0fd56eba14ffd9b82f0c100f7d92ef5b
2021-02-25 16:59:55 -08:00
Jon Miranda e126d72fa8 More grid changes, closer to final specs.
* Added isScalable, minCellWidth, minCellHeight, and borderSpacing attrs

When isScalable is true, we use set workspace cell values to
minCellWidth/minCellHeight and then scale the cell values to
fit the available space. This allows us to have consistent
aspect ratios when two devices match the display/grid options.

This is different from the dynamic grid, which calculates
cell values based on iconSize/textSize/etc and then allows
the cell width to be as wide as space allows.

I adjusted some variables so that they will auto adjust
based on another value, indepenent from whether the
grid isScalable or not. An example of this is the folder
label text, where it's always set to be 1.14x of whatever
the workspace icon text size is. This is so we don't need
to add a bunch of more variables to DisplayOption/GridOption.

Bug: 175329686
Test: - switching between device profiles,
      - testing folder open/close
      - testing in multiwindow
      - testing in landscape
Change-Id: Ia469ae0d65b518469ef264b726db46f4a3210056
2021-02-25 17:34:56 -05:00
Andy Wickham 4aeb5216cc Merge "Revert "Changes ENABLE_SMARTSPACE_ENHANCED to be a DeviceFlag."" into sc-dev am: d6844dcb7f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13700879

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6a2bfabd40a441ee4c442e67bae24f51f86dab99
2021-02-25 21:44:48 +00:00
Andy Wickham 87fab748b1 Merge "Revert "Changes ENABLE_SMARTSPACE_ENHANCED to be a DeviceFlag."" into sc-dev am: d6844dcb7f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13700879

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifb91337c115407014e72b6f273d1ace6655f5a2c
2021-02-25 21:41:53 +00:00
Andy Wickham d6844dcb7f Merge "Revert "Changes ENABLE_SMARTSPACE_ENHANCED to be a DeviceFlag."" into sc-dev 2021-02-25 21:02:34 +00:00
Andy Wickham 0779f74049 Revert "Changes ENABLE_SMARTSPACE_ENHANCED to be a DeviceFlag."
This reverts commit f480a87423.

Reason for revert: Broke tests

Change-Id: I508e1db58b7973a60e350aa679b9b6f5fe4ecbd1
2021-02-25 20:06:08 +00:00
Evan Rosky 2341776fd8 Merge "Update input-monitors to accept unrotated coordinates" into sc-dev am: be5fdb08a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13486583

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia47dd2ccb584f48a385910455e975cdd2d0e0997
2021-02-25 18:20:51 +00:00
Evan Rosky aa15ec0897 Merge "Update input-monitors to accept unrotated coordinates" into sc-dev am: be5fdb08a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13486583

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I44709c7c8ed00bd8e4fd5f82916d12cb2669acba
2021-02-25 18:20:39 +00:00
Evan Rosky be5fdb08a5 Merge "Update input-monitors to accept unrotated coordinates" into sc-dev 2021-02-25 17:53:57 +00:00
Alina Zaidi 331140f665 Refactor SearchAlgorithm and SearchCallback interface to work on generic search result type.
Test: Manually tested that 'All apps' search works fine
Bug: b/157286785
Change-Id: Id4b7fb133149e9211f871b46b47d5853ec0e0050
2021-02-25 12:05:41 +00:00
android-build-team Robot 4ac59fe647 Snap for 7168754 from fb853435f4 to sc-v2-release
Change-Id: Icf47d6e921be3561f44eaf3e1766fd03dc0ac45c
2021-02-25 02:16:41 +00:00
Sreyas Rangaraju 650ceddecb Merge "Fix DWB cutting off above inset when translating down." into sc-dev am: 036b585475
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13668660

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia834edb8f0f0befb3719e7e17183bb90c46b31f1
2021-02-25 02:12:53 +00:00
thiruram 565c200042 [AA+] Log LAUNCHER_ALLAPPS_FOCUSED_ITEM_SELECTED_WITH_IME event. am: 8e16391b49
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13680043

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4dbb9f83466c47934cd0ceaf61c37f2e268be5fb
2021-02-25 02:12:45 +00:00
TreeHugger Robot 949c6cde6e Merge "Replace the no preview layout check with Resources.ID_NULL(0)" into sc-dev am: 729761e4e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13686847

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3b4162ec44d4c796758e2fbcd5d9ce7b6bd9fc51
2021-02-25 02:09:53 +00:00
android-build-team Robot 15e8de4687 Snap for 7168754 from fb853435f4 to sc-release
Change-Id: I0e7c1c27014b5097a0c7a13dee8aeef54b725b62
2021-02-25 02:07:56 +00:00
Sreyas Rangaraju 7b29ef28cd Merge "Fix DWB cutting off above inset when translating down." into sc-dev am: 036b585475
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13668660

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3b639167045f6339beb9d7b9ab543b22a45cae47
2021-02-25 01:55:35 +00:00
thiruram c27d7da053 [AA+] Log LAUNCHER_ALLAPPS_FOCUSED_ITEM_SELECTED_WITH_IME event. am: 8e16391b49
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13680043

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4164d732bc884b9486412ef48141e618a18b12f6
2021-02-25 01:55:11 +00:00
TreeHugger Robot 2a78788355 Merge "Replace the no preview layout check with Resources.ID_NULL(0)" into sc-dev am: 729761e4e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13686847

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6f5dbed32afcfb5bbd4eb4f6b9c0976c55ca894a
2021-02-25 01:54:33 +00:00
Sreyas Rangaraju 036b585475 Merge "Fix DWB cutting off above inset when translating down." into sc-dev 2021-02-25 01:47:25 +00:00
thiruram 8e16391b49 [AA+] Log LAUNCHER_ALLAPPS_FOCUSED_ITEM_SELECTED_WITH_IME event.
Bug: 178562918
Test: Manual
Change-Id: Id40f80aae652dcc6c16ad35a003c91fd97750608
2021-02-25 01:15:05 +00:00
TreeHugger Robot 729761e4e0 Merge "Replace the no preview layout check with Resources.ID_NULL(0)" into sc-dev 2021-02-25 01:12:27 +00:00
Bob Badour 88913da9e0 Merge "[LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Launcher3" am: 541d0855ac am: 3be35ec269 am: 8824a5cd61 am: 8182d214e1
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1587746

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8cd2f7100399473343a5d3e05ae82187986c88bf
2021-02-25 00:32:17 +00:00
Bob Badour d8b645bc8c Merge "[LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Launcher3" am: 541d0855ac am: 3be35ec269 am: 8824a5cd61 am: 8182d214e1
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1587746

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I23bee37f6fc2f9109a3fa36983409c1d78451b4f
2021-02-25 00:31:17 +00:00
Pierre Barbier de Reuille 143df42cf0 Merge "Launcher changes for go/widget-size-specification" into sc-dev am: 4fb5d4d3ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13473552

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I946921dfca5b70656c05cc1cbcc9d813e39364be
2021-02-25 00:30:54 +00:00
Pierre Barbier de Reuille 22acf9774b Merge "Launcher changes for go/widget-size-specification" into sc-dev am: 4fb5d4d3ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13473552

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I35f37899494dc6c02be82668e27e0c4b044ccc5a
2021-02-25 00:30:34 +00:00
Bob Badour 8182d214e1 Merge "[LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Launcher3" am: 541d0855ac am: 3be35ec269 am: 8824a5cd61
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1587746

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia1a355fb2ed5bebd8cfff2f5da2eef14428bfe15
2021-02-24 23:53:29 +00:00
Pierre Barbier de Reuille 4fb5d4d3ca Merge "Launcher changes for go/widget-size-specification" into sc-dev 2021-02-24 23:24:20 +00:00
Andy Wickham 2bdbed8626 Merge "Changes ENABLE_SMARTSPACE_ENHANCED to be a DeviceFlag." into sc-dev am: 39ba7604b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13680611

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia4198878bc78f0c3b2309fb3b4a83241401c8d92
2021-02-24 23:01:10 +00:00
Steven Ng ff1e88799d Merge "Replace horizontal ScrollViews with tables in the full widgets picker" into sc-dev am: fb853435f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13666345

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I094703330048b4c7f17d76267ea11f1207e1c3e6
2021-02-24 22:59:57 +00:00
Bob Badour 8824a5cd61 Merge "[LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Launcher3" am: 541d0855ac am: 3be35ec269
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1587746

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I21ee4a4ccd42b0bdbc3e20121b5d53c9067e8cf2
2021-02-24 22:58:35 +00:00
Andy Wickham faaba8aaa5 Merge "Changes ENABLE_SMARTSPACE_ENHANCED to be a DeviceFlag." into sc-dev am: 39ba7604b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13680611

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib851aed3189ef47d618c2149e2aac9d4ac1327f0
2021-02-24 22:57:07 +00:00
Steven Ng 44157fcd64 Merge "Replace horizontal ScrollViews with tables in the full widgets picker" into sc-dev am: fb853435f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13666345

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8d099ce171876307b321c77af61ab49db2c436a1
2021-02-24 22:55:39 +00:00
Andy Wickham 39ba7604b0 Merge "Changes ENABLE_SMARTSPACE_ENHANCED to be a DeviceFlag." into sc-dev 2021-02-24 22:42:08 +00:00
Bob Badour 3be35ec269 Merge "[LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Launcher3" am: 541d0855ac
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1587746

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icc96bfa8a3d59a19194a154baeaffaea1281af0a
2021-02-24 22:25:46 +00:00
Steven Ng fb853435f4 Merge "Replace horizontal ScrollViews with tables in the full widgets picker" into sc-dev 2021-02-24 22:22:31 +00:00
Steven Ng fdeee141d9 Replace the no preview layout check with Resources.ID_NULL(0)
TODO: open up the RemoteViews(ApplicationInfo) API so that Launcher
      can inflate a layout from a work profile app.

Test: Before this CL, install tasks app in work profile. Observed
      crash when tapping Tasks header in the widgets picker.
      After this CL, no crash observed when tapping Tasks header in
      the widgets picker.

Bug: 181061277
Change-Id: I16c2b9aec5f4cabf15da35fea09f68c10797f5fa
2021-02-24 22:01:06 +00:00
Samuel Fufa 1956fe12f4 Merge "Restore divider between app predictions and apps" into sc-dev am: 226c4af911
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13688192

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6f3e40115237de5c6c119b2a16028f1cc664369d
2021-02-24 21:55:34 +00:00
Samuel Fufa dfbb2a4883 Merge "Restore divider between app predictions and apps" into sc-dev am: 226c4af911
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13688192

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6b3b2e112096545a7b20f704a0633cb7fdfffbbe
2021-02-24 21:54:15 +00:00
thiruram 7edecfd82c [AA+] Use different launcher event to log all apps entry with device search. am: 9f53d61334
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13689925

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2821ae3737018c744cafd3215bb7153dcebd090c
2021-02-24 21:54:00 +00:00
thiruram 5ad2a19b0f [AA+] Use different launcher event to log all apps entry with device search. am: 9f53d61334
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13689925

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id6a239dd5acc9d9a56ef6f68c38c6d00b3398a0f
2021-02-24 21:52:32 +00:00
Samuel Fufa 226c4af911 Merge "Restore divider between app predictions and apps" into sc-dev 2021-02-24 20:50:10 +00:00
Pierre Barbier de Reuille b2526feb24 Launcher changes for go/widget-size-specification
Makes sure the launcher:

1 - Send the list of actual sizes the widget in all situations.
2 - Gives the current size to the framework on inflation.

Also needed to guard the new border changes introduced in
http://ag/13532637 with the corresponding flag.

Change-Id: I2a33e9501b921f2fc393684e8ce91ee077626bf7
Test: By hand using a local widget.
Bug: 179025145
2021-02-24 20:40:41 +00:00