Commit Graph

33301 Commits

Author SHA1 Message Date
Alina Zaidi 334e65935b Have a recycler view to show search results.
-Have a recycler view layout for search widgets list.
-Make WidgetsFullSheet implement interface- SearchModeListener to get notified when user is using search and also when search results are ready.
-Have a WidgetsListSearchHeaderViewHolderBinder for search result headers which shows subtext in header as concatenated string of widget/shortcut labels.
-Modify WidgetsListAdapter and WidgetsDiffReporter to work well with search recycler view.

Test: Tested prototype locally. Also added robolectric test.
Bug: b/157286785
Change-Id: Ie29d9f295fddb6d727b5fc26a360f514f2f4a763
2021-03-11 21:27:51 +00:00
Alex Chau 26c1f3b139 Calculate grid layout size separately from task size
- Add translation to align task into top right/left corner of grid rect
- Also updated grid padding according to mocks

Bug: 174464863
Test: Launch overview, launch overview from app, launch into app
Change-Id: Ie856f9c43ebf35f5e58b5d125ff1754ad7bc0160
2021-03-11 20:21:08 +00:00
Sreyas Rangaraju 06b41019ef Merge "Let chips take full screen width." into sc-dev 2021-03-11 20:20:41 +00:00
Hilary Huo 20a7cfbd3c [settings-pixel-search] Add slice timeout to avoid showing empty slice view
Bug: 181810946

Test: m
Change-Id: Icd83bbf428bf7d87e3957a6f6d888142c6008da3
2021-03-11 20:07:51 +00:00
TreeHugger Robot ad5ba1af0d Merge "Disable double haptic when dragging from taskbar hotseat on home" into sc-dev 2021-03-11 18:59:45 +00:00
Tony Wickham 84140bec6d Disable double haptic when dragging from taskbar hotseat on home
Both DragLayer and the dragged view were playing a haptic; disable
DragLayer's haptic feedback for this drag interaction.

Test: Drag from hotseat on home, ensure only one haptic is played
Bug: 182079330
Bug: 171917176
Change-Id: I185533999e905ea79a80aaa2145fc39049e8d45e
2021-03-11 08:48:27 -08:00
Steven Ng 8e5a0a71f7 Merge "Update widget toast strings" into sc-dev 2021-03-11 16:43:10 +00:00
TreeHugger Robot 9759c8357c Merge "Adding alinazaidi@ in Launcher3's OWNERS" into sc-dev 2021-03-11 16:41:11 +00:00
Treehugger Robot 24a63bacd6 Merge "Adding alinazaidi@ in Launcher3's OWNERS" am: 0d3a2d99c8 am: e50fba1654 am: 536bcdbb15
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1626524

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I00840aa9877f27df685fdaba70805516667fb3a6
2021-03-11 14:26:34 +00:00
Treehugger Robot 536bcdbb15 Merge "Adding alinazaidi@ in Launcher3's OWNERS" am: 0d3a2d99c8 am: e50fba1654
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1626524

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7362df47744092f599e64d15315ee0732530fb97
2021-03-11 14:04:27 +00:00
Pierre Barbier de Reuille acc6336fcd Adding alinazaidi@ in Launcher3's OWNERS
For some reason, I was unable to do it with others in the CL.

Note: This is a merge from AOSP.

Test: N/A
Merged-In: I02596028dd15e1fdbe255b954bd39f4c3bb005e2
Change-Id: I70172726b6aae7c7b210e4b3210d34dc1c503c06
Bug: 182399964
2021-03-11 13:44:04 +00:00
TreeHugger Robot 3e32a8352e Merge "Adding new team members working on the launcher" into sc-dev 2021-03-11 13:41:11 +00:00
Treehugger Robot e50fba1654 Merge "Adding alinazaidi@ in Launcher3's OWNERS" am: 0d3a2d99c8
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1626524

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1b1ff23f998fdd98001995a172d11a3026e75743
2021-03-11 13:29:18 +00:00
Treehugger Robot 0d3a2d99c8 Merge "Adding alinazaidi@ in Launcher3's OWNERS" 2021-03-11 12:56:14 +00:00
Treehugger Robot dc95904b93 Merge "Adding new team members working on the launcher" am: e5584cb882 am: 8dfa6bd01f am: bb008f6187
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1626521

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idfd0620ef0fac95143e225c2006ea5e51891cc21
2021-03-11 11:04:48 +00:00
Treehugger Robot bb008f6187 Merge "Adding new team members working on the launcher" am: e5584cb882 am: 8dfa6bd01f
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1626521

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I77f092eb2d5900db7c1b4ff634427fc62f99e2fb
2021-03-11 10:24:35 +00:00
Pierre Barbier de Reuille 7468ff8bcc Adding new team members working on the launcher
Merged-In: I21dcf7fa78522826ae78db9cf8bdd72f8c8a6eca
Test: N/A
Bug: 182399964
Change-Id: I2f737cba83bde213b8712f3e288ea3f5ead4f001
2021-03-11 10:17:04 +00:00
Treehugger Robot 8dfa6bd01f Merge "Adding new team members working on the launcher" am: e5584cb882
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1626521

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie6728c7d9db6e4d287f1a9e9afc37c0846dac02e
2021-03-11 10:04:41 +00:00
Pierre Barbier de Reuille dd2bed8a93 Adding alinazaidi@ in Launcher3's OWNERS
For some reason, I was unable to do it with others in the CL.

