Commit Graph

813479 Commits

Author SHA1 Message Date
Chris Li
a32a2ffce2 Fix delay on TYPE_TASK_FRAGMENT_VANISHED
Before, we call sendTaskFragmentVanished after the removeImmediately,
which may not have any following activity paused/resumed to trigger
relayout to dispatch the pending event to the organizer.

Now, we call mWindowPlacerLocked.requestTraversal() to ensure the
vanished event will be dispatched.

Without this change, the splitInfo callback can be stucked on waiting
for empty TaskFragment vanished event.

Bug: 262666213
Test: atest CtsWindowManagerDeviceTestCases:TaskFragmentOrganizerTest
Test: atest WmTests:TaskFragmentOrganizerControllerTest
Change-Id: Ibf76af205a5fc91400bdd5fc967a0d13591cfe92
2022-12-15 20:42:15 +08:00
Jordan Demeulenaere
509c9a2b6a Introduce the FadingBackground modifier
This CL introduces an overload of Modifier.background which takes a
`alpha: () -> Float` parameter to set the alpha of the background. This
should be used when the alpha of the background is animated, to avoid
recompositions during an animation.

The content of FadingBackground.kt was mostly copy pasted from
Background.kt [1].

[1] http://cs/androidx-platform-dev/compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/Background.kt

Bug: 242040009
Test: Manual
Change-Id: I3296f7bc7382e2afe77a088cfdbefbfae134051d
2022-12-15 13:33:01 +01:00
Jordan Demeulenaere
b85fe2b4a0 Make clickable Expandables have a minimum (interactive) size (1/2)
This CL improves Expandable by making sure that expandables that expand
when clicked directly have a minimum size of 40dp and minimum
interactive size (touchable area) of 48dp. This is consistent with the
M3 components like buttons.

Bug: 230830644
Test: Manual
Change-Id: Iada048498ff4655406968d7dac5d13c948efaea1
2022-12-15 13:33:00 +01:00
Jordan Demeulenaere
7c353ae99a Add support for borders in Expandable (1/2)
This CL adds support for borders in Expandable. See
b/230830644#comment24 for a video.

Bug: 230830644
Test: Manual
Change-Id: If9ce29bac72b725eb01b1839a982a2ce17efc41a
2022-12-15 13:32:55 +01:00
Vania Januar
dceba09340 [automerger skipped] Merge "Add owners file for /systemui/stylus." into tm-qpr-dev am: fcf6197b26 -s ours
am skip reason: Merged-In Ibed27e4faaa7ee75052842d8a76de6b09a09beae with SHA-1 37e6f1968b is already in history

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

Change-Id: I2704d25af6b83ad0ead9312fef64f58f22e4bb21
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 12:26:03 +00:00
Vania Januar
f06355b510 [automerger skipped] Add owners file for /systemui/stylus. am: acc84090e9 -s ours
am skip reason: Merged-In Ibed27e4faaa7ee75052842d8a76de6b09a09beae with SHA-1 37e6f1968b is already in history

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

Change-Id: I4e0961f96638d75ccf1ad64b7e141228ad17a517
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 12:25:44 +00:00
Jordan Demeulenaere
a13520b42f Reconcile Expandable.kt on master/tm-qpr-dev-plus-aosp and tm-qpr-dev
This CL reconciles the content of Expandable.kt in the
tm-qpr-dev-plus-aosp branch and tm-qpr-dev. This CL being on
tm-qpr-dev-plus-aosp, this will also be merged in master.

Currently the files are different because the androidx.savedstate
library was updated in tm-qpr-dev-plus-aosp in http://ag/19946745, and
removed the ViewTreeSavedStateRegistryOwner APIs. Ideally, instead of
this CL, we would update the androidx.savedstate library in tm-qpr-dev
but I'm getting build errors in http://ag/20708667 that might take a
while to fix. Until I manage to get that CL in, I suggest we work around
it in this CL by re-introducing the ViewTreeSavedStateRegistryOwner API
used by tm-qpr-dev, which forwards calls to the API that replaced it.
That way we can unblock the few CLs like http://ag/20256703 and
http://ag/20711619 which currently have conflicts with master and
tm-qpr-dev-plus-aosp.

