Commit Graph

83004 Commits

Author SHA1 Message Date
Brandon Dayauon 270e1c3dc4 Merge changes from topic "implementWorkSchedulerViewAndUpdateColorsOfFab" into main
* changes:
  Make sure work button is collapsed when keyboard is up upon going to app drawer
  Implement the work scheduler view and update colors of FAB
2024-11-06 19:57:26 +00:00
Sihua Ma 5241648873 Merge "Move icon factory to framework" into main 2024-11-06 18:56:14 +00:00
Xin Li 9a9e10609d Merge 24Q4 (ab/12406339) into aosp-main-future
Bug: 370570306
Merged-In: Id70ceed141e2106f746d4a0e68a09675ba45dd28
Change-Id: I84eee058761cb1fe716a7c91c022dbf435efbe7e
2024-11-06 10:31:30 -08:00
Jagrut Desai dbceb92317 Fix ActivityLeak for RecentsViewContiner in TaskbarManager
Test: presubmit
Bug: 376763663
Flag: EXEMPT TEST_ONLY
Change-Id: I9724e9d91e9ab1a414ce2fbcb6a618b5b23f7ab1
2024-11-06 10:15:00 -08:00
Sukesh Ram 48d215be87 Merge "[Connected Displays in Taskbar] Refactor TaskbarDelegate for Display Signals" into main 2024-11-06 18:12:00 +00:00
Brandon Dayauon 1fa2840e82 Make sure work button is collapsed when keyboard is up upon going to app drawer
Call shrink so that work button is collapsed when keyboard is up.

bug:361589193
Test - manual: video before:https://drive.google.com/file/d/1OChJkEJEWrsuUtEaac2jtc15uGkOeGAm/view?usp=sharing
after: https://drive.google.com/file/d/1DXGia25u4JzWRLTiwqlKQu8TYjyL9SEI/view?usp=sharing
Flag: com.android.launcher3.work_scheduler_in_work_profile

Change-Id: Ifafb76b61f0d2a5e9c6b60519adc300c911b20dc
2024-11-06 09:48:57 -08:00
Brandon Dayauon bfd02bb36a Implement the work scheduler view and update colors of FAB
Update colors of the FAB to spec: https://www.figma.com/design/uMzPkNMZpb7EyfHDo8usIa/V-%E2%80%A2-Toast-Butter?node-id=3784-112229&node-type=instance&m=dev
Exported the brief case icon from figma since it is not available on go/icons.
Color of the brief case icon is onPrimary.
Have place holder string in launcher but implement the actual string in NL.

bug:361589193
Test - manual: video: https://drive.google.com/file/d/1CIs8qdtV1jUvbq57CcgAXDBPPHHX5CKJ/view?usp=sharing
Flag: com.android.launcher3.work_scheduler_in_work_profile

Change-Id: Ia98e9c4394f6ddfa7009653034929f9afbfeac8c
2024-11-06 09:48:26 -08:00
Treehugger Robot 230b2f50a7 Merge "Fix flag guarding for oneGridRotationHandling" into main 2024-11-06 17:04:05 +00:00
Treehugger Robot 368eed7ce6 Merge "Convert ItemInstallQueue to use Dagger" into main 2024-11-06 16:59:57 +00:00
Andy Wickham 1f6a7b46be Adds all_apps_sheet_for_handheld flag.
This flag causes All Apps to render on a background panel in
handheld mode similarly to how it does on tablets.

Demo: https://drive.google.com/file/d/11K8yueTb9Xr8oRJCM3TxcFH8V3rRFJrJ/view?usp=sharing&resourcekey=0-hMNEGzMQ5KC9D7may2Gb-g

