Commit Graph

31103 Commits

Author SHA1 Message Date
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
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
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
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
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
TreeHugger Robot 43e516227e Merge "End any running taskbar animation in cleanup()" into sc-dev 2021-03-09 22:58:39 +00:00
Samuel Fufa dc016f37a2 Fix QSB tap crash
Launcher should use LCM of supported getSupportedItemsPerRowArray instead of product.

Bug: 182236647
Test: Manual
Change-Id: Ia0ad1158a841068c29ed09bf7f598f14c410092f
2021-03-09 10:00:05 -06:00
Hyunyoung Song c2b750797c Merge "Instrumenting flinging all apps for jank" into sc-dev 2021-03-09 13:55:02 +00:00
TreeHugger Robot 505b4b2d8f Merge "Use ACCEL_DEACCEL when swiping up to enter grid" into sc-dev 2021-03-09 11:56:28 +00:00
Steven Ng 3c08f580c3 Merge "Widgets recommendation backend" into sc-dev 2021-03-09 10:05:55 +00:00
TreeHugger Robot 146bbcd5c9 Merge "Pause onAppsUpdate when AllApps is converted to tabs." into sc-dev 2021-03-09 06:51:09 +00:00
Hyunyoung Song 34c0262778 Instrumenting flinging all apps for jank
Bug: 178656812
Test: manual

Change-Id: I56bf19709784ac081a4f7068dedb8814eb6f3d0b
2021-03-08 20:40:39 -08:00
Samuel Fufa d0bb42bf2e Pause onAppsUpdate when AllApps is converted to tabs.
To avoid onAppsUpdated conflicting with WorkTabEdu, this change pauses callback updates when AllApps is first converted to tabs. This should  avoid the need for additional  extended timeouts.

Bug: 159671700
Test: Presubmit
Change-Id: I0959629f47ae6d824e5886b2cf917635f5bfdf0e
2021-03-09 02:48:08 +00:00
Sunny Goyal 0724113b3d Removing insets controller animation as part of all-apps opening
Adding support for easier extension of StateHandlers

Bug: 180143210
Test: Verified on device
Change-Id: If6a088d1482c9b268b21786c4694f6e0927be0c3
2021-03-08 18:38:25 -08:00
Steven Ng 3a8353256a Widgets recommendation backend
Add a widgets recommendation mechanism based on AiAI app predication
ranking with the following changes:

1. Only one widget is picked from one app.
2. Widgets that are already added to the workspace are excluded from
   the recommendation.

Test: run PredicationUpdateTaskTest

Bug: 179797520
Change-Id: Ia697bc6df0bae75969e68b7b3de32d57901f7461
2021-03-08 23:37:51 +00:00
Steven Ng ae6b34811b WidgetCell & LiveWidgetPreview cleanup
The fixes are:
1. For widgets shown in TableRow, aligns them center vertically.
   This is useful when widgets of different height are shown in
   the same row.
2. Remove background color from WidgetCell
3. Re-enable swipe in FullWidgetsSheet
4. Use the WidgetCell image as the single & long press area because
   1. Previews are now scaled to their default size. The touch area
      should already be larger for widgets that are bigger than 2.4
      cells
   2. WidgetCells also render description. If the user long press the
      description area, the drag view will not align in the middle of
      the user touch / drag area.

Test: Drag-n-drop widgets from FullWidgetsSheet, BottomWidgetsSheet
      and pin widget flow.
      In FullWidgetsSheet, swipe left and right to switch work /
      personal tab.

Video: https://drive.google.com/file/d/1Ur7PwF1a7iwGGRTZczfc0BSVu-Ta6-Vm/view?usp=sharing

Bug: 179797520
Change-Id: I6fe4bc88d1e1b35b1819d8d7f046105f5ed27043
2021-03-08 21:22:08 +00:00
TreeHugger Robot d60299e19f Merge "Prevent NPE inside AllAppsTransitionController" into sc-dev 2021-03-08 20:21:31 +00:00
Samuel Fufa 3b61fb2b01 Merge "[Search] Support flexible results-per-row in AllApps" into sc-dev 2021-03-08 20:04:19 +00:00
Tony Wickham 51b2453e30 End any running taskbar animation in cleanup()
Test: Open an app, swipe to home and remove taskbar during animation,
ensure no crash
Fixes: 182163822

