Commit Graph

83004 Commits

Author SHA1 Message Date
Olivier Nshimiye 39dee43e12 Listen to LauncherUserInfo config changes and hide/unhide private space
entrypoint accordingly

Flag: android.multiuser.add_launcher_user_config

Bug: 346553745
Test: Manual - verified on device
Test: atest LauncherAppsTests

Change-Id: I202c4c76af4f96d5b3226daffcfebc2f9b9703b1
2024-11-13 21:35:05 +00:00
Toni Barzic 121f6880dd Test KQS gets dismissed in certain situations
Adds tests that verify the KQS gets properly dismissed when user swipes
home while Keyboard Quick Switch UI is shown.

Bug: None

Test: atest TaplTestsKeyboardQuickSwitch
Flag: EXEMPT tests
Change-Id: I6da053f297eedb297c0d40a7414883fbd69b94e5
2024-11-13 21:28:21 +00:00
Matthew Mourgos b9e5421a63 Merge "Close any open widget resize frames when changing pages." into main 2024-11-13 21:17:21 +00:00
Treehugger Robot 27fc554d2e Merge "Add OldGrid field for GridOption so we can properly filter out the old grids when the flag is on" into main 2024-11-13 21:16:43 +00:00
Pinyao Ting aaacb14df1 Merge "Remove noises during a11y drag in Launcher." into main 2024-11-13 21:08:17 +00:00
Brandon Dayauon 1d9b09c2e8 Merge "Update height of predictionRow + 4dp to be aligned with NL app suggestions height." into main 2024-11-13 21:00:45 +00:00
Pinyao Ting e50d5ded77 Remove noises during a11y drag in Launcher.
Bug: 374642145
Bug: 374656225
Bug: 374658319
Change-Id: I842415f689c992f64d863743f019455701da22e9
Test: manual
Flag: EXEMPT bugfix
2024-11-13 20:56:30 +00:00
Wen-Chien Wang ca95004403 Updates layout when overflow button and alt-tab are both triggered.
Before this cl, the KQS view is closed and reopened when the
overflow button and alt-tab key are triggered one after the other.
This cl changes the behavior so that instead of reopening, the
list of task is updated and the KQS container layout is toggled
between "wrap content" and "match parent".

Bug: 368119679
Test: open KQS via taskbar and observe the layout change
Flag: com.android.launcher3.taskbar_overflow
Change-Id: I05ea4c66727daa206ff1d7906500dc8f9cc81982
2024-11-13 20:48:07 +00:00
Treehugger Robot 6f10fb57a4 Merge "Fix test failures in AbsSwipeUpHandlerTestCase" into main 2024-11-13 20:46:09 +00:00
Shamali P 4c727e38fd Don't bind scrollbar if current recycler view isn't changed.
Bug: 378417297
Flag: EXEMPT BUGFIX
Test: Installed app in bg with picker open and verified no scroll to top
Change-Id: I9b3c6a22c9b971f4d11bc6a6e534d4b6e0ca60bf
2024-11-13 19:45:28 +00:00
Artsiom Mitrokhin f0b80dadb2 Merge "Implement app icons <-> leave behind animation" into main 2024-11-13 19:42:54 +00:00
fbaron 6c91ef9191 Add OldGrid field for GridOption so we can properly filter out the old grids when the flag is on
Bug: 364711064
Flag: com.android.launcher3.one_grid_specs
Test: NexusLauncherImageTests, DeviceProfileDumpTest
Change-Id: I8e3ff70d2f3008d1de7c8419290ff44c18c72e70
2024-11-13 11:31:50 -08:00
Treehugger Robot a8440279bf Merge "Account for bubble bar bounds for taskbar overflow" into main 2024-11-13 19:23:22 +00:00
Schneider Victor-Tulias e7e752e011 Fix test failures in AbsSwipeUpHandlerTestCase
AbsSwipeUpHandlerTestCase caused test failures when running locally on device.

Flag: EXEMPT testing fix
Bug: 371020209
Test: AbsSwipeUpHandlerTestCase
Change-Id: I7b47b5642223e81c6bb9991a7ff271ba8ffff0ba
2024-11-13 13:23:29 -05:00
Juan Sebastian Martinez d36f0d2b7a Adding MSDL feedback to dragging apps and widgest over drop targets.
The ButtonDropTarget class delivers MSDL feedback onDragEnter.

