Commit Graph

20643 Commits

Author SHA1 Message Date
Johannes Gallmann
f47df1f60a Merge "Use FlingOnBackAnimationCallback for predictive back" into main 2024-11-11 08:29:47 +00:00
vinayjoglekar
0cceb24288 Animation issue when splitting task from taskbar which is in DW
When app is in DesktopTask being split, we need to bring tasks after last desktop task to correct position during split animation. Solution is to add additional primary translation from current desktopview to first non desktopview.

Refactored how primary translation is being calculated.

Test: Manual, split app from taskbar which is in desktop window
Fix: 377230397
Flag: com.android.launcher3.enable_large_desktop_windowing_tile
Change-Id: Ic76b0e7d9a627158e5d521ed40f17279130a974a
2024-11-09 10:55:46 +00:00
Sihua Ma
73487c1475 Merge "Resetting workspace alpha when the animation is cancelled" into main 2024-11-09 01:50:27 +00:00
Sihua Ma
424b8dee5e Resetting workspace alpha when the animation is cancelled
Bug: 364465567
Test: Manual
Flag: EXEMPT bug fix
Change-Id: I0dcc62a10ca96670c5ed794001c58fd319e36854
2024-11-08 22:51:29 +00:00
Ats Jenk
e93688f77d Merge "Translate bubble bar when in -1 or all apps" into main 2024-11-08 22:46:40 +00:00
Sunny Goyal
5ad2d9f53c Moving some tests off TAPL
Bug: 377772352
Test: Presubmit
Flag: EXEMPT test refactor
Change-Id: I679ae043d617b74a61a682d802c38cc904d2d0c5
2024-11-08 11:09:59 -08:00
Ats Jenk
72d176c407 Translate bubble bar when in -1 or all apps
When persistent taskbar is used, bubbles align with hotseat when
launcher state is home. But when user navigates to the -1 page or all
apps, we show the persistent taskbar instead of hotseat.
3 button navigation container shifts in this case. Apply the same shift
to bubble bar.

Bug: 376141984
Flag: com.android.wm.shell.enable_bubble_bar
Test: atest PersistentBubbleStashControllerTest
Change-Id: I2765936e0bac43a790b628e7df2a1b4ddad32cae
2024-11-08 10:23:18 -08:00
Liran Binyamin
c3a2387af4 Merge "Suppress the bubble animation on updates" into main 2024-11-08 13:40:23 +00:00
Tracy Zhou
7e969d4400 Merge "Move initInputMonitor to the main thread" into main 2024-11-08 02:30:46 +00:00
Treehugger Robot
7347a81e41 Merge "Handle Desktop app launches from Taskbar/AllApps icon clicks." into main 2024-11-08 01:04:15 +00:00
Tracy Zhou
9d072a5e5c Move initInputMonitor to the main thread
- Stuff related to updating internal TIS state need to also run on the
  main thread

Bug: 374197142
Flag: EXEMPT bugfix
Test: Presubmit
Change-Id: Ia62b665d9a39bc4a4c119fce8538bb147d92957a
2024-11-07 16:27:57 -08:00
Sunny Goyal
18e5b65a17 Merge "Moving Wait to kotlin" into main 2024-11-08 00:13:27 +00:00
Gustav Sennton
da2c2c0f7f Handle Desktop app launches from Taskbar/AllApps icon clicks.
- Provide both launch and minimize animations from
  DesktopAppLaunchTransition
- Add support to TaskbarRecentAppsController to check whether an app is
  visible vs. minimized vs. not showing at all in Desktop Mode
- Use DesktopAppLaunchTransition when clicking a Taskbar/AllApps app
  icon (when in Desktop Mode and the app is not visible) to animate the
  app launch
- The animation / transition is passed to Shell through ActivityOptions

Note: this CL does not add animations for launching managed/work
profile apps. That will be handled in b/376819104.

