Commit Graph

78507 Commits

Author SHA1 Message Date
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
Android Build Coastguard Worker 64fa0c4254 Snap for 11746631 from 77d3524b1b to 24Q3-release
Change-Id: I0a266bc89c774a277962c4d62ba0d3b2b9b45abe
2024-04-22 23:21:18 +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
Brian Isganitis 86b5755178 Reset allAppsVisible if folding to phone upon recreateTaskbar.
For taskbar unification, we should reset this bit to false when folding
into phone orientation. Otherwise, we will reinit Taskbar AllApps over
the phone UI which is unexpected behavior.

Test: Manual
Flag: N/A
Fix: 293379641
Change-Id: I53c38c8b4df477191be3c21b7750c55a71c7336f
(cherry picked from commit 6d63e7796d)
Merged-In: I53c38c8b4df477191be3c21b7750c55a71c7336f
2024-04-22 22:31:17 +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
Julie Pan d1d01edcdc Merge "Remove mateuszc@google.com from tests/shared/com/android/launcher3/testing/OWNERS" into main am: 06b1e6da76 am: f3d584f4f6
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/3041216

Change-Id: Ied5a54d6abe1abae8438ddf03bc50b19096c761e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-22 18:19:16 +00:00
Saumya Prakash 1e8961c3f8 Increase the delay in between gesture tutorials
The time in between each gesture's finish page and the start of the next
gesture tutorial was too short. We increased the time we spend on the
finish page by 1000 ms based on this feedback.

Fix: 293967263
Test: Run through the gesture tutorial and note the longer pause in
between each gesture
Flag: LEGACY ENABLE_NEW_GESTURE_NAV_TUTORIAL ENABLED
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:959dff122049349e25cfec82e78c6ae6db9fa7d6)
Merged-In: I2c22e19dff91ac720877e596df90efe7f3cfcd80
Change-Id: I2c22e19dff91ac720877e596df90efe7f3cfcd80
2024-04-22 18:05:57 +00:00
Schneider Victor-tulias 77d3524b1b Merge "Remove debug tracing for b/332386996" into main 2024-04-22 18:01:57 +00:00
Sebastian Franco b41d4b4e7a Make getWidgetProviderInfoByProviderName return the correct WidgetItem
for Pixel own widgets.

The pixel own widgets can have categories and getWidgetProviderInfoByProviderName
might not find the right widget if the widget has a category.

Flag: NA
Test: Manaul testing =(
Test: Make sure the placement in the widget picker is correct.
Test: All widgets in widget_section.xml with alsoKeepInApp set to false will previously dissapear on the preview.
Fix: 331628371
Change-Id: I1e4c8ae3dd21f8aef3e4aac99ce6ce6701e94760
2024-04-22 10:47:50 -07:00
Bill Yi 08c3118e86 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 147885412c -s ours
am skip reason: contains skip directive

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

Change-Id: I1d5de05271915399b0f6d1eef02d576a462eb80a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-22 17:39:47 +00:00
Treehugger Robot 1acba69818 Merge "Add TestActivity without any label for testing" into main 2024-04-22 17:23:03 +00:00
fbaron 4f836430a7 Add screenrecord for TaplPrivateSpaceTest#testPrivateContainerIsPresent
Bug: 334946529
Test: TaplPrivateSpaceTest#testPrivateContainerIsPresent
Flag: none
Change-Id: I8f2d97c4d29d91389c3d20558ea6e3977deb322c
2024-04-22 09:58:53 -07:00
Julie Pan f18ee90f03 Merge "Remove mateuszc@google.com from quickstep/tests/OWNERS" into main am: 2eadab3702
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/3038502

Change-Id: Ic46e9d5f70dc59ef3dd099c8d0d2f08869718a3b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-22 16:50:13 +00:00
Julie Pan d2a665cc7f Merge "Remove mateuszc@google.com from tests/OWNERS" into main am: f6519bd225
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/3041215

Change-Id: Id0a1c59445459413604fe0684d453c9373e8bcea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-22 16:49:12 +00:00
Federico Baron 0e9fce7046 Revert "Add screenrecord for simple reorder widgets test"
This reverts commit 8248279894.

Reason for revert: test stopped failing

Change-Id: I7993e38124530bdb0bdbb3447a449bd727b56d0a
2024-04-22 16:45:41 +00:00
Julie Pan f3d584f4f6 Merge "Remove mateuszc@google.com from tests/shared/com/android/launcher3/testing/OWNERS" into main am: 06b1e6da76
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/3041216

Change-Id: I942d5f1bf6f38ea8b2a41e031f5af4087723b214
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-22 16:45:32 +00:00
Jordan Silva cbc8bf0443 Adds new log constant to track overview select tooltip misalignment
Bug: 332485341
Flag: N/A
Test: atest OverviewSelectTooltipImageTest
Change-Id: Ic1a9ad4e1e9e9b95774a4a1edac92ea79c75cec6
2024-04-22 17:39:31 +01:00
randypfohl f968879aa8 Adding in feature flag for Recents in Windows
Test: none

Flag: none

Bug: 292269949
Change-Id: I90683497a97149eb6054d168b92a078385e027e4
2024-04-22 09:38:13 -07:00
Treehugger Robot 774d05e970 Merge "Remove debug tracing for b/321775748" into main 2024-04-22 16:35:32 +00:00
Julie Pan 2eadab3702 Merge "Remove mateuszc@google.com from quickstep/tests/OWNERS" into main 2024-04-22 16:20:26 +00:00
Julie Pan f6519bd225 Merge "Remove mateuszc@google.com from tests/OWNERS" into main 2024-04-22 16:20:09 +00:00
Julie Pan 06b1e6da76 Merge "Remove mateuszc@google.com from tests/shared/com/android/launcher3/testing/OWNERS" into main 2024-04-22 16:19:50 +00:00
Schneider Victor-tulias abf9f308a5 Remove debug tracing for b/332386996
Flag: N/A
Fixes: 332386996
Test: TaplTestsQuickstep
Change-Id: I0d0aa5d5654dbf391269333eb4808d36f5e645ed
2024-04-22 16:16:42 +00:00
Sebastian Franco 1edaf75ad9 If the user only had the default db, then migrate to the new default
We also check if the new default is bigger than or equal to the
previous one.

Flag: ACONFIG enable_grid_migration_fix enabled
Flag: ACONFIG enable_narrow_grid_restore enabled
Bug: 325286145
Bug: 325285743
Test: BackupAndRestoreDBSelectionTest.kt
Test: GridMigrationTest.kt
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:12678a536b747279bb7ce04557696aae6725ce33)
Merged-In: I98315a4e4c112ca96a74200dd76016803dfaf820
Change-Id: I98315a4e4c112ca96a74200dd76016803dfaf820
2024-04-22 16:15:55 +00:00
Sebastian Franco 7b46e1145c Set default grid when doing a backup and restore
When restoring from a tablet because phones don't have
the same table some issues can ocure because we setup a
non valid grid, the correct thing is to setup a default.

