Commit Graph

76729 Commits

Author SHA1 Message Date
Schneider Victor-tulias e115af71f8 Revert remaining debug logs added for b/260260325
Flags: not needed
Fixes: 260260325
Test: Tapl tests
Change-Id: Ie339e2ce3bd301c1c352a2f82d1a370c1f4970c1
2023-08-31 11:44:24 -04:00
Charlie Anderson d48f89be9d Merge "Remove ENABLE_MATERIAL_U_POPUP flag and cleanup dead code" into main 2023-08-31 15:09:25 +00:00
Alex Chau d4f49a7927 Remove unused @ScreenRecord
Fix: 202433017
Fix: 202985412
Test: presubmit
Change-Id: I6ad6cbac0a2f509fb6191a3341a13b678d407168
2023-08-31 11:27:56 +01:00
Fengjiang Li e180de6b20 Fix memory leak of Launcher activityfrom QuickstepTransitionManager and LauncherBackAnimationController
We should also avoid using non-static inner class that extends IOnBackInvokedCallback.Stub and IRemoteAnimationRunner.Stub inside LauncherBackAnimationController, which references the entire LauncherBackAnimationController object.

1. When launcher is created, a Runnable is posted to ShellExecutor to call BackAnimationController#registerAnimation
2. When launcher is later destroyed, another Runnable is posted to same ShellExecturo to call BackAnimationController#unregisterAnimation
3. If the execturo queued the 1st runnable, then we have leaked LauncherBackAnimationController object, including Launcher activity.

This CL fixes the leak by making the Stub static inner classes, and use weak reference hold reference to launcher activity.

Bug: 297806573
Test: Grab a heap dump and this reference no longer exist
Flag: N/A
Change-Id: I78853e900a98399b02682ba2d9179e544a4030d5
2023-08-30 23:43:20 -07:00
Bill Yi 64d30e7420 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5db215391d4cf1712fe1e0e7b0ce0410e5ada397
2023-08-30 19:50:26 -07:00
Bill Yi d43d8d30db Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4f5ff43681d342c64bc0a5f3c940cbf15779d8fb
2023-08-30 19:49:58 -07:00
Bill Yi a9eccb406b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ice62b6654758a6fca02ded25ffc4501aa636a165
2023-08-30 19:49:35 -07:00
Vadim Tryshev f7193e1469 Removing unused screen records
Bug: 187761685, 195673272
Test: presubmit
Flag: N/A
Change-Id: I87711d246660d917cf7e09ac4ffd714149563e52
2023-08-31 02:00:28 +00:00
Jeremy Sim 29428d406e Merge "Add a fail string for app pair menu tests" into main 2023-08-30 23:29:40 +00:00
Saumya Prakash a698652981 Merge "Remove extraneous transition from Overview to Home screen" into udc-qpr-dev am: dbd47e9f75 am: e5b09cd7f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24587641

Change-Id: I6c3c15584cf07e88748e020356bcf1fed30c9314
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30 23:27:26 +00:00
Saumya Prakash e5b09cd7f1 Merge "Remove extraneous transition from Overview to Home screen" into udc-qpr-dev am: dbd47e9f75
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24587641

Change-Id: I350f08b5d09a9f7c17a93529b0a9bfd033e2a04c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30 23:27:09 +00:00
Vadim Tryshev 2ba6ef0cb0 Merge "Removing verifying touch events in TAPL" into udc-qpr-dev am: b75add7a5f am: 9734478ec8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24588973

Change-Id: I60a751986bf753588b4415e5a1429cf88027fc69
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30 23:25:08 +00:00
Android Build Coastguard Worker 7f8a80a6c4 Snap for 10739918 from 8c2e5cbd58 to udc-qpr1-release
Change-Id: I8750e25a2ef08ca32b6c4d46565848ede74194da
2023-08-30 23:20:22 +00:00
Sebastian Franco 940d43b6e9 Change name of getIconsPosition_afterIconRemoved_notContained to uninstallWorkspaceIcon
The name doesn't make clear what the test is doing and
it doesn't follow our naming conventions. Also, adding
comment to explain what the test is doing.