Test: DeleteDropTargetTest
Test: manual. Verified haptics when dragging apps and widgtes over
  "Remove" and secondary drop areas.
Flag: com.android.launcher3.msdl_feedback
Bug: 371249457
Bug: 371315650
Change-Id: Ic3f79ab5e3da7bb26797f2a1bfb79b5e37b3ac97
2024-11-13 10:20:13 -08:00
Schneider Victor-Tulias 8451f0fb1e Update RecentsWindowSwipeHandler to animate home->overview properly
Update RecentsWindowSwipeHandler to animate home alpha properly

Flag: com.android.launcher3.enable_fallback_overview_in_window
Fixes: 366022874
Test: Attempted gesture from home and launched app

Change-Id: Idf4ed071a843a129f1d39caa59e468f6c88e9e38
2024-11-13 13:12:09 -05:00
Brandon Dayauon 7a609d8f1b Merge "Add elevation to workFAB to create a shadow" into main 2024-11-13 17:50:28 +00:00
Liran Binyamin 12d34f8e2a Merge "Make the flyout color animation smooth" into main 2024-11-13 16:14:07 +00:00
Schneider Victor-tulias 7e34644021 Merge "Revert "Revert "Reset the frozen recents list state prior to tes..."" into main 2024-11-13 14:54:31 +00:00
Marcelo Arteiro 7ddef8f82d Aligning Android color tokens with Material
Original change was reverted because of a flag misplacement. Fixed now.

Script also updated to generate update resource files.

Bug: 376195115
Test: presubmit
Flag: EXEMPT bugfix
Change-Id: Ieefa4a675a1cd140e6e86a51cbca85faa52870c7
2024-11-13 13:58:33 +00:00
Treehugger Robot be17fb8a63 Merge "Revert "Fix jank resulting from TaskView resizing"" into main 2024-11-13 12:25:45 +00:00
Vinay Joglekar d23234576d Merge "Fix NPE when user goes into maps navigation mode and tries to split app." into main 2024-11-13 12:05:46 +00:00
Alex Chau 17d81a3611 Revert "Fix jank resulting from TaskView resizing"
This reverts commit 5a01f588be.

Reason for revert: We don't want this behavior anymore

Bug: 343882478
Fix: 373319262
Change-Id: I7b16a229cbe303191591ff695f78a2acb831a3e8
2024-11-13 10:43:15 +00:00
Winson Chung dde53a10e3 4b/ Migrate TopTaskTracker to use visible running tasks from Shell
- When enable_shell_top_task_tracking is enabled, use the shell
  provided signals to keep an up-to-date running (visible) task list
  on the Launcher side, instead of managing the list via to-front
  signals from Core via TaskStackListener.  In doing so, we also
  update CachedTaskInfo to use this visible task list in preparation
  for future refactoring to use the GroupedTaskInfos directly instead.

Bug: 346588978
Flag: EXEMPT adding new flag enable_shell_top_task_tracking
Test: Build SystemUI & Launcher
Test: atest WMShellUnitTests
Change-Id: I16d515243760a17258a727e2502e35387da87589
2024-11-13 07:05:43 +00:00
Treehugger Robot bda5d70e03 Merge "Revert "Adding screen record for the bug where we can't find a folder after dragging"" into main 2024-11-13 00:53:04 +00:00
Mykola Podolian 40cb4bf335 Merge "Fixed bubble bar size for the 3 buttons navigation mode." into main 2024-11-13 00:25:36 +00:00
Shamali Patwa 37d3e2031e Merge changes from topic "sticky-h-filter" into main
* changes:
  Update tapl test to consider the show all button
  Maintain selected or last header on clicking "Show all" button
2024-11-13 00:25:01 +00:00
Android Build Coastguard Worker 991a897c8a Snap for 12644741 from 2e8707dffb to 25Q1-release
Change-Id: I9a83df3581d3ec3687b98d06bb9054b8f001bda2
2024-11-13 00:17:35 +00:00
Brandon Dayauon df14fffa54 Add elevation to workFAB to create a shadow
Unable to use md.sys.elevation.level3 but codesearched and
looked it up that this is equivalent to 6dp.

