Commit Graph

14567 Commits

Author SHA1 Message Date
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
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
Treehugger Robot 59e208c28e Merge "Moving various launcher binding logic, outside LauncherModel" into main 2025-04-23 12:32:54 -07:00
Treehugger Robot 7919c64e6c Merge "RecentsWindowManager onDestroy fixes" into main 2025-04-23 11:56:42 -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
Treehugger Robot e7cb23a501 Merge "Fix TaskbarOverflorTest failures with multi-desks on" into main 2025-04-22 16:30:44 -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
mpodolian bf869d5de1 Check the bubble bar maximum so it is not cut off.
Add check of the bubble bar highest size when setting the taskbar window
size from TaskbarViewController.onRotationChanged

Fixes: 407708503
Test: Manual.
Use foldable device, set navigation mode to the 3 buttons. Fold the
device and trigger bubble. Lock screen. Unfold. Unlock screen. The
bubble remains visible.
Flag: EXEMPT bugfix

Change-Id: If16bf289ea394f6586d8530182db000dbcdea214
2025-04-22 15:26:45 -07:00
Treehugger Robot 347e2cfe12 Merge "Block dismiss while recents is scrolling." into main 2025-04-22 14:35:24 -07:00
Sunny Goyal c078d6554c Moving various launcher binding logic, outside LauncherModel
This brings the BgCallbacks closer to a repository pattern making is easier to switch eventually

Bug: 390572144
Flag: EXEMPT refactor
Test: Updated AsyncBindingTest to use real ModelCalbacks
Change-Id: I9c932b00ea8ac7330473b9c0f5d778453fe7a390
2025-04-22 14:12:17 -07:00
Treehugger Robot 055a15a214 Merge "Get DesktopVisibilityController via dagger in TopTaskTracker" into main 2025-04-22 11:15:22 -07:00
Treehugger Robot 16830c6430 Merge "Add unit tests for KQS CD changes" into main 2025-04-22 10:46:42 -07:00
Will Osborn 50a1b9089c Pass display id to startRecentsAnimation
Test: local + unit
Bug: 392703464
Flag: com.android.launcher3.enable_overview_on_connected_displays
Change-Id: I7eb65a1d6b98703a19432b9fa24c3c4b262aa045
2025-04-22 17:46:01 +00:00
minch d5d15c493f Fix TaskbarOverflorTest failures with multi-desks on
Bug: 362720309
Test: m
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Change-Id: I91621d4c71d1ab28fb4b17ab62ba6c8ff43cb7d2
2025-04-22 16:10:57 +00:00
Treehugger Robot be99fc78bb Merge "Decouple actionsView disabled state from clearAllButton visibility" into main 2025-04-22 08:42:49 -07:00
minch 4b694fa2c4 Get DesktopVisibilityController via dagger in TopTaskTracker
Bug: None
Test: m
Flag: EXEMPT refactor
Change-Id: I5adcf67be8a1afb6902820e30eec20630285f413
2025-04-22 15:33:35 +00:00
Ajinkya Chalke c96b9adf79 Add unit tests for KQS CD changes
Bug: 382762871
Bug: 382769617
Test: KeyboardQuickSwitchControllerTest and TaskbarOverflowTest
Flag: EXEMPT adding tests
Change-Id: I053af97774230a9bc3d21ff8e1e328344519f728
2025-04-22 15:07:37 +00:00
Sukesh Ram 90af684118 [CD Projected Mode] Make Taskbars for Detected displays on Boot when Connected
Make Taskbars for Detected displays on Boot when Connected.

Bug: 409820188
Flag: com.android.window.flags.enable_taskbar_connected_displays
Test: m
Change-Id: Iac04fe3c5ba8faac7383ed2953ddee99240ce016
2025-04-22 14:57:43 +00:00
samcackett 8b65ad809e Decouple actionsView disabled state from clearAllButton visibility
Prior to this change, actionsView buttons enabled / disabled state was
coupled to clearAllButton visibility, which was then coupled to scroll
state. Due to an issue where outdated scroll values caused incorrect
visibility calculations for the "clear all" button and consequently
disabled the overview actions, we remove this check.

Fix: 391276638
Flag: EXEMPT. Bugfix
Test: Manual & TaplTestsQuickstep
Change-Id: Ib313deb72e8f01125f15f62e7e9a4af307062060
2025-04-22 14:09:55 +01:00
Wen-chien Wang c496829044 Merge "pin-shortcut: Add tests to verify the behavior" into main 2025-04-22 03:56:09 -07:00
Alex Chau c027e0c9ad Merge "Fix extraWidth used to calculate visibleTaskData" into main 2025-04-22 03:43:19 -07:00
Alex Chau 076df25a4f Fix extraWidth used to calculate visibleTaskData
- getLastComputedGridTaskSize should be used to get the correct size for grid tasks

