Commit Graph

76729 Commits

Author SHA1 Message Date
Winson Chung 05682a059f Report gesture height for mandatory system gestures
- We are currently reporting the content insets for the mandatory system
  gestures in taskbar, but for button nav we should actually be
  reporting zero, and for gesture nav we should either report the
  content height if the taskbar is pinned, or the gesture height
  otherwise as the bottom mandatory gesture inset

Bug: 340134342
Test: atest android.systemui.cts.WindowInsetsBehaviorTests
Change-Id: Ie4d56b62c903c273db95c19c9d34fcfe6c9ce486
2024-05-23 22:43:02 +00:00
Brian Isganitis 6fd271bb8a Revert "Add flag for Tiny Taskbar"
This reverts commit 1a57e08d84.

Reason for revert: ag/27470277 flag instead
Flag: com.android.wm.shell.enable_tiny_taskbar
Test: None
Bug: 341784466

Change-Id: I1a36c66eabb9c2ddac4595cec6836da222182351
2024-05-23 22:31:07 +00:00
Brian Isganitis 7c96392d25 Prototype tiny taskbar all apps.
Makes the scrim opaque for phones so that it looks like the launcher
phone all apps layout.

Flag: com.android.wm.shell.enable_tiny_taskbar
Test: Manual
Bug: 341784466
Change-Id: I0352bf7c13c4ea0a5e1bdecf8b4573fd2008d44b
2024-05-23 16:55:30 -04:00
Brian Isganitis 4aa0b3f261 Disable taskbar EDU for tiny taskbar.
The tooltips are generally too large for phone mode, and since this is a
prototype, let's disable them when in tiny mode :)

Flag: com.android.wm.shell.enable_tiny_taskbar
Test: Manual
Bug: 341784466
Change-Id: I340485edf8bedc6b5d9501cb7c74b0864ae79630
2024-05-23 16:49:24 -04:00
Brian Isganitis e1eaefd537 Initial prototype of tiny taskbar.
Introducing isTinyTaskbar and using in a few places to show Taskbar on
phones.

Disabling for three button mode since the buttons will take up most of
the space. Could also prototype adding meta key as a 4th button in
this case if we feel like it.

Flag: com.android.wm.shell.enable_tiny_taskbar
Test: Manual
Bug: 341784466
Change-Id: Iba07382d9bd5d14fc29ef080a390db561f6fd454
2024-05-23 16:40:58 -04:00
Pierre Barbier de Reuille f60dd5471c Update desktop mode to identify minimized tasks
When a task is minimised, it becomes invisible but is still running.
WMShell now signals to the launcher when a task's visibility changes.
The task bar takes the visibility into account to know if a running task
is, in fact, minimised.

Test: atest NexusLauncherTests:DesktopTaskbarRunningAppsControllerTest
Flag: com.android.window.flags.enable_desktop_windowing_taskbar_running_apps
Bug: 333872717
Change-Id: Iaff6b1240d354bb3c4de8e4884948acf9bf40112
2024-05-23 20:59:16 +01:00
Alex Chau c228dbd2c1 Reset RecentsView when detached from window
- onDetachedFromWindow is a sign RecentsView or even activity will be destroyed, if we don't reset RecentsAnimationController will be stuck without finsihing, causing live tile to be stuck on screen

Bug: 339747262
Test: Swithcing apps (recents button, quick switch, OVerview) from Maps driving mode, live tile not stuck
Flag: EXEMPT bugfix
Change-Id: I990cfe0fc814c9125dbfbaf8a298f1b871e0194e
2024-05-23 11:34:41 +01:00
Alex Chau ebcd2e5cd5 Merge "Don't call onModalnessUpdated if modalness stays the same" into main 2024-05-23 09:18:59 +00:00
Johannes Gallmann 6b078336fb Merge "Add shanh and gallmann to Launcher owners for predictive back" into main 2024-05-23 06:45:27 +00:00
Johannes Gallmann 364f912da0 Add shanh and gallmann to Launcher owners for predictive back
Bug: NONE
Flag: NONE owners-file only
Test: NONE
Change-Id: I3614b8ca279d9c81a4c3dd3f93c35beff6f6f179
2024-05-23 06:44:57 +00:00
Liam, Lee Pong Lam 883a79db71 [Launcher3] Hide keyboard when fastscroller scrolling down and keyboard
shown

Implement keyboard hiding logic: Hide keyboard when scrolling down (y > mLastY) unless already requested (mRequestedHideKeyboard). Track hide request state to prevent redundant calls.

result video: https://photos.app.goo.gl/e4dYUUiUN3BujNUz9

Bug: 333967597
Flag: EXEMPT bugfix
Test: Manual
Change-Id: I42b9d05dd5368b021577f12541248d434ee22495
2024-05-22 23:17:28 +00:00
Treehugger Robot 014a17ee58 Merge "Animate scrim within open/close PendingAnimation." into main 2024-05-22 23:13:47 +00:00
Charlie Anderson 3483b8e0cc Makes testDragAppIconToMultipleWorkspaceCells more concise to avoid test timout.
Removed part of test that is mostly covered already by testDragAppIcon

