Commit Graph

83004 Commits

Author SHA1 Message Date
Anushree Ganjam 99ba7b61be Merge "Move NavHandleLongPressHandler to Dagger." into main 2025-04-24 16:29:24 -07:00
Saumya Prakash 8a422c3ea6 Merge "Hide the taskbar edu when taskbar all apps launches" into main 2025-04-24 15:33:11 -07:00
Treehugger Robot 4b74cfa36d Merge "Fix tapl tests with multi-desks on" into main 2025-04-24 15:15:16 -07:00
Ats Jenk 821adae181 Store bubble bar state in sysui proxy
SysUIProxy may not be initialized when we set the launcher bubble bar
state and the listener.
Listener is stored in a field and set in sysui when the proxy
initializion is complete.
Add the same for the launcher bubble bar state. Otherwise bubble bar
state in sysui may not be immediately updated.

Bug: 357115534
Test: restart device, trigger a bubble before device is rotated
Flag: com.android.wm.shell.enable_bubble_bar
Change-Id: I5dca49981c45b0e4c8c2535a283b9d9241eb47ba
2025-04-24 14:04:45 -07:00
Stefan Andonian ad6841aaf3 Update the PageIndicatorDots to track scroll progress.
animateToPosition now only occurs if the user performs a fling.

Bug: 394355070
Test: Verified this works locally. Please see the bug for a screen recording of the working behavior.
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: Ic57495e3aec00d903ed948b887723b1389337c8d
2025-04-24 14:00:31 -07:00
Stefan Andonian cffeb99122 Only Show Folder Arrows if Mouse or Trackpad is Connected to Device
Bug: 394355070
Test: Verified correct behavior locally. See screen recording on https://buganizer.corp.google.com/issues/394355070#comment28
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: I7132b892b3bd8ee3af2cdca58b6e70f3a219c8f4
2025-04-24 13:59:21 -07:00
Stefan Andonian e0dffed77b Make Width Calculation Exact
Bug: 394355070
Test: Verified locally that indicator dots are not cut off with 6 pages. See screen recording on https://buganizer.corp.google.com/issues/394355070#comment28
Flag: com.android.launcher3.enable_launcher_visual_refresh
Change-Id: I5b0ac0441201e8dafcba10ff52ac24e1821815b9
2025-04-24 13:59:07 -07:00
Liran Binyamin 4753b6e83e Merge "Pass bubble bar bounds to shell on handshake" into main 2025-04-24 13:56:59 -07:00
Ats Jenk bc164497b5 Merge "Tell WMShell when bubble bar is active or not active" into main 2025-04-24 13:00:03 -07:00
Saumya Prakash c3855cf8fb Hide the taskbar edu when taskbar all apps launches
This change will dismiss the taskbar edu tooltip if taskbar all apps is
launched while it is showing.

Fix: 410687369
Test: Reset taskbar edu through developer options, open an app, observe
taskbar edu, then launch taskbar all apps. The edu tooltip should disappear
Flag: EXEMPT bugfix

Change-Id: I82d9d09d2f297e2ab20bf794d01ba5735a6d2fbd
2025-04-24 19:14:03 +00:00
Matthew Mourgos 817306fffb Check showHomeBehindDesktop to allow swiping up for overview gesture
With the showHomeBehindDesktop feature enabled, the swipe up from the bottom of the screen inadvertently sets LauncherResumedThroughShellTransition as true. This is because the home container is always running behind freeform tasks and so container.isResumed() is always true. Therefore, add a check for showHomeBehindDesktop to make sure LauncherResumedThroughShellTransition is set to false while the home screen is always shown in the background.
This ensures using the correct InputConsumer to allow swiping into overview.

