Commit Graph

21506 Commits

Author SHA1 Message Date
Schneider Victor-Tulias
0ae28ca5d0 Update KQS text font family to match new specs
Flag: com.android.launcher3.expressive_theme_in_taskbar_and_navigation
Fixes: 393615634
Test: opened KQS, be before/after in bug
Change-Id: Ia953e2b927b6e69c0c150df01925436b6247d751
2025-02-14 10:49:30 -05:00
Anushree Ganjam
743786b66c Merge "Move ContextualSearchHapticManager to Dagger" into main 2025-02-10 19:54:06 -08:00
Treehugger Robot
f37f0491b7 Merge "[CD Taskbar] Fix Window Context & Enable External Context adding" into main 2025-02-10 18:33:15 -08:00
Anushree Ganjam
6fada1c0f5 Move ContextualSearchHapticManager to Dagger
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger
Change-Id: Id33ef349dc8d793ab7c43d6f420e224a8de515af
2025-02-10 17:17:52 -08:00
Treehugger Robot
c913d5317a Merge "Move RecentsModel to Dagger." into main 2025-02-10 16:25:50 -08:00
Sukesh Ram
47f0f6dc8e [CD Taskbar] Fix Window Context & Enable External Context adding
Use variable constrained within TaskbarManager for primary displays and add external window contexts as new displays are added. Ensures the lifecycle of window context map isn't tied to the required instances of primaryWindowContext.

Test: m
Bug: 395702003
Bug: 393984037
Bug: 391653300
Flag: com.android.window.flags.enable_taskbar_connected_displays
Change-Id: Idc461b8e6e249060feffac703dff1bf7d5974512
2025-02-10 16:25:16 -08:00
Treehugger Robot
c83abcadb7 Merge "Add spring animations for neighboring tasks on dismiss cancel" into main 2025-02-10 15:32:45 -08:00
Hongwei Wang
bb3006dfd9 Merge "Update the comment on detach" into main 2025-02-10 15:01:54 -08:00
Pat Manning
a82868d7df Add spring animations for neighboring tasks on dismiss cancel
Fix: 389083088
Test: TaplTestsQuickstep#testDismissCancel
Test: TaskGridNavHelperTest
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I1240519eea499b5839d64e537588bde3cb0a424b
2025-02-10 13:24:19 -08:00
Treehugger Robot
4c1679fe4f Merge "Re-use existing method to get split root" into main 2025-02-10 11:40:09 -08:00
Anushree Ganjam
d158433769 Move RecentsModel to Dagger.
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger

Change-Id: I0d459ee3fc012e8e371035071f1b32eb2483cdc5
2025-02-10 10:07:20 -08:00
Uwais Ashraf
3dd744a8bd Merge "Updates the app icon based on the TaskData" into main 2025-02-10 07:36:27 -08:00
Jordan Silva
e316ea5f85 Merge "Fix empty thumbnail/icon by re-fetching data from cache" into main 2025-02-10 02:56:34 -08:00
Jordan Silva
687862c4a9 Updates the app icon based on the TaskData
- Introduces `setIconState` to manage icon and text updates based on `TaskData`.
- Refactors IconAppChip to use the icon and title provided by TaskViewModel.

Fix: 388486032
Fix: 388490814
Flag: com.android.launcher3.enable_overview_icon_menu
Test: OverviewImageTest
Change-Id: Ibf469743ebc767054eaaabe1891750b7f9de827a
2025-02-10 02:24:52 -08:00
Treehugger Robot
bd93d0d4d3 Merge changes If104c67d,Id59fb236 into main
* changes:
  [CD][Alt+Tab] Show apps from all desktops for KQS on CD
  [CD][Alt+Tab] Implement skeleton code for KQS on CD
2025-02-09 13:07:46 -08:00
Ajinkya Chalke
3ef91e087d [CD][Alt+Tab] Show apps from all desktops for KQS on CD
- Even without multiple desktops, apps that are moved to connected display show up in separate desktop task.
- Further changes may be required to launch a desktop after multiple desktops is implemented.

Bug: 382762871
Flag: com.android.launcher3.enable_alt_tab_kqs_on_connected_displays
Test: manually built and run the CUJ
Change-Id: If104c67d95a1ec3de404998b06352edfa02c0f09
2025-02-09 19:06:54 +00:00
Ajinkya Chalke
4078347cbf [CD][Alt+Tab] Implement skeleton code for KQS on CD
- This change will not render KQS on connected display (CD) even with the flag ON as taskbars are not yet created for connected displays.

Bug: 382762871
Change-Id: Id59fb23630aaf0e74c35818f2a4ca56e5ef2e7bb
Flag: com.android.launcher3.enable_alt_tab_kqs_on_connected_displays
Test: manually built and run the CUJ
2025-02-09 19:06:45 +00:00
Jordan Silva
9f56a1f793 Fix empty thumbnail/icon by re-fetching data from cache
Request data for all tasks in `TasksRepository` to prevent stale data. This ensures thumbnails and icons are not replaced and become null due to race conditions. The updated code requests data for all tasks, leveraging the cache for immediate returns.

