Commit Graph

80552 Commits

Author SHA1 Message Date
Treehugger Robot
feb96ff7d3 Merge "Launch app pair when one of them is in freeform." into main 2025-02-20 20:29:16 -08:00
Saumya Prakash
4e0e72e013 Merge "Add developer option to launch gesture nav tutorial" into main 2025-02-20 18:42:36 -08:00
Shamali Patwa
e532fc86b4 Merge "Update widgetsModel to return pickable vs all widgets separately." into main 2025-02-20 17:42:32 -08:00
Treehugger Robot
aea16bd093 Merge "Expose icon scale to properly shape themed icons" into main 2025-02-20 17:30:46 -08:00
Treehugger Robot
48fe315833 Merge "Update usage of flags to dev options." into main 2025-02-20 17:29:38 -08:00
Treehugger Robot
6787617f73 Merge "Log LPNH abandon times at least 200ms." into main 2025-02-20 17:16:15 -08:00
Treehugger Robot
ca88e0cc04 Merge "Log minimize CUJ in MinimizeAnimator" into main 2025-02-20 14:52:48 -08:00
Randy Pfohl
4d9ce7c953 Merge changes I854de220,Ib5e380a3,I5acfa734 into main
* changes:
  Respond to configuration changes in RecentsWindowManager
  enabling animations to return to home
  Fixing crash, and  no touch input while mid animation
2025-02-20 14:15:00 -08:00
Andy Wickham
8fabc6d111 Log LPNH abandon times at least 200ms.
Restricting to 200ms+ to reduce the spamminess of these logs.

The idea is to log the latency of LPNH abandons to see the effect
of prewarming at x ms.

Bug: 397484410
Flag: EXEMPT logging
Test: Manual and updated NavHandleLongPressInputConsumerTest.
Change-Id: I93f94ed0757508b68fcb48d61bdd194564dcc573
2025-02-20 22:14:37 +00:00
Shamali P
f6efa25a49 Update widgetsModel to return pickable vs all widgets separately.
Earlier wallpaper preview was reading widgets that were eligible for
displaying in picker, which means widgets that are marked as hidden in
picker wouldn't show up in wallpaper preview.

This fix updates widgets model to maintain map of all widgets (instead of just pickable widgets like before), so that the existing `getWidgetsByComponentKey` function used by wallpaper preview can see all widgets. And, updates picker specific methods to use separate functions (suffixed `forPicker` that filter out picker ineligible widgets when read by picker code).

Bug: 385695615
Test: WidgetsModelTest, WidgetsPredictionUpdateTaskTest and demo
Flag: EXEMPT BUGFIX
Change-Id: I59efe38be0ce1f8a956ba4be42fb6e8b48b5d323
2025-02-20 14:13:16 -08:00
Saumya Prakash
57794d1025 Add developer option to launch gesture nav tutorial
This change allows you to start the full, continuous gesture navigation
tutorial by tapping the "Launch Full Gesture Tutorial" option in
launcher developer settings.

Fix: 398018882
Test: Go to developer settings and launch tutorial. It should be
continuous and automatically move on to each gesture.
Flag: EXEMPT bugfix

Change-Id: I5da176e13b4403e1748b9ccba74b24145dafed2c
2025-02-20 21:54:25 +00:00
Hongwei Wang
3e63b57f7d Merge "Switch to PictureInPictureParams#isSameAspectRatio" into main 2025-02-20 13:10:56 -08:00
Treehugger Robot
54a002db43 Merge "Moving grid customization provider to Dagger" into main 2025-02-20 13:07:33 -08:00
Charlie Anderson
c0fda71c36 Expose icon scale to properly shape themed icons
Bug: 394902299
Test: tested with themed/forced-themed icons on and off
Flag: com.android.launcher3.enable_launcher_icon_shapes
Change-Id: I5b189b8dcfefe195e42b8cfad1bda9e18fd80a29
2025-02-20 21:06:28 +00:00
Treehugger Robot
3cd737db84 Merge "Add null checks to prevent NPE on ViewModel." into main 2025-02-20 11:03:26 -08:00
Treehugger Robot
e8a1719649 Merge "Copy drawable so that mutations don't affect other uses of the drawable" into main 2025-02-20 10:28:17 -08:00
Vania Desmonda
b8db0313bc Update usage of flags to dev options.
Bug: 361366053
Bug: 345296916
Bug: 381866902
Flag: EXEMPT refactoring flag
Test: presubmits
Change-Id: I7653ca4e7a2476402cfccbbc72194b14b10cb93f
2025-02-20 18:27:43 +00:00
Sunny Goyal
3fd385c1cd Moving grid customization provider to Dagger
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger

Change-Id: I0ebc2a614b9448e5de97d3dda43d98b951989689
2025-02-20 10:16:56 -08:00
Vania Desmonda
c8ee653eef Launch app pair when one of them is in freeform.
Call launchAppPair when one of the tasks is in freeform to prevent only
launching one app to the side and choosing the DesktopWallpaperActivity
as the other app pair.

Fixes: 394917143
Flag: com.android.window.flags.enable_desktop_windowing_mode
Test: atest NexusLauncherRoboTests
Change-Id: I3967473fa648f2b245ac8b4f16e6112f6d8f077f
2025-02-20 18:01:42 +00:00
Treehugger Robot
ca902dc757 Merge "Don't modify invariant device profile" into main 2025-02-20 09:59:54 -08:00
Treehugger Robot
9bacd7ce4a Merge "Send intent boradcast when AllSetActivity ends and reaches launcher" into main 2025-02-20 09:42:57 -08:00
Uwais Ashraf
91370114ea Add null checks to prevent NPE on ViewModel.
ViewModel can be null if onRecycle completes before coroutineJob is cancelled.

Fix: 395751707
Flag: Exempt - test fix
Test: OpenActivityEmbeddingPlaceholderSplitTest in postsubmit
Change-Id: I12e1f6e2e5951ae04264fc8ea9d45b6ac6d43308
2025-02-20 17:03:27 +00:00
Uwais Ashraf
19381579f1 Copy drawable so that mutations don't affect other uses of the drawable
Fix: 397770855
Flag: EXEMPT - test fix
Test: OverviewTaskSelectImageTest
Change-Id: I9e0fa179ab3c7de6edf566f50459c51c6efb4377
2025-02-20 08:28:28 -08:00
Treehugger Robot
f4bbd45d13 Merge "Add screen record to determine flake of testDismissCancel." into main 2025-02-20 08:16:52 -08:00
Charlie Anderson
b982bfede0 Merge "Removing Sunny shape option" into main 2025-02-20 06:40:12 -08:00
Treehugger Robot
6f7d05b2a5 Merge "Prevent high res callback from fetching when not needed." into main 2025-02-20 06:29:13 -08:00
Jordan Silva
b809a07d88 Merge "Fix cropping app chip text with largest display and font size" into main 2025-02-20 06:14:16 -08:00
Pat Manning
e79ccd9c96 Add screen record to determine flake of testDismissCancel.
Bug: 396447643
Test: TaplTestsQuickstep#testDismissCancel
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: Iec03b7ed64d21dc425cf84c62dea4131a050b7b2
2025-02-20 14:08:18 +00:00
Treehugger Robot
c6a24e4178 Merge "Use scale adjusted path to avoid warped rounded corners." into main 2025-02-20 05:29:15 -08:00
Alex Chau
0b584b0c98 Merge "Update Desktop tasks's corner radius to match Shell side" into main 2025-02-20 05:25:17 -08:00
Sergey Pinkevich
c07d64b601 Merge "Convert DesktopAppLaunchTransitionManagerTest to multivalent" into main 2025-02-20 04:52:11 -08:00
Massimo Carli
18f168b8a3 Merge "[2/n] Fix tests before adding modal permission check" into main 2025-02-20 02:27:01 -08:00
Sergey Pinkevich
e97f4932fd Merge "Add logs for DesktopAppLaunchTransition when animation starts/no launch change" into main 2025-02-20 02:20:28 -08:00
Gustav Sennton
f275bd9bcc Log minimize CUJ in MinimizeAnimator
Flag: NONE refactor
Test: manual
Bug: 374206096