Bug: 375644149
Flag: com.android.window.flags.show_home_behind_desktop
Test: With freeform tasks shown, swipe up from taskbar to go to overview
Change-Id: I68f45092ddf6ecdbc1d3b259f16048fdc40d8df2
2025-04-24 12:05:55 -07:00
Charlie Anderson 998d0fa210 Merge "Handle exception thrown for missing Component during restore" into main 2025-04-24 11:39:01 -07:00
Liran Binyamin 149db6c701 Pass bubble bar bounds to shell on handshake
If the systemui process restarts, as it does as part of tests,
it does not get notified about the bubble bar bounds until they
actually change. This could result in invalid bounds for the
expanded view which would prevent bubbling tasks.

This change ensures that the bounds are sent to shell after the
initial handshake.

20x runs: https://android-build.googleplex.com/builds/abtd/run/L46000030011522666

Bug: 411307439
Test: atest BubbleAnythingTest
Flag: com.android.wm.shell.enable_bubble_bar
Change-Id: I2a5898f32506529b8860274cdee1fcea1a264e83
2025-04-24 11:07:56 -07:00
minch 94d8fc6206 Fix tapl tests with multi-desks on
Bug: 362720309
Test: TaplTestsKeyboardQuickSwitch, TaplTestsQuickstep.testOverview
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: Ia670eb0f0ccf0ecbe08051f0fc1cd0a39b0089e2
2025-04-24 16:44:30 +00:00
Will Osborn bc183f7154 Fix stage split for connected display
Bug: 397942185
Test: local + presubmit
Flag: com.android.launcher3.enable_overview_on_connected_displays

Change-Id: I03207b808abc14a30a1de7b7030216325c7762e7
2025-04-24 16:38:24 +00:00
vinayjoglekar ffe7a93c09 Fix background in quick switch when quick switch is started from home.
As of today it shows opaque background, in blur world we want to show the blurred background.

Bug: 410743069
Test: Quick switch from home
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: I457f260f0fbfc960e5f3c7b32d9fd09751c24ade
2025-04-24 17:16:38 +01:00
Ats Jenk 8c37d68fa7 Merge "Bubble bar to ignore launcher state changes after destroy" into main 2025-04-24 09:16:26 -07:00
Daniel Andersson 6b0e2f4bfa Merge "desktop-exploded-view: Animate when a desktop task is dismissed" into main 2025-04-24 08:58:17 -07:00
Uwais Ashraf a6f5fda29e Merge "Add tracking of visibleTasks to enable more reliable request creation." into main 2025-04-24 08:26:41 -07:00
George Lin ddabe29d29 Fix SurfaceControlViewHost holding surface view (1/4)
Test: Use dumpsys to check if SurfaceControlViewHost still exists
Bug: 410052692
Flag: com.android.systemui.shared.new_customization_picker_ui
Change-Id: Ibbb29445422dd37e764be2f518c9d528340cdfaa
2025-04-24 14:26:04 +00:00
Charlie Anderson 66d7ed5531 Merge "Implement specs for shaped progress bars" into main 2025-04-24 07:07:52 -07:00
Treehugger Robot 48e09c9f1d Merge "Refactor on end runnable of create task dismiss animation." into main 2025-04-24 05:52:06 -07:00
Pat Manning 5783a8ef92 Refactor on end runnable of create task dismiss animation.
This is mostly used for snapping pages and resetting task values after dismissal.

Fix: 409494671
Fix: 409509940
Test: TaplTestsQuickstep
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: Ie53ad75f6b96bc833cad86fc42b337d845b49a18
2025-04-24 11:52:54 +01:00
Pat Manning 4803577d25 Disallow scrolling of Recents during dismissal by consuming touch event.
Fix: 408820591
Test: Manual
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I4d3b3be60b7557fbc24220a691e80d4b254dccb4
2025-04-24 03:16:24 -07:00
Treehugger Robot b6f127d82c Merge "Make Tapl check if actions view is enabled on overview" into main 2025-04-24 03:12:55 -07:00
Uwais Ashraf d99cbd8b41 Add tracking of visibleTasks to enable more reliable request creation.
Enforce synchronisation of parallel operations (e.g. updating task requests and tasks map MSF)