Bug: 298234173
Test: atest UninstallWorkspaceIcon
Change-Id: Icdc42e891a94d159fc07e69931ea8444d882ad56
2023-08-30 16:11:33 -07:00
Saumya Prakash dbd47e9f75 Merge "Remove extraneous transition from Overview to Home screen" into udc-qpr-dev 2023-08-30 23:06:15 +00:00
Sihua Ma 324d3b0fdc Add widget layout transition when resizing
Also getting rid of part of the logic that updates the frame size in multi-window mode since multi-window is no longer supported

Test: N/A
Bug: 268553314
Flag: ENABLE_WIDGET_TRANSITION_FOR_RESIZING. OFF
Change-Id: I081b11441b562fccec7feb12cec0b28b9a0ea3a2
2023-08-30 22:41:13 +00:00
Vadim Tryshev 9734478ec8 Merge "Removing verifying touch events in TAPL" into udc-qpr-dev am: b75add7a5f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24588973

Change-Id: I6520567e1c73e41b3fc740c35d509202c904e5fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30 22:31:05 +00:00
Anushree Ganjam 2a14b978c6 Remove the test aconfig lib.
zhidou@ from ACE team is working on AConfigFakelib which will be useful
to set fake flag values in both unit tests and UI automator tests.
Meanwhile, we will mock the flag values for unit tests and UI automator
tests will have all flags values defaulted to false.

testAConfigLib with "test:true" doesn't generate fake flags values and
forces us to set the flag values using "SetFlagsRule". "SetFlagsRule"
doesn't work with Out Of Proc tests and hence doesn't serve the purpose
for us. AConfigFakelib and FakeFlagTargetPreparer should use for Out Of
Proc tests.

testAConfigLib with "test:true" is suitable for java host tests where
there is no device involved. Launcher tests are instrumentation tests and tests run on actual
devices. So we can use the production version of the AConfig lib and device
config flag values will be fetched for UI Automator tests.

Also migrating "enable_twoline_allapps" to trunk stable. Unit tests is
using mockito to mock the flag value as false. The owner of
"enable_twoline_allapps" can mock the value to true in unit tests as
next step.

Bug: 294913042
Test: Local studio build and soong build
Flag: enable_twoline_allapps

Change-Id: Iea42bf18197832a9ecbddc1c3aaa8c9e36169131
2023-08-30 15:20:51 -07:00
Ats Jenk cb12f2445e Update scale logic for desktop tasks in recents animation
When swiping up to overview, we need to calculate a target position for
the desktop tasks. They need to be scaled down and positioned within the
desktop tile.
After recents animation finishes, the tasks will be replaced by
screenshots. To make the replace less flickery, the position of the
tasks should match the position of the screenshots.

TODO: there is a flicker when the task is replaced with recents entry.
      Task is hidden and then, half a second later, the recents tile is
      shown. Enabling live tiles should help with this.

Bug: 298252273
Test: swipe up to recents from desktop
Change-Id: I0c7fba40dc2511c17d0011d0516456de07cfa004
2023-08-30 14:46:02 -07:00
Andy Wickham 976876ec5b Add tests for LPH override for 3 button mode Taskbar.
Override == Launcher handles via AssistUtils instead of SysUI.

Bug: 297561673
Test: TaskbarNavButtonControllerTest + bug bash session
Change-Id: I079d4b9045d6f7d94d74e91bcabbbc182de6e17d
2023-08-30 14:45:18 -07:00
Vadim Tryshev b75add7a5f Merge "Removing verifying touch events in TAPL" into udc-qpr-dev 2023-08-30 21:40:11 +00:00
Saumya Prakash c4cc4b13b1 Remove extraneous transition from Overview to Home screen
Previously, users used to be able to swipe down near the
bottom of the screen to leave overview. This was causing the taskbar to
animate to home while still in overview (and causing jank). Since this isn't expected behavior for
how to leave overview, this change removes that method.

Flag: N/A
Fix: 284416178
Test: Completed multiple transitions (ex. Overview to home) with 3
button nav and gesture nav. Ensured swiping down from below the recents
task does not go to the home screen while not affecting other
transitions.

Change-Id: I8cdfde71117dd947174d9c3c3a7f834fbeaddcca
2023-08-30 21:24:45 +00:00
Kevin Lim a954a0d64d Merge "[Tiger] Remove @PlatinumTest for testUninstallFromWorkspace so that the flaky test runs and we can get a screen record." into udc-qpr-dev am: 8c2e5cbd58 am: f2892a08fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24559527