Bug: 262222023
Test: Builds
Change-Id: I97660c5a9a2758c5e19d037e635c21456b6085c3
2022-12-15 13:22:23 +01:00
Vania Januar
fcf6197b26 Merge "Add owners file for /systemui/stylus." into tm-qpr-dev 2022-12-15 12:07:44 +00:00
Jordan Demeulenaere
c14e8fec59 Reconcile Expandable.kt on master/tm-qpr-dev-plus-aosp and tm-qpr-dev
Bug: 262222023
Test: Builds
Change-Id: I97660c5a9a2758c5e19d037e635c21456b6085c3
Merged-In: I97660c5a9a2758c5e19d037e635c21456b6085c3
2022-12-15 12:40:07 +01:00
Jordan Demeulenaere
ebf8a06ff7 Merge "Remove the <application> tag from SystemUIComposeFeatures" into tm-qpr-dev am: 4c42ecfeb1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20708647

Change-Id: I5bcc34643526d650347e20c7e0cd3f8e7ec4c978
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 11:09:42 +00:00
lucaslin
54ba76a1a6 Set VPN as the preference network for specific apps
Set VPN as the preference network for specific apps when
IKEv2VpnRunner is running, and reset it when IKEv2VpnRunner is
cleaned.

VPN will be disconnected when its underlying network is gone. To
prevent packets go throgh underlying network when underlying
network is back but VPN is not connected yet, set VPN as the only
preferred network for specefic apps.

Bug: 231749077
Test: Create a test app to register default network and check if
      the VPN is the only default network for the test app.
Change-Id: Ib1b65d142a5ccc935f3882f5665134a56277f19a
2022-12-15 11:04:11 +00:00
Jordan Demeulenaere
4c42ecfeb1 Merge "Remove the <application> tag from SystemUIComposeFeatures" into tm-qpr-dev 2022-12-15 10:51:13 +00:00
Piotr Wilczyński
915a4d6ca8 Merge "Make DPC listen to auto-brightness mode changes" into tm-qpr-dev am: fd4bed64d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20339748

Change-Id: I4a5213ac33cc98c1e18da1a339f1b8d8b399ac48
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 10:32:50 +00:00
Vania Januar
5a8d230d22 Merge "Low battery notifications for USI styluses." into tm-qpr-dev am: 206392b411
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20608953

Change-Id: Ic61d520a905d37a6def6771c2f27162e5e9d59d7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 10:31:13 +00:00
Tony Huang
ad5b466034 Merge "Fix failed while running same pair again" into tm-qpr-dev am: 9e656e7c3c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20742170

Change-Id: I41cee4f86de6d701b19cfc6be2ce23894bcabdb4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 10:30:32 +00:00
Johannes Gallmann
5d598c5ecd Merge "Fix notification launch animation for split shade" into tm-qpr-dev am: e068bb37e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20665669

Change-Id: I52012129ee126327b7be3385fb043a886e9fba34
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 10:28:41 +00:00
Piotr Wilczyński
fd4bed64d6 Merge "Make DPC listen to auto-brightness mode changes" into tm-qpr-dev 2022-12-15 10:26:33 +00:00
Vania Januar
acc84090e9 Add owners file for /systemui/stylus.
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2355562

Change-Id: Ibed27e4faaa7ee75052842d8a76de6b09a09beae
Merged-In: Ibed27e4faaa7ee75052842d8a76de6b09a09beae
2022-12-15 10:25:18 +00:00
Vania Januar
206392b411 Merge "Low battery notifications for USI styluses." into tm-qpr-dev 2022-12-15 10:18:31 +00:00
Tony Huang
9e656e7c3c Merge "Fix failed while running same pair again" into tm-qpr-dev 2022-12-15 10:15:23 +00:00
lihaizhou
2fbbef3783 Fix potential NPE when ActivityClientRecord is null
From user bugreport and base on Android R code

12-02 11:52:09.533 10148  2525  2525 E AndroidRuntime: FATAL EXCEPTION: main
12-02 11:52:09.533 10148  2525  2525 E AndroidRuntime: Process: com.kuaishou.nebula, PID: 2525
12-02 11:52:09.533 10148  2525  2525 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.app.ActivityThread$ActivityClientRecord.getLifecycleState()' on a null object>
12-02 11:52:09.533 10148  2525  2525 E AndroidRuntime: at android.app.servertransaction.TransactionExecutorHelper.getClosestOfStates(TransactionExecutorHelper.java:166)
12-02 11:52:09.533 10148  2525  2525 E AndroidRuntime: at android.app.servertransaction.TransactionExecutorHelper.getClosestPreExecutionState(TransactionExecutorHelper.java:144)
12-02 11:52:09.533 10148  2525  2525 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:129)
12-02 11:52:09.533 10148  2525  2525 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
12-02 11:52:09.533 10148  2525  2525 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2105)

