Commit Graph

83004 Commits

Author SHA1 Message Date
Andy Wickham b5308e005c Update device profile tests to account for all apps panel.
Flag: com.android.launcher3.all_apps_sheet_for_handheld
Test: DeviceProfileDumpTest
Bug: 374186088
Change-Id: I18148452270cdc1d8b6a43122c2b49f535a86daa
2025-01-23 01:46:18 +00:00
Lingyu Feng 156c69bd2a Rename onDisplayReady to onDisplayAddSystemDecorations
Bug: 390591772
Flag: com.android.server.display.feature.flags.enable_display_content_mode_management
Test: m
Change-Id: I7fe025275894ed21166be41855ab93f434b1de73
2025-01-23 10:38:15 +09:00
Shamali P 7d64195793 Fix issue that recommendations were visible in landscape mode.
ag/30344959 showed the recommendations if available, to avoid the issue
of widgets list flashing when exiting search mode. However, we usually
hide recommendations in phone landscape due to the sticky header layout
not having enough space. In this fix, instead, we rebind recommendations
as before (to let the logic there decide whether to show or hide them),
and in order to fix the flashing problem that the earlier change was handling, we reset the recycler view.

Bug: 391231345
Flag: EXEMPT bugfix
Test: Manual, we don't have tests for interactions between screens
Change-Id: I535aa43cc553c9287c5d38ef7cde30f01e84d347
2025-01-22 16:19:35 -08:00
Android Build Coastguard Worker 913244fac3 Merge cherrypicks of ['googleplex-android-review.googlesource.com/31389458', 'googleplex-android-review.googlesource.com/31389459', 'googleplex-android-review.googlesource.com/31392372'] into 25Q1-release.
Change-Id: I9b168316aff1fe91c2309d14f2f9ba226ff3efb3
2025-01-22 15:42:26 -08:00
Bill Yi 9bdbf3f1ff Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import

Bug: 391337100
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:56c00017dba8362a0bac6eba16065010afe8207b)
Merged-In: I56538c0a63fec05dd87df2afa0760fddfcab55dd
Change-Id: I56538c0a63fec05dd87df2afa0760fddfcab55dd
2025-01-22 15:28:30 -08:00
Bill Yi f22de1b0b6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import

Bug: 391337100
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ccb7c4d26baf13960615c1f447ed9b80ae2e4e31)
Merged-In: Ib01195ca78be6438daa05f648e52675bf9241ced
Change-Id: Ib01195ca78be6438daa05f648e52675bf9241ced
2025-01-22 15:28:16 -08:00
Bill Yi e0fad6499a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import

Bug: 391337100
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:399b7debd860abbbb47d442c6cbaa30c39c904b6)
Merged-In: I7d6dd13217d83df7991eabb3c0398d582b65c6a0
Change-Id: I7d6dd13217d83df7991eabb3c0398d582b65c6a0
2025-01-22 15:28:03 -08:00
Federico Baron 8d3883def3 Remove heuristic that determines whether to shift cells down or not
We decided to always shift the cells down, so that the new row always
shows up at the top

Bug: 391697719
Test: GridMigrationTest
Flag: com.android.launcher3.one_grid_specs
Change-Id: Id093e0d64e437bf218f942bfdf6d2f14ee875776
2025-01-22 23:19:43 +00:00
Bill Yi c22fd54f27 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-01-22 14:51:30 -08:00
Bill Yi f60e8348dd Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-01-22 14:51:30 -08:00
Bill Yi a86273f90e Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-01-22 14:51:30 -08:00
Adnan Begovic 3cabbe8f1d launcher3: Add support for custom layouts in ArrowTipView.
Allow overriding of various interfaces that allow a subclass
  of ArrowTipView to stipulate its own layout.

Test: manual, existing
Flag: com.android.launcher3.one_grid_specs
Bug: 388311172
Change-Id: Id42e2a18faf5ca6a4259c0e707f09584a6804cb0
2025-01-22 14:51:21 -08:00
Toni Barzic f817372651 Show desktop tasks when taskbar is pinned on home
Updates taskbar and KQS to show (running) desktop tasks when taskbar is
shown on the home screen - adds `shouldShowDesktopTasksInTaskbar` method
to TaskbarDesktopModeController to be used instead of
`areDesktopTasksVisible*()` to determine whether to show desktop tasks
in the taskbar. The method, in addition to desktop tasks visibility,
also considers whether taskbar should be shown on the home screen, and
whether current launcher state is home.

The launcher state is fetched from `TaskbarStashController`, which
already keeps track of this state. This is likely not ideal, but can be
removed in the long term - see http://b/390665752.

Furthermore, updates ReventsModel login not to always filter out desktop
tasks with no non-minimized tasks (which is currently expected behavior
in overview) in `getTasks()`. The filtering is now done by the filter
passed to `getTasks()` method, instead of when processing tasks in the
background. The filter used by default is updated to filter out such
desktop tasks, but callsites from `KeyboardQuickSwitchController` and
`TaskbarRecentAppsController` are updated to use an empty filter, so
they can display desktop tasks when they're all minimized.