Fix: 394384233
Flag: com.android.launcher3.enable_overview_icon_menu
Test: OverviewImageTest
Change-Id: I356de13b5e9671f50bb1c2680b54b78478fadc28
2025-02-09 05:29:45 -08:00
Ben Lin
473bea410c Merge "Update DesktopMode config for test." into main 2025-02-08 10:47:56 -08:00
Treehugger Robot
b3ca33ee45 Merge "Refactor: Extract splash alpha logic from TaskThumbnailViewModel" into main 2025-02-07 17:30:46 -08:00
Jordan Silva
a0c936b6ad Refactor: Extract splash alpha logic from TaskThumbnailViewModel
This commit updates how splash alpha is propagated to `TaskThumbnailView`. These changes reduces the usage of flows to handle animations to improve the performance by avoiding inherent overhead for sending messages between threads (go/sysui-flow-overhead).

Bug: 390581380
Doc: go/launcher-overview-unified-taskviewmodel
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: OverviewImageTest
Test: TaskViewModelTest
Test: TaskThumbnailViewModelImplTest
Test: TaskThumbnailViewScreenshotTest
Change-Id: I467da1a90b653fb108eb32534bc0dd2a67d95083
2025-02-07 20:52:37 +00:00
Treehugger Robot
d74a33af5a Merge "Make AddDesktopButton can be navigated to through keys" into main 2025-02-07 12:33:46 -08:00
Treehugger Robot
126566a096 Merge "desktop-exploded-view: Implement layout algorithm" into main 2025-02-07 12:00:23 -08:00
Treehugger Robot
795b36785e Merge "Initial Desks tracking on Launcher" into main 2025-02-07 11:53:55 -08:00
minch
b39d3015f8 Make AddDesktopButton can be navigated to through keys
Add the focus outline to the button as well.
Same color, ripple effect as the ClearAllButton is applied.

Flag: com.android.window.flags.enable_multiple_desktops_frontend
      com.android.window.flags.enable_multiple_desktops_backend
Bug:391875235
Test: TaskGridNavHelperTest
Change-Id: If93f86a1dce4df8ee6b1c50dfc44092dad2eafab
2025-02-07 18:33:23 +00:00
Xiaoqian Dai
3491fa49a7 desktop-exploded-view: Implement layout algorithm
It was ported over from ChromeOS Overview layout algorithm. In overview,
the layout is done in two stages:
1. Optimal height is determined. In this stage height is bisected to
   find maximum height which still allows all the windows to fit.
2. Row widths are balanced. In this stage the available width is reduced
   until some windows are no longer fitting or until the difference
   between the narrowest and the widest rows starts growing. Overall
   this achieves the goals of maximum size for previews (or maximum
   row height which is equivalent assuming fixed height), balanced rows
   and minimal wasted space.

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
Bug: b:367353392, b:353948965

Change-Id: I1d0fd2b30ffa5bbc0853650884cf85b519be4227
2025-02-07 10:06:05 -08:00
Ahmed Fakhry
c0597ac53b Initial Desks tracking on Launcher
This CL adds the initial implementation of the desks tracking
on the launcher side inside `DesktopVisibilityController`.

Bug: 392986431
Test: m
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: I7ece2407a03fec1cad4663efa230ec9a1980fb75
2025-02-07 17:49:36 +00:00
Treehugger Robot
cdc1483f59 Merge "Append application name to content description for direct share targets" into main 2025-02-07 09:28:51 -08:00
Alex Chau
90fb4f883e Merge "Fix Home->Overview grid task not in top-right" into main 2025-02-07 09:28:31 -08:00
Vinit Nayak
7f6f7aad7b Re-use existing method to get split root
Test: Launching app pair from desktop, in-app,
overview from taskbar launches as expected
Bug: 372837890
Flag: EXEMPT bugfix

Change-Id: I50ab3cb1dc95a2cf20b77ae5d00cad3be7cd8e5c
2025-02-07 12:23:50 -05:00
Treehugger Robot
bc37b2c46d Merge "desktop-exploded-view: Add some comments" into main 2025-02-07 09:00:07 -08:00
Mykola Podolian
7fa6b816e9 Merge "Added application shortcut extra to allow the Shell adding bubble." into main 2025-02-07 08:17:23 -08:00
Gustav Sennton
dad84b4121 Merge "Only set task surface corner radius once in TransformParams" into main 2025-02-07 07:42:06 -08:00
Alex Chau
ee082ce6e8 Fix Home->Overview grid task not in top-right
- Use expectedCurrentTaskView's position to calculate if we should add extra gap between clear all button, instead of using the right most task's position; this fixed the case where current task is not the right most task e.g. grid task and desktop task
- The accumulated row width to expectedCurrentTaskView is tracked in the udpateGridProperties loop, and used to calculate the position of the expected position of expectedCurrentTaskView from ClearAllButton
- With this new calculation we no longer needs to adjust longRowWidth when there are onlg large tile tasks

