Commit Graph

53916 Commits

Author SHA1 Message Date
Benno Lin 8f669d20d7 Merge "Support multi users scenarios in Tapl" into tm-qpr-dev 2022-11-03 06:42:19 +00:00
Jon Miranda 1b4a697e56 Merge "Revert "Revert "Add a way to stash/unstash transient taskbar.""" into tm-qpr-dev am: 8ed5ac05fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20356225

Change-Id: I105e7ac5928083ef4d3793c76a0da357338c8b3b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 06:30:53 +00:00
Jon Miranda 8ed5ac05fd Merge "Revert "Revert "Add a way to stash/unstash transient taskbar.""" into tm-qpr-dev 2022-11-03 05:58:38 +00:00
Vinit Nayak 20ce6a97fd Switch to screenshot when finishing recents animation for split select
* There's a situation where we can also let the live-tile play
if it wasn't the one selected for split select, but there's
some bug w/ the focused task that causes the thumbnail and live tile
translations to be incorrect.
* But this maintains parity.

Fixes: 255915066
Test: Starting/ending/ignoring live tile in split
never shows the cutout

Change-Id: I2f63ca44a5a1cc16df12e7b3b06ca211dc995f8d
2022-11-02 22:48:36 -07:00
Winson Chung 38779f75da Add delay after installing dummy app
- Testing hypothesis that it's taking a while for the app to be
  properly installed and showing in all apps

Bug: 256659409
Test: com.android.launcher3.ui.TaplTestsLauncher3#testUninstallFromAllApps
Change-Id: Icb1bb8bb9d98751ac8c97b300ecc39372f39c345
2022-11-03 03:47:01 +00:00
Sunny Goyal 6988b7b308 Merge "Fixing background jump when closing a widget" into tm-qpr-dev am: 031ee4cbcb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20304438

Change-Id: I3d706ddc9847d75f4a5db5966675aa1d7f2be39d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 01:14:26 +00:00
Sunny Goyal 031ee4cbcb Merge "Fixing background jump when closing a widget" into tm-qpr-dev 2022-11-03 00:52:47 +00:00
Sunny Goyal 1319de88b4 Removing RemoteTransitionCompat and related wrappers
Bug: 221961069
Test: Presubmit
Change-Id: Ib93640d27a9eb0401882574e37b466163dafa5b3
Merged-In: Ib93640d27a9eb0401882574e37b466163dafa5b3
2022-11-02 23:40:48 +00:00
Holly Sun a793fc6e2c Bring up IME and focus on input when scroll to top.
Do this behind a feature flag AND only when "Always show keyboard" is selected or in prefix state.

Bug: 218846025
Test: keyboard shown when swiping up for QSB and AA+ (both main and work). Keyboard not shown when either the feature flag or Always show keyboard is disabled.
Change-Id: I3df2e0e44a8313eaf749cd6b91b7f9d0b9b80ec3
2022-11-02 15:19:23 -07:00
Sebastian Franco 4a92267d1d Making code more readable by removing global variable used for optimizations
Using the stack was more efficient because it prevented the creation
of new rectangles but it makes the code harder to read and prone to
bugs if the global state of the stack of rectangles gets corrupted
in any way.

When this optimization was written in 2008 it was necessary but now I
don't think it would have a big impact. The stack size is on average
of 30 and the rectangles are only created when doing the reorder which
runs about once per second if the user moves the finger too quickly.

Bug: 188081026
Test: atest ReorderWidgets
Change-Id: I35d8ee8d92f01035e72fe5763a7de47f4b6a73de
2022-11-02 22:10:14 +00:00
Sebastián Franco 251567d87b Merge "Return the right radius to start reorder when dragging a Widget" into tm-qpr-dev am: ef24d5954c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20317221

Change-Id: I4d0343b12e67e11b0b4fc2a4e5d017f7cfdeeae4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 21:49:34 +00:00
Sebastián Franco ef24d5954c Merge "Return the right radius to start reorder when dragging a Widget" into tm-qpr-dev 2022-11-02 21:19:44 +00:00
Sunny Goyal 39b07fd66c Fixing background jump when closing a widget
We do not add background animation when opening target is translucent
Added additional check to not animate background if launcher is not
closing (which is already a subset of all-targets-translucent)

Also removing reverse background animation from widgets, similar
to app-icons as it is never added for launcherNotClosing path

Bug: 242379946
Test: Added translucent activtiy and widget and verified manually
      that the behavior does not change
Change-Id: Icda8007c0063295bf8431c00a0f0b665ecdef109
2022-11-02 19:17:18 +00:00
Saumya Prakash c8964d66a7 Merge "Removed disabled overview actions at end of scroll" into tm-qpr-dev am: ccc8e9fcf4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20342916