Bug: 374186088
Bug: 372618421
Test: Manual
Flag: com.android.launcher3.all_apps_sheet_for_handheld
Change-Id: Ie0b1e784d4330fd71f7f36f39e5dd85e8ee14933
2024-11-06 16:05:25 +00:00
Treehugger Robot 43da2538ff Merge "Add OverviewDesktop test to verify carousel behavior on swipe up" into main 2024-11-06 15:50:18 +00:00
Schneider Victor-tulias 1295fc62df Merge "Add SystemOnBackInvokedCallback to RecentsWindowManager" into main 2024-11-06 15:12:10 +00:00
Jordan Silva f048c99de4 Add OverviewDesktop test to verify carousel behavior on swipe up
This CL updates a test to verify the behaviour while swiping up from a fullscreen app to Overview and checking if that TaskView is between DesktopTasks (right side) and Grid Tasks (left side).
The test adds the following validations:
- Launches adjacent task while DesktopTask is at the center of the screen
- Swipe up from a fullscreen app to Overview to validate whether the task is between other tasks and desktop tasks.
- Fling back to DesktopTask to dismiss the adjacent focused task

Fix: 353948167
Flag: com.android.launcher3.enable_large_desktop_windowing_tile
Test: TaplTestsOverviewDesktop
Change-Id: Iaa15d4061c3b6ba8fc0d03416b4721cdf3f047c3
2024-11-06 13:58:41 +00:00
Bill Yi db6dc94fc3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I85ec51fc7b756e18c2d5b2c36f06ac4676dc8bc9
2024-11-06 02:32:28 -08:00
Bill Yi b2201ad15c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I82780f0c34bc6a5a5a84cb3534cdebd5d37bc321
2024-11-06 02:31:38 -08:00
Johannes Gallmann bc4936fb6b Add predictive back animation for 3-button-nav
Bug: 373544911
Flag: com.android.window.flags.predictive_back_three_button_nav
Test: OverviewProxyServiceTest
Test: TaskbarNavButtonControllerTest
Test: TaskbarScrimViewControllerTest
Change-Id: I04cadc660f38e2d4541b06fcda950098a0768492
2024-11-06 11:02:13 +01:00
Riddle Hsu 4ba51f3bf9 Merge "Notify finish on the same thread when entering recents above home" into main 2024-11-06 07:15:04 +00:00
Riddle Hsu f030458a10 Notify finish on the same thread when entering recents above home
The expected order to finish recents is first "setWillFinishToHome"
and then "finish" via RecentsAnimationControllerCompat.

Because RecentsAnimationController uses UI_HELPER_EXECUTOR to invoke
setWillFinishToHome, if "finish" is called on UI thread directly,
there may be a race that WillFinishToHome is not set yet (only when
animation is disabled), then the shell's RecentsTransitionHandler
will handle it as "return to app" rather than entering recents.

By using the regular finishRunningRecentsAnimation (forceFinish is
false), RecentsAnimationController#finishController will also post
to UI_HELPER_EXECUTOR, so the order between setWillFinishToHome can
be consistent.