Change-Id: Id8ab050e5f2f519cccc460b690c2e8edd7c20561
2025-02-20 08:30:44 +00:00
Treehugger Robot
233e7e2a6f Merge "[Memory Leak] Attempt to fix leak caused by onEndCallback created for open app animation not running" into main 2025-02-20 00:04:03 -08:00
Treehugger Robot
cad0c7f8c6 Merge "Make can create new desks a global state" into main 2025-02-19 18:13:42 -08:00
Fengjiang Li
c926dd5be2 [Memory Leak] Attempt to fix leak caused by onEndCallback created for open app animation not running
Fix: 397690719
Flag: NONE - release code
Test: presubmit
Change-Id: Icf36b744f21f50b7182c81437ef29b5886c2d43d
2025-02-19 18:00:41 -08:00
Treehugger Robot
1444e05a5f Merge "Fix performance regressions with handheld apps panel." into main 2025-02-19 17:32:20 -08:00
Eric Lok
8504c427c7 Merge "Mark tasks on launcher as perceptible" into main 2025-02-19 15:55:22 -08:00
Cosmin Băieș
4af51a46f6 Merge "Use FLAG_ALT_FOCUSABLE_IM in taskbar when needed" into main 2025-02-19 15:08:48 -08:00
Treehugger Robot
f0dd54fb83 Merge "Exclude dynamic shortcuts from being force themed" into main 2025-02-19 14:46:39 -08:00
Treehugger Robot
af35666c20 Merge "[CD Taskbar] Create new taskbars only when we have system decor" into main 2025-02-19 14:39:03 -08:00
minch
92cb978575 Make can create new desks a global state
Bug: 389209338
Test: m
Flag: EXEMPT new APIs update without impl yet.
Change-Id: Id7ebfbc1d03d823932515df42fa51e22f44f8116
2025-02-19 21:24:49 +00:00
Sukesh Ram
1b4d00e250 [CD Taskbar] Create new taskbars only when we have system decor
Only allow for new taskbars  when wm.shouldShowSystemDecors=true.

Bug: 397250946
Change-Id: I29577224e763ca44a2b1878691dce3e3aa1534ff
Test: m
Flag: com.android.window.flags.enable_taskbar_connected_displays
2025-02-19 11:25:27 -08:00
Federico Baron
c07bf539ee Don't modify invariant device profile
We flag guard the code that modifies IDP as that's not needed with one
grid, and we don't want to modify idp outside of it

Bug: 332974074
Flag: com.android.launcher3.one_grid_specs
Test: verified manually with b&r
Change-Id: Ica2ffa79638fa693cde421adb13feebb0d09cbc4
2025-02-19 19:20:03 +00:00
Hongwei Wang
4b695cab69 Switch to PictureInPictureParams#isSameAspectRatio
Switch to PictureInPictureParams#isSameAspectRatio on Launcher side, the
same check has been applied in CTS tests.

Flag: EXEMPT bugfix
Bug: 352118806
Test: atest PinnedStackTests
Change-Id: I26f87ef12b95204c7ee58467611b525aa24c3e3a
2025-02-19 11:18:32 -08:00
Sunny Goyal
91547eb4d2 Merge "Simplifying icon normalization for adaptive icons" into main 2025-02-19 10:36:30 -08:00
Randy Pfohl
d08484669c Respond to configuration changes in RecentsWindowManager
Summary: Will respond appropriately to config changes, there are
	additional issues within recentsview itself with some
	issues with the viewmodel binding.

Test: Local testing currently, will add more to bug

Flag: com.android.launcher3.enable_fallback_overview_in_window
      com.android.launcher3.enable_launcher_overview_in_window

Change-Id: I854de2204b11d36941849703076def0c039060bf
2025-02-19 18:32:21 +00:00
Randy Pfohl
5b15f38553 enabling animations to return to home
Summary: Not entirely sure why this was false, but animating this
looks much more clean then what it was.

Test: Local testing currently, will add more to bug

Flag: com.android.launcher3.enable_fallback_overview_in_window
      com.android.launcher3.enable_launcher_overview_in_window

Bug: 292269949

Change-Id: Ib5e380a394cb5fd1f57933eb454eee3789f2057e
2025-02-19 18:32:21 +00:00
Randy Pfohl
3c4c943772 Fixing crash, and no touch input while mid animation
Test: Local testing currently, will add more to bug

Flag: com.android.launcher3.enable_fallback_overview_in_window
      com.android.launcher3.enable_launcher_overview_in_window

Bug: 292269949

Change-Id: I5acfa734e434c625ef0f5efbce0cf09e2c5a179d
2025-02-19 18:32:19 +00:00