Fix: 395717365
Fix: 395331030
Fix: 410825381
Fix: 407558302
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: TasksRepositoryTest
Test: ABTD run for black thumbnails (OverviewImageTest, OverviewSplitTaskImageTest, OverviewMenuImageTest)
Test: ABTD run for memory metrics
Change-Id: Ib21487361b3e877170acfcdfed8d095bf1424061
2025-04-24 09:57:10 +00:00
Shamali Patwa d83ecd4c44 Merge changes from topic "dwb-refactor-domain" into main
* changes:
  Move app timer in the taskContentView behind a refactor flag.
  Change task content view to be a constraint layout.
  Extract out timer text specific utility from the dwb view
  Add a ui state for the app timer toast and add a mapper function for it
2025-04-23 19:49:38 -07:00
Jon Miranda ce82b8a6bd Merge "Switch taskbar overflow flag to lse_desktop_experience" into main 2025-04-23 18:04:05 -07:00
Mykola Podolian 976ab5aebd Merge "Check the bubble bar maximum so it is not cut off." into main 2025-04-23 17:00:38 -07:00
Ats Jenk 7d28df80e8 Bubble bar to ignore launcher state changes after destroy
When device is rotated, launcher is recreated and the existing
controllers are destroyed.
As part of handling the destroy signal, LauncherTaskbarUIController
updates the launcher state to in-app. This launcher state change is
handled by BubbleStashController which in turn notifies
BubbleBarViewController that bubble bar should be collapsed.
BubbleBarViewController then notifies WMShell that bubble bar should be
collapsed. And that state is stored in WMShell.
This causes bubble bar to collapse when it is expanded on home screen
and device is rotated.
Fix this by checking if the TaskbarActivityContext is already destroyed
when a launcher state change happens. And if it is, ignore those state
changes.

Bug: 357115534
Test: expand bubble bar on home screen, rotate device, check that bubble
  bar remains expanded
Flag: com.android.wm.shell.enable_bubble_bar
Change-Id: I7e019f8d1fd7935582d84a99d3afa3ffadd92799
2025-04-23 16:18:57 -07:00
Daniel Andersson 6d514be4fc desktop-exploded-view: Animate when a desktop task is dismissed
This CL makes it so that the DesktopTaskView smoothly animates from
the old exploded view to the new when a task is dimissed.

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
BUG=411155030

Change-Id: Idf22607336b5974bc72cc0e9009583f885ba0d67
2025-04-23 16:08:55 -07:00
Jon Miranda a19e4e2063 Switch taskbar overflow flag to lse_desktop_experience
Both flags are in Nextfood, so there will be no change to
user experience.

Bug: 368119679
Bug: 375627272
Test: TaskbarOverflowTest
Flag: com.android.window.flags.enable_taskbar_overflow
Change-Id: Ie3ef3bd49e078f5657bd069bc92c5a48a136e7cb
2025-04-23 15:20:04 -07:00
Charlie Anderson 35ab082cfc Implement specs for shaped progress bars
Bug: 377938340
Flag: com.android.launcher3.enable_launcher_icon_shapes
Test: installing/unarchiving apps
Change-Id: Ifdee0dc2d2758a4a7412996442716d2a22faa8c4
2025-04-23 17:31:02 -04:00
Treehugger Robot 59e208c28e Merge "Moving various launcher binding logic, outside LauncherModel" into main 2025-04-23 12:32:54 -07:00
Treehugger Robot ab4794a638 Merge "Fixing crashes due to code 1032 SQLITE_READONLY_DBMOVED" into main 2025-04-23 12:31:46 -07:00
Treehugger Robot 7919c64e6c Merge "RecentsWindowManager onDestroy fixes" into main 2025-04-23 11:56:42 -07:00
Surbhi Kadam 64aea3a713 Revert "Launcher3: send token with early wakeup request to Surfa..."
Revert submission 29600497-multiple_requests

Reason for revert: Causes SysUI jank metrics regression

Reverted changes: /q/submissionid:29600497-multiple_requests

