Commit Graph

32322 Commits

Author SHA1 Message Date
Sunny Goyal f8b1c3b38e Revert "Revert "Renaming TaskbarController to LauncherTaskbarUIC..."
Revert submission 14664190

Reason for revert: Errorprone fixed in ag/14667108
Reverted Changes:
Icd1ddd43e:Revert "Renaming TaskbarController to LauncherTask...
I465013697:Revert "Moving taskbar lifecycle to TouchInteracti...

Change-Id: I1dcccb43d8206830e2b7c1974e775c94ac8c542f
Bug: 187353581
2021-05-21 07:05:31 +00:00
Sunny Goyal d5500548dc Revert^2 "Moving taskbar lifecycle to TouchInteractionService"
430465a3d5
Bug: 187353581
Change-Id: I7b2280d16adfafd3e85ffc1d22e32d0c00d12b67
2021-05-21 07:05:02 +00:00
Pierre Barbier de Reuille fd3ad5d769 Merge "Correct size of AppWidget for color extraction." into sc-dev 2021-05-21 06:06:30 +00:00
TreeHugger Robot 50308f3750 Merge "Fixing Launcher preview leaking surface and memory" into sc-dev 2021-05-21 05:51:08 +00:00
Winson Chung 07414d5cd5 Merge "Tweak ordering of first match search" into sc-dev 2021-05-21 03:15:55 +00:00
Tracy Zhou 1f9fcf87f7 Merge "Notify when quickstep gesture starts" into sc-dev 2021-05-21 02:24:22 +00:00
TreeHugger Robot 45f7360432 Merge "Animate recommended widgets vertical transition when reset widgets picker scroll position" into sc-dev 2021-05-21 02:02:47 +00:00
Steven Ng 36f9aa7530 Merge "Apply android:attr/dialogCornerRadius to widgets picker dialog top corners" into sc-dev 2021-05-20 23:46:53 +00:00
Steven Ng 2c880a321d Merge "Fix WidgetsSearchBarControllerTest" into sc-dev 2021-05-20 23:43:11 +00:00
Steven Ng b46428fcd9 Merge "Remove work profile badge from widget previews" into sc-dev 2021-05-20 23:42:50 +00:00
Steven Ng 444b2489a5 Merge "Reset visible entries when the app tile of the same app no longer match" into sc-dev 2021-05-20 23:42:24 +00:00
Steven Ng f357dc4f3e Merge "Widgets: Only reset expanded item & scroll to top if the user switch tab" into sc-dev 2021-05-20 23:24:35 +00:00
Lucas Dupin c2bcdcee9b Merge "Make launcher opaque when scrim becomes opaque" into sc-dev 2021-05-20 23:11:46 +00:00
Winson Chung bd2fa26bda Tweak ordering of first match search
- Tweak iteration for finding first match, go by operator priority and
  check each cell layout by order to return the first view that matches
- Also reset the launch cookie in cases where we're launching a task
  that doesn't support cookies (ie. via prediction), otherwise we may
  still try to associate it with the last launched cookie later

Fixes: 187720286
Test: Swipe up from various icon types across hotseat/workspace
Change-Id: I71c4c13c442b0884b2247589685f976eaaeb30a4
Signed-off-by: Winson Chung <winsonc@google.com>
2021-05-20 14:50:33 -07:00
Sunny Goyal df4241ca4e Fixing Launcher preview leaking surface and memory
> Closing existing preview if a new request comes for same host token
> Closing in-memory icon db when closing preview
> Removing unnecessary wait blocks on UI thread and rendering
  view asynchronously
> Fixing preview loading failing on LauncherAppState access

Bug: 186712316
Bug: 187140897
Test: Manual
Change-Id: I045930b007e5dc015320224a197eee20a8354d17
2021-05-20 21:37:28 +00:00
Lucas Dupin 0c6341af99 Make launcher opaque when scrim becomes opaque
This will help with overdraw, because we don't need to draw the
wallpaper.