Test: launch apps in Desktop from Taskbar/AllApps
Bug: 327428659
Flag: com.android.window.flags.enable_desktop_app_launch_transitions
Change-Id: I44be96b9c53718b2082d2f630e1921356785fc4b
2024-11-07 23:06:24 +00:00
Sunny Goyal
8bbe47c31b Moving Wait to kotlin
Making LauncherInstrumentation optional and removing some reduntant constants.
This allows less dependency on AbstractLauncherUITest

Bug: 377772352
Test: Presubmit
Flag: EXEMPT test refactor
Change-Id: I7cf78d6acc5fef0359dee141a06fd51ff9d4f5a8
2024-11-07 13:51:27 -08:00
Liran Binyamin
44048ba0a3 Suppress the bubble animation on updates
When a bubble is updated, we now suppress the animation when needed.
This prevents the animation from playing on the lock screen, when
the shade is open, when the IME is visible, etc.

Note that for new bubbles we were already suppressing the animation.
The issue fixed by this change is only observed for updated bubbles.

Flag: com.android.wm.shell.enable_bubble_bar
Fixes: 377618253
Fixes: 377624611
Test: manual
       - tap qsb or launch any app and show the keyboard
       - send an update to a bubble
       - observe the flyout is not appearing
       - repeat with shade open and on lock screen
Change-Id: Id78e0cfbc413bcebaf6445cecacaaf34b36ed411
2024-11-07 16:45:39 -05:00
Liran Binyamin
a2603e829a Merge "Disable bubble bar in vertical taskbar" into main 2024-11-07 20:01:41 +00:00
Liran Binyamin
c944fb15ad Merge "Animate bubble badge scale" into main 2024-11-07 20:00:21 +00:00
Liran Binyamin
35e1be7ade Disable bubble bar in vertical taskbar
Flag: com.android.wm.shell.enable_bubble_bar
Fixes: 348694846
Test: manual
      - force vertical taskbar
      - observe that bubbles are floating
Change-Id: I831787933efb922877ee14911e395f27d6936336
2024-11-07 11:12:21 -05:00
Liran Binyamin
f4434d169a Animate bubble badge scale
When a bubble is added or removed while we're collapsed, animate the
badge scale to make sure that only the badge for the top bubble is
visible.

Flag: com.android.wm.shell.enable_bubble_bar
Fixes: 360652359
Test: manual
       - add bubble while collapsed
       - observe that badge only shows for top bubble
       - remove bubble while collapsed
       - observe that badge only shows for top bubble
Change-Id: I91472bb2ddeeeebd33ca64e20e065b2336c08589
2024-11-07 10:47:34 -05:00
Shamali P
531c227c45 Update widget predictor to apply prediction filter
When enough widgets are not passing the filter, additional randomly
 selected widgets are added.

The count to decide whether to add more is a configuration, so that,
if some OEMs don't want any suggestions, can override the value to 0.

Bug: 356127021
Flag: com.android.launcher3.enable_tiered_widgets_by_default_in_picker
Test: Unit tests
Change-Id: Iffa8619149a1a4b468d367fc7bbee381be59469d
2024-11-07 14:01:52 +00:00
Gustav Sennton
6241d7ef46 Merge "Support Desktop unminimize animations, and move app-state logic" into main 2024-11-07 11:08:04 +00:00
Johannes Gallmann
652e49dc03 Merge "Add predictive back animation for 3-button-nav" into main 2024-11-07 07:59:38 +00:00
Treehugger Robot
a903eb93cf Merge "Mark TaskbarOverlayProxyView closed sooner" into main 2024-11-06 22:59:01 +00:00
Bill Yi
4697f0c1ca Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-11-06 22:52:30 +00:00
Artsiom Mitrokhin
7352a82689 Merge "Draw leave-behind circle after pressing taskbar overflow button" into main 2024-11-06 22:08:57 +00:00
Jagrut Desai
585de4e0e9 Merge "Fix ActivityLeak for RecentsViewContiner in TaskbarManager" into main 2024-11-06 21:15:25 +00:00
Andy Wickham
adfd002972 Merge "Adds all_apps_sheet_for_handheld flag." into main 2024-11-06 20:25:23 +00:00
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
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
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
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
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
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
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
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
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
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