Commit Graph

78507 Commits

Author SHA1 Message Date
Alex Chau a6def81654 Merge "Don't run parallax animation for grid overview" into main 2024-02-20 11:35:36 +00:00
Alex Chau ec6f0bad38 Don't run parallax animation for grid overview
Bug: 286821534
Test: manual
Flag: None
Change-Id: I08c77ce5d538ee07374e9f88fc4d00cc8165f28b
2024-02-20 11:34:58 +00:00
Android Build Coastguard Worker 1d08dcf33f Snap for 11469542 from 89170d6fab to 24Q3-release
Change-Id: Ic041a63c8e3d4978a2949e11484a75e59755ba37
2024-02-20 00:21:18 +00:00
Android Build Coastguard Worker 498d1c7012 Snap for 11469542 from 89170d6fab to 24Q2-release
Change-Id: I8a27205fd7aa9b410b70b01b3d659201c96741be
2024-02-20 00:21:05 +00:00
Jordan Silva baae8c5572 Add function to start a test activity with different name and label
Bug: 320314835
Test: NexusLauncherImageTests
Test: NexusLauncherTests
Flag: N/A
Change-Id: Ida26572706eaaa8c46dbe446c700a54b019b530d
2024-02-19 14:33:38 +00:00
Treehugger Robot 89170d6fab Merge "Update color of Overview ShareTarget scrim" into main 2024-02-19 14:17:47 +00:00
Alex Chau 51c09ed13e Merge "Avoid resetting RecentsAnimationController and RemoteTargetHandle without clear ownership" into main 2024-02-19 12:00:56 +00:00
Alex Chau 6ff4c1f5a4 Merge "Always run animateClose when closing TaskMenuView" into main 2024-02-19 10:27:32 +00:00
Riddle Hsu 5fbbbcef3a Merge "Make recents activity follow the orientation of activity behind" into main 2024-02-19 07:52:09 +00:00
Brandon Dayauon c2173aac34 Merge "Collapse private space container and animate header." into main 2024-02-19 04:21:56 +00:00
Android Build Coastguard Worker 6b7f0b58c3 Snap for 11465908 from b2ea96303c to 24Q3-release
Change-Id: I4d2f96415e05ade07f71a0066281b0f8440ad28c
2024-02-17 22:20:55 +00:00
Android Build Coastguard Worker 341acbab5d Snap for 11465908 from b2ea96303c to 24Q2-release
Change-Id: Ibbb2ea1539a0bf3934e15716d72d1cd7243a0ba3
2024-02-17 22:20:53 +00:00
Himanshu Gupta b2ea96303c Merge "Preventing installed PS apps from moving to home screen" into main 2024-02-17 12:55:33 +00:00
Brandon Dayauon 08b06523a5 Collapse private space container and animate header.
- Just opposite of how it will expand.
- RecyclerView.SmoothScroller is needed to scroll the container.

- Need to separate the lock button because this way I can use animateLayout changes and it itself was its own drawable. Separated into icon and textView in a viewGroup.
- Give the background the 10padding on the left and right so that when in animation, the icon can adjust the padding/margins there.
- Using propertySetter to set animation
- Animates the alpha of the settings alpha

- updated test to account for the nested child views the test needs to inspect

bug: 299294792
test: manual:
Expand + Collapse Video: https://drive.google.com/file/d/1Og66eqmXv3THn0wO4_x6Tfp2AbwFWUwZ/view?usp=sharing
Flag: ACONFIG com.android.launcher3.Flags.private_space_animation TEAMFOOD

Change-Id: I96f1d172a481522d23b4cee996ddec65961fce78
2024-02-16 21:23:51 -08:00
Fengjiang Li 73ece207a2 Merge "Avoid flicker to drop a widget that needs a config activity." into main 2024-02-17 03:16:40 +00:00
Android Build Coastguard Worker 40fbeeff2c Snap for 11463929 from d3693424f5 to 24Q3-release
Change-Id: I07a1360a506dc1383ac1443a210154aa43acebe5
2024-02-17 02:21:28 +00:00
Android Build Coastguard Worker d3ac22847d Snap for 11464157 from d3693424f5 to 24Q2-release
Change-Id: I72a88c008d618b5c09eee3b5c7ed90a08db8cd96
2024-02-17 02:21:23 +00:00
Fengjiang Li 8bd66ee82d Avoid flicker to drop a widget that needs a config activity.
When dropping a widget that requires an config activity, drop a
PendingAppWidgetHostView to workspace

Adb command to try the feature:

adb shell device_config put launcher com.android.launcher3.enable_add_app_widget_via_config_activity_v2 true