Bug: 340281870
Test: passing presubmit
Flag: NONE

Change-Id: I64f4db54ca89dedf4f8e5874bd72ae6d287a812c
2024-05-22 18:54:03 -04:00
Winson Chung 1ed3536146 [automerger skipped] Merge "Add multi-instance state to item infos" into 24D1-dev am: f13fa37d0f -s ours
am skip reason: Merged-In I565b4bee4ab5f7040910306b1fd60a4fc3bf9a1c with SHA-1 94e8ad0731 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/27445815

Change-Id: I9708ffa9ce3153c701e193d91503f97f0ee4ec83
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 22:39:46 +00:00
Winson Chung ade6941799 [automerger skipped] Add multi-instance state to item infos am: ab8e999f81 -s ours
am skip reason: Merged-In I565b4bee4ab5f7040910306b1fd60a4fc3bf9a1c with SHA-1 94e8ad0731 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/27445815

Change-Id: Ib02fc4f3e6250f536711844a8ded309877caec32
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 22:39:43 +00:00
Winson Chung f13fa37d0f Merge "Add multi-instance state to item infos" into 24D1-dev 2024-05-22 22:21:24 +00:00
Sihua Ma 26d9b9c696 Merge "Reapply "Move widget picker tests to Robolectric"" into main 2024-05-22 21:56:02 +00:00
Brandon Dayauon bd3eaa898e Merge changes I64e9a228,I300e8513 into main
* changes:
  Update private space divider thickness and padding per spec.
  Update install app icon colors to spec:
2024-05-22 21:22:00 +00:00
Zak Cohen 73fe0b439e Merge "WidgetPicker - Fix sliding scrim on add widget dialog." into main 2024-05-22 21:03:46 +00:00
Zak Cohen 10cf086910 WidgetPicker - Fix sliding scrim on add widget dialog.
Use the system dimming for standalone widget picker activity, as the system
is applying a default transition.


Bug: 342230362
Flag: NONE animation tweak
Test: visual

Change-Id: I278f8bf97acbfbfca652e1e6b616e2d2885ca92a
2024-05-22 13:32:59 -07:00
Andrew Cole 4897f7bcd6 Merge "Removing AdaptiveIconDrawable Checks" into main 2024-05-22 20:25:56 +00:00
Sihua Ma 1159c2546f Reapply "Move widget picker tests to Robolectric"
This reverts commit 97ee134acc.

Reason for revert: Fixed an issue with UI_HELPER_EXECUTOR that caused the flakiness

Test: atest NexusLauncherRoboTests
Test: SysUI studio
Flag: None Test migration
Fix: 325088642
Fix: 325088805
Fix: 325089116
Fix: 325088960

Change-Id: I2f50c30d2c861e3bba8a8fa3ec547ca2ade6153a
2024-05-22 19:41:11 +00:00
Alex Chau 04b355a2d9 Don't call onModalnessUpdated if modalness stays the same
- Repeatedly calling onModalnessUpdated results in repeated calls of View.setAlpha, which caused regression in Overview loading time