Change-Id: Id9737044ce4833f42aab1d3ab7daa9a426881a26
2025-04-23 10:48:12 -07:00
Treehugger Robot eddf617062 Merge "Dismiss KQS when focused display changes" into main 2025-04-23 10:23:31 -07:00
Shamali P fd57876c7c Move app timer in the taskContentView behind a refactor flag.
Bug: 405359383
Flag: com.android.launcher3.enable_refactor_digital_wellbeing_toast
Test: Screenshot tests
Change-Id: Ib1cf21aabc8d01a14c0dedbfa770e9f0bba52268
2025-04-23 09:44:00 -07:00
Shamali P 3519785d79 Change task content view to be a constraint layout.
This is for child cl to be able to place dwb inline in it.

Bug: 405359383
Flag: com.android.launcher3.enable_refactor_task_content_view
Test: Screenshot tests
Change-Id: Id3252fff5776c199ae2a0c7e89d96c423241478c
2025-04-23 09:43:48 -07:00
Shamali P a7b69dc3d5 Extract out timer text specific utility from the dwb view
Bug: 405359383
Flag: com.android.launcher3.enable_refactor_digital_wellbeing_toast
Test: Unit test for the util
Change-Id: Ic7444e3e874e3b9870894cd16f7259f6fa1197c6
2025-04-23 09:43:36 -07:00
Shamali P 1ce7abb6fb Add a ui state for the app timer toast and add a mapper function for it
Bug: 405359383
Flag: com.android.launcher3.enable_refactor_digital_wellbeing_toast
Test: Unit test for mapper
Change-Id: I35271ff33c8610d79674438fb18a3d851eb3d2d3
2025-04-23 09:43:23 -07:00
Will Osborn 0c3fbf04a3 RecentsWindowManager onDestroy fixes
1. Use UI thread for callback removal
2. Call TISBinderHelper.onDestroy

Bug: 413003643
Test: local test
Flag: EXEMPT bugfix

Change-Id: I99c59842d7b35a52b7ee6424348c1a9ce864f490
2025-04-23 16:22:44 +00:00
Ajinkya Chalke 288e705c43 Dismiss KQS when focused display changes
- When focused display changes, the KQS view doesn't receive any
  KeyEvents thus the view remains open even if user clicks or hits Esc
  while on a different display.
- Use FocusState to dismiss KQS if the displayId changes.

Bug: 382762871
Flag: com.android.launcher3.enable_alt_tab_kqs_on_connected_displays
Test: m
Change-Id: Ic34a2bc7863575449e5b5c88377da8b1a8d48c20
2025-04-23 14:38:54 +00:00
Will Osborn 05e4134b73 Merge "Pass display id to startRecentsAnimation" into main 2025-04-23 02:23:40 -07:00
Toshiki Kikuchi 740de77860 Merge "Restrict nav mode UI checks within primary display" into main 2025-04-22 19:48:10 -07:00
Anushree Ganjam 93b2c414d4 Move NavHandleLongPressHandler to Dagger.
Helps us to delete ResourceBasedOverride class.
Delete "nav_handle_long_press_handler_class" resource from config.

Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger
Change-Id: I3ea307c8da95756ade84dc9c3210dacdeccf9a51
2025-04-23 00:35:57 +00:00
Treehugger Robot e7cb23a501 Merge "Fix TaskbarOverflorTest failures with multi-desks on" into main 2025-04-22 16:30:44 -07:00
Sunny Goyal 3678af5a81 Fixing crashes due to code 1032 SQLITE_READONLY_DBMOVED
1) Moving any DB file deletion before opening the DB to avoid deleting already opened file
2) Using a sandbox directory for BackupAndRestoreDBSelectionTest which can delete actively opened files causing other tests to fail

Bug: 403551539
Flag: EXEMPT bugfix
Test: Presubmit
Change-Id: Ib1088a0e486edf755e5f7dcd738eb835af78b4c4
2025-04-22 16:09:52 -07:00
Treehugger Robot 79711ad43a Merge "[CD Projected Mode] Make Taskbars for Detected displays on Boot when Connected" into main 2025-04-22 15:36:30 -07:00