Commit Graph

777583 Commits

Author SHA1 Message Date
Chris Li
61ba70f1d1 Fix system crash when ActivityEmbedding process died with pending events
Before, when the organizer binder died, it will trigger TaskFragment
removal that can cause surface placement. Now, we make sure to cleanup
all pending events before removing organized TaskFragments.

Bug: 251583070
Bug: 254322068
Test: atest WmTests:TaskFragmentOrganizerControllerTest
Change-Id: Ifec6f763a7e7819c93cc28d71bd0314f3ac9ac0d
2022-10-25 04:03:04 +00:00
Chris Li
5dafb54f14 Move the ActivityEmbedding Task visibility filter to the client
Before, we only send TaskFragment info event to the client side when the
Task is visible, which may result some TaskFragments stuck in an
intermediate state. Now, we also send the info event to the client if
the app owns any visible Task, and let the client organizer to determine
if it wants to update the TaskFragments.

Bug: 251583070
Fix: 250943776
Fix: 251132298
Test: atest WMJetpackUnitTests:SplitControllerTest
Test: atest WMJetpackUnitTests:TaskFragmentContainerTest
Test: atest WmTests:TaskFragmentOrganizerControllerTest
Change-Id: I47570639c4ed4bdfb4202f65ba4531adbd4a2d2d
2022-10-25 03:53:48 +00:00
Chris Li
3dd646cf20 Merge "Keep track of the WCT changes to determine the transition type" into tm-qpr-dev 2022-10-18 11:50:45 +00:00
Chris Li
d34770e622 Keep track of the WCT changes to determine the transition type
Before, we calculate the TransitionType based on the WCT, which may not
be accurate. For example, starting a new Activity to split may result
closing another TaskFragment.

Now, we keep track of where the WCT is started, and what exactly is
happening.

Bug: 207070762
Test: atest WMJetpackUnitTests:TransactionManagerTest
Change-Id: I19a21fac10fa47b75d696d9a5e273c1033ae3982
2022-10-18 16:18:29 +08:00
TreeHugger Robot
74787ef182 Merge changes I28706e2e,I0af8480c into tm-qpr-dev
* changes:
  [Chipbar] Move the Media TTT callback listener to a media-specific coordinator class.
  [Chipbar] Rename MediaTttChipControllerSender to ChipbarCoordinator, since it has all the chipbar logic.
2022-10-18 08:00:17 +00:00
Chaohui Wang
76695a5e54 Fix SuspendPackageHelperTest after Kotlin 1.7.20
Fix: 251257818
Test: lunch aosp_cf_x86_64_phone-userdebug
Test: acloud create
Test: atest  SuspendPackageHelperTest
Change-Id: I9a53541e98c0ba596b288ae92fe75f3279aac9cb
Merged-In: I9a53541e98c0ba596b288ae92fe75f3279aac9cb
Merged-In: Ie900be9e8f8a306f06e9856a25965c7a9e08b684
2022-10-18 05:39:26 +00:00
TreeHugger Robot
fee4f5374f Merge "Guard one more use of CentralSurfaces in NavBar" into tm-qpr-dev 2022-10-18 03:54:46 +00:00
TreeHugger Robot
a45c7f7de3 Merge "Launch all activities into the same root task" into tm-qpr-dev 2022-10-18 02:53:28 +00:00
TreeHugger Robot
b35a781088 Merge "Show toast if app doesn't support split" into tm-qpr-dev 2022-10-18 02:04:07 +00:00
Shan Huang
a24bed9f38 Merge "Add AndroidX SpringAnimation library to core." into tm-qpr-dev 2022-10-18 01:06:42 +00:00
Lucas Silva
63402cf7d5 Merge "Update PowerManager to make ambient display suppression apply to dreams." into tm-qpr-dev 2022-10-18 00:51:59 +00:00
TreeHugger Robot
b610079649 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-10-18 00:32:26 +00:00
TreeHugger Robot
91ef71d581 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-10-18 00:32:26 +00:00
TreeHugger Robot
f0117b888f Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-10-18 00:32:26 +00:00
Daniel Norman
ad2da1634b [automerger skipped] Merge "RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package." into qt-dev am: dc0095e9e4 am: 49cd9427ef -s ours am: 822eef4399 -s ours am: 1d2c073e40 -s ours am: 9142d8c936 -s ours am: 13d2037a7a -s ours am: 869d90d0b2 -s ours am: d692cc2f66 -s ours am: c695905931 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: If3d6c1cbcf0187fcab8c496a0252dd13db9f9591
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 00:10:02 +00:00
Daniel Norman
cca4ca859c [automerger skipped] RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package. am: 3796629985 am: 07b90715f9 -s ours am: 296365ae97 -s ours am: d8c076eb80 -s ours am: 798fa14534 -s ours am: c03a507139 -s ours am: a2e16d219c -s ours am: 6a7fbba890 -s ours am: dac3697d7c -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: I704aad74cf769b0a448e23e110ca32cc753754c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 00:09:47 +00:00
Colin Cross
6947499a36 Merge "Fix SystemUI build for kotlin 1.7.0" into tm-qpr-dev 2022-10-17 23:51:26 +00:00
Colin Cross
b6b58d09b6 Merge "Fix more kotlin 1.7.0 errors" into tm-qpr-dev 2022-10-17 23:51:26 +00:00
Colin Cross
fd1b49be69 Merge "Migrate SystemUITests to Android.bp" into tm-qpr-dev 2022-10-17 23:51:26 +00:00
Daniel Norman
c695905931 [automerger skipped] Merge "RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package." into qt-dev am: dc0095e9e4 am: 49cd9427ef -s ours am: 822eef4399 -s ours am: 1d2c073e40 -s ours am: 9142d8c936 -s ours am: 13d2037a7a -s ours am: 869d90d0b2 -s ours am: d692cc2f66 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: I0441f7e12fdc438ad145d81a63c2c89318a32e29
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 23:40:08 +00:00
Daniel Norman
dac3697d7c [automerger skipped] RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package. am: 3796629985 am: 07b90715f9 -s ours am: 296365ae97 -s ours am: d8c076eb80 -s ours am: 798fa14534 -s ours am: c03a507139 -s ours am: a2e16d219c -s ours am: 6a7fbba890 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: Ifaa2e442572b2d81955f364d9810049d6e318fe9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 23:40:03 +00:00
Daniel Norman
8d8adc43e7 Merge "Disable all A11yServices from an uninstalled package." into rvc-dev am: e6d10db58e am: 9e3a6a622a am: 994e8238bf am: 6f79c2effa am: f75b18a23e am: 3e56f76fa2 am: e46e6e91d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20123964