Test: N/A
Change-Id: I02596028dd15e1fdbe255b954bd39f4c3bb005e2
2021-03-11 09:45:51 +00:00
Treehugger Robot e5584cb882 Merge "Adding new team members working on the launcher" 2021-03-11 09:34:58 +00:00
TreeHugger Robot 2d439080dc Merge "Launcher changes to support dynamic coloring on static widgets." into sc-dev 2021-03-11 02:15:41 +00:00
TreeHugger Robot 7120449669 Merge "Make TaskMenuView corner radius follow TaskView." into sc-dev 2021-03-11 01:46:40 +00:00
Alina Zaidi c322510b2a Merge "Implement pipeline for a simple search based on query string matching on app names in WidgetsListBaseEntries." into sc-dev 2021-03-11 00:18:00 +00:00
Sunny Goyal b65d766d88 Adding support for listening for app launch animation completion
Bug: 181165935
Bug: 179065491
Test: Verified on device
Change-Id: Ifa6a91560cb31b4dfb72a0f582607e873d8a002d
2021-03-10 15:53:21 -08:00
Tony Wickham 4c26664d84 Merge "End Taskbar animator before other cleanup" into sc-dev 2021-03-10 23:16:15 +00:00
Zak Cohen 9f921098d3 Make TaskMenuView corner radius follow TaskView.
Also removes fake shadow from TaskMenuView as not required in new style.

Bug: 182276195
Test: Run on 3a and 4
Change-Id: Iadf89e30e56d8d7419b1e6c9550bb1b2bf3d5c49
2021-03-10 14:31:02 -08:00
Pierre Barbier de Reuille ae5d23d120 Adding new team members working on the launcher
Test: N/A
Change-Id: I21dcf7fa78522826ae78db9cf8bdd72f8c8a6eca
2021-03-10 22:08:24 +00:00
Pierre Barbier de Reuille ab33b76dce Launcher changes to support dynamic coloring on static widgets.
Bug: 179783721
Test: By hand using the AppWidgetDynamicColors widget
Change-Id: I27863cac31f2f6c29f5a717ff8d4492325f936fb
2021-03-10 22:04:35 +00:00
Tony Wickham 462384dbed Merge "Create a new DragOptions for every drag operation" into sc-dev 2021-03-10 21:35:06 +00:00
Tony Wickham b9672a668d Merge "Ensure taskbar hotseat array index is in bounds" into sc-dev 2021-03-10 21:28:59 +00:00
Tony Wickham 73cc9a5053 Merge "Allow touches through Taskbar when dragging to home screen" into sc-dev 2021-03-10 21:28:29 +00:00
Jonathan Miranda 970a410bd7 Merge "Register setStartingWindowListener so launcher can defer icon drawing/crop correctly." into sc-dev 2021-03-10 21:12:57 +00:00
vadimt 368dc79f55 Increase wait times in TAPL
This helps to avoid misleading errors when
the system has performance problems.

Test: presubmit
Bug: 179392551
Change-Id: I4de3c543f32f41af64bd6107885df82b03973d35
2021-03-10 12:19:12 -08:00
Alex Chau 7086256ac9 Merge "Use gridProgress from RecentsView when launching apps from overview" into sc-dev 2021-03-10 20:14:25 +00:00
Jonathan Miranda fb7b9fd8c3 Merge "Fix icon text size being calculated in DP instead of SP." into sc-dev 2021-03-10 19:09:29 +00:00
Steven Ng a061cf3387 Merge "Show an empty view when there is no widget available" into sc-dev 2021-03-10 18:57:07 +00:00
Jon Miranda fb05759bab Register setStartingWindowListener so launcher can defer icon drawing/crop correctly.
Bug: 177264697
Test: manual
      close all tasks
      launch app, note that shell is drawing icon & launcher correctly crops
      return home
      launch same app, note that launcher draws the icon