Bug: 376711722
Bug: 390665160
Test: Manual on desktop device - verify that taskbar and KQS when shown
on home screen display desktop tasks, including the case all tasks are
minimized.
Flag: com.android.window.flags.enter_desktop_by_default_on_freeform_displays

Change-Id: Iabc22e20bf64aa9a826b4a5952f1edc6ea639cdc
2025-01-22 22:36:02 +00:00
Liana Kazanova (xWF) 9b0a007ae3 Merge "Revert "Migrating RecentsAnimationDeviceState and dependent obje..."" into main 2025-01-22 14:05:04 -08:00
Liana Kazanova (xWF) fa30e3fc0e Revert "Migrating RecentsAnimationDeviceState and dependent obje..."
Revert submission 31332401-recents-device-state

Reason for revert: DroidMonitor: Potential culprit for http://b/391684419 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Reverted changes: /q/submissionid:31332401-recents-device-state

Change-Id: I3986328ee3aa8ebb822f7ef05b9f80ef68872aef
2025-01-22 13:50:08 -08:00
Vinay Joglekar 75a07a3e2d Merge "Consume callback sent from shell when overview task is entered desktop mode from desktop menu" into main 2025-01-22 13:32:46 -08:00
Treehugger Robot 906aa39c47 Merge "Cleanup leftRightSplitInPortrait flag" into main 2025-01-22 12:29:12 -08:00
Treehugger Robot 966e15e7c8 Merge "Remove TEMP_PARAMS and instead create a new FullscreenDrawParams in constructor." into main 2025-01-22 12:22:52 -08:00
Anushree Ganjam efc40ac203 Remove TEMP_PARAMS and instead create a new FullscreenDrawParams in constructor.
Bug: 361850561
Test: Manual
Flag: EXEMPT Dagger
Change-Id: I5d2c289e58ff6151f651a5a6ec6bd8f567cb93d1
2025-01-22 10:16:40 -08:00
Treehugger Robot cfe0dbf1cd Merge "Migrating RecentsAnimationDeviceState and dependent objects to Dagger" into main 2025-01-22 09:34:25 -08:00
Mykola Podolian 1b6238e90a Merge "Fixed Bubble Bar Cutoff After Unlock" into main 2025-01-22 09:22:55 -08:00
Vinit Nayak 56234dbfe1 Cleanup leftRightSplitInPortrait flag
Bug: 291018646
Change-Id: I2c801378c33ee62b5f6eabf2e9122dd7ae1a5ee0
Flag: EXEMPT removing flag
2025-01-22 08:28:40 -08:00
Gustav Sennton 826cbf9c81 Merge "Pass empty bundle instead of null to startLaunchIntentTransition()" into main 2025-01-22 01:03:11 -08:00
Bill Yi 06558f5785 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4ffec883c54d1ae61c9966664160f32cea0b9f80
2025-01-22 00:03:12 -08:00
Bill Yi 24d8be2def Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8e4484d3d8b4e5219c0a8417d9e9e6bc954c5a00
2025-01-22 00:02:43 -08:00
Bill Yi 594da54154 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7e6c4e5df526ff2dddde477f094e48ec763da139
2025-01-22 00:02:17 -08:00
Sunny Goyal d7bfa76bcc Migrating RecentsAnimationDeviceState and dependent objects to Dagger
Bug: 361850561
Flag: EXEMPT dagger
Test: Presubmit

Change-Id: I2c45ec49a913abb0532e83b09e797012e06eb8c4
2025-01-21 23:53:02 -08:00
Treehugger Robot e3220bec92 Merge "Fix failing tests that are blocking OOM investigation" into main 2025-01-21 23:19:37 -08:00
Treehugger Robot bd3228ef8e Merge "Update usages of icon shapes in Launcher" into main 2025-01-21 20:51:35 -08:00
Treehugger Robot ae11d4e705 Merge "Update Gesture nav tutorial page title for Talkback support" into main 2025-01-21 20:44:14 -08:00
Treehugger Robot 5684d23331 Merge "Don't expect another task to become focused when dismissing Desktop task" into main 2025-01-21 20:33:31 -08:00
Federico Baron 0a9a5dc466 Fix failing tests that are blocking OOM investigation
Flag: TEST_ONLY
Bug: 388258969
Test: InstallSessionTrackerTest InstallSessionHelperTest
Change-Id: I539c51c6a253ff0b64113e73764979c5e188bbbb
2025-01-21 19:44:50 -08:00
Charlie Anderson ad8b2ec13b Update usages of icon shapes in Launcher
Bug: 387546051
Test: manual
Flag: com.android.launcher3.enable_launcher_icon_shapes
Change-Id: I33725259b3480f6e3a2976c227ccdffcfd7d6f83
2025-01-22 02:37:08 +00:00
Treehugger Robot 71cbc13214 Merge "Revert "Replace system_ext container with system"" into main 2025-01-21 17:06:01 -08:00
Treehugger Robot bfd58c8c00 Merge "Remove some usages of GroupTask.task1" into main 2025-01-21 17:04:01 -08:00
Treehugger Robot e166210d7a Merge "Update translationX calculation of the AddDesktopButton" into main 2025-01-21 16:29:22 -08:00
mpodolian adeaf908ec Fixed Bubble Bar Cutoff After Unlock
The Bubble Bar was being cut off due to the taskbar window height.
Modified the BubbleBarViewController to rely on the bubble count to
compute the maximum height, rather than the BubbleBarView visibility.