Change-Id: I540d79b259a7d306496882a460984f11ac98a234
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 18:56:37 +00:00
Vinit Nayak b7e684ecc8 Merge "Disable Drag from Taskbar in Overview" into tm-qpr-dev am: 626f322343
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20259172

Change-Id: Id93c88d1125df4f515bcb66a64b5a739e8d090e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 18:56:24 +00:00
Saumya Prakash ccc8e9fcf4 Merge "Removed disabled overview actions at end of scroll" into tm-qpr-dev 2022-11-02 18:30:21 +00:00
Vinit Nayak 626f322343 Merge "Disable Drag from Taskbar in Overview" into tm-qpr-dev 2022-11-02 18:26:02 +00:00
Jon Miranda 575d699edc Revert "Revert "Add a way to stash/unstash transient taskbar.""
This reverts commit afc3bff10b.

Reason for revert: fixing launcher tests broken by original change

We'll only add flags for transient taskbar case

Bug: 256988243
Bug: 256987492
Change-Id: I8915ef5345816316bfb71efc9fc667e4e8db824c
2022-11-02 11:07:27 -07:00
Alex Chau 5dfd939d41 Reland "Add logs for InvariantDeviceProfile.getDeviceProfile"
This reverts commit b065b4b05a.

Bug: 253338238
Change-Id: Idea32130c8ec535f848ded5cff0269d97ea064e2
Test: manual
2022-11-02 17:40:05 +00:00
Sunny Goyal f2da8ed777 Merge "Updating AIDL interface and removing unused methods" into tm-qpr-dev am: e553fe8aa0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20275261

Change-Id: If2aec9f8aa9c3efd73c0442965885f3d72e48b37
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 17:28:59 +00:00
Sunny Goyal e553fe8aa0 Merge "Updating AIDL interface and removing unused methods" into tm-qpr-dev 2022-11-02 16:43:23 +00:00
Tony Wickham cbfc9a1f0b Merge "Decrease TAPL All Apps scrolling flakiness" into tm-qpr-dev am: 6b32ce07b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19560161

Change-Id: I01104af26034497aa989b81e856495aa1454f9e8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 16:25:32 +00:00
Tony Wickham 6b32ce07b1 Merge "Decrease TAPL All Apps scrolling flakiness" into tm-qpr-dev 2022-11-02 15:39:45 +00:00
Sam Dubey 1e16a3dd4c Merge "Revert "Add a way to stash/unstash transient taskbar."" into tm-qpr-dev am: de5d5720a1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20348768

Change-Id: I69473abb68aa6763568d2e318378d442ac5142ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 10:30:34 +00:00
Sam Dubey de5d5720a1 Merge "Revert "Add a way to stash/unstash transient taskbar."" into tm-qpr-dev 2022-11-02 10:03:06 +00:00
Sunny Goyal 69a7ad6097 Merge "Updating widget prediction handling:" into tm-qpr-dev am: 04356a26c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20312120

Change-Id: Ib62a982fffc72968a741e0e07c5dc3cfdfd19088
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 09:19:01 +00:00
Sam Dubey afc3bff10b Revert "Add a way to stash/unstash transient taskbar."
This reverts commit 6163e2d39f.

Reason for revert: Part of Platinum+DM rotation for testing as likely culprit for breaking launcher tests on tablet. Won't be commited until proven otherwise.

Bug: 256988243
Bug: 256987492
Change-Id: I21b3561f489e17c48131d2223a7d90267968232f
2022-11-02 09:16:55 +00:00
Sunny Goyal 04356a26c3 Merge "Updating widget prediction handling:" into tm-qpr-dev 2022-11-02 08:21:20 +00:00
Jon Miranda b5e32c7394 Merge "Add a way to stash/unstash transient taskbar." into tm-qpr-dev am: b95c4ff849
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20223508

Change-Id: I7c80ecc891320543f1296cbe5ce07f2665f31c52
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 06:33:19 +00:00
Jon Miranda b95c4ff849 Merge "Add a way to stash/unstash transient taskbar." into tm-qpr-dev 2022-11-02 05:02:22 +00:00
Sunny Goyal 3c7054f0d2 Updating widget prediction handling:
When handling widget prediction, first match the full provider names
Only if no widgets are found, match any widget in the package

Bug: 256202399
Test: atest WidgetsPredicationUpdateTaskTest
Change-Id: I5337618d935f8b926803aeefede46059545de72d
2022-11-02 02:24:21 +00:00
Sebastián Franco 3b559eb5f6 Merge "No code changes, this cl only reorganizes the functions" into tm-qpr-dev am: 1b14a73223
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20305602

