Commit Graph

11086 Commits

Author SHA1 Message Date
Winson Chung 73ab56a355 Update constants used for resolving shell services
Bug: 238217847
Test: atest WMShellUnitTests
Change-Id: I0bf0d258fb9c6c9e7d6ce2a17bd120fe7a45ad9f
Merged-In: I0bf0d258fb9c6c9e7d6ce2a17bd120fe7a45ad9f
2022-10-06 22:49:26 +00:00
Alex Chau 2e72e4cda6 Fix taskbar in overview touch and stash behavior
- When taskbar is unstashed in Launcher (e.g. overview), make the unstashed height touchable
- When AllApps button is pressed in taskbar overview, also stash taskbar

Bug: 245320601
Test: manual
Change-Id: Iadd0bea13cf9a779c68e953d25f21f663c15865a
2022-10-06 21:37:56 +01:00
Winson Chung c96af9413f Merge "Update constants used for resolving shell services" 2022-10-06 19:32:48 +00:00
Pat Manning 24b9554086 Add logging to help debug flake when swiping home to overview.
Bug: 238461210
Bug: 246283207
Test: TaplTestsQuickstep#testSwitchToOverview
Change-Id: I8ee9af4f4a331c43761ba3738e12acb376ababc2
(cherry picked from commit 1edba8b0a6)
Merged-In: I8ee9af4f4a331c43761ba3738e12acb376ababc2
2022-10-06 15:37:47 +00:00
Saumya Prakash 61c590cc7c Merge "Updated overview exit animation for 3 button navigation" into tm-qpr-dev am: 9860628fcc am: cd24541c61
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20065286

Change-Id: I5416593565ffe7ecd4ed8c409c9f179561949cd9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-05 23:31:47 +00:00
Saumya Prakash 9860628fcc Merge "Updated overview exit animation for 3 button navigation" into tm-qpr-dev 2022-10-05 22:02:09 +00:00
Alex Chau fbd25e9de2 Merge "Set controllersInitialized to false when destroying taskbar controllers" into tm-qpr-dev am: d5bccf19c4 am: 040f9023f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20112637

Change-Id: I25d6ab59401228d5bb660f611953b9f83e369ccb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-05 21:20:27 +00:00
Alex Chau d5bccf19c4 Merge "Set controllersInitialized to false when destroying taskbar controllers" into tm-qpr-dev 2022-10-05 20:24:04 +00:00
Nick Chameyev 09241680a7 Merge "Extract PreviewPositionHelper to shared library" into tm-qpr-dev am: 3e7c611358 am: 40497595fe
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20034765

Change-Id: Iae3e4e2373ef9918f541bfade1654808fa2a1864
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-05 17:21:11 +00:00
Winson Chung 24dd34f1c0 Update constants used for resolving shell services
Bug: 238217847
Test: atest WMShellUnitTests
Change-Id: I0bf0d258fb9c6c9e7d6ce2a17bd120fe7a45ad9f
2022-10-05 16:32:05 +00:00
Alex Chau 72c08d9255 Set controllersInitialized to false when destroying taskbar controllers
Bug: 250912179
Test: presubmit
Change-Id: I16532e99b8f74542def4283b6cc753673eb5ee2d
2022-10-05 15:46:31 +01:00
Nick Chameyev 3e7c611358 Merge "Extract PreviewPositionHelper to shared library" into tm-qpr-dev 2022-10-05 12:52:02 +00:00
Johannes Gallmann 995934e51b Merge "Disable split button instead of hiding it" into tm-qpr-dev am: 72f5b73f5d am: ad6d2fca0a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19967444

Change-Id: I1d01b7286016a8ba3781ce61ae72bde868f45bd7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-05 11:27:05 +00:00
Johannes Gallmann 72f5b73f5d Merge "Disable split button instead of hiding it" into tm-qpr-dev 2022-10-05 10:29:55 +00:00
Thales Lima 6e5a371712 Merge "Change taskbar edu size to wrap around icons" into tm-qpr-dev am: 9c32f4c7d8 am: a3989e5ab8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20010056

