Commit Graph

75546 Commits

Author SHA1 Message Date
Daniel Akinola a0ce634e2c Merge "Force calculator to launch in fullscreen for quickswitch tests" into main 2024-04-23 22:33:50 +00:00
Julie Pan a9cf79324a Merge "Merge "Remove mateuszc@google.com from tests/shared/com/android/launcher3/testing/OWNERS" into main am: 06b1e6da76 am: f3d584f4f6" into main 2024-04-23 22:32:30 +00:00
Brian Isganitis a5af76bbde [automerger skipped] Merge "Support toggling Taskbar All Apps with 3P Launcher." into 24D1-dev am: 0db4a1aac5 -s ours
am skip reason: Merged-In I26f0ed9e921beac762f3f9e6aaceb1002ad4801a with SHA-1 176f186a6d is already in history

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

Change-Id: I75207310d4e6503942a32f804c4247d6dd777c57
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-23 22:32:20 +00:00
Brian Isganitis 6138534c2b [automerger skipped] Support toggling Taskbar All Apps with 3P Launcher. am: c383204356 -s ours
am skip reason: Merged-In I26f0ed9e921beac762f3f9e6aaceb1002ad4801a with SHA-1 176f186a6d is already in history

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

Change-Id: I0323d6d5f9af93bebfbb34917fb5c661a13063d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-23 22:32:17 +00:00
Brian Isganitis 0db4a1aac5 Merge "Support toggling Taskbar All Apps with 3P Launcher." into 24D1-dev 2024-04-23 22:13:11 +00:00
Brandon Dayauon 782af232e3 Merge "Update badge color to textColorPrimaryInverse" into main 2024-04-23 20:42:56 +00:00
Treehugger Robot f005766ff3 Merge "Fix horizontal spacing in PS Header" into main 2024-04-23 20:17:20 +00:00
Sebastián Franco 48d7c10a82 Merge "Make sure we keep the screen record even if the test succeeds" into main 2024-04-23 19:49:44 +00:00
Willie Koomson f88bf7e23f Merge "Fix issue with tap-to-add on recycled WidgetCells" into main 2024-04-23 18:53:33 +00:00
Treehugger Robot 62a1a8a336 Merge "Move PreInstalled App List to UserCache." into main 2024-04-23 18:24:01 +00:00
Brandon Dayauon 4f781aeac0 Update badge color to textColorPrimaryInverse
Just got updated textColorPrimaryInverse color to use on badge to support the themedness. This color
is consistent with the popup icon colors that is already being used.

bug:324574278
Test after:
dark theme: https://drive.google.com/file/d/1Q9BKlbw0bi5yz-wzPa160JMBEqK7QKcJ/view?usp=sharing
light theme: https://drive.google.com/file/d/1QH_FSOo8H63K_8WKfiDuV1ypGqctYMqt/view?usp=sharing
Flag: None

Change-Id: If59e20356d80b234ad405cfe6995d474dbfe5c57
2024-04-23 11:13:22 -07:00
Winson Chung a9ccb34d1c Merge "Migrate PackageManagerHelper to MainThreadInitializedObject" into main 2024-04-23 18:10:56 +00:00
Sunny Goyal edbe8e5ffc Merge "Fixing MainThreadInitializedObject" into main 2024-04-23 18:06:38 +00:00
Treehugger Robot 2f39e3f4d3 [automerger skipped] Merge "Reland slow gesture callback handling" into 24D1-dev am: 8114a7ffb5 -s ours
am skip reason: Merged-In I9805114da34bf44e6b28c2a8a665e4cca88904c2 with SHA-1 f3f0e28762 is already in history

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

Change-Id: Ib3e109ea7693ee2a56f67e24b0a9808997d68722
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-23 18:02:17 +00:00
Schneider Victor-tulias a64f844e54 [automerger skipped] Reland slow gesture callback handling am: c30642b97f -s ours
am skip reason: Merged-In I9805114da34bf44e6b28c2a8a665e4cca88904c2 with SHA-1 f3f0e28762 is already in history

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