Test: manual
Test: adb shell dumpsys SurfaceFlinger --timestats -dump
Bug: 187703092
Change-Id: I2ebae94725578e5f4d640cd6b45da3f4d1f21a20
2021-05-20 14:33:39 -07:00
Jon Spivack fea72152fd Merge "Disable NIU Actions on Work Profile apps" into sc-dev 2021-05-20 21:16:22 +00:00
Steven Ng 400493c70c Apply android:attr/dialogCornerRadius to widgets picker dialog top corners
Test: Open full & bottom widgets picker and observe the top corners.
Bug: 188651333
Change-Id: If091e2d760042582bb98cbd3e44663542098ecd9
2021-05-20 22:05:29 +01:00
Sunny Goyal 631767d919 Merge "Fixing some errorprone build rules" into sc-dev 2021-05-20 20:17:25 +00:00
Pierre Barbier de Reuille 1b8bbb6c40 Correct size of AppWidget for color extraction.
Correct the size of the App Widget: first, compute the size when the
widget is positioned (it wasn't done), then do not apply the
transformation when computing the size of the widget when drawn.

Note: Somehow, there is a shift by 1 on the position on the x axis, both
in landscape and portrait. So I added a +1 to get the exact same values.
If not, we have a risk of getting different colors.

Fix: 188759989
Bug: 187907544
Test: Added logs and moved a widget by hand, check the actual
coordinates with hsv.

Change-Id: Ia3bd5b3e3ea9a3ef75f8cdf466a9800786646a94
2021-05-20 21:02:30 +01:00
Pierre Barbier de Reuille c3e6383690 Merge "Correct QuickStep interaction handler." into sc-dev 2021-05-20 19:57:56 +00:00
Jonathan Miranda ee43020d0b Merge "Remove min/max values for RectFSpringAnim2." into sc-dev 2021-05-20 19:21:03 +00:00
Sunny Goyal 1fb271f6e1 Fixing some errorprone build rules
Bug: 186259590
Test: Presubmit
Change-Id: I3a4a306a0351a67d53e35a6919296dbda8649766
2021-05-20 10:43:23 -07:00
Kholoud Mohamed 2c2163329b Merge changes I46501369,Icd1ddd43 into sc-dev
* changes:
  Revert "Moving taskbar lifecycle to TouchInteractionService"
  Revert "Renaming TaskbarController to LauncherTaskbarUIController"
2021-05-20 15:30:34 +00:00
Pierre Barbier de Reuille 1c52d1ee12 Correct QuickStep interaction handler.
With the current implementation, all interactions happen on the main
view, preventing any button or clickable object from working.

Fix: 188775840
Test: Using an App Widget with checkboxes
Change-Id: I1ec6391a36b6a3795545acb5e08dde0d3a2b2ac8
2021-05-20 14:48:00 +01:00
Bill Yi 30bcf18025 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-20 13:01:31 +00:00
Kholoud Mohamed 430465a3d5 Revert "Moving taskbar lifecycle to TouchInteractionService"
This reverts commit e215fb730b.

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/tests/view?invocationId=I13700009003387451&testResultId=TR89423459137251402, bug https://buganizer.corp.google.com/issues/188755902

Bug: 188755902
Change-Id: I4650136975b60f311499ee6ff5b27ab9a32d23d6
2021-05-20 13:32:05 +01:00
Kholoud Mohamed bb6f6e5dae Revert "Renaming TaskbarController to LauncherTaskbarUIController"
This reverts commit 40a7421619.

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/tests/view?invocationId=I13700009003387451&testResultId=TR89423459137251402, bug https://buganizer.corp.google.com/issues/188755902

Bug: 188755902
Change-Id: Icd1ddd43e62d392f6b68b0150a1075f73106391a
2021-05-20 13:31:34 +01:00
Tracy Zhou f833ecebfa Notify when quickstep gesture starts
Fixes: 182500083
Test: manual
Change-Id: I1ab27b309c0dd2640add1aa83566acee20708a3a
2021-05-19 22:09:44 -07:00
Bill Yi 34f90233c6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I48b71c9a8d0d380b91f614fad5fc581a67a2fb6b
2021-05-20 01:54:58 +00:00
Bill Yi ba82d94f51 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8e06a080ec1a5e40b106c535c299919486f66915
2021-05-20 01:53:02 +00:00
Steven Ng 73d44f63b4 Animate recommended widgets vertical transition when reset widgets picker scroll position
Test: Set up work profile. Then open the widgets picker, scroll down from
      the personal tab, then switch tab. Observes a vertical transition
      animation of the search and recommendation container view.
Bug: 188538428
Change-Id: I2b8523d1682a6312de3b5393c0bff782ae110b3c
2021-05-19 23:58:54 +01:00
Jon Spivack cdbaea4486 Disable NIU Actions on Work Profile apps
If the currently selected Recent app belongs to a Work Profile, do not allow the user to invoke any of the overview actions. Instead, show the standard blocked by policy message (R.string.blocked_by_policy).

Bug: 187491010
Test: Manual (Pixel 3A)
Test: m -j RunLauncherGoGoogleRoboTests
Change-Id: I552da9512ab19993eb4bb65fe9269d2aee9f0c4e
2021-05-19 14:58:27 -07:00
Steven Ng f735c738ea Remove work profile badge from widget previews
Test: Check work profile badge no longer shown on work widget in the
      full and bottom widgets pickers.
Bug: 177675123
Change-Id: I0e5e32e18df832c1919749404094d68805c30556
2021-05-19 21:45:10 +01:00
Lucas Dupin 4e760601d5 Merge "Remove shadows from app launch animation" into sc-dev 2021-05-19 20:01:06 +00:00
Vinit Nayak 887bfef157 Merge "Don't set enabled on TaskMenu view if shortcut not available" into sc-dev 2021-05-19 19:03:21 +00:00
Samuel Fufa b1114a9834 Merge "[Search] Update all apps header protection" into sc-dev 2021-05-19 19:00:33 +00:00
Sunny Goyal 749f55f07a Merge "Renaming TaskbarController to LauncherTaskbarUIController" into sc-dev 2021-05-19 18:41:47 +00:00
TreeHugger Robot 1e558a2f4c Merge "Folder polish" into sc-dev 2021-05-19 18:00:18 +00:00
TreeHugger Robot f126d078ac Merge "Updated gesture navigation tutorial." into sc-dev 2021-05-19 17:25:48 +00:00
Tracy Zhou dc2be3d8a2 Merge "Finish the recents animation upon home rotation" into sc-dev 2021-05-19 17:17:57 +00:00
Jon Miranda a2ef1a0238 Remove min/max values for RectFSpringAnim2.
- Fixes crash on landscape
- We added this to stop the windows from going way out of bounds. But we no
  longer need it since we've tightened up the stiffness so that
  it would take a super aggressive swipe/high velocity for the window
  to go out of bounds

Bug: 188617892
Test: manual
Change-Id: Icc2a0af0a1b26985502ddbc7a5a370e7eecdb346
2021-05-19 09:55:25 -07:00
Lucas Dupin 3e19e57d22 Remove shadows from app launch animation
The Material You style proposes a flat model without shadows.

This will also help us reduce overdraw because shadows are drawn in
client composition, causing an almost full screen redraw, given that
shadows have the size of the window, which is not usually marked as
opaque.

Bug: 188420494
Test: manual
Change-Id: I5073788a247ea9084b8e3399d4ca8618c21b8d6b
2021-05-19 09:01:38 -07:00
Steven Ng 427c143ef6 Fix WidgetsSearchBarControllerTest
Test: Run WidgetsSearchBarControllerTest
Bug: 188650001
Change-Id: I687d602f8d857061f71a8fba86c30ea3017065c1
2021-05-19 16:08:22 +01:00
Steven Ng 2f2cbce818 Reset visible entries when the app tile of the same app no longer match
Test: Switch language and then go to full widgets picker. Expand apps.
      Expanded entry is shown underneath the expanded app.
Bug: 187529983
Change-Id: Ib438cf01656d3a177309e7f22796d0fa0c11881f
2021-05-19 15:40:02 +01:00
Steven Ng 1a55d1ff37 Widgets: Only reset expanded item & scroll to top if the user switch tab
Test: Open widgets picker, then adb install an app that has widget.
      Observe the newly installed app widget is shown and the widgets
      picker doesn't scroll itself back to top.
Bug: 188425375
Change-Id: I7ac29f08b06d528ef64e902e678a67e56971c681
2021-05-19 15:32:54 +01:00
Jon Miranda e3104682fb Folder polish
- Update folder hint text to ensure enough contrast.
- Clamp down on alpha when animating to local color extraction
- Update colors to new spec.

Bug: 179209484
Bug: 175329686
Test: manual
Change-Id: I9471504e10f02630ae13b2c478ced1ee05bd5220
2021-05-19 14:03:09 +00:00
Sunny Goyal 194dcc0fd3 Merge "Removing number of threads used in background execution to prevent system thrashing" into sc-dev 2021-05-19 06:23:10 +00:00
Vinit Nayak 719154dc1b Don't set enabled on TaskMenu view if shortcut not available
Bug: 188195640
Test: No crash when opening tasks when SPLIT_SELECT flag on.
Change-Id: I8f27e311cbb03ea37dcbd63d209b6652f02074af
2021-05-18 23:03:59 -07:00
TreeHugger Robot 4717bae7dc Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-19 02:51:31 +00:00