Fix: 284236964
Test: manual
Flag: aconfig launcher.enable_add_app_widget_via_config_activity_v2 DISABLED
Change-Id: Ifd0be5c607a388cf8a8f6d77b46c03112e3e599f
2024-02-16 17:05:40 -08:00
Anushree Ganjam 9ea1724245 Merge "Add InteractionJankMonitor for backpress from allapps CUJ_LAUNCHER_CLOSE_ALL_APPS_BACK." into main 2024-02-17 00:23:11 +00:00
Anushree Ganjam 06c98fd685 Add InteractionJankMonitor for backpress from allapps CUJ_LAUNCHER_CLOSE_ALL_APPS_BACK.
Jank CUJ's cannot be added in LauncherState since it's aosp code.
Introduced `onBackPressComplete` method so the LauncherState subclasses can override this method to get back press complete call after back press animation is successful. Here we can add necessary jank CUJ's.

Perfetto trace : https://ui.perfetto.dev/#!/?s=3fc6eed848bdd692949ddb3afbdcdf04a7ef0d99cb9a83804ce9e1840492ed66

Test: Perfetto trace. https://screenshot.googleplex.com/5yviY5LxKusnKvF.png
Bug: 319132905
Flag: NA. Adding jank CUJ.

Change-Id: Ia418f06cb76fe4e14c2032c62c2250e9143442f2
2024-02-16 14:35:20 -08:00
Jon @ d3693424f5 Merge "Notify home is visible when launching a translucent app." into main 2024-02-16 21:43:28 +00:00
Treehugger Robot 821715127d Merge "Prevent taskbar reset animation from playing when gesture is in progress." into main 2024-02-16 21:36:59 +00:00
Treehugger Robot c7f9baee08 Merge "Disabling hidden API checks for Launcher3 tests" into main 2024-02-16 19:53:40 +00:00
Ats Jenk ca99653959 Merge "Create bubbles input consumer before nav bar long press" into main 2024-02-16 19:52:08 +00:00
Himanshu Gupta 4499fa60f9 Preventing installed PS apps from moving to home screen
During app install in PS, promise app icons and the
installed app icons are added automatically on home screen.
In this change we restrict the same.
Also, checked that enabling `PROMISE_APP_IN_ALL_APPS` still
works for PS apps after this change.

Bug: 325057835
Test: Launcher3 tests
Flag: ACONFIG com.android.launcher3.Flags.private_space_restrict_item_drag TEAMFOOD
Change-Id: Iecff850bcc1cd17a123553a4258943da1ee61fcc
2024-02-16 19:28:58 +00:00
Federico Baron 94c16073d3 Merge "Fix import for screenrecord" into main 2024-02-16 19:26:06 +00:00
Alex Chau c302daec2f Avoid resetting RecentsAnimationController and RemoteTargetHandle without clear ownership
- RecentsView only see itself owning RecentsAnimationController and RemoteTargetHandle after live tile is enabled via onGestureAnimationEnd to RECENTS
- RecentsView will finish recents animation if it owns RecentsAnimationController and is leaving RecentsView
- Otherwise, reset() would not reset RecentsAnimationController or RemoteTargetHandle
- Added logging for interaction between gesture and RecentsView to aid future debugging

Bug: 288557298
Test: manual
Flag: None
Change-Id: Icdcb91b98b2bb5d6d3bc30070f533ea79915bc09
2024-02-16 19:23:08 +00:00
Shamali P b3a4d65bb7 Initial UI changes for displaying categorized suggestions.
Ordering changes and some more UI changes in follow-up.

Bug: 318410881
Test: See screenshots
Flag: ACONFIG com.android.launcher3.enable_categorized_widget_recommendations DEVELOPMENT
Change-Id: I77e7f4dcdda32e2921ae56721cddbe261832f0d8
2024-02-16 18:43:20 +00:00
Vadim Tryshev 183614ca32 Disabling hidden API checks for Launcher3 tests
This makes atest config functionally identical to the GCL one that's used to run tests in the lab, and will help eliminating test errors in Launcher3 tests.

Bug: 271324404
Test: presubmit
Flag: N/A
Change-Id: I35003bc7e7edd41c3db9c0ff7562f608a21b886e
2024-02-16 18:08:41 +00:00
Vadim Tryshev 8d657cb911 Merge "Adding screen recording for FallbackRecentsTest.testOverview" into main 2024-02-16 18:07:33 +00:00
Tracy Zhou 0c801cbd20 Merge "Guard taskbar / navbar unification logic with whether the device is a phone on top of the flag" into main 2024-02-16 17:51:03 +00:00
Tracy Zhou e34a1b647d Merge "Update phone gesture nav test in NavButtonLayoutFactoryTest" into main 2024-02-16 17:50:18 +00:00
Jakob Schneider 6ad28a568e Merge "Fix two flag usages that I missed the last time around when I refactored it into the utilities class." into main 2024-02-16 17:47:34 +00:00
fbaron bb13d787f0 Fix import for screenrecord
accidentally imported the wrong screenrecord