Change-Id: Ie2d8b2774892813f52f99c72ae95f621ad8e9d07
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 00:18:12 +00:00
TreeHugger Robot f78913f655 Merge "Grant Launcher permission to access AppSearch" into tm-qpr-dev am: ffc6c63a32
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20329473

Change-Id: I2ba8781119d08aef05d6da2d12f8cccad551d97e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 00:17:38 +00:00
Sebastián Franco 1b14a73223 Merge "No code changes, this cl only reorganizes the functions" into tm-qpr-dev 2022-11-01 23:43:30 +00:00
TreeHugger Robot ffc6c63a32 Merge "Grant Launcher permission to access AppSearch" into tm-qpr-dev 2022-11-01 23:41:37 +00:00
Vinit Nayak 406bc6f247 Disable Drag from Taskbar in Overview
* Still need to disable drag from all apps in overview
* Disallow any taskbar icon long click when in split select

Bug: 251747761
Test: Drag from hotseat and predicted icons in overview,
snaps back to position

Change-Id: Ib9b068e4914b9197614c8e8f49b7899bb964f92b
2022-11-01 16:29:28 -07:00
Jon Miranda 6163e2d39f Add a way to stash/unstash transient taskbar.
- Adds threshold to show taskbar during swipe
- Introduces FLAG_STASHED_IN_APP_AUTO flag
- Adds logic for taskbar to auto hide based on time
  and touch

Bug: 252905206
Test: manual
Change-Id: I070cd619487fdd4498a988ae5aadce6dd14313f7
2022-11-01 16:03:01 -07:00
Saumya Prakash 12731af30d Removed disabled overview actions at end of scroll
Updated visibility of the overview action bar so that when viewing
the clear all button at the end of the tasks it becomes hidden.
Previously, the overview actions were disabled so they were not
usable anyways. Updated the corresponding tests because expected
behavior was changed.

Test: Manual
Fix: 230508197
Change-Id: I64c91c682009808690d696032ffadefc86dfbac9
2022-11-01 21:49:19 +00:00
Jeremy Sim 0a605bd39d Merge "Change tablet split confirm timing slightly" into tm-qpr-dev am: eb88b517a6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20307061

Change-Id: I65afa2218e795817346def8a48fb20f63f2fe945
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-01 21:26:21 +00:00
Jeremy Sim eb88b517a6 Merge "Change tablet split confirm timing slightly" into tm-qpr-dev 2022-11-01 20:49:30 +00:00
Sebastian Franco 9cab1c3ece No code changes, this cl only reorganizes the functions
This is done such that future cls are easier to visualize.

Bug: 188081026
Test: atest ReorderWidgets
Change-Id: I749d21b517dada97887d5b5e7cb5e2ac644d0030
2022-11-01 18:24:43 +00:00
Thales Lima ced3dbf5a3 Merge "Calculate taskbar content size for edu" into tm-qpr-dev am: b1d991b3de
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20222586

Change-Id: Id532b20d77758d473331b032a4e149ec9e7cdb5c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-01 18:20:04 +00:00
Federico Baron b66773656e Merge "Tapping on a "folder" on the Homescreen right after returning home results in it starting to open, then canceling." into tm-qpr-dev am: 120c99f440
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20068658

Change-Id: Ic0c4c3428ca226a6dbd2a12a8ae9254f40b1aad0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-01 18:19:52 +00:00
Thales Lima b1d991b3de Merge "Calculate taskbar content size for edu" into tm-qpr-dev 2022-11-01 17:57:53 +00:00
Federico Baron 120c99f440 Merge "Tapping on a "folder" on the Homescreen right after returning home results in it starting to open, then canceling." into tm-qpr-dev 2022-11-01 17:56:50 +00:00
Tracy Zhou ac9a011062 Merge "Support split from fullscreen with shortcuts" into tm-qpr-dev am: 0c853991fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20206366

Change-Id: I0709750372123eeaafb66477fd9c6d78f258fad2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-01 17:41:10 +00:00
Tracy Zhou 0c853991fd Merge "Support split from fullscreen with shortcuts" into tm-qpr-dev 2022-11-01 17:17:33 +00:00
Mady Mellor 33571cb975 Merge "Remove floating task button from taskbar" into tm-qpr-dev am: 9eed65de62
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20307070

Change-Id: I3b1009b79874321a4162c0048dff1335577e5e80
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-01 16:49:54 +00:00
Mady Mellor 9eed65de62 Merge "Remove floating task button from taskbar" into tm-qpr-dev 2022-11-01 16:16:37 +00:00
TreeHugger Robot 90c1ff0f44 Merge "Set autoSizeMaxTextSize for digital wellbeing toast" into tm-qpr-dev am: b03ea94924
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20312426

Change-Id: I03eaf9bd14f80bcb8f345e0b15f64b0554338059
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-01 15:12:51 +00:00