Fix: 406988799
Test: manual
Flag: com.android.launcher3.enable_grid_only_overview
Change-Id: I7b94e8e03dd7a463417c03e600636cffc3696fdb
2025-04-22 03:43:11 -07:00
Anushree Ganjam 77f22bf9cf Merge "Move StatsLogManager to Dagger" into main 2025-04-21 18:48:56 -07:00
Vinit Nayak e417533ecd Merge "Use SplitPosition instead of StagePosition in TaskViewSimulator" into main 2025-04-21 18:05:48 -07:00
Treehugger Robot 5643f452d5 Merge "Merging update and modify model callbacks" into main 2025-04-21 15:15:13 -07:00
Mykola Podolian 6ba50e36e4 Merge "Revert^3 "Maximised the taskbar window to the default size"" into main 2025-04-21 14:10:13 -07:00
Sunny Goyal 007cfecf5e Merging update and modify model callbacks
Instead of the dispatcher specifying the type, the UI checks th diff. This
ensures that the UI is updated correctly in all paths

Bug: 390572144
Flag: EXEMPT refactor
Test: Manually verified folder edit path where these callbacks were getting dispatched

Change-Id: Ib73eed5da87a847753a78453a48ab4fc495c1199
2025-04-21 12:31:23 -07:00
Anushree Ganjam 291438aaec Move StatsLogManager to Dagger
Helps us to delete ResourceBasedOverride class.
Delete "stats_log_manager_class" resource from config.

Delete unused "app_launch_tracker_class" resource from config.

Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger

Change-Id: I71ed7ffca62e7c74d4ee0d0b4c045ffed9599cfe
2025-04-21 19:13:22 +00:00
Roy Chou cafd97cf12 Merge "cleanup(magnification): remove flag remove_exclude_from_screen_magnification_flag_usage" into main 2025-04-20 20:30:30 -07:00
Toshiki Kikuchi 3ccfdbf6c4 Restrict nav mode UI checks within primary display
This CL fixes the nav mode UI checks which currently assumes “navigation
mode” takes effect on all displays although the mode is only effective
on the primary display.

Flag: EXEMPT - test fix
Fix: 408631713
Test: atest WMShellFlickerTestsDesktopMode:com.android.wm.shell.flicker.OpenAppWithExternalDisplayConnected
Change-Id: I29f33957d696e9d5afda844f69388b74a8f78b77
2025-04-20 19:09:38 -07:00
Treehugger Robot 8733a11bdc Merge "Disable pinning popup when transient taskbar is disabled" into main 2025-04-19 17:48:34 -07:00
Wen-Chien Wang ed04537faa pin-shortcut: Add tests to verify the behavior
Bug: 375648361
Test: This is the cl for tests
Flag: EXEMPT tests
Change-Id: I7209cebcc7e7c34d5f1362121fea5e062e3170de
2025-04-19 07:34:33 +00:00
Andy Wickham 1d04216b4f Merge "Fix navbar to home for All Apps." into main 2025-04-18 22:45:01 -07:00
Treehugger Robot f913e26175 Merge "Desks: Let split-select and recents use a combined WCT" into main 2025-04-18 21:48:32 -07:00
Treehugger Robot bf044d730c Merge "Move InstantAppResolver to Dagger." into main 2025-04-18 18:06:15 -07:00
Mykola Podolian ac7db52a91 Revert^3 "Maximised the taskbar window to the default size"
This reverts commit de74f01f01.

Reason for revert: regression

Change-Id: Ia21a7bfb5cb98e0219e32d884d773276ba804e6b
2025-04-18 17:27:46 -07:00
Treehugger Robot a6f664c115 Merge "Prewarm renderer for All Apps blur." into main 2025-04-18 17:11:01 -07:00
Jorge Gil 82ad2a0387 Desks: Let split-select and recents use a combined WCT
Flag: com.android.window.flags.enable_multiple_desktops_backend
Bug: 409639676
Test: enter split from desktop handle menu, verify it enters split
select

Change-Id: Ib215ce9666fb4a07101ff32a78aebef0c8198749
2025-04-18 23:40:26 +00:00
Treehugger Robot fede3aee46 Merge "Don't blur workspace targets when dragging out of All Apps." into main 2025-04-18 16:28:27 -07:00
Treehugger Robot 82f07a82ff Merge "Improve TaskbarRecentAppsController on multi-display" into main 2025-04-18 16:05:10 -07:00