Fix: 391306182
Test: With and without grid-only Overview, test both home and app to Overview with 0-5 tasks with a desktop task; repeat for RTL
Flag: EXEMPT BUG_FIX
Change-Id: I324208c7e063c8b043815291cc0fef7beec884b6
2025-02-07 07:30:08 -08:00
samcackett
d4d4d580da Append application name to content description for direct share targets
The direct share targets `label` will be the name of the receiving
device, so we also need to append the application name for a better
readout

Fix: 380008872
Test: MANUAL. Talkback on. Open an app with a url or image. Open Recents
. Select the url or image AiAi chip. Select the first direct share
target. Talkback should read the targets name and application name.
Share. App should dismiss.
Flag: EXEMPT bugfix

Change-Id: I3d7df44d239ae9b8a3a62b7343e65bcd6a2e9939
2025-02-07 15:25:59 +00:00
Charlie Anderson
b97431394e Merge "Adjust predicted app icon to draw better inner stroke for shapes:" into main 2025-02-07 05:39:51 -08:00
Gustav Sennton
cbb7ecddfe Only set task surface corner radius once in TransformParams
When setting the corner radius constantly in TransformParams sometimes
we set the radius after the end of the recents transition, causing
Desktop tasks to have non-rounded corners at the end of recents
transitions.

Bug: 378657004
Test: manual + TransformParamsTest
Flag: com.android.window.flags.enable_desktop_recents_transitions_corners_bugfix
Change-Id: I2ae919424602d655d0995b4dc1951d96c7dfd3d8
2025-02-07 07:16:33 +00:00
Treehugger Robot
026930cd14 Merge "Use pinned taskbar with desktop tasks on freeform displays" into main 2025-02-06 19:37:47 -08:00
Saumya Prakash
44daae3c06 Merge "Remove back button and enable back gesture on SUW" into main 2025-02-06 18:06:47 -08:00
Charlie Anderson
c150eeb2e1 Adjust predicted app icon to draw better inner stroke for shapes:
Bug: 377938036
Flag: com.android.launcher3.enable_launcher_icon_shapes
Test: manually verifying

Change-Id: Ib2c80f0db08bdd24fc6338bed3d666348d09037f
2025-02-06 16:26:50 -08:00
Daniel Andersson
31191f8cee desktop-exploded-view: Add some comments
This adds some comments in DesktopTaskViewModel. There are no semantic changes.

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: N/A
Bug: 367353392
Change-Id: I484bf4d0f094c5b87716022ffcd3db85d8b85ef7
2025-02-06 16:14:50 -08:00
Daniel Andersson
4899bc2c80 Merge "desktop-exploded-view: Initial implementation" into main 2025-02-06 14:51:31 -08:00
Saumya Prakash
f6496357e2 Remove back button and enable back gesture on SUW
According to new spec, for devices that have a different theme, Setup Wizard
should no longer have the back button, and instead should use the back
gesture in between screens.

Fix: 349495243
Flag: EXEMPT bugfix
Test: Set the System property for setup wizard device theme to be expressive. Rerun setup wizard and ensure the back button doesn't show up and the back gesture works. For the existing theme, the behavior should remain unchanged.

Change-Id: I6b8e95f4eeecdf7422c9f1c099b30a4fc2d2fd12
2025-02-06 22:17:46 +00:00
Hongwei Wang
4d883c5b78 Update the comment on detach
With ag/31545168, it's no longer caller's responsibility to recycle the
bitmap being for overlay. Comment is updated accordling.

Flag: EXEMPT comment
Bug: 393584443
Test: N/A comment only
Change-Id: Idc9b01dc71cf4b15773a03272baa97f9821710f7
2025-02-06 14:01:58 -08:00
Fengjiang Li
c324094762 Merge "[Memory Leak] Fix leak of TouchInteractionService from DisplayInfoChangeListener" into main 2025-02-06 09:49:27 -08:00
Winson Chung
acca04d897 Merge "Move multi-instance suppport checking to ApiWrapper" into main 2025-02-06 08:17:55 -08:00
Fengjiang Li
c5e7b955af [Memory Leak] Fix leak of TouchInteractionService from DisplayInfoChangeListener
Fix: 394672098
Flag: NONE - released code
Test: manual
Change-Id: I99bfd783e8be34066e29072f5c1a6719802bde05
2025-02-05 18:26:50 -08:00
Treehugger Robot
de35987f27 Merge "Stub impl new multi-desks IDesktopTaskListener APIs" into main 2025-02-05 17:18:46 -08:00
Daniel Andersson
66288ed6fa desktop-exploded-view: Initial implementation
This is an initial implementation of the desktop exploded view. The
layout algorithm (implemented in OrganizeDesktopTasksUseCase) is
currently a basic placeholder.

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
Bug: 367353392

Change-Id: I6826a2583a3e0027c809d4fd3b9bab716f2f3b72
2025-02-05 15:56:27 -08:00
Treehugger Robot
8e5b44ad9c Merge "Introduce non-null itemInfo inside TaskView" into main 2025-02-05 15:09:39 -08:00