Bug: 262605168
Test: NA

Change-Id: I9613ddd569d6b3d0617b401c73a4f5b92cd95e2e
Signed-off-by: lihaizhou <lihaizhou@coolpad.com>
2022-12-15 18:10:58 +08:00
wilsonshih
3306e7bb7c [ShellTrans] Fix SystemUI crash when finish keyguard animation.
The animation leashes will be release after calls
KVM#finishSurfaceBehindRemoteAnimation, so if there are playing
animation with setSurfaceBehindAppearAmount, the released leash could
cause SystemUI crash.
There are two scenario may cause that crash:
1. Hovering between Keyguard <=> Launcher, which could trigger
fadeOutSurfaceBehind and finish the remote animation, so the
surfaceBehindRemoteAnimationTargets could remained in KUAC. Then when
next transition animation start, KUAC could attemp to play animation
with those released leash.
2. Unlock keyguard directly, notifyFinishedKeyguardExitAnimation will
cancel the surfaceBehindAlphaAnimator, which could finish the remote
animation immediately before setSurfaceBehindAppearAmount. To ensure
the opening app must be visible, calls setSurfaceBehindAppearAmount
before cancel animatiors.

Fixes: 262444073
Test: enable shell transition, then scroll up to unlock device,
a. verify the launcher won't stay in a fully/semi transparent.
b. verify the launcher won't reshow when scrolling on keyguard.
Also verify above cases via fingerprint unlock.

Change-Id: Ib8c0211c35e76ec46337c1e8807e381081755ad1
2022-12-15 09:52:56 +00:00
Johannes Gallmann
e068bb37e4 Merge "Fix notification launch animation for split shade" into tm-qpr-dev 2022-12-15 09:36:44 +00:00
Sohail Nagaraj
c7e8e3751d Update the variable type to DrmStatus in libmedia_jni
Bug: 260065906

Test: gts-tradefed run gts --abi arm64-v8a -m GtsMediaTestCases
Test: atest CtsMediaDrmFrameworkTestCases

Change-Id: I94bd375d9a4b6e09a8e3b9d7a900398f8e263000
2022-12-15 09:35:37 +00:00
Luca Zuccarini
d5b2b20bc8 Merge "Make ActivityLaunchAnimator.Runner usable independently." into tm-qpr-dev am: ea07279ebb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20710346

Change-Id: I6093b112758aaf1f3da3f32a0b2a9b57b69fc6d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 09:08:12 +00:00
Luca Zuccarini
ea07279ebb Merge "Make ActivityLaunchAnimator.Runner usable independently." into tm-qpr-dev 2022-12-15 08:29:40 +00:00
guolun Xue
0ca05d2ffd [BugFixed][OOM_ADJ] use max_adj to control process final adj
when app have flag BIND_ABOVE_CLIENT, max adj will be unuseful
system can not limit process adj through max adj, this happen
frequently in various app

Bug: 262672210