Change-Id: I8602d0523b147f064292dafc861b96a6ba45ab81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30 21:05:32 +00:00
Andreas Agvard c41b4e4744 Merge "Fixes search feature invocation issue" into udc-qpr-dev am: 7d793ecdda am: 0c93438614
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24586848

Change-Id: Id0b016b3ac7ea7d5d99df9f526496b6843d50a56
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30 21:00:08 +00:00
Vadim Tryshev 0e97dff0da Removing verifying touch events in TAPL
They are perceived to produce too much noise and maintenance.

Bug: 187761685
Test: presubmit
Flag: N/A
Change-Id: I062eb5670a92a2ccc7039108829b09ca9d9127ae
2023-08-30 13:57:18 -07:00
Kevin Lim f2892a08fa Merge "[Tiger] Remove @PlatinumTest for testUninstallFromWorkspace so that the flaky test runs and we can get a screen record." into udc-qpr-dev am: 8c2e5cbd58
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24559527

Change-Id: I6820cf27640ac5e8db77566e03f59ab952a25108
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30 20:56:32 +00:00
Charlie Anderson 69524513db Remove ENABLE_MATERIAL_U_POPUP flag and cleanup dead code
- removes a lot of dead code for the old popup design and especially around adding notifications to popups
- renames several resource files to remove the material_u specification, as it is now the only design

Test: manually run through launcher popups
Bug: 270395516
Flag: ENABLE_MATERIAL_U_POPUP
Change-Id: I462063482206578b4b896a6d405dc2383f2da510
2023-08-30 20:40:25 +00:00
Andreas Agvard 0c93438614 Merge "Fixes search feature invocation issue" into udc-qpr-dev am: 7d793ecdda
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24586848

Change-Id: I9cbd977cd6091f5259fc137541ab9e11f00e5def
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-30 20:10:22 +00:00
Kevin Lim 8c2e5cbd58 Merge "[Tiger] Remove @PlatinumTest for testUninstallFromWorkspace so that the flaky test runs and we can get a screen record." into udc-qpr-dev 2023-08-30 19:38:50 +00:00
Sukesh Ram 861733f756 Merge "Remove Windowing Prototype 1 from Codebase" into main 2023-08-30 18:43:37 +00:00
Andreas Agvard 7d793ecdda Merge "Fixes search feature invocation issue" into udc-qpr-dev 2023-08-30 18:18:43 +00:00
Andreas Agvard 0b8c5fa5c7 Fixes search feature invocation issue
Fixes: 297866704
Flag: N/A
Test: Manual
Change-Id: I9647504e6c6999ce7aa17ab4acfc65d522dcd2af
2023-08-30 20:16:11 +02:00
Sukesh Ram 3f2338a8e8 Remove Windowing Prototype 1 from Codebase
Refactor codebase to remove Proto1 as it is no longer supported.

Test: aTest WMShellUnitTests
Bug: 297217817
Change-Id: Ifaf67754c048d913fe203f4b34efc3c9c611039c
2023-08-30 17:40:13 +00:00
Anushree Ganjam 9804ad0be2 Merge "Include all *.aconfig files under aconfig directory" into main 2023-08-30 15:58:44 +00:00
Thales Lima e95664077c Use transient taskbar check in split screen
The space that should be removed in split screen should check if there is a taskbar or not. Adding the transient taskbar property to DeviceProfile solves that without having to pass context around.

Fix: 289769344
Test: manual
Flag: N/A
Change-Id: Id0c51c4ec9481d3c206eef52d44094ec7a8c98cf
2023-08-30 16:35:12 +01:00
Colin Cross 4aef83aa32 Fix more kotlin nullable errors in Launcher3
Fix kotlin nullable errors that were exposed by setting the retention
of android.annotation.NonNull and android.annotation.Nullable to
class retention.

Bug: 294110802
Test: builds
Merged-In: I88aec6fbc814be98f9ef048bbc5af889d0797970
Change-Id: I158db4f57d46606d7152a438d68e2b9f4c0014d9
2023-08-29 23:29:11 +00:00
Android Build Coastguard Worker 5ae60395e2 Snap for 10732685 from 90e2a4d2d7 to udc-qpr1-release
Change-Id: Idd77da8c53ced607468398db34184ff103c23202
2023-08-29 23:18:39 +00:00
Sunny Goyal f98e3a2bdd Fixes broken callbacks in RecentsAnimationCallbacks
finishRecentsAnimation calls cleanup immediately which removes all the
callbacks. This prevents any callback previousy added from getting
the cancelled callback.