Change-Id: Ibe23a72efc2c9ad7fedac57fe3633e5ed51cf3a9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-23 18:02:14 +00:00
Treehugger Robot 8114a7ffb5 Merge "Reland slow gesture callback handling" into 24D1-dev 2024-04-23 17:47:37 +00:00
Fengjiang Li 02ff0add09 Merge "[Launcher Jank] Schedule LauncherApps#getAppUsageLimit on single bg thread" into main 2024-04-23 17:46:26 +00:00
Sebastian Franco ad15dd719e Make sure we keep the screen record even if the test succeeds
Bug: 322823478
Test: testEdu
Test: testDevicePressMenu
Flag: NA
Change-Id: Ia11d3cbc0a10e15d716b1845e3590bca2bd1ff76
2024-04-23 10:37:22 -07:00
dakinola 41fcfc1f72 Force calculator to launch in fullscreen for quickswitch tests
Follow on to ag/27050655 to fix last flaking test suite, while investigating proper fix

Bug: 333446588
Bug: 333446588
Flag: None
Test: atest NexusLauncherTests:com.android.quickstep.TaplTestsKeyboardQuickSwitch
Test: forrest build with CL (https://android-build.corp.google.com/builds/abtd/run/L47500030003265061)
Change-Id: I28df139779af49b7bc8da567cfe67e5d43b224e9
2024-04-23 16:49:23 +00:00
Jagrut Desai 8626de9fdb Merge "Customize BubbleTextView for Taskbar Icon Size" into 24D1-dev am: 7a5aeb3544
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/27053620

Change-Id: Ie05af3548bffcc125475400321e940b82030e7d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-23 16:34:37 +00:00
Jagrut Desai 7a5aeb3544 Merge "Customize BubbleTextView for Taskbar Icon Size" into 24D1-dev 2024-04-23 16:17:07 +00:00
Schneider Victor-tulias c30642b97f Reland slow gesture callback handling
Now that b/329324086 has been fixed, we can be more certain that launcher always gets a signal to clean up from WM.

- Relanding original fix for b/285636175 with some additional error checking
- We will now check whether the recents animation start is pending on ACTION_UP
- We will now block entire swipes to prevent sending additional inputs an input consumer while the recents animation start is pending
- We will now only stop blocking inputs on ACTION_DOWN

Flag: LEGACY ENABLE_HANDLE_DELAYED_GESTURE_CALLBACKS TEAMFOOD
Bug: 329324927
Fixes: 285636175
Test: added a delay in RecentsAnimationCallbacks.onAnimationStart and attempted several rapid gestures
Change-Id: I9805114da34bf44e6b28c2a8a665e4cca88904c2
(cherry picked from commit f3f0e28762)
Merged-In: I9805114da34bf44e6b28c2a8a665e4cca88904c2
2024-04-23 15:36:01 +00:00
Himanshu Gupta faafb3a19a Fix horizontal spacing in PS Header
1. Removes padding between settings cog and lock button,
as the insets already provide the required padding.
2. Reduces the lock button margin from left to accomodate
the inbuilt inset in the button.

Fix: 336510036
Test: Verified on device.
Flag: NA
Change-Id: I077097c7beb2cc8fe14f4367c66ca4e1ad4270d0
2024-04-23 15:28:01 +01:00
Himanshu Gupta ae4631e6a3 Move PreInstalled App List to UserCache.
Bug: 333543006
Test: atest PrivateSpaceHeaderViewTest, AlphabeticalAppsListTest
Flag: NA
Change-Id: I84233c5a6406325d9e641b72ea8455911b46f65f
2024-04-23 15:28:01 +01:00
Gustav Sennton 568e0bff90 Merge "Show running apps in Taskbar when in Desktop Mode" into main 2024-04-23 14:02:11 +00:00
Gustav Sennton 0b33b172fb Show running apps in Taskbar when in Desktop Mode
In Desktop Mode: show currently running (Desktop) apps in Taskbar

Bug: 332504528
Test: DesktopTaskbarRunningAppsControllerTest
Flag: ACONFIG com.android.window.flags.Flags.enableDesktopWindowingTaskbarRunningApps DEVELOPMENT

Change-Id: I10dec022f4b16562e81d7cbd5f9ce835474e9d20
2024-04-23 10:43:27 +00:00
Daniel Akinola 3c8762f88a Merge "Force calculator to launch in fullscreen for taskbar tests" into main 2024-04-23 08:47:57 +00:00
Fengjiang Li fa0a4c1c11 Merge "[Predictive Back] Swipe back within workspace all apps should only scale down content view, rather than whole all apps sheet" into main 2024-04-23 03:45:32 +00:00
Sebastián Franco a67a53eeed Merge "Make getWidgetProviderInfoByProviderName return the correct WidgetItem for Pixel own widgets." into main 2024-04-23 02:11:50 +00:00
Sebastián Franco 5fa532299a [automerger skipped] Merge changes from topic "cherrypicker-L13500030003200477:N52900030052341505" into 24D1-dev am: 979cc8c8c0 -s ours
am skip reason: Merged-In I98315a4e4c112ca96a74200dd76016803dfaf820 with SHA-1 12678a536b is already in history

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

Change-Id: I8d945fdf0bd892937f151b2ceadea0c4cf7365af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-23 00:18:40 +00:00
Sebastian Franco 78573fbc13 [automerger skipped] If the user only had the default db, then migrate to the new default am: 1edaf75ad9 -s ours
am skip reason: Merged-In I98315a4e4c112ca96a74200dd76016803dfaf820 with SHA-1 12678a536b is already in history

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

Change-Id: Ia46483947aacc206421f1abf971f09d8b8b75997
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-23 00:18:36 +00:00
Sunny Goyal 10fa016352 Fixing MainThreadInitializedObject
> Making SafeCloseable implementation mandatory, to prevent leaks during test and preview
> Removing getNoCreate method and defining executeIfCreated to avoid null pointer exceptions
> Fixing sandbox value leaking into main, by Checking sandbox against App context
> Converting sanbox to an interface instead a class

Bug: 335280439
Test: Presubmit
Flag: None
Change-Id: I951dcde871898e745ff6490a1c4f8fd1512888f5
2024-04-22 17:04:33 -07:00
Sebastián Franco 979cc8c8c0 Merge changes from topic "cherrypicker-L13500030003200477:N52900030052341505" into 24D1-dev
* changes:
  If the user only had the default db, then migrate to the new default
  Set default grid when doing a backup and restore
  Making 2 flags read only since they are used on backup and restore
  In the case the gird migration goes to a taller grid keep the grid configuration
  Revert^4 "Removing all restored backups except one so we don't have old backups"
  Add testing for GridMigration.
  Refactor migrateGridIfNeeded to pass the grid states and make it easier for unit testing
2024-04-22 23:55:10 +00:00
Jagrut Desai 8fbbeae982 Merge "Adjusting Taskbar Icons for larger display size" into 24D1-dev am: b286a78304
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/27053621

Change-Id: Ief537e344cf5755c79e1c6f560280ceee0e72824
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-22 23:04:41 +00:00
Jagrut Desai b286a78304 Merge "Adjusting Taskbar Icons for larger display size" into 24D1-dev 2024-04-22 22:44:50 +00:00
Treehugger Robot e5bffd4c48 Merge "Show add button when WidgetCell text is tapped" into main 2024-04-22 22:27:38 +00:00
Brian Isganitis c383204356 Support toggling Taskbar All Apps with 3P Launcher.
Taskbar All Apps exists regardless of the default launcher. Thus, we can
toggle it on large screen devices. This CL ties registering the system
action to default launcher and taskbar's enablement.

Test: adb shell input keyevent 117
Test: AllAppsActionManagerTest
Flag: LEGACY ENABLE_ALL_APPS_SEARCH_IN_TASKBAR ENABLED
Fix: 317259709
(cherry picked from commit c113b277e6)

Change-Id: Ib4d029617442ebf0f637f7e146aa5d001a065515
Merged-In: I26f0ed9e921beac762f3f9e6aaceb1002ad4801a
2024-04-22 22:16:28 +00:00
dakinola 8771dfe3dd Force calculator to launch in fullscreen for taskbar tests
Taskbar tests are flaking when desktop windowing is enabled due to calculator app being launched in splitscreen unexpectedly during test setup (due to unexpected effect of DesktopModeLaunchParamsModifier on activity launch.) While looking into root cause, this temporary fix to address the test failures ensures that calculator app is always launched in fullscreen, by enforcing it with ActivityOptions.

Bug: 333446588
Bug: 333446588
Flag: None
Test: atest NexusLauncherTests:com.android.quickstep.TaplTestsTaskbar
Test: forrest build with CL (https://android-build.corp.google.com/builds/abtd/run/L47500030003265061)
Change-Id: If12e8490214aa1dd5de89ff8535495c2a0c1fe82
2024-04-22 21:42:09 +00:00
Liran Binyamin 5905d55a9d Merge "Only animate bubbles when in app" into main 2024-04-22 21:38:39 +00:00
Federico Baron e419495cc9 Merge "Add screenrecord for TaplPrivateSpaceTest#testPrivateContainerIsPresent" into main 2024-04-22 21:05:47 +00:00
Bill Yi 0dfb1c672d Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-04-22 20:43:11 +00:00
Bill Yi 4c104aa40b Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-04-22 20:43:11 +00:00
Jagrut Desai 147aa374c1 Adjusting Taskbar Icons for larger display size
Bug: 323948193
Test: Manual
Flag: NONE

Change-Id: I0bdfcaebf3de050ac850fe42c061c82ffebdb7c2
(cherry picked from commit e6f349b3dd)
2024-04-22 20:35:22 +00:00
Federico Baron 9a5bdb3b3f Merge "Add screenrecord to test with "Only System UI views are visible" message" into main 2024-04-22 20:28:27 +00:00
Treehugger Robot 9960f43a5c Merge "Adds new log constant to track overview select tooltip misalignment" into main 2024-04-22 20:24:28 +00:00
Randy Pfohl 2aa1412e9c Merge "Adding in feature flag for Recents in Windows" into main 2024-04-22 20:01:21 +00:00
Liran Binyamin 3232d8a5e7 Only animate bubbles when in app
We currently animate bubbles on home but the animation hasn't been implemented properly yet, so ensure we don't play the animation on home.

This also deflakes some tests that fail because we're not yet handling interruptions while animations are playing.

Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT
Bug: 280605846
Fixes: 333796110
Fixes: 333910495
Fixes: 336086185
Test: https://android-build.corp.google.com/builds/tests/view?invocationId=I78600010269170812&testResultId=TR95029270629703599&redirect=http://fusion2/ac10ec72-4e02-4573-86be-59ecb823ecd1
Change-Id: I99de02cbaebeb6c930a1368ea65562aa178f6762
2024-04-22 19:11:25 +00:00
Federico Baron 9350e71447 Merge "Revert "Add screenrecord for simple reorder widgets test"" into main 2024-04-22 18:31:49 +00:00
fbaron 3f58b471af Add screenrecord to test with "Only System UI views are visible" message
Flag: none
Test: TaplTestsTrackpad#switchToOverview
Bug: 335674307
Change-Id: Icabc13814163deaecaa14dd12bbd41f62074b4d5
2024-04-22 11:28:25 -07:00
Fengjiang Li 7686997079 [Launcher Jank] Schedule LauncherApps#getAppUsageLimit on single bg thread
b/336326937 shows that getAppUsageLimit is being called a lot and it's scheduled on a thread pool, which is causing quite a lot of contention and should be scheduled on a single thread

Fix: 336326937
Flag: NONE
Test: presubmit
Change-Id: Ie041e72f2bff9f5d2dbfa4ce3c63a4bb2e5b08d4
2024-04-22 11:24:04 -07:00