Change-Id: I5fa9ea8f573b41899f1e78f8f3fd57aa687b4b12
2022-12-15 08:07:52 +00:00
TreeHugger Robot
e651d4d8b6 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev am: 2fafc8df65 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Iac8419e97da02a581cab50e58a9252d211dec064
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 07:55:48 +00:00
Bill Yi
d15f7f44cc [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 89cd665a8f -s ours
am skip reason: subject contains skip directive

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

Change-Id: I33cf6247f3ce7ec099b63fadf1ab9735eeacfb04
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 07:55:22 +00:00
TreeHugger Robot
555ad3c502 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev am: c0a472c0cf -s ours
am skip reason: subject contains skip directive

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

Change-Id: I38313ce549bbbdb947ba9aa84fea446b37f2bc6e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 07:55:02 +00:00
Bill Yi
8886d94117 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: b32bef9a7e -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ic01e635b7120c538b4e3dbfcb0976cd4539f824a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 07:54:49 +00:00
TreeHugger Robot
eb5751e361 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev am: 1fcef083b5 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I589ceb2c202d76eeacfb411d79b32a5183e4aab2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 07:54:26 +00:00
Bill Yi
9af10cf9c7 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 9816684392 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ie9626e70620805b0a7a912d2b0a51ea8602d68da
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 07:54:05 +00:00
TreeHugger Robot
2fafc8df65 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-15 07:32:24 +00:00
TreeHugger Robot
c0a472c0cf Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-15 07:32:24 +00:00
TreeHugger Robot
1fcef083b5 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-15 07:32:24 +00:00
Riddle Hsu
3b1cd4771a Merge "Inherit smallest width if TF is not multi-window without bounds override" into tm-qpr-dev am: c7237c1b0e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20729658

Change-Id: Iccc577aa2e7acada99f06bbfc84fdeaa30f497df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 07:15:23 +00:00
Junyu Lai
8b6e7bb613 [automerger skipped] Merge "Do not crash when duplication found in merged imsi list" into tm-qpr-dev am: 46c7d694aa -s ours
am skip reason: Merged-In I69d332ee0acde6cdd7582d1aa18c82576f7090f2 with SHA-1 fe5f1e99e3 is already in history

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

Change-Id: I01acc1bd7a944c68f2b721525e2982ec5f039378
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 07:14:51 +00:00
Junyu Lai
adf9c4d039 [automerger skipped] Do not crash when duplication found in merged imsi list am: a4b025f771 -s ours
am skip reason: Merged-In I69d332ee0acde6cdd7582d1aa18c82576f7090f2 with SHA-1 fe5f1e99e3 is already in history

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

Change-Id: I398cbe319ec71aa44fb00529809750196676bfa8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 07:14:29 +00:00
Winson Chung
a01c128568 Add logging for floating rotation button
Bug: 260223107
Test: Just logs
Change-Id: I71f0afa9be4a0620b606e2e0c20f5817f361e5fb
2022-12-15 07:11:51 +00:00
Riddle Hsu
c7237c1b0e Merge "Inherit smallest width if TF is not multi-window without bounds override" into tm-qpr-dev 2022-12-15 07:11:10 +00:00
shaoweishen
3024a0fb19 [Output Switcher] Add flag for follow up update
the flags for
1. routes processing, which will include deduplicate device
   id and apply application routes listing preference.
2. device status allow checking the flags or status of routes and show
   corresponded status in the subtext of device.
both of flags will only take effect on android U.

Test: N/A
Bug: 261538825

Change-Id: If1b2134136bef715629de81531f9a3d64812fb42
2022-12-15 06:50:43 +00:00
Grace Cheng
4751acc5c0 Increase animation size and dialog width in BiometricPrompt, and change DT->LT color mapping for better visibility
Increases animation asset size in BiometricPrompt, sets BP width to 560dp, and modifies DT->LT color mapping for better visibility

Test: (manual) Open BP, observe new animation size, dialog width, and LT colors
Fixes: 260015824
Change-Id: I6890058668b570ee3c73debdd00f31d78d26b3b1
2022-12-15 06:25:15 +00:00
Junyu Lai
46c7d694aa Merge "Do not crash when duplication found in merged imsi list" into tm-qpr-dev 2022-12-15 06:21:58 +00:00
Tony Huang
724294eaf9 Fix failed while running same pair again
The exitSplit called while we launch the same split pair caused
it cannot enter split successful then lead to tests failed.

Add check isEnteringSplit check for that exitSplit.

Fix: 262595710
Test: atest NexusLauncherTests
Change-Id: I8666476ff76e3912542d30441b144c67baed9f38
2022-12-15 06:07:02 +00:00
Jack Yu
3700fd28bf Removed old data stack
Completely removed the old telephony data.

Fix: 201830726
Test: Manual
Merged-In: I8e92c8f795c4ecfd71a3a642956fbb60711fb56e
Change-Id: I8e92c8f795c4ecfd71a3a642956fbb60711fb56e
2022-12-14 21:38:54 -08:00
Zhenwei Chen
1d9a68d3dd Update string for all defenders
Bug: 262508668
Test: Unit test passed
Change-Id: Ic6bfdbb30f69cb621ac17bb6ec192ac5dee5ca57
2022-12-15 05:31:18 +00:00
Jack Yu
3472f67382 Removed old data stack
Completely removed the old telephony data.

Fix: 201830726
Test: Manual
Merged-In: I8e92c8f795c4ecfd71a3a642956fbb60711fb56e
Change-Id: I8e92c8f795c4ecfd71a3a642956fbb60711fb56e
2022-12-14 20:51:20 -08:00
Joanne Chung
5f8309a0b9 Merge "Hotword: Add uid into the original metrics" into tm-qpr-dev am: aff32206e9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20717790

Change-Id: I02b53f84b891c565a5119669247c11b85863649d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-15 04:40:32 +00:00
Joanne Chung
aff32206e9 Merge "Hotword: Add uid into the original metrics" into tm-qpr-dev 2022-12-15 04:16:07 +00:00