Change-Id: I6c8b07d7102b8260aa56b36e3fcc4e1e6c8bdf3c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-05 10:15:07 +00:00
Alex Chau 8a1237bf0d Merge "Taskbar in overview" into tm-qpr-dev am: 5e47e78a17 am: 6db97df61b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19866366

Change-Id: I1ef4ad30d59bf9422eead0bbc768bf9727a1d667
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-05 10:13:28 +00:00
Thales Lima 9c32f4c7d8 Merge "Change taskbar edu size to wrap around icons" into tm-qpr-dev 2022-10-05 09:39:46 +00:00
Nick Chameyev cbfb35edc7 Extract PreviewPositionHelper to shared library
Moves Launcher's PreviewPositionHelper to shared
library between SystemUI and Launcher to reuse
it in the future in the partial screensharing
recents selector.

There should be no functional changes in the
code itself.

Bug: 240924926
Test: presubmit
Change-Id: Ib38b6f9db91e63a2598bf81229e3cd3e1a49ca60
2022-10-05 10:23:54 +01:00
Alex Chau 5e47e78a17 Merge "Taskbar in overview" into tm-qpr-dev 2022-10-05 08:58:31 +00:00
Jerry Chang 3d39bfcda7 Support starts a pair of intent/shortcut and task to split
Add startIntentAndTask and startShortcutAndTask APIs to support starts a
pair of intent/shortcut and task to split with shell-transition.

Fix: 250875492
Test: atest WMShellFlickerTests
Test: manual check start tasks or start intent/shortcut with task flow
      with shell-transition enabled
Change-Id: Ibce60f3a10e2bbc99ef17185f45680dc23ef5f48
2022-10-05 06:44:25 +00:00
Jerry Chang e3f95693ef Remove stage concept from split screen APIs
Since split screen has transferred from stage-based model to app-pair
model. Update to remove the stage concept from split screen APIs, so the
caller won't need to deal with stage concept.

Bug: 250875492
Test: atest WMShellFlickerTests
Test: manual check start tasks or start intent/shortcut with task flow
Change-Id: I36bfb54f3f690cfafd18ba31ab23f5745ead6d97
2022-10-05 03:27:02 +00:00
Michael Groover 5e0eecc064 Add unaudited exported flag to exposed runtime receivers
Android T allows apps to declare a runtime receiver as not exported
by invoking registerReceiver with a new RECEIVER_NOT_EXPORTED flag;
receivers registered with this flag will only receive broadcasts from
the platform and the app itself. However to ensure developers can
properly protect their receivers, all apps targeting U or later
registering a receiver for non-system broadcasts must specify either
the exported or not exported flag when invoking #registerReceiver;
if one of these flags is not provided, the platform will throw a
SecurityException. This commit updates all the exposed receivers
with a new RECEIVER_EXPORTED_UNAUDITED flag to maintain the existing
behavior of exporting the receiver while also flagging the receiver
for audit before the U release.

Bug: 234659204
Test: Build
Change-Id: I6660cfb00244470edfb2411dadfca81afed42343
2022-10-04 17:15:36 -05:00
Tracy Zhou b2d7f05bad Merge "Remove ENABLE_QUICKSTEP_LIVE_TILE flag" into tm-qpr-dev am: d7a7bfc304 am: b2cd75e5df
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20079254

Change-Id: Id23f4091da4d7216de27615c7e97f7139a37d392
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 21:07:54 +00:00
TreeHugger Robot 16403d432e Merge "Reset TaskView transformations on orientationHandler change" into tm-qpr-dev am: 6a84ebc7ab am: 93767d52ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19981469

Change-Id: Ibbd4e6b93908048543be79c90ba2cd84d5dfcbc8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 20:27:36 +00:00
Vinit Nayak f40547f857 Merge "Hide back button if IME shows in SUW" into tm-qpr-dev am: 188c8916ee am: e0f012491c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20004092

