Commit Graph

78507 Commits

Author SHA1 Message Date
Bill Yi 3d2d4d2898 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: a9eccb406b -s ours am: 6133e806d4 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I8565ec202c9d6a8f387294b48aa19be8538657b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 21:47:25 +00:00
Andy Wickham fd14de35c8 Merge "Remove unnecessary hide keyboard call in onKeyPreIme." into udc-qpr-dev 2023-08-31 21:43:21 +00:00
Brandon Dayauon 75d8994e6f Add nullable annotation
It looks like from the stack trace that there is an NPE during the setApps() call. So adding nullable and null checking
to make sure mApps is not null.

bug: 296920692
test: presubmit
flag: n/a
Change-Id: If402c0b68db159f7a698e8e2e139d9bd5041b1c1
2023-08-31 13:59:13 -07:00
Treehugger Robot 12839a3892 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into aosp-main-future am: 2545c08fbb -s ours
am skip reason: subject contains skip directive

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

Change-Id: Idb75adb299622093304c61b80aa09f6a1972c33f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 20:50:59 +00:00
Bill Yi 578f128c4f [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 64d30e7420 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I845303ebf2214f3027a31fd39b1a379ce35aafd2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 20:50:56 +00:00
Treehugger Robot adab1b07a9 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into aosp-main-future am: 0575764428 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I56e5d89099357db6adfb80c99afca0df6aecdce4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 20:50:51 +00:00
Bill Yi 43d2f3ff76 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: d43d8d30db -s ours
am skip reason: subject contains skip directive

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

Change-Id: If8f746f59fb5fd09d3d003b9e26c985b89bac9c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 20:50:38 +00:00
Bill Yi 6133e806d4 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: a9eccb406b -s ours
am skip reason: subject contains skip directive

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

Change-Id: I1b009fbc2d32c1c07ba5a3f27d95c1efcdbbc408
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 20:50:16 +00:00
Brian Isganitis e6038a7e05 Update AllApps search TAPL APIs support for system back and dismiss.
Design doc: go/toasty-taskbar-tapl

Test: Compiles
Bug: 295366997
Flag: Not needed
Change-Id: I87b0b16c83eefc7e997cfd35901c788853aa9988
2023-08-31 20:37:16 +00:00
Brian Isganitis 97249c5318 Rename AllAppsFromTaskbar to TaskbarAllApps.
More consistent with other Taskbar and Home API naming conventions.

Test: Compiles
Bug: 295366997
Flag: No
Change-Id: I5de7297cc73522f557a6a916e2c645ffb0473f78
2023-08-31 20:34:05 +00:00
Federico Baron 62b4fa7a77 Merge "Fix bug where suggested widget overlaps widget list" into udc-qpr-dev am: c207167124 am: dd15270625
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24606284

Change-Id: I29a2bf71a88f856bd8daeea20393ee966c9ac33a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 20:24:16 +00:00
Sebastián Franco 38500c0576 Merge "Change name of getIconsPosition_afterIconRemoved_notContained to uninstallWorkspaceIcon" into udc-qpr-dev am: 359992b860 am: 0edef0f826
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24608413

Change-Id: Ieccabb3d8825a5d0b193f718d5a0c2c8703ea8e3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 20:23:04 +00:00
Schneider Victor-tulias 8ab21da9e1 Merge "Revert remaining debug logs added for b/260260325" into udc-qpr-dev am: 1827f369da am: f58a9f0f5c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24622396

Change-Id: I5188fb4a9ea9d20b3ce3ec8d6f4c8419d2b7d52f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 20:20:40 +00:00
Xin Li 841dfad3d6 Merge UP1A.230905.019
Merged-In: Ic437ff4d19cbd5764635f3007d99880622150f5b
Change-Id: I130465c5f31cededa1edc540123d83c6dedc9487
2023-08-31 12:31:10 -07:00
Anushree Ganjam 20bbe42cad Merge "Remove the test aconfig lib." into main 2023-08-31 19:24:23 +00:00
Federico Baron dd15270625 Merge "Fix bug where suggested widget overlaps widget list" into udc-qpr-dev am: c207167124
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24606284

Change-Id: I365153e76e8e84897fe8f74983efcb4248a9cce5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 18:58:34 +00:00
Sebastián Franco 0edef0f826 Merge "Change name of getIconsPosition_afterIconRemoved_notContained to uninstallWorkspaceIcon" into udc-qpr-dev am: 359992b860
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24608413

Change-Id: I6477a99878a91a6fc948eadfc9afbc951e146a77
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 18:58:19 +00:00
Schneider Victor-tulias f58a9f0f5c Merge "Revert remaining debug logs added for b/260260325" into udc-qpr-dev am: 1827f369da
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24622396

Change-Id: I3aaefc14c09e1d9e7f457417dbeb77ef53f864d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 18:58:05 +00:00
Federico Baron c207167124 Merge "Fix bug where suggested widget overlaps widget list" into udc-qpr-dev 2023-08-31 18:52:44 +00:00
Sebastián Franco 359992b860 Merge "Change name of getIconsPosition_afterIconRemoved_notContained to uninstallWorkspaceIcon" into udc-qpr-dev 2023-08-31 18:08:55 +00:00
Schneider Victor-tulias 1827f369da Merge "Revert remaining debug logs added for b/260260325" into udc-qpr-dev 2023-08-31 17:59:27 +00:00
Treehugger Robot 3e96c9c572 Merge "Remove unused @ScreenRecord" into main 2023-08-31 17:53:42 +00:00
Treehugger Robot c1ad48386c Merge "Add widget layout transition when resizing" into main 2023-08-31 16:56:22 +00:00
Alex Chau d9e3b8e254 Merge "Revert "Add detailed exception for snappedIndex == -1 when dismissing tasks"" into main 2023-08-31 16:50:34 +00:00
Treehugger Robot 2545c08fbb Merge "Import translations. DO NOT MERGE ANYWHERE" into aosp-main-future 2023-08-31 16:34:39 +00:00
Treehugger Robot 0575764428 Merge "Import translations. DO NOT MERGE ANYWHERE" into aosp-main-future 2023-08-31 16:34:39 +00:00
fbaron 5a190c5efe Fix bug where suggested widget overlaps widget list
We scroll to top when rotating device, which is a behavior that aligns with other AbstractSlideInView's like allApps

Fix: 293203839
Test: verify that when rotating in widget sheet that the suggested widget no longer overlaps with widget list
Flag: no-flag
Change-Id: Icf021a46ae2c2b85b4c55e40cbd2f7e70f83c248
2023-08-31 09:18:52 -07:00
Fengjiang Li f096f3ebe3 Merge "Fix memory leak of Launcher activityfrom QuickstepTransitionManager and LauncherBackAnimationController" into main 2023-08-31 16:11:39 +00:00
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