Commit Graph

82690 Commits

Author SHA1 Message Date
Sebastián Franco e1d31e5406 Revert "Revert "Moving DeviceProfile properties into DevicePrope..."
Revert submission 33716851-revert-33672643-DataDeviceProfile1-XHYRAPLEBK

Reason for revert: Error is fixed

Reverted changes: /q/submissionid:33716851-revert-33672643-DataDeviceProfile1-XHYRAPLEBK

Change-Id: Ib86824134955903c11e51e52dbfd6368aba1cd50
2025-05-23 14:08:11 -07:00
Priyanka Advani (xWF) 1bec329180 Merge "Revert "Moving DeviceProfile properties into DeviceProperties da..."" into main 2025-05-23 14:03:53 -07:00
Shamali Patwa 15a9964ab7 Merge changes from topic "picker-domain" into main
* changes:
  Update widget picker component to define dependencies and provide full catalog for clients to use.
  Add widget picker search screen.
  Adds widget picker landing screens
  Add WidgetsInteractor that enables view layer to interact with widgets
  Add use cases in widget picker domain layer that apply business rules.
  Updates to repository interfaces & data types for widget picker
2025-05-23 13:56:38 -07:00
Priyanka Advani (xWF) 7705e92d93 Revert "Moving DeviceProfile properties into DeviceProperties da..."
Revert submission 33672643-DataDeviceProfile1

Reason for revert: Droidmonitor created revert due to b/419867875. Will be verifying through ABTD before submission.

Fix: 419867875

Reverted changes: /q/submissionid:33672643-DataDeviceProfile1

Change-Id: Icb66aefbbcee24e05806b2139923e1f2ea1c65e3
2025-05-23 13:53:04 -07:00
Treehugger Robot becba58cff Merge "Use expressive dismiss for clear all." into main 2025-05-23 13:43:53 -07:00
Sebastián Franco b80423b1b7 Merge "Moving DeviceProfile properties into DeviceProperties data class" into main 2025-05-23 13:17:32 -07:00
Andy Wickham bdbf8a9935 Merge "Only ignore All Apps left/right insets on tablets." into main 2025-05-23 12:53:58 -07:00
Shamali Patwa 7de040acac Update widget picker component to define dependencies and provide full catalog for clients to use.
Bug: 408283627
Flag: EXEMPT independent module
Test: Not applicable.
Change-Id: I573036882472c44de7024322a6ed2aa037eab277
2025-05-23 12:12:36 -07:00
Shamali Patwa df07059bd4 Add widget picker search screen.
This adds the search screen and view model logic. 

It uses the same composable structure as the landing screen.

Bug: 408283627
Flag: EXEMPT independent module
Test: Unit tests
Change-Id: Ic83090be21b31a4f1b416284f78d5a05d5cd2cdc
2025-05-23 12:12:27 -07:00
Shamali Patwa e7e3a14e95 Adds widget picker landing screens
This CL includes following:

*   ViewModel base class for reuse across widget picker.
*   Landing screens implemented in both compact and expanded mode.
*   Test cases for the same.

Bug: 408283627
Flag: EXEMPT independent module
Test: Unit tests
Change-Id: Ia4a7f0b972ca0d3863f041aac276cb3c5096a258
2025-05-23 11:52:46 -07:00
Bill Yi 8697ac2362 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-05-23 11:29:13 -07:00
Bill Yi 9d1a068925 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-05-23 11:29:13 -07:00
Li Lin 9f40588951 Merge "Add a auto hide flag for Growth Framework nudge." into main 2025-05-23 10:44:24 -07:00
Sebastian Franco e1111e28c2 Moving DeviceProfile properties into DeviceProperties data class
Bug: 419264653
Flag: EXEMPT refactor
Test: DeviceProfileDumpTest
Test: All Image tests
Change-Id: I638f88cd76b926917965dbf9e70b5bdfff5971e0
2025-05-23 10:42:26 -07:00
Sebastián Franco 48e7365190 Merge "Removing getOnceNotNull from BaseLauncherActivityTest to launcherActivity" into main 2025-05-23 09:16:49 -07:00
Treehugger Robot 2a4ad7f8a1 Merge "Share buttons change" into main 2025-05-23 08:47:09 -07:00
Treehugger Robot f8b3677c45 Merge "Don't launch a coroutine job if no jobs to cancel" into main 2025-05-23 06:44:33 -07:00
Helen Cheuk 73661fda2e Merge "[Action Corner] Add padding between action corner and taskbar" into main 2025-05-23 06:35:28 -07:00
Pat Manning 8cb1be9873 Use expressive dismiss for clear all.
Fix: 416446763
Test: TaplTestsQuickstep
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I6781e54901aa33d5f206fcb601cac76e99eee84f
2025-05-23 14:17:23 +01:00
Jordan Silva f21e4b8023 Merge changes from topics "app-chip-compose", "launcher-compose-tests" into main
* changes:
  Add AppChip in Compose
  Update build to support Compose tests custom directory