Bug: 375667878
Flag: EXEMPT bugfix
Test: atest com.android.quickstep.FallbackRecentsTest#testOverview
Test: Set 3rd party home as default.
      Disable animation (Settings's "Remove animations").
      Press recents key on home. It should enter recents.

Change-Id: Ia449f77b317db812360092c2aaf9e3657b92cf7b
2024-11-06 05:15:34 +00:00
Treehugger Robot 6c84b46ef5 Merge "Make ContextualEduStatsManager injected by Dagger (13/n)" into main 2024-11-06 00:49:55 +00:00
Federico Baron cf929471a1 Merge "Remove flags that are no longer necessary" into main 2024-11-06 00:38:14 +00:00
fbaron 49f7df0444 Fix flag guarding for oneGridRotationHandling
Bug: 364711064
Flag: com.android.launcher3.one_grid_rotation_handling
Test: n/a
Change-Id: Ic0027bf82912bf56470a8abc29880599820b3352
2024-11-05 16:29:26 -08:00
Android Build Coastguard Worker 3fbb15f0f1 Snap for 12609205 from bc5637296a to 25Q1-release
Change-Id: I25c49dd7adabfc62091a4b42dc177dd7cf076ee4
2024-11-06 00:23:06 +00:00
Artsiom Mitrokhin ccd96a1868 Draw leave-behind circle after pressing taskbar overflow button
This CL does not include animating app icons / leave behind circle.

Bug: 376281549
Flag: com.android.launcher3.taskbar_overflow
Test: press the oveflow button, dismiss KQS in different ways
Change-Id: I1f830c6859a5be4fb5947ec38e6d30da79138b7f
2024-11-05 19:12:50 -05:00
Anushree Ganjam 3b87d5c97a Make the test wait for Main Thread execution.
Bug: 377444474
Test: Manual
Flag: TEST_ONLY

Change-Id: Ia560dd1cd658947af6b1c4e0b57f3e92faa1afce
2024-11-05 15:17:53 -08:00
Anushree Ganjam 2d55010135 Make ContextualEduStatsManager injected by Dagger (13/n)
Bug: 361850561
Test: Manual
Flag: EXEMPT Dagger Integration
Change-Id: I0150ad8edeac1746e27b7d919891d02e648413be
2024-11-05 14:53:01 -08:00
fbaron 8f26e042b2 Remove flags that are no longer necessary
Flag: EXEMPT code cleanup
Test: GridSizeMigrationTest
Bug: b/325286145, b/325285743
Change-Id: I056021c299b56a186b754b94b33509d0b01816e0
2024-11-05 14:22:37 -08:00
Sihua Ma fb51552ac7 Move icon factory to framework
Flag: EXEMPT library moving
Test: Manual
Change-Id: I2d8b657b4e9d6c6431f3976d66cabc515cb6bb1b
2024-11-05 22:22:31 +00:00
Treehugger Robot 1a5334c234 Merge "Adding an aconfig flag to guard MSDL in Launcher." into main 2024-11-05 22:15:10 +00:00
Sebastián Franco 0acfafa64a Merge "Add tablet 5x8 grids" into main 2024-11-05 21:53:05 +00:00
Treehugger Robot fdc5b21f53 Merge "Remove logs for resolved bug, and make some logs permanent" into main 2024-11-05 21:09:52 +00:00
Schneider Victor-Tulias 222d204314 Add SystemOnBackInvokedCallback to RecentsWindowManager
Flag: com.android.launcher3.enable_fallback_overview_in_window
Fixes: 377542369
Test: home/app -> overview -> back gesture/button
Change-Id: Iefbad3748f72a516bd07a2db433dfe5ac23edcd8
2024-11-05 15:43:21 -05:00
fbaron 3d534b15bc Remove logs for resolved bug, and make some logs permanent
Bug: 360462379
Flag: EXEMPT code cleanup
Test: n/a
Change-Id: I99d4eb55b9241a472f38c90e36ad60f2f9f3d521
2024-11-05 11:13:15 -08:00
fbaron 04752a3e63 Add tablet 5x8 grids
Bug: 364711064
Flag: com.android.launcher3.one_grid_rotation_handling
Test: n/a
Change-Id: I509a52f76852a2034020efc818bf571f00dff90d
2024-11-05 10:55:52 -08:00
Juan Sebastian Martinez cb9c8b1fc6 Adding an aconfig flag to guard MSDL in Launcher.
The flag will guard the adoption of the MSDL library in launcher.

Change-Id: I0eb29b67317cdc96d0e5e5ff9af0427ed7e86509
Test: presubmit
Flag: NONE new flag being added
Bug: 377496684
2024-11-05 16:18:18 +00:00
Winson Chung bc5637296a Merge "2b/ Update launcher to use GroupedTaskInfos" into main 2024-11-05 15:43:01 +00:00
Gustav Sennton 461caa7c5f Support Desktop unminimize animations, and move app-state logic
- Support Desktop unminimize animations through
    1. keyboard alt-tab shortcut
    2. taskbar hotseat icon click (TaskItemInfo)
    3. taskbar running-app icon click (GroupTask)
- move taskbar running-app state logic from TaskbarViewController to
  TaskbarRecentAppsController.

Test: manual - ensure the transitions above cause unminimize animations
Bug: 369966334
Flag: com.android.window.flags.enable_desktop_app_launch_alttab_transitions

Change-Id: I20322bdf58bc69cff360bf26e533e0732d5297b9
2024-11-05 13:39:46 +00:00
Treehugger Robot c0746bb887 Merge "Reduce log frequency of TasksRepository.setVisibleTasks()" into main 2024-11-05 11:32:32 +00:00
Uwais Ashraf ae2c01a0b6 Reduce log frequency of TasksRepository.setVisibleTasks()
Fix: 377438334
Bug: 377437341
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: SwitchBackToSplitFromRecentGesturalNavLandscapeMicrobenchmark
Test: QuickSwitchTasksMicrobenchmark
Change-Id: I0cf56995ece9187a9a4da3ad61a17a795d0934db
2024-11-05 09:22:37 +00:00
Shamali Patwa 20cde49b4c Merge "Add a resource override for providing default widgets filter." into main 2024-11-05 01:01:00 +00:00
Sukesh Ram 29a430fc21 [Connected Displays in Taskbar] Refactor TaskbarDelegate for Display Signals
Refactor the TaskbarDelegate to support multiple pass down displayId specific signals down to the taskbar level.

Flag: EXEMPT not adding new behavior
Bug: 376128251
Test: Manual
Change-Id: I61aef4eb746d671be69eefeb15d876d48dd9a8fa
2024-11-05 00:48:43 +00:00
Android Build Coastguard Worker d798247bf5 Snap for 12602378 from 4f793a31d8 to 25Q1-release
Change-Id: Ib4dcf2c4259805fb426a2280179b2b8830bead2c
2024-11-05 00:23:53 +00:00
Shamali P ea078cb647 Add a resource override for providing default widgets filter.
The implementation in this CL is no-op i.e. all widgets will be shown

Bug: 356127021
Flag: com.android.launcher3.enable_tiered_widgets_by_default_in_picker
Test: Verified with other child cls
Change-Id: I0a6f8973dc8ec58fd87d29b3f291b5e290ea988d
2024-11-04 22:17:23 +00:00
Treehugger Robot d66079d003 Merge "Handle null RecentsView in FallbackTaskbarUIController" into main 2024-11-04 21:54:28 +00:00
Anushree Ganjam 2f73d60b30 Merge "Make VibratorWrapper injected by dagger (14/n)" into main 2024-11-04 21:36:19 +00:00
Tony Wickham 463a40fdb3 Handle null RecentsView in FallbackTaskbarUIController
Test: not crashing
Flag: com.android.launcher3.enable_fallback_overview_in_window
Bug: 365775636
Change-Id: I98c52cc09f1ca686ce3844044bbf734ef0b05e59
2024-11-04 20:01:14 +00:00
Anushree Ganjam 87ea411e97 Make VibratorWrapper injected by dagger (14/n)
Bug: 361850561
Test: Manual
Flag: NONE Dagger Integration
Change-Id: I57047122b35731d83674a5607e1ac980b86aebca
2024-11-04 11:33:34 -08:00
Treehugger Robot 4f793a31d8 Merge "Catch exception to prevent Launcher crash." into main 2024-11-04 19:10:14 +00:00
Matt Sziklay 9bede60992 Merge "Start background tasks via task instead of intent." into main 2024-11-04 16:57:45 +00:00
Treehugger Robot 9cafa2f8e2 Merge "Revert "Revert "Don't allow Desktop tasks to go outside Overview..."" into main 2024-11-04 15:34:43 +00:00
Sam Cackett 1ecdc2d712 Revert "Revert "Don't allow Desktop tasks to go outside Overview..."
Reland submission "Don't allow Desktop tasks to go outside Overview task bounds"

Reverted changes: /q/submissionid:30210454-revert-30114356-desktop-task-view-corner-clipping-KXYKHZHSWL

Change-Id: Ia263edcc876f9f72ca7f70733e96b0823dbd750e
Fix: 376206104
Flag: com.android.window.flags.enable_desktop_windowing_mode
Test: OverviewDesktopTaskImageTest, TaplTestsOverviewDesktop
2024-11-04 10:40:57 +00:00