Change-Id: I183a0c6ba60dffdef48815a8bf22be6863394151
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 20:25:52 +00:00
Tracy Zhou d7a7bfc304 Merge "Remove ENABLE_QUICKSTEP_LIVE_TILE flag" into tm-qpr-dev 2022-10-04 20:02:30 +00:00
TreeHugger Robot 6a84ebc7ab Merge "Reset TaskView transformations on orientationHandler change" into tm-qpr-dev 2022-10-04 19:05:43 +00:00
Vinit Nayak 188c8916ee Merge "Hide back button if IME shows in SUW" into tm-qpr-dev 2022-10-04 19:01:42 +00:00
Pat Manning e7fc4b1f63 Use wm shell splash screen animation to reveal app after tasks have appeared.
Bug: 202826469
Test: manual
Change-Id: I6a9e8a932849c30f7b572119a7f607178b5a6437
2022-10-04 19:08:54 +01:00
Winson Chung 994412d1a0 Merge "Updating launcher for pip interface cleanup" into tm-qpr-dev am: a5846c9868 am: 7d0d0f2bbd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20106888

Change-Id: I49454a48b750780ebfd289b7e501ef65cc4da944
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 17:30:12 +00:00
Winson Chung a5846c9868 Merge "Updating launcher for pip interface cleanup" into tm-qpr-dev 2022-10-04 16:54:48 +00:00
Pat Manning a31ff17409 Merge "Refresh taskbar apps show on DeviceProfile change." into tm-qpr-dev am: 0fa114ecc0 am: 2d8a1ef7b6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19951576

Change-Id: Ifb39db9e5f2dff67647007a207319a8c76554ef3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 12:39:20 +00:00
Pat Manning 0fa114ecc0 Merge "Refresh taskbar apps show on DeviceProfile change." into tm-qpr-dev 2022-10-04 11:46:48 +00:00
Alex Chau 2cf94d087e Merge "Refactor TaskbarLauncherStateController to use a single AnimatedFLoat" into tm-qpr-dev am: 2f7fd17dc1 am: 4cbe626712
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20082145

Change-Id: I35961d8403dae852741af0836dd83e62afff5784
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 11:05:44 +00:00
Thales Lima 1fa6de1784 Merge "Check for view measurement before animating" into tm-qpr-dev am: e8efdc1185 am: 5e92948c42
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20073475

Change-Id: Ia2c86dc7a757c85313571a53d552dd90b6882fb9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 11:05:21 +00:00
Alex Chau 2f7fd17dc1 Merge "Refactor TaskbarLauncherStateController to use a single AnimatedFLoat" into tm-qpr-dev 2022-10-04 10:32:54 +00:00
Thales Lima e8efdc1185 Merge "Check for view measurement before animating" into tm-qpr-dev 2022-10-04 10:09:10 +00:00
Vinit Nayak 8453f86320 Merge "Add margin to SUW back button" into tm-qpr-dev am: 64510b48b0 am: 55298f9901
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20004084

Change-Id: I5e43c49bd2b5fc2bd088137c3c998eec6b9eeeac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 04:29:54 +00:00
Vinit Nayak 64510b48b0 Merge "Add margin to SUW back button" into tm-qpr-dev 2022-10-04 03:10:21 +00:00
Jeremy Sim 8f59d82294 Merge "Fix animation slowdown when splitting from All Apps" into tm-qpr-dev am: 33e57ebc1a am: 37638afbec
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20103367

Change-Id: I42842b333df3e9a6a623a9f47cf4c0c0aa784ee8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 01:00:42 +00:00
Winson Chung 1c3f817f89 Updating launcher for pip interface cleanup
Bug: 238217847
Test: atest WMShellUnitTests
Change-Id: I375e67eeb07ffe50bf15eafb65c1e9d215118c73
2022-10-03 23:56:39 +00:00
Vinit Nayak 71af5b7a15 Merge "Null out mSplitHiddenTaskView when resetting split selection state" into tm-qpr-dev am: 66160e9dd8 am: b03ec55872
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20029582