Change-Id: I994b8403db746112cb433860dbdad79558b5b5dc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 23:10:18 +00:00
Daniel Norman
d692cc2f66 [automerger skipped] Merge "RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package." into qt-dev am: dc0095e9e4 am: 49cd9427ef -s ours am: 822eef4399 -s ours am: 1d2c073e40 -s ours am: 9142d8c936 -s ours am: 13d2037a7a -s ours am: 869d90d0b2 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: I3023efac503a953968948c6eb9fd3cda8a0f1728
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 23:07:29 +00:00
Daniel Norman
6a7fbba890 [automerger skipped] RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package. am: 3796629985 am: 07b90715f9 -s ours am: 296365ae97 -s ours am: d8c076eb80 -s ours am: 798fa14534 -s ours am: c03a507139 -s ours am: a2e16d219c -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: I857ffab2e4863d83df9a939f9dab9fa2aebdb561
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 23:07:00 +00:00
Daniel Norman
869d90d0b2 [automerger skipped] Merge "RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package." into qt-dev am: dc0095e9e4 am: 49cd9427ef -s ours am: 822eef4399 -s ours am: 1d2c073e40 -s ours am: 9142d8c936 -s ours am: 13d2037a7a -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: I3104195c9524fd0aac4db401fb6afe09ad02bda5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 22:40:01 +00:00
Daniel Norman
a2e16d219c [automerger skipped] RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package. am: 3796629985 am: 07b90715f9 -s ours am: 296365ae97 -s ours am: d8c076eb80 -s ours am: 798fa14534 -s ours am: c03a507139 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: I81bae3511361861c75baa50231b88f5e56747cc0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 22:39:44 +00:00
Daniel Norman
e46e6e91d7 Merge "Disable all A11yServices from an uninstalled package." into rvc-dev am: e6d10db58e am: 9e3a6a622a am: 994e8238bf am: 6f79c2effa am: f75b18a23e am: 3e56f76fa2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20123964

Change-Id: I20a14b196fed93719f963ecb813658e173c52cf9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 22:39:42 +00:00
Garfield Tan
408a91a193 Guard one more use of CentralSurfaces in NavBar
Also mark mPanelView in NavigationBarView nullable. All uses of it
already have null checks.

Bug: 254123249
Test: Barbet still looks OK.
Change-Id: I0b0c3017bd89f2d2261283573519301557096b2b
2022-10-17 15:34:27 -07:00
Fabian Kozynski
6b3114884e Merge "Fix privacy indicators in QQS with new headers" into tm-qpr-dev 2022-10-17 22:11:51 +00:00
Daniel Norman
13d2037a7a [automerger skipped] Merge "RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package." into qt-dev am: dc0095e9e4 am: 49cd9427ef -s ours am: 822eef4399 -s ours am: 1d2c073e40 -s ours am: 9142d8c936 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: I013a7a4589c97e4d0cf4fb22f9e4fc8a98dd8703
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 22:07:08 +00:00
Daniel Norman
c03a507139 [automerger skipped] RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package. am: 3796629985 am: 07b90715f9 -s ours am: 296365ae97 -s ours am: d8c076eb80 -s ours am: 798fa14534 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: Ibbf49985abe9495ced1332f2bb492b583ce83a97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 22:07:03 +00:00
Daniel Norman
3e56f76fa2 Merge "Disable all A11yServices from an uninstalled package." into rvc-dev am: e6d10db58e am: 9e3a6a622a am: 994e8238bf am: 6f79c2effa am: f75b18a23e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20123964

