Commit Graph

78507 Commits

Author SHA1 Message Date
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
Android Build Coastguard Worker 3732f5e0de Snap for 11869550 from 0167249ade to 24Q3-release
Change-Id: I519a749519f448516744a7bd614de941ed1533cf
2024-05-21 23:21:41 +00: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
Alex Chau 63e4e4ce11 Avoid IconView's setModalAlpha interfere with setContentAlpha
- Because ag/27301532 we have restriction in setModalness that forbid setModalAlpha be called multiple times, this was a hack to avoid setModalAlpha interferring with setContentAlpha
- As part of ag/27301532 modalness.set no longer have the field != value check, which cause the regression that icon appears in quick switch carousel
- Now it follows IconAppChipView's implementation to use MuiliValueAlpha

Bug: 339787593
Test: Swipe up from app, or quick switch then swipe up, icon shouldn't be visible
Flag: EXEMPT refactor
Change-Id: I0abb8df951ef32ba8a0f9bbfa385c0aa3b96dd7f
2024-05-21 15:16:23 +01:00
Treehugger Robot 7276277569 Merge "Fix mockito deviceless deps" into main 2024-05-21 13:56:25 +00:00
Orhan Uysal 67c807a1fe Fix activity leak
In some occasions, launcher leaks through DesktopVisibilityController
and SplitFromDesktopController. Set mDesktopVisibilityController and mSplitSelectStateController to null
after their onDestroy() methods are called.

Bug: 332339792
Test: m
Flag: ACONFIG com.android.window.flags.enable_desktop_windowing_mode TEAMFOOD
Change-Id: I66418f30ec5d2735f812ee6e4180f55f67d7b46f
2024-05-21 12:42:37 +00:00
Uwais Ashraf 029de6d10a Fix mockito deviceless deps
Bug: 334825222
Test: TasksRepositoryTest
Flag: EXEMPT build files
Change-Id: Ia682e364d56b23a2b3c3a1ef6d83044d110e14d6
2024-05-21 11:59:05 +00:00
Alex Chau 4127e460b0 Move common code from DesktopTaskView and GroupedTaskView to TaskView
- Most TaskView method will now loop through taskContainer instead of accessing the first/second
- Moved TaskThumbnailView, showWindowsView, and TaskOverlay to be part of TaskContainer. There are still some TaskOverlay access from TaskThumbnailViewDeprecated that should be remove as we start using TaskThumbnailView

Fix: 339787250
Test: Manual
Flag: EXEMPT refactor
Change-Id: Icfaa4f5eb50582faed01113465335b6d2899f781
2024-05-21 12:43:37 +01:00
Sihua Ma 5a4b813d38 Merge "Move widget picker tests to Robolectric" into main 2024-05-21 08:36:08 +00:00
Android Build Coastguard Worker 33191cf132 Snap for 11865526 from 38ad424a17 to 24Q3-release
Change-Id: I11cd41b53577d8be6169c5c84c20814950ae35cb
2024-05-21 01:21:50 +00:00
Brian Isganitis 48c2690e2a Merge "Add flag for Tiny Taskbar" into main 2024-05-21 01:09:06 +00:00
Tracy Zhou efc21994a2 Set inset in phone setup mode to setup inset am: 8355bc1a76
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/27420758

Change-Id: I92f5fa8a6e5d04cdf5cf33e1e8003fd88602b172
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-21 00:30:03 +00:00
Brandon Dayauon ae0e957eea Update private space divider thickness and padding per spec.
Thickness (height) is 2dp.
Padding above and below the divider is 32dp.

bug: 340307977
test manually:
before: https://drive.google.com/file/d/1H364XUILz3gTLOENQL5zQBOELcza7YBk/view?usp=sharing
after: https://drive.google.com/file/d/1HCsnj2s9TwlzIjKL1aHbBqO15nkPoOLj/view?usp=sharing
after vertical padding: https://drive.google.com/file/d/1HS1SFVj9RfvuxHPGyk0PH5dGQum3spqe/view?usp=sharing
Flag: None

Change-Id: I64e9a228e9095449c4ef5f7680d92d234ab96f9f
2024-05-20 16:24:14 -07:00
Anushree Ganjam 6c97b05562 Add ApiWrapper Instance to SandboxModelContext.
The SystemShortcutTest is failing after ag/26708194 is submitted.

Bug: 341754469
Bug: 341754775
Test: Manual
Flag: None Bug fix TestFailure
Change-Id: I2e8af1a4913c245a2d5b6164476e240ece79ada8
2024-05-20 16:23:12 -07:00
Brian Isganitis 1a57e08d84 Add flag for Tiny Taskbar
Flag: com.android.launcher3.enable_tiny_taskbar
Test: None
Bug: 341784466
Change-Id: I84be4bed652c27c4ebfba5818c13d98acfa9aa60
2024-05-20 23:07:45 +00:00
Brandon Dayauon 726f3b4480 Update install app icon colors to spec:
The + in the icon is onSurface.
Everything else within the circle is material_color_surface_container_lowest.

spec: https://docs.google.com/presentation/d/1_f2nAcmZMywF0D1-9fJv1slUQVerIpJ0b1uUmZDpKXo/edit?resourcekey=0-nxjnkIp8z-ECp8angeQJZg#slide=id.g239ecda44ed_0_18

bug: 340307977
Test:
before: https://screenshot.googleplex.com/Bss6VHDt7JfjsEU
after: https://screenshot.googleplex.com/5qxqQ6segow2Nxh
Flag: None
Change-Id: I300e8513d15e428338cb1e20f65fbe3a0b62bc35
2024-05-20 15:46:43 -07:00
Tracy Zhou a2bbe1c5c8 Merge "Add folders in all apps aconfig flag" into main 2024-05-20 22:43:29 +00:00
Sihua Ma efc24f9251 Move widget picker tests to Robolectric
Test: atest Launcher3RoboTests
Test: atest NexusLauncherRoboTests
Test: SysUI studio
Flag: NONE test migration
Bug: 297950111
Change-Id: I9124d4f45feb0ded74ffe2e0aabffdf98459ff4f
2024-05-20 21:20:32 +00:00
Andrew Cole cdfa5e6b33 Removing AdaptiveIconDrawable Checks
As part of the internal cleanup for adaptive icons, we are removing if checks for AdaptiveIconDrawable that are no longer necessary. Also refactoring to follow a more functional programming pattern for easier future refactors.

Bug: 318867282
Flag: EXEMPT BUGFIX
Test: AllAppsSearchImageTest
Change-Id: Id13040bc4fd2ca7e85583d727b228ee390eadc91
2024-05-20 11:01:51 -07:00
Ats Jenk 38ad424a17 Merge "Only send bubble bar top coordinate to shell" into main 2024-05-20 17:36:23 +00:00