2025-05-23 05:18:32 -07:00
Uwais Ashraf 7d640afaba Don't launch a coroutine job if no jobs to cancel
Flag: com.android.launcher3.enable_coroutine_threading_improvements
Bug: 417598777
Test: Presubmits
Change-Id: I474e3e12faf2886b593571e9625a1d16df742c0d
2025-05-23 10:50:38 +00:00
Jordan Silva 98795242eb Add AppChip in Compose
- Add a new app chip in composable.
- Implement the app chip expansion animations and styles.

Bug: 400436593
Bug: 366172565
Fix: 366387927
Flag: EXEMPT build flag: release_enable_compose_in_launcher.
Test: AppChipTest
Test: AppChipScreenshotTest
Change-Id: I05ca14354ab7702026343c4e636538d507336f6a
2025-05-23 02:37:30 -07:00
Sergey Pinkevich 6e0ace619f Merge "Convert DesktopVisibilityControllerTest to multivalent" into main 2025-05-23 01:56:12 -07:00
Vinay Joglekar 0b87a41376 Share buttons change
Update Share Button and Share Targets to support Blur background

Fix: 408439461
Test: Open chrome with a webpage, tap on smart chip
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: If9290676377a3a48a94800ac3084c52146b0c9ae
2025-05-23 09:48:40 +01:00
Treehugger Robot 70f5d5738e Merge "Implement spec to configure all apps height" into main 2025-05-22 19:13:37 -07:00
Treehugger Robot 1521df031c Merge "Remove RenderEffect on blur targets when no blur is desired." into main 2025-05-22 17:37:27 -07:00
Shamali Patwa cd2104334c Add WidgetsInteractor that enables view layer to interact with widgets
- This is responsible for looking up data from repositories and applying
business rules using use cases.

Bug: 408283627
Flag: EXEMPT independent module
Test: Unit tests
Change-Id: I767186a38b3105085637c75d9aec8ca21788f49f
2025-05-22 16:37:46 -07:00
Shamali Patwa d3c07f8e9c Add use cases in widget picker domain layer that apply business rules.
These will be used by the interactor classes to provide data to the
ui layer.

- FilterWidgetsForHostUseCase filters widgets that don't match the
 constraints specified by the host
- GroupWidgetAppsByProfileUseCase groups widgets based on their user
profile; and ensures that if work profile is paused, its widgets are
 treated as empty list.

Bug: 408283627
Flag: EXEMPT independent module
Test: Unit tests
Change-Id: I676715daf5e400ba12acf50f867a5aa352d7bdf1
2025-05-22 16:03:27 -07:00
Shamali Patwa a4ffc73d92 Updates to repository interfaces & data types for widget picker
- I think the previews / featured / search all could be part of widgets
 repository. Internally, it will use separate datasource to prepare the
  respective data - but as a repository, they all are probably just
  a widgets repo.
- Includes minor changes to data types as well to prepare for upcoming
changes.

Bug: 408283627
Flag: EXEMPT independent module
Test: Not applicable - interface changes
Change-Id: I765c11318a655603becdf2cab081f0fcf777da1a
2025-05-22 16:03:16 -07:00
Sebastián Franco 957fac9f54 Merge "Prevent recents rotation animation if we are in Fixed Landscape" into main 2025-05-22 15:08:11 -07:00
Bill Yi 85d8ef0b87 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2e7f55ec048bd9154783bb0a8b68208160a5509e
2025-05-22 22:03:41 +00:00
Bill Yi 57135a8525 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I0bb238bbdc8fd0695d3bdbabd24403f471bf310a
2025-05-22 22:02:34 +00:00
Pierre Barbier de Reuille 06ed9c93d4 Merge "Use the developer-option flag for pin to taskbar" into main 2025-05-22 15:01:03 -07:00
Rob Mickle 56ddb0a6ac Merge "Update test to use fake repository instead of mock." into main 2025-05-22 14:58:46 -07:00
Sebastian Franco 1fcb21621b Removing getOnceNotNull from BaseLauncherActivityTest to launcherActivity
This is to make tests by composition instead of inheritance.

Bug: 324261526
Flag: EXEMPT test only
Test: All test using BaseLauncherActivityTest
Change-Id: I616207da890e1979480d1b748f69a9c27c53f9db
2025-05-22 12:06:25 -07:00
Sebastian Franco 376d628859 Prevent recents rotation animation if we are in Fixed Landscape
When in this mode we can let the system rotate the device. In other
cases we have a fake rotation and so we need to manually rotate.