Fix: 341266234
Test: android.platform.test.scenario.messenger.OpenAppFromQuickStepAndOpenQuickStepMicrobenchmark#testOpenQuickStepAndOpenApp
Flag: EXEMPT bugfix
Change-Id: Id756e80f20afafee2bb45e6a3ab861d83ab0b674
2024-05-22 18:52:42 +00:00
Bill Yi 940a9d1838 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-05-22 18:39:08 +00:00
Bill Yi 3dec8d67c2 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-05-22 18:39:08 +00:00
Bill Yi 59fd8cbfaf [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 5a4062bd1f -s ours
am skip reason: contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/27441316

Change-Id: I0ad27df7b9c9cd6ec7bb132ca6074047c3665566
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-22 17:53:06 +00:00
Brian Isganitis d0947bc61c Merge "Add brianji to multitasking-eng owners section." into main 2024-05-22 16:43:34 +00:00
Anushree Ganjam ef9427c709 Merge "Add "Uninstall app" string for private space shortcut." into main 2024-05-22 16:08:31 +00:00
Johannes Gallmann ddeca9746f Merge "Use better heuristic for when to apply statusbar customization during predictive back" into main 2024-05-22 15:26:36 +00:00
Treehugger Robot 656f0e8d13 Merge "Avoid IconView's setModalAlpha interfere with setContentAlpha" into main 2024-05-22 09:40:29 +00:00
Anushree Ganjam 87e875e702 Add "Uninstall app" string for private space shortcut.
Before: https://screenshot.googleplex.com/8RvbiWnJmgAvSYf.png
After: https://screenshot.googleplex.com/4e7N3rr8EAH7k6B.png

Bug: 335451332
Flag: com.android.launcher3.enable_private_space
Flag: EXEMPT resource only update
Test: Manual
Change-Id: I759005f51562683cb6c095abcca27d448acd10f8
2024-05-21 16:36:02 -07:00
Uwais Ashraf fe2107c59d Merge "Revert "Move widget picker tests to Robolectric"" into main 2024-05-21 23:05:12 +00:00
Winson Chung ab8e999f81 Add multi-instance state to item infos
- Add legacy resource for supported multi-instance apps that
  matches the current SystemUI resource of the same name, and will
  be removed as apps migrate to the V manifest property to declare
  multi-instance support
- Load the multi-instance state from PackageManager when the db is
  first loaded or when packages are updated
- The multi-instance check is then used to determine if an app pair
  can be saved (ie. whether the action can be shown)

Bug: 323112914
Test: atest NexusLauncherTests

Merged-In: I565b4bee4ab5f7040910306b1fd60a4fc3bf9a1c
Change-Id: I9658b63672b692c42563c111c11be2433c98d535
2024-05-21 23:01:19 +00:00
Brian Isganitis 74cfea3b12 Add brianji to multitasking-eng owners section.
Bug: N/A
Flag: EXEMPT OWNERS change
Test: N/A
Change-Id: I70eae3d6e1a4c253ec5f7e70af1cf4441e865e06
2024-05-21 18:20:59 -04:00
Uwais Ashraf e21d6b15d5 Merge "Fix some compile errors occurring as a result of robo enablement" into main 2024-05-21 21:18:11 +00:00
Liran Binyamin 821fac010f Merge "Fix flake in BubbleBarViewAnimatorTest" into main 2024-05-21 20:24:45 +00:00
Uwais Ashraf 97ee134acc Revert "Move widget picker tests to Robolectric"
This reverts commit efc24f9251.

Reason for revert: Potential cause for flakiness https://android-build.corp.google.com/test_investigate/?invocationId=I07000010279081631&testResultId=TR32129311605132927

Change-Id: I4f0154bc101b6bc840c11ff0b6bf42f4ebc5ed03
2024-05-21 19:44:41 +00:00
Brian Isganitis 08a7ef9d6d Animate scrim within open/close PendingAnimation.
AbstractSlideInView implementations can override how the scrim is
interpolated.

Test: Manual
Flag: NONE Trivial
Bug: 341784466
Change-Id: Id184a5753b369f8f6b4c3d905d26c1a27209dad6
2024-05-21 15:06:54 -04:00
Uwais Ashraf 784b4f28b0 Fix some compile errors occurring as a result of robo enablement
Fix: 297950111
Test: :NexusLauncher.Robo:testGoogleWithQuickstepDebugUnitTest
Test: atest NexusLauncherRoboTests
Flag: NA
Change-Id: Ic9b09fff630d274558d09b7031d12ec28f10fbc7
2024-05-21 18:56:52 +00:00
Orhan Uysal d061c71e66 Merge "Fix activity leak" into main 2024-05-21 18:35:34 +00:00
Treehugger Robot 1090d17651 Merge "Update DeviceProfileDumpTest to work with flag on and off." into main 2024-05-21 18:30:22 +00:00
Treehugger Robot c0abbc9dab Merge "Move common code from DesktopTaskView and GroupedTaskView to TaskView" into main 2024-05-21 17:44:54 +00:00
Liran Binyamin 56322431ca Fix flake in BubbleBarViewAnimatorTest
The flake was probably happening because the animation end listener
has not finished running on the UI thread. This change waits for
the UI thread to become idle before proceeding.

Flag: com.android.wm.shell.enable_bubble_bar
Bug: 341161005
Test: ran BubbleBarViewAnimatorTest#animateToInitialState_inApp 100x
Change-Id: Ide3b0a34095ed01cc179534fa608aecd5d3f3a20
2024-05-21 13:19:34 -04:00
Bill Yi 5a4062bd1f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaac9e996fc484c62322fbddb036d13b328fe80e2
2024-05-21 10:05:39 -07:00
Bill Yi eba1b0a52b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If52e432f8aa90bf1144c6535bb142dfe12a7d77c
2024-05-21 10:05:10 -07:00
Bill Yi bbad599857 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2ffcdca34507fef26d8814b7d8c4f8bf97682b74
2024-05-21 10:03:53 -07:00
Anushree Ganjam 0167249ade Merge "Add ApiWrapper Instance to SandboxModelContext." into main 2024-05-21 16:28:12 +00:00
Luca Zuccarini 40b0b5e140 Update DeviceProfileDumpTest to work with flag on and off.
Note that the files are different only for a subset of the scenarios
because the result doesn't change for the others.

Bug: 298089923
Flag: ACONFIG com.android.launcher3.enable_scaling_reveal_home_animation DISABLED
Test: this CL
Change-Id: I16e999787265d3d9ced98af5d27a60f1549e1712
2024-05-21 16:26:14 +00:00
Andrew Cole 8fefd5d9ee Merge "AppFilterTest" into main 2024-05-21 16:03:38 +00:00
Johannes Gallmann 03858c7d03 Use better heuristic for when to apply statusbar customization during predictive back
Bug: 341921089
Flag: ACONFIG com.android.window.flags.predictive_back_system_anims NEXTFOOD
Test: Manual, i.e. testing verifying on device that the color switch happens when the closing window passes the middle of the statusbar
Change-Id: I885e8142e52d29d13232cd588108fb1fb2742036
2024-05-21 15:43:21 +00:00