Bug: 298069218
Test: Verified locally
Flag: N/A
Change-Id: I54b9a4529870d771f2eff8fd7cb6f2f376f9e112
2023-08-29 16:16:48 -07:00
Brian Isganitis d36ea362c4 Merge "Add TAPL APIs for search web suggestions." into udc-qpr-dev am: 90e2a4d2d7 am: 80dace90ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24407376

Change-Id: I4e1b33f01ab7ca53a0f839d25ebd6ee9ab5d7e34
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 23:14:54 +00:00
Anushree Ganjam 813e96e1ab Include all *.aconfig files under aconfig directory
Forward fix for  https://googleplex-android-review.git.corp.google.com/c/platform/vendor/unbundled_google/packages/NexusLauncher/+/24579326/4/build.gradle

Bug: 294913042
Test: Local studio build
Flag: NA
Change-Id: Ib16469096c92eff4b50167e58fe5132e5467fdde
2023-08-29 15:47:10 -07:00
Sebastián Franco 5073751704 Merge "Adding wait to test if the flake is a race condition" into udc-qpr-dev am: b8ca7ae13c am: 98dfe6cf8b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24576276

Change-Id: Ib5499576c9c0eeda0a21365fede203c3dad83911
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 22:34:23 +00:00
Jeremy Sim 8850e58844 Add a fail string for app pair menu tests
This patch adds a clarifying message for testSaveAppPairMenuItemExistsOnSplitPair() and testSaveAppPairMenuItemDoesNotExistOnSingleTask(). The test should not run when the feature is not yet enabled.

Fixes: 297083938
Test: N/A
Change-Id: Idf4c99ed393e2d6e2c2b7b77dc6083a27c4f90d1
2023-08-29 14:07:47 -07:00
Vinit Nayak ccce958c18 Merge "Move ending CUJ_SPLIT_SCREEN_ENTER to after we show tasks to user" into udc-qpr-dev am: 1757f1b2c0 am: 53ce6a6656
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24575470

Change-Id: Idc39633e4cb0e5eb63f298afb0ba2116b7dad52e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 21:03:32 +00:00
Xin Li 72a6118372 [automerger skipped] Merge Android U (ab/10368041) am: 41dd5f48d6 -s ours am: f37e7f358e -s ours am: 5f56725383 -s ours am: b8b5ca8626 -s ours
am skip reason: Merged-In Ia7c5c2101a30d0eaae0fc92801186e66baec449d with SHA-1 5dc19d8fd4 is already in history

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

Change-Id: I93345a7d36d0a7b3463eba915daebbc1220339e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 20:37:34 +00:00
Brian Isganitis 80dace90ab Merge "Add TAPL APIs for search web suggestions." into udc-qpr-dev am: 90e2a4d2d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24407376

Change-Id: I784eb66fd3b68db9e1baaaaabb2f112746bc6db5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 19:57:55 +00:00
Treehugger Robot 869ef4adea Merge "Cleanup logs for LAUNCH_SPLIT_PAIR" into main 2023-08-29 19:55:29 +00:00
Brian Isganitis 90e2a4d2d7 Merge "Add TAPL APIs for search web suggestions." into udc-qpr-dev 2023-08-29 19:16:49 +00:00
Charlie Anderson 3f8ce20b61 Merge "Move AppWidgetsRestoredReceiver methods to enable adding tests for restoring widget Ids" into main 2023-08-29 18:30:08 +00:00
Sebastián Franco 98dfe6cf8b Merge "Adding wait to test if the flake is a race condition" into udc-qpr-dev am: b8ca7ae13c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24576276

Change-Id: I23d35ce9667e4317df44daa9936d3594fce573a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 18:21:07 +00:00
Treehugger Robot 5d5c7d9644 Merge "Add logs around hotseat suggested apps" into udc-qpr-dev am: 41d269a43b am: cde39e3cfd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24529027

Change-Id: I04f52c10ad56418d64d39cc1ec2cd083f4c4ce6c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 17:48:04 +00:00