Change-Id: Ie92b4fdf03a23c8a205d1d7327a304cf1d996383
2021-03-08 10:14:10 -08:00
Alex Chau 45fc681180 Use ACCEL_DEACCEL when swiping up to enter grid
Bug: 174464863
Test: Test entering grid when swipe up on small and large screens
Change-Id: I0799ef341b8344406de371501dc34a12ac8cbc6e
2021-03-08 18:11:39 +00:00
Alex Chau 2b860d29ca Merge "Fix overview grid scroll problem" into sc-dev 2021-03-08 17:52:32 +00:00
TreeHugger Robot b6c4fd18af Merge "Update app widget resize frame UI." into sc-dev 2021-03-08 16:06:12 +00:00
Alex Chau ae53cb246f Fix overview grid scroll problem
- This can be reproduced ocassionally without any obvious pattern, when this happen the page scroll and min/max scroll is messed up
- When this happen, onLayout happens before the first setGridProgress call from animations
- The fix is to request a relayout at the end of state transition

Bug: 174464863
Test: manual
Change-Id: I12683c49d7ed72349a4b9cb3b4d3871741e3e22e
2021-03-08 15:16:07 +00:00
TreeHugger Robot d10382995f Merge "Inflate layout preview for work profile" into sc-dev 2021-03-08 11:32:17 +00:00
Bill Lin 2ae5f20269 Avoid mis-trigger when motion do not endup within system gesture region
Previously, mOneHandedModeRegion reference larger gesture hieght
"navigation_bar_gesture_larger_height" for the detect region which
will easily introduce mis-trigger above NavBar panel region

Now we add 1 more condition to ensure user end up the motion in NavBar
region for both OHM & Swipe Notification gesture

Test: atest WMShellUnitTests
Test: NexusLauncher:connectedGoogleWithQuickstepDebugAndroidTest
Bug: 179957109
Change-Id: Ibceab87cd17fd8988f39c6c1746829d73623e4f1
2021-03-08 19:08:21 +08:00
Hyunyoung Song 1a26781153 Merge "No focus highlight in prediction row" into sc-dev 2021-03-08 10:07:58 +00:00
Hyunyoung Song 2e2ec9652f Merge "Do not rebind AA+ adapters when there's search result" into sc-dev 2021-03-08 10:01:16 +00:00
Hyunyoung Song f0988f1fb1 Prevent NPE inside AllAppsTransitionController
Bug: 181911438
Test: manual

Change-Id: Ia2cfe43512c0336232fc6787eb955d476280e3b8
2021-03-08 00:43:25 -08:00
TreeHugger Robot d333224f19 Merge "Convert Launcher Android.mk to Android.bp to setup RoboTests" into sc-dev 2021-03-08 08:12:53 +00:00
Hyunyoung Song 5a007fe0f6 Convert Launcher Android.mk to Android.bp to setup RoboTests
Bug: 181083996
Test: m Launcher3 && install Launcher3 and test basic things
Test: m RunLauncherRoboTests (90 tests run and 3 fails)

Change-Id: Icdc839d06413409cbd52d10a5ef9fe27b0a57baa
2021-03-07 22:42:42 -08:00
Hyunyoung Song d3df0e4103 Do not rebind AA+ adapters when there's search result
Bug: 181352111
Test: manual
Change-Id: Ieab75f3805f5d06a6bd8f60014abca103d7004b4
2021-03-07 22:02:16 -08:00
Hyunyoung Song 0f77156397 No focus highlight in prediction row
Bug: 181337130
Test: manual

Change-Id: Ic6598a02c575037208c8808e1f9e102b7b7be5e9
2021-03-07 22:00:33 -08:00
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
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
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 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 64c6428acc Merge "Remove LiveTileOverlay" into sc-dev 2021-03-05 21:09:17 +00:00