bug: 375597648
Test:
before: https://drive.google.com/file/d/1fp2l5p4wW2Gf3duC2qQ_brQ-xY0bTnOF/view?usp=sharing
after: https://drive.google.com/file/d/19xSAnWJURuwrjhMiywfjNT2vD0G2GoFP/view?usp=sharing
Flag: NONE adding elevation
Change-Id: I484609b4dc817b6d76701f60da51c3ec89bc8755
2024-11-12 15:33:10 -08:00
Wen-Chien Wang 6863d6244b Add a flag for the context menu to pin/unpin apps on taskbar.
Bug: 375648361
Flag: EXEMPT adding flag
Test: EXEMPT adding flag
Change-Id: I3a63a89b8e19cffe666f93fa98638d3d59d1ef1b
2024-11-12 23:26:25 +00:00
Vadim Tryshev e238685c0d Revert "Adding screen record for the bug where we can't find a folder after dragging"
This reverts commit 243650e2cb.

Reason for revert: Bug stopped to repro

Change-Id: Idebb704546146018c6a365143ff84efb04be9c27
2024-11-12 23:09:38 +00:00
Shamali P 290fa07cc0 Update tapl test to consider the show all button
TAPL tests seem to be using system image with old PCC app and enables
airplane mode. So, it is likely filters won't load doesn't show, but
tried to create a cuttlefish image to test cover both cases, so that
if it shows, test knows how to handle it.

tapl demo:
http://screencast/cast/NTQ5ODkyNjUxNjkyODUxMnxlZmMyNzNjZS1hYQ

Bug: 356127021
Test: Manual and tapl test
Flag: com.android.launcher3.enable_tiered_widgets_by_default_in_picker
Change-Id: I19b121e3ce27221cb5195a2e55f686635d775590
2024-11-12 22:33:39 +00:00
Shamali P 697dcf44ac Maintain selected or last header on clicking "Show all" button
Bug: 356127021
Test: Manual and tapl test
Flag: com.android.launcher3.enable_tiered_widgets_by_default_in_picker
Change-Id: I762695f9999e5ea4c722dbedde6d7efabd3ab0cb
2024-11-12 22:31:14 +00:00
Ana Salazar Maldonado bdbad823ce Add contrast pill to workspace apps
When the flag is enabled, allow the BubbleTextView to draw a background
pill behind the app title. Also change the color of the text to properly
ensure contrast.  The contrast pill is only enabled for workpace apps,
so attempt draw the pill only for DoubleShadowBubbleTextView elements.

Bug: 341217082
Flag: com.android.launcher3.enable_contrast_tiles
Test: Manual, visual change
Change-Id: Idce27bd8dfca4b525c762fcd0873562f31b45b8f
2024-11-12 13:36:13 -08:00
Schneider Victor-tulias 2e8707dffb Merge "Add debug logs to TaplStartLauncherViaGestureTests" into main 2024-11-12 20:34:46 +00:00
Will Leshner 0b01bf4117 Fix permission issue with START_WIDGET_PICKER_ACTIVITY
The permission for starting the widget picker activity didn't match its
declaration, making it orphaned. Any other package/app could then spoof
the permission and start the activity.

Bug: 365082993
Test: Manually by creating an app that attempts to spoof the permission
and testing that it was not able to show the activity.
Flag: EXEMPT bugfix

Change-Id: I1af4bc68329a30eb8d6a92c944f6c84b4992107a
2024-11-12 12:24:05 -08:00
vinayjoglekar 4c3471ff44 Fix NPE when user goes into maps navigation mode and tries to split app.
OnDestroy is called in this scenario and mContainer is set to null. When I added this code I assumed this will be non null always.

Test: Manual : open maps->start navigation-> overview->split
Fix: 376409147
Flag: EXEMPT bugfix
Change-Id: I96a47b24beb5b3d343aae0e715c0b3efabdebe08
2024-11-12 20:06:29 +00:00
Artsiom Mitrokhin d370b4d5f4 Implement app icons <-> leave behind animation
Bug: 376281549
Flag: com.android.launcher3.taskbar_overflow
Test: manual, press the overflow button, dismiss KQS
Change-Id: Ifae1455785d028f58072068f25e52a5e58ed1c72
2024-11-12 14:56:21 -05:00
Brandon Dayauon 1c7122ff9a Update height of predictionRow + 4dp to be aligned with NL app suggestions height.
spec: https://screenshot.googleplex.com/9VsQXxmsuZvoj7Y
Add 4dp to the existing height when using two lines. Need to do this for prediction row as well so that
animation is smooth and doesn't show jumpiness.