Test: Manually tested. Expanded the Bubble Bar in 3-button navigation.
Pressed the power button to lock the screen. Unlocked the screen.
Fixes: 391358222
Flag: com.android.wm.shell.enable_bubble_bar

Change-Id: I1923fc84df403abea022ba84f23fc66be7dbe7aa
2025-01-21 14:27:19 -08:00
minch 51ae37fd6a Update translationX calculation of the AddDesktopButton
Shift the `mAddDesktopButton` by the `largeTaskWidthAndSpacing`
if the focused task is inserted between the first TaskView
and the `mAddDesktopButton`.

Flag: com.android.window.flags.enable_multiple_desktops_frontend
      com.android.window.flags.enable_multiple_desktops_backend
Fix: 389209772
Test: Manual
Change-Id: Ideafe28496ccb85e1c682606be94c5ef5c4eafdb
2025-01-21 13:54:05 -08:00
Vinit Nayak e7753eb796 Merge "Remove and cleanup AppPairs flag" into main 2025-01-21 12:20:55 -08:00
Android Build Coastguard Worker 341e8e2567 Merge cherrypicks of ['googleplex-android-review.googlesource.com/31324307'] into 25Q1-release.
Change-Id: I496d5bfba536ccf1491bbba41eae8cf437f10d7a
2025-01-21 11:11:55 -08:00
Fengjiang Li 47666fbf7b [Leak] Clear all of TaskbarView's FolderIcons' listeners upon activity onDestroy
Fix: 390200556
Test: manual
Flag: NONE - released code
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:90e83779f2d1a7c432448b10523d1fea13cb2938)
Merged-In: I4f6fd2fb0b263169bd5e59e90b321cedfc22f4de
Change-Id: I4f6fd2fb0b263169bd5e59e90b321cedfc22f4de
2025-01-21 11:11:31 -08:00
Schneider Victor-Tulias 596340b329 Update Gesture nav tutorial page title for Talkback support
Flag: EXEMPT bug fix
Fixes: 386688975
Test: opened gesture nav tutorial with talkback on
Change-Id: Ibe1db0788d70acef67a78c314c9d415cb3a42831
2025-01-21 10:53:59 -08:00
Bill Yi 9783a6a79a Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-01-21 10:35:27 -08:00
Alex Chau 341330bacd Don't expect another task to become focused when dismissing Desktop task
- Don't consider Dekstop task as focused in TAPL
- Renamed variables in dismissTasks_whenDesktopTask_IsInTheCenter as there isn't always a focused task

Fix: 391354508
Test: TaplTestsOverviewDesktop#dismissTasks_whenDesktopTask_IsInTheCenter
Flag: EXEMPT BUG_FIX
Change-Id: Iadc0cf81f37d537837e565e233d11c4148cf3045
2025-01-21 17:58:58 +00:00
Gustav Sennton 4b0a5bf3e2 Pass empty bundle instead of null to startLaunchIntentTransition()
Bug: 391309665
Test: manual; launch app from AllApps tray when in Desktop Mode
Flag: com.android.window.flags.enable_desktop_windowing_mode
Change-Id: Ic31ed43f6f2de630b2d235028ebd9643a8a8cf49
2025-01-21 17:23:39 +00:00
Treehugger Robot af431cf18e Merge "Add feature flag for enable_separate_external_display_tasks" into main 2025-01-21 08:10:15 -08:00
Alex Chau 9d7546ef59 Add feature flag for enable_separate_external_display_tasks
Bug: 391311008
Flag: com.android.launcher3.enable_separate_external_display_tasks
Test: None
Change-Id: Iae86c73912bbe5ba8c0736d2631eebcfd2f8620a
2025-01-21 13:43:58 +00:00
Treehugger Robot 399ca5a6f4 Merge "Add kill switch for ViewPool.initPool." into main 2025-01-21 02:22:21 -08:00
Treehugger Robot fd726c7ce8 Merge "Add logging for RDeps lifecycle and ViewPool.initPool to help debugging." into main 2025-01-21 02:20:38 -08:00
Uwais Ashraf 6322c00b70 Add kill switch for ViewPool.initPool.
This fixes an issue where, in fast E2E tests, the test can complete before initPool is completed. This results in the ViewPool continuing to create TaskViews and therefore TaskThumbnailViews after RecentsDeps is destroyed. Doing this causes a crash.

Stopping the ViewPool.initPool thread before destroying RecentsDeps fixes this.

Bug: 390156722
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: fast E2E tests in presubmit e.g. AllAppsImageTest
Change-Id: I0f8801ca75cda383df8ed96077cf1b7178771cb6
2025-01-21 08:06:23 +00:00