Bug: 322228038
Flag: NONE
Test: TaplOpenCloseAllAppsTest#testAllAppsFromHome
Change-Id: I80f0b3a9b376144ff4f75f5ce0fb98b1aed5985d
2024-02-16 09:15:46 -08:00
Alex Chau 1ae5e169b0 Update pivots after taskSize is updated
- For case that there are no TaskViews, onLayout is not called, so updatePivots isn't called when folding

Fix: 325314248
Test: Manual
Flag: None
Change-Id: If7377f2e4fcbe4a874f823bb99b0b197cd5f7b87
2024-02-16 15:23:35 +00:00
Alex Chau 60ad90e519 Always run animateClose when closing TaskMenuView
- This avoid diverging code path when animation is off
- Also made sure menuTranslationX and Y always reset when not needed
- Also remove AnimatedVectorDrawable in favour of scale animation in code, as AnimatedVectorDrawable doesn't work well when animation is off

Bug: 319086207
Test: OverviewMenuImageTest
Flag: ACONFIG com.android.launcher3.enable_overview_icon_menu TEAMFOOD
Change-Id: I4a18cf4aac3237031095c2600c777b6c4c3e518f
2024-02-16 14:58:14 +00:00
Jakob Schneider f45d7f3450 Fix two flag usages that I missed the last time around when I refactored
it into the utilities class.

Test: N/A
Flag: NA
Change-Id: If2c0824d7dd076bda68ee7d9c4f48889f4c8f4e1
2024-02-16 13:03:59 +00:00
bvineeth e8bdf16b65 Add tag for cuj OPEN_ALL_APPS when swiping to open all apps
Test: Checked trace
Bug: b/270128536
Flag: None
Change-Id: I0d5f562fc156423af2b5ce7e54e1bff54a522aa6
2024-02-16 10:41:15 +00:00
Treehugger Robot 3d7e1c290e Merge "Revert "Use instrumentation arg to prevent unnecessary delays in unit tests"" into main 2024-02-16 08:40:03 +00:00
Tracy Zhou b263e2d94a Update phone gesture nav test in NavButtonLayoutFactoryTest
I think the test was written in the first version of NavButtonLayoutFactoryTest where phone gesture nav layouter didn't exist (verified with the revision history), hence updating the logic here

Bug: 324989451
Test atest NavButtonLayoutFactoryTest

Change-Id: I325a5d47db86add8d094e61b1de923f50a2db309
2024-02-15 23:42:21 -08:00
Tracy Zhou 89f72882ce Guard taskbar / navbar unification logic with whether the device is a phone on top of the flag
Test: Rerun the tapl tests
Bug: 325162802
Change-Id: Iffeeb0a60b634e66bc80e4ba45db816cdc8ba564
2024-02-15 22:06:33 -08:00
Vineeth Bhende e2a76cee2b Merge "Add CUJ-LAUNCHER_OPEN_ALL_APPS instrumentation from taskbar" into main 2024-02-16 04:02:24 +00:00
Treehugger Robot bd265a24cc Merge "Adding logging for for the case whe Launcher activity is not resumed after Back" into main 2024-02-16 03:19:02 +00:00
Vadim Tryshev 334e9f38e2 Revert "Use instrumentation arg to prevent unnecessary delays in unit tests"
This reverts commit b5d08b246e.

Reason for revert: A similar G3 CL was reverted: cl/582384131

Change-Id: If3e3d6f1aacd297ef357d6330ca3e98e857ea71d
2024-02-16 02:01:20 +00:00
Android Build Coastguard Worker 74f6c1e2e2 Merge "Snap for 11456215 from 7e9bea446a to 24Q2-release" into 24Q2-release 2024-02-16 01:40:34 +00:00
Android Build Coastguard Worker 60634b0a05 Merge "Snap for 11456215 from 7e9bea446a to 24Q2-release" into 24Q2-release 2024-02-16 01:33:09 +00:00
Android Build Coastguard Worker eebf21452b Merge "Snap for 11455877 from 7e9bea446a to 24Q3-release" into 24Q3-release 2024-02-16 01:30:13 +00:00
Android Build Coastguard Worker f90587f006 Snap for 11456215 from 7e9bea446a to 24Q2-release
Change-Id: I78fa0b73d622dd96ca6707e825cd7350fd3fcdd1
2024-02-16 00:51:37 +00:00
Android Build Coastguard Worker 208001cce6 Snap for 11455877 from 7e9bea446a to 24Q3-release
Change-Id: I67a9e45341cda94698b02e0ebce2d745625d4100
2024-02-16 00:42:03 +00:00
Android Build Coastguard Worker 0c483a723d Snap for 11456215 from 7e9bea446a to 24Q2-release
Change-Id: Ib6e9d00e2379f48a06ed7c246c98a83a8e79f1a5
2024-02-16 00:39:34 +00:00