Fix: 401484242
Flag: com.android.launcher3.one_grid_specs
Test: Manual testing
Change-Id: I74e5cb0363a34edb69b39f9a387b9020116d5632
2025-05-22 11:46:57 -07:00
Pat Manning 270da9a1f1 Merge "Speed up dismiss springs on subsequent touches while blocking touch." into main 2025-05-22 11:37:18 -07:00
Treehugger Robot e5b641dde1 Merge "Update TestLauncherActivity to send TAPL launcher stopped message" into main 2025-05-22 11:36:54 -07:00
Sebastián Franco b01c488915 Merge "launcher: Add e2e quickstep tests to NexusLauncherE2ETests" into main 2025-05-22 10:08:04 -07:00
Jordan Silva 4de09ab0ee Update build to support Compose tests custom directory
- Support for Compose Screenshot tests using ScreenshotComposeLib.
- Support for custom directory for tests to be used when compose flag is enabled.

Bug: 400436593
Fix: 366387927
Flag: EXEMPT Build flag: RELEASE_ENABLE_COMPOSE_IN_LAUNCHER
Test: Build
Change-Id: I9a5a5fd4942da2b5d8be0e554e1a42b1cde5f2af
2025-05-22 17:29:51 +01:00
Schneider Victor-Tulias 9705f8fefa Update TestLauncherActivity to send TAPL launcher stopped message
This removes the need for a workaround in LauncherInstrumentation.executeAndWaitForLauncherStop for FallbackRecentsTests with recents window enabled

Flag: com.android.launcher3.enable_fallback_overview_in_window
Bug: 377678992
Test: FallbackRecentsTest
Change-Id: I1b974cb2bfff4c14e99abb96c35dcdff04ed0be7
2025-05-22 09:01:14 -07:00
Pat Manning 7207047000 Speed up dismiss springs on subsequent touches while blocking touch.
- This allows users to dimiss multiple apps as quickly as they want.
- Do not reset task dismiss translation if it is actively being dragged.

Fix: 409485085
Test: Manual.
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I939ef402ee23b3b1e8df1ae214c5ac60386a7772
2025-05-22 16:54:20 +01:00
Rob Mickle 61aab4893b Update test to use fake repository instead of mock.
Bug: 378443899
Test: OverviewCommandHelperTest
Flag: EXEMPT test cleanup up
Change-Id: Ie449a659bf6b1b33acbb6f9f6f45b800e31cf447
2025-05-22 07:42:34 -07:00
helen cheuk 6e5225bd77 [Action Corner] Add padding between action corner and taskbar
This is to avoid triggering unstashing taskbar and action corner at the same time.
A padding is added between the two areas.

Bug: 411091884
Test: TaplTestsTransientTaskbar
Flag: com.android.systemui.shared.cursor_hot_corner

Change-Id: I4e380a3d004977c96502af23f6126f22749e0a8f
2025-05-22 12:23:34 +00:00
Pierre Barbier de Reuille b8c5350c07 Use the developer-option flag for pin to taskbar
Test: Manual
Flag: com.android.window.flags.enable_pinning_app_with_context_menu
Bug: 375648361
Change-Id: I2c26ae6a5f42fd01860d7534b86ff5ca11e7f7fc
2025-05-22 03:29:34 -07:00
Lucas Dupin 66923a912c Merge "Add recents position callback to SystemUiProxy" into main 2025-05-21 23:11:59 -07:00
Treehugger Robot 51291ec848 Merge "Create the RemoteTargetGluer based on the GroupedTaskInfo" into main 2025-05-21 22:57:56 -07:00
Treehugger Robot 405ed245ea Merge "Adding bugfix flag for remove shortcut in long press menu" into main 2025-05-21 22:35:20 -07:00
Andy Wickham 85ac41bc7f Only ignore All Apps left/right insets on tablets.
This was previously the case, but I think I mistakenly updated this
to include phones with the all_apps_sheet_for_handheld flag at some
point. However, there was also some broken logic with the panel bounds
on phones. panel.getLeft() would be 0 because that's relative to the
container, so we need to do getLeft() + panel.getLeft().

Landscape (camera on left): https://hsv.googleplex.com/5035787895701504
Seascape (camera on right): https://hsv.googleplex.com/6210562886205440
Portrait: https://hsv.googleplex.com/6563945312681984
Tablet: https://hsv.googleplex.com/6704696994562048

Bug: 419235232
Test: See HSVs above compared to before images in the bug
Flag: com.android.launcher3.all_apps_sheet_for_handheld
Change-Id: Id8b6f3367ee94ef22cb917e00518e843553b42d8
2025-05-21 19:23:53 -07:00
Kevin Lim a735b96a40 Merge "[Multiline] If a multiline searchbox can scroll up, don't scroll all apps container" into main 2025-05-21 19:18:53 -07:00