Change-Id: Id320eb9e3e03f861cc8e4adec739b8faf29adda0
2021-03-10 13:07:26 -05:00
Sreyas cd9f8719bc Let chips take full screen width.
Bug: 180917948
Test: Manual
Change-Id: I1b8602a567c4906fb52fa686092d0bf16b1f64d9
2021-03-10 10:00:26 -08:00
Steven Ng d73d6e56a9 Show an empty view when there is no widget available
Test: Remove all widgets from work profile using TestDpc. Observe
      empty view is shown in the full widget tray. Add back some
      widgets to work profile and observe widgets showing up in the
      full widgets tray

Bug: 179797520
Change-Id: I2e1fcb5a0014568a4674e2bcc0a3ed3c6ec5a44a
2021-03-10 17:36:37 +00:00
Steven Ng 7ec893fb8e Update widget toast strings
Test: Tap on widgets and shortcuts in all widget tray and observe
      correct string is shown.

Bug: 179797520
Change-Id: I0e274017d4af1de506afbb819ab91f6575d7bb8e
2021-03-10 17:35:51 +00:00
Tony Wickham 2e9de09383 End Taskbar animator before other cleanup
This ensures it doesn't try to set properties that have already
been cleaned up.

Test: Swipe home from an app, remove taskbar during transition
Fixes: 182163822
Change-Id: Ia8779f044beeabd99e087288c3ae7f4f72c72d39
2021-03-10 09:33:11 -08:00
Sunny Goyal 43b9310197 Merge "Revert "Revert "Removing insets controller animation as part of ..."" into sc-dev 2021-03-10 17:04:58 +00:00
Alex Chau 956b5f7012 Use gridProgress from RecentsView when launching apps from overview
Test: Launch from overview into app, animation should be smooth
Bug: 174464863
Fixes: 182168668
Change-Id: I274ec55aaef1c30c973b8c37de3c6ddae43ff90f
2021-03-10 15:59:38 +00:00
Jon Miranda 378c11f041 Fix icon text size being calculated in DP instead of SP.
Bug: 175329686
Test: manual, change font/display size
Change-Id: Ic8c6260444d18df64ccee4c2bcfbc2332a327da9
2021-03-10 10:29:35 -05:00
Sunny Goyal b5181c8c39 Revert "Revert "Removing insets controller animation as part of ..."
Revert "Revert "Moving insets animation to StateHandler so that ..."

Revert submission 13823490-revert-13810332-insetcontroller-CLXXLCZAUM

Reason for revert: Fixed original error in ag/13823726
Reverted Changes:
Ie19a3fd90:Revert "Moving insets animation to StateHandler so...
I4eb33772a:Revert "Removing insets controller animation as pa...

Change-Id: I7fb395c51ea99081913bc99515257e98c0a32754
2021-03-10 07:39:12 +00:00
Pasty Chang ea39d1603f Merge "Revert "Removing insets controller animation as part of all-apps..."" into sc-dev 2021-03-10 07:01:25 +00:00
Pasty Chang 13358f65ab Revert "Removing insets controller animation as part of all-apps..."
Revert "Moving insets animation to StateHandler so that it can b..."

Revert submission 13810332-insetcontroller

Reason for revert: QsbLayout#getEditText() return object is changed, but extended class HotseatQsbWidget wasn't updated.

https://android-build.googleplex.com/builds/submitted/7197042/aosp_crosshatch-userdebug/latest/view/logs/build_error.log

Reverted Changes:
If6a088d14:Removing insets controller animation as part of al...
I296415604:Moving insets animation to StateHandler so that it...

Change-Id: I4eb33772acd887d6e1d92a9ecde41cf1e0687896
2021-03-10 06:58:51 +00:00
Sunny Goyal c668a2a5bb Merge "Removing insets controller animation as part of all-apps opening" into sc-dev 2021-03-10 01:58:06 +00:00
Sunny Goyal de18647f91 Merge "Removing unused keyboard handling code" into sc-dev 2021-03-10 00:13:27 +00:00
TreeHugger Robot ded87e6505 Merge "Avoid mis-trigger when motion do not endup within system gesture region" into sc-dev 2021-03-09 23:26:16 +00:00