Change-Id: I4673501e0ecb092baac388c1281ebd6b07de88a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 22:06:47 +00:00
Daniel Norman
f75b18a23e Merge "Disable all A11yServices from an uninstalled package." into rvc-dev am: e6d10db58e am: 9e3a6a622a am: 994e8238bf am: 6f79c2effa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20123964

Change-Id: Iacfa5277d2310c7fd0bb2106f63696a8783cbac3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 21:39:52 +00:00
Daniel Norman
9142d8c936 [automerger skipped] Merge "RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package." into qt-dev am: dc0095e9e4 am: 49cd9427ef -s ours am: 822eef4399 -s ours am: 1d2c073e40 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: I1190671b4e3441f0efec130fce201fa18dcad86b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 21:36:58 +00:00
Daniel Norman
798fa14534 [automerger skipped] RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package. am: 3796629985 am: 07b90715f9 -s ours am: 296365ae97 -s ours am: d8c076eb80 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: I1dc1898590747bb3451fdfa14e1c184f8e9a6271
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 21:36:28 +00:00
Daniel Norman
6f79c2effa Merge "Disable all A11yServices from an uninstalled package." into rvc-dev am: e6d10db58e am: 9e3a6a622a am: 994e8238bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20123964

Change-Id: I026bd0acac3ae0c967c11cbbcf349db4564e4508
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 21:06:43 +00:00
Daniel Norman
1d2c073e40 [automerger skipped] Merge "RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package." into qt-dev am: dc0095e9e4 am: 49cd9427ef -s ours am: 822eef4399 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: Ie64b7c60dc623d66154f2d8b1bfc8703474202b7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 21:05:48 +00:00
Daniel Norman
d8c076eb80 [automerger skipped] RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package. am: 3796629985 am: 07b90715f9 -s ours am: 296365ae97 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: If3c89f34085153490133a8fdf688a8d7c89a6021
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 21:05:32 +00:00
Shan Huang
80c44686c2 Add AndroidX SpringAnimation library to core.
This allows core libraries (such as predictive back progress animation)
to use spring animation.

Files in androidx/dynamicanimation/animation that are not copied over:

FlingAnimation.java - Unused atm
AnimationHandler.java - Replaced with the framework AnimationHandler
FloatPropertyCompat.java - Replaced with FloatProperty
FrameCallbackScheduler.java - Unused in framework AnimationHandler

Test: m -j
Bug: 238475284
Change-Id: Ifdf847da0aa2a6cf57e18f9ac7c91bb0fe3b12c2
2022-10-17 20:45:41 +00:00
Daniel Norman
822eef4399 [automerger skipped] Merge "RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package." into qt-dev am: dc0095e9e4 am: 49cd9427ef -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: Ief1d988dd6dbb45206bb1056a4e184bb64de0c7b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 20:36:45 +00:00
Daniel Norman
994e8238bf Merge "Disable all A11yServices from an uninstalled package." into rvc-dev am: e6d10db58e am: 9e3a6a622a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20123964

Change-Id: I0696a78491bc4c31995f64e988ec6407b06871d8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 20:36:33 +00:00
Daniel Norman
296365ae97 [automerger skipped] RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package. am: 3796629985 am: 07b90715f9 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: Ic0b9c86fd3cbbb88915d34d5a34816655995ac48
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 20:36:29 +00:00
Lucas Silva
6430c547b8 Update PowerManager to make ambient display suppression apply
to dreams.

Bug: 246472225
Test: manually by triggering ambient suppression/unsuppresion via adb
Test: atest PowerManagerServiceTest
Change-Id: Ib8cb68239be04e0481a1af14d974d9623f509eb9
2022-10-17 20:35:30 +00:00
TreeHugger Robot
a7a5684201 Merge "Don't filter out groups if summary is re-inflating" into tm-qpr-dev 2022-10-17 20:33:17 +00:00
Daniel Norman
49cd9427ef Merge "RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package." into qt-dev am: dc0095e9e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: I29402acd041202995bb359511ec93c740310befc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 20:11:05 +00:00
Daniel Norman
07b90715f9 RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package. am: 3796629985
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20120242

Change-Id: Ib593fd95127da2dde8fde254fa080d985535aedc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 20:10:52 +00:00
Daniel Norman
9e3a6a622a Merge "Disable all A11yServices from an uninstalled package." into rvc-dev am: e6d10db58e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20123964

Change-Id: I81f0c31df2d07a2f1b9a8747bb06640e167871df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 20:07:33 +00:00
Daniel Norman
dc0095e9e4 Merge "RESTRICT AUTOMERGE Disable all A11yServices from an uninstalled package." into qt-dev 2022-10-17 19:44:36 +00:00
Daniel Norman
e6d10db58e Merge "Disable all A11yServices from an uninstalled package." into rvc-dev 2022-10-17 19:44:35 +00:00
Ats Jenk
1de186f84a Merge "Improve caption layout" into tm-qpr-dev 2022-10-17 19:39:17 +00:00