Change-Id: I8ba442186bc330b7ecff0e9ee1b53a22fe20cffb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-03 23:45:45 +00:00
Jeremy Sim 33e57ebc1a Merge "Fix animation slowdown when splitting from All Apps" into tm-qpr-dev 2022-10-03 23:31:59 +00:00
Vinit Nayak 66160e9dd8 Merge "Null out mSplitHiddenTaskView when resetting split selection state" into tm-qpr-dev 2022-10-03 22:45:42 +00:00
Jeremy Sim 86065b81e0 Fix animation slowdown when splitting from All Apps
This patch fixes a tablet bug related to splitting from All Apps. Splitting from AllApps was playing a very slow animation.

The bug occurred because there was no case set in QuickstepAtomicAnimationFactory for animating from the ALL_APPS state.

Fixed by setting the appropriate case in QuickstepAtomicAnimationFactory.

Fixes: 247053528
Test: Manual
Change-Id: I7391dc7049a6ff5a7f8c7e1ae8b69e29899248fa
2022-10-03 12:49:31 -07:00
Stefan Andonian 799a021828 Fix ViewCapture NPE. am: b759de4769 am: 371ba32e44
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20075879

Change-Id: Ia9c46040101719449fcb36d2bd6b7b686de32a97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-03 19:27:46 +00:00
Alex Chau d67ddc4920 Taskbar in overview
- Behind ENABLE_TASKBAR_IN_OVERVIEW which is disabled by defualt
- Make taskbar unstashed in overview with background visible
- Ensure taskbar is touchable in overview

Bug: 245320601
Test: Home<->Overview, Home<->App, App<->Overview, Home->Overview->App->Home, Home->App->Overview->Home, Overview->Home->App->Overview, Overview->App->Home->Overview, App->Overview->Home->App, App->Home->Overview->App
Test: Go to AllApps, call KEYCODE_HOME, go to app and taskbar should be there
Test: App->Overview->Select->Home->App
Test: QuickSwitch -> App
Test: Repeat above with ENABLE_TASKBAR_IN_OVERVIEW x taskbarStashed on/off
Test: Repeat above with gesture and 3-button
Change-Id: Ib25d68f68e89564851b226536e456d0b2f6306f8
2022-10-03 20:15:12 +01:00
Stefan Andonian b759de4769 Fix ViewCapture NPE.
The ViewPropertyRefs, when copied from 1 frame to another, where also
transferring the same "next" reference. Sometimes, the recycled
ViewPropertyRef would be the same ViewPropertyRef instance as one of the copied
ViewPropertyRefs, which would caused an NPE, since the recycled VPR
would have it's next value set to null.

Bug: 249125402
Test: Repro steps are dragging and dropping around an item on the
workspace to different locations. This consistently repro's the crash in
about 10 seconds of doing this. Afte the fix, the crash stopped.

Change-Id: Ia43d8f788eb4889c0890fea0bb839cb9fed78ada
2022-10-03 15:25:04 +00:00
Alex Chau 58bc281142 Refactor TaskbarLauncherStateController to use a single AnimatedFLoat
- Use a single iconAlignment animation
- Introduced isInLauncher/goingToLauncher/FLAGS_LAUNCHER as combined FLAG_RESUMED|FLAG_RECENTS_ANIMATION_RUNNING
- iconAlignment is now centralized in onStateChangeApplied with single source of truth

Bug: 245320601
Test: Home<->Overview, Home<->App, App<->Overview, Home->Overview->App->Home, Home->App->Overview->Home, Overview->Home->App->Overview, Overview->App->Home->Overview, App->Overview->Home->App, App->Home->Overview->App
Test: Go to AllApps, call KEYCODE_HOME, go to app and taskbar should be there
Test: App->Overview->Select->Home->App
Test: QuickSwitch -> App
Test: Repeat above with taskbarStashed on/off
Test: Repeat above with gesture and 3-button
Change-Id: Ie51b602394c155aca060a84585eb0e677e23425c
2022-10-03 11:24:00 +01:00
Arthur Hung 3c7db4901b Merge "Refactor back navigation animtion (2/2)" 2022-10-03 08:15:51 +00:00