bug: 378472318
Test: photos:
before: https://screenshot.googleplex.com/7F8FNdnrngpuSUe
after: https://screenshot.googleplex.com/63vttsfptSqwE7c
Flag: NONE increasing height
Change-Id: I2076160efe3596cc8673d32b5066ec2103f71eb0
2024-11-12 11:30:01 -08:00
Toni Barzic 28ebd1bacd Account for bubble bar bounds for taskbar overflow
When caculating number of icons to show in taskbar, account for bubble
bar size (the max size when in collapsed state) when bubble bar has
bubbles (even if the bubble bar is stashed). Note that the bubble bar
visibility may change, so max number of icons in the taskbar may change
during the taskbar view lieftime. TaskbarViewController already had a
method called when the bubble bar visibility changed - adapt it to also
reclaculate max number of icons to show in the taskbar, and update the
list of icons shown in the UI if necessary (if the change in the bubble
bar visibility would also cause a change in number of icons shown in the
taskbar).

Bug: 368119679
Test: Launch enough apps for taskbar to enter overflow, open an app that
supports bubbles, and trigger 2 or more bubbles so bubble bar shows up.
Verify that the buble bar does not overlap with taskbar bounds, both
in transient and persistent taskbar. Remove bubbles, and verify the
taskbar bounds expand, allowing more icons to be shown.
Flag: com.android.launcher3.taskbar_overflow

Change-Id: Ifed4e5e5dd64df5256090f5ba55f24203c09e839
2024-11-12 18:40:40 +00:00
Ats Jenk d3a4f9f721 Merge "Fix bubble bar position on recreate" into main 2024-11-12 18:11:39 +00:00
Charlie Anderson 90892a56b7 Merge "Revert "Update test activities with a non-default icon."" into main 2024-11-12 17:39:44 +00:00
Johannes Gallmann 93b121db6f Fix window clipped in three-button-nav on phone factors
Since three-button-nav is transparent on phone factors, the bottom insets should not be clipped.

Bug: 373544911
Test: Manual, i.e. verifying that the window clipping is correct in all combinations of (tablet, phone) x (three-button--nav, gesture-nav)
Flag: com.android.window.flags.predictive_back_three_button_nav
Change-Id: Ie15b899a3e79514976868ff574faf1d02816822f
2024-11-12 16:48:31 +00:00
ELIYAZ MOMIN (xWF) a438f7be54 Merge "Revert "Aligning Android color tokens with Material"" into main 2024-11-12 16:35:18 +00:00
Schneider Victor-Tulias b04492825d Add debug logs to TaplStartLauncherViaGestureTests
Flag: EXEMPT test debug
Bug: 373497052
Test: TaplStartLauncherViaGestureTests
Change-Id: I501f50afac09068db4193da9d98236887fd6e410
2024-11-12 10:59:47 -05:00
Liran Binyamin 09403e7d9a Make the flyout color animation smooth
This change updates the flyout animation interpolator to an
emphasized curve and updates the color animation so that it completes
within a shorter period of time. Speeding up the color animation
makes the color transformation smooth.

Flag: com.android.wm.shell.enable_bubble_bar
Fixes: 378077265
Test: atest BubbleBarViewAnimatorTest
Test: atest BubbleBarFlyoutControllerTest
Change-Id: Idd38fc71543f629aeb568d72386a9b9def51c307
2024-11-12 10:49:09 -05:00
Alex Chau 6734784b72 Merge "Fix split animation with small number of tasks only" into main 2024-11-12 15:30:06 +00:00
ELIYAZ MOMIN (xWF) 866b7e3cee Revert "Aligning Android color tokens with Material"
Revert submission 30126328-material-token-sync

Reason for revert: <Potential culprit for b/378661448  - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.>

Reverted changes: /q/submissionid:30126328-material-token-sync

Change-Id: Ifd0490a876081f3e50f674abc504bf5ba9be2df9
2024-11-12 15:12:01 +00:00
Treehugger Robot 9b44959f68 Merge "Move logic onto default dispatcher. Clearing main - stop performance bug" into main 2024-11-12 14:24:21 +00:00
Treehugger Robot 48770752e2 Merge "Register transitions for Desktop app launch + minimize animations" into main 2024-11-12 13:55:29 +00:00