Bug: 325285743
Fix: 332964986
Flag: ACONFIG narrow_grid_restore enabled
Test: BackupAndRestoreDBSelectionTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:df7d2b08614adfd19245577724588307ff439a7d)
Merged-In: I28bf02e83dddf5ae84818d879a5e21600eddf67e
Change-Id: I28bf02e83dddf5ae84818d879a5e21600eddf67e
2024-04-22 16:15:41 +00:00
Sebastian Franco 8c3d830b39 Making 2 flags read only since they are used on backup and restore
The flags are narrow_grid_restore and grid_migration_fix.

Flag: ACONFIG enable_grid_migration_fix enabled
Flag: ACONFIG enable_narrow_grid_restore enabled
Bug: 325286145
Bug: 325285743
Test: BackupAndRestoreDBSelectionTest.kt
Test: GridMigrationTest.kt
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5ea61960ab4b0da02aeb5dd36968c2ef923709aa)
Merged-In: Ia6a439553c3c5098115144eae532342ce73be4f2
Change-Id: Ia6a439553c3c5098115144eae532342ce73be4f2
2024-04-22 16:15:30 +00:00
Sebastian Franco f5a2e75100 In the case the gird migration goes to a taller grid keep the grid configuration
For example going from 4x5 to 4x6 it will keep the 4x5 configuration
which fits in the 4x6 grid.

Also, it fixes GridMigrationTest which was flaky because of
how it sorted arrays.

Bug: 325286145
Flag: ACONFIG grid_migration_fix disabled
Test: NA
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2eaf15c37a051fd17c18c4443a8bd19d39057bf0)
Merged-In: I6063e3c303320096f7429a3b1d909e107d2ef2a0
Change-Id: I6063e3c303320096f7429a3b1d909e107d2ef2a0
2024-04-22 16:15:13 +00:00
Jagrut Desai 2f8baab403 Customize BubbleTextView for Taskbar Icon Size
Test: Presubmit, manual
Flag: NONE
Bug: 322734668
Change-Id: I50503a45cdf43abed942a846c2517f49124c75e5
(cherry picked from commit 8fbdf51d18)
2024-04-22 16:10:06 +00:00
Mykola Podolian 1f40fa0e7f Merge "Updated pointer to match visual specification." into main 2024-04-22 16:06:39 +00:00
Schneider Victor-tulias 3f8eea99e3 Remove debug tracing for b/321775748
Flag: N/A
Fixes: 321775748
Test: FallbackRecentsTest
Change-Id: I1f746bf43025e093e94e60f8a1561f4f6a0f9b22
2024-04-22 09:55:49 -04:00
Winson Chung bb32b7e0de Migrate PackageManagerHelper to MainThreadInitializedObject
- This is in preparation for other things that can be loaded with
  PMH initialization and prevents duplicate temporary helpers from
  loading this many times.
- Most calls in PMH can use the app context, but one call requires
  starting activities/showing toasts so that one needs to take the
  context and can be made static instead.

Bug: 323112914
Test: atest NexusLauncherTests
Change-Id: Id11c780955880cf49c022cbf2744c41e1b696355
2024-04-22 12:35:03 +00:00
Jordan Silva cbd111483e Add TestActivity without any label for testing
This change adds an unlabeled activity to test the overview select action. The test evaluates the overview modal task state to verify that the UI displays correctly.
Using an activity without a label prevents flakiness from AiAi, which sometimes shows the activity title as selected and sometimes does not.

Bug: 332750488
Flag: NA
Test: OverviewTaskSelectImageTest
Change-Id: I6b63f1410bc466ac6711b0ca3d609d8f7a31d8c1
2024-04-22 12:39:06 +01:00