Commit Graph

891995 Commits

Author SHA1 Message Date
Alan Viverette
07287be17b Add --no-compile-sdk-metadata switch to AAPT2
This switch suppresses output of compile SDK-related attributes
in AndroidManifest.xml, including android:compileSdkVersion and
platformBuildVersion.

Fixes: 278115511
Test: ManifestFixer_test
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2ada8ffbe1a62f50fe5e966e8e9ec1f417cea179)
Merged-In: I552e50802a328c2318c9f261e30beadcbca5fd29
Change-Id: I552e50802a328c2318c9f261e30beadcbca5fd29
2023-05-04 20:46:14 +00:00
Yuri Lin
cf48242bf6 Merge "Move zen mode evaluation back into setConfig." into udc-dev am: a80ba02eb8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22976352

Change-Id: Ice9187f1e41fc2cfc1ff42d91bfc0025f2e45812
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 20:44:35 +00:00
Matt Buckley
5c406a3cad Merge "Create hint session asynchronously" into udc-dev 2023-05-04 20:44:13 +00:00
Evan Rosky
77a2643056 Merge "Use isSplitActive vs visible when detecting mixed pip/split" into udc-dev am: aeac802e8d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22999843

Change-Id: I7040ca15d739544bebc0cb6d89670f5fb076b9cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 20:43:29 +00:00
Mady Mellor
a034b4741d Merge "Calculate the launch bounds after layout" into udc-dev 2023-05-04 20:37:25 +00:00
Yuri Lin
a80ba02eb8 Merge "Move zen mode evaluation back into setConfig." into udc-dev 2023-05-04 20:36:58 +00:00
Aishwarya Mallampati
7db05331f3 Add satellite modem busy error code.
Bug: 275670811
Change-Id: Ia90d0d2378f30660d912bc57a88e4c2bcbb2a047
2023-05-04 20:07:43 +00:00
Evan Rosky
aeac802e8d Merge "Use isSplitActive vs visible when detecting mixed pip/split" into udc-dev 2023-05-04 20:05:54 +00:00
Liran Binyamin
7a693fa4db Add a field to BubbleInfo to indicate whether a bubble is important.
Bug: 269671451
Test: atest BubbleInfoTest

Change-Id: Ia36c1d1e507dbc0c5be10640f71d82464fc13230
2023-05-04 16:05:53 -04:00
Treehugger Robot
fd3b072eca [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev am: b783f6b010 -s ours am: 57340dfca7 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I7cbee687bd764843c8c8b16a7c5ad02517be04d9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 20:02:19 +00:00
Bill Yi
8aadd22e06 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 43b00cb6a0 -s ours am: 8edf4a4578 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I515faa28dbada911c14fed49f150907e41f460c6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 20:02:03 +00:00
Brad Hinegardner
2bb55f148c Align the lockscreen shortcuts haptics with the animation
The math for `vibrationDelayMs` was slightly off due to order of operations.

Bug: b/280825875
Test: manual - tap (not long-press) a lockscreen shortcut, and feel that the vibration starts and ends at the same time as the shake animation.
Change-Id: I616e99c484b4509d2a526ab5cd6a2612c93d52a2
2023-05-04 20:02:01 +00:00
Seigo Nonaka
2c8b404b29 Retruns true for hasSelection in reversed selection case
Bug: 279701943
Test: atest android.widget.cts.TextViewTest#testCopyAndPaste_byKey_reversed
Change-Id: I1686e82a3148aa7b367ee765b209273ffa12d5d4
2023-05-04 20:01:47 +00:00
Treehugger Robot
57340dfca7 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev am: b783f6b010 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Id138c6c48dfb1549e28b0ae489c93a703918458e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 19:59:42 +00:00
Bill Yi
8edf4a4578 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 43b00cb6a0 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I7187c753ab4c0d1cabd4e757960d21daecbf60fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 19:59:16 +00:00
Ameer Armaly
139936a029 [DO NOT MERGE] Make a11y overlays trusted.
Fix: 271488755
Test: atest accessibilityOverlayTest

Change-Id: I1e273f22b0bae240027bfdb7e860e227096de00c
2023-05-04 19:56:00 +00:00
mattsziklay
c8f118f97c Make resize veil background adapt to theme.
Set the background of the resize veil to light or dark based on whether
dark theme is applied.
Video: http://recall/-/hJNEr4C0IUowK3TyPPf4wT/diSieIqfY6tdF5rsoOT0PH

Bug: 274773589
Test: Manual; resize apps with different caption colors.
Change-Id: Id94d81ae01ad0e9edeaed51591f539d4fe5eb913
2023-05-04 12:51:45 -07:00
Caitlin Shkuratov
970a8f6025 [SB Refactor] Use the calculated mobileIsDefault for failed connection.
This is not directly related to b/225902574 but I noticed it while
looking at that issue.

In the case where carrier merged comes through a WIFI connection, it
would never show the ! because mobileIsDefault=false. However, the
carrier merged connection could be non-validated, in which case we
*should* show the ! (but wouldn't right now).

This CL updates the `isDefaultConnectionFailed` calculation to also
show the ! if carrier merged is default and not validated. It does this
by using the interactor's interally calculated `mobileIsDefault` flow,
which includes carrier merged (as opposed to the repo's
`mobileIsDefault` flow, which does not include carrier merged).

Bug: 225902574
Test: atest MobileIconsInteractorTest
Change-Id: Ic79cc1755a67400de067a51abcf654b1294b7fe1
2023-05-04 19:43:06 +00:00
Jerry Shi
bcd608643c Do a null check before returning the primary providers
Test: local build
Bug: 280492574

Change-Id: I0182c2060fbe5c74027785d539671f9eaaaf2a25
2023-05-04 19:35:01 +00:00
Jerry Shi
20f6a57df3 Set the primary provider list to UI
Test: local build
Bug: 279480457

Change-Id: I74550e3b4febdaa5abb14bbb090f7864663f8d94
2023-05-04 12:34:19 -07:00
Miranda Kephart
7c08958eb9 Merge "Add flag for clipboard shared transitions" into udc-dev am: 93c08296fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22789457

Change-Id: I80f85757b7016d87999600a31a0fc54ac64a045e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 19:23:33 +00:00
Tyler Gunn
dad36ded91 Merge "Add extra key to StreamingCall." into udc-dev am: 6bbc974ac9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22912877

Change-Id: Idff67848c9ce429d2be8254e4760f13fdb36e6bc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 19:22:57 +00:00
John Reck
622bbeca83 Merge "Invalidate buffers on transform change" into udc-dev am: 700384f2a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23028807

Change-Id: Iddf12659dc4e941cb64f6133b844098ea7e3f497
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 19:22:01 +00:00
Lucas Dupin
cee39f9d55 Merge "keyguardGoingAway wallpaperCommand" into udc-dev am: bf38e64981
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22932676

Change-Id: Idb3ca6c8abc34401d6a2ecd076d1ffb060f1922f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 19:19:58 +00:00
TreeHugger Robot
5dab4d740a Merge "Log dispatch when handler chosen before playTransition is called" into udc-dev am: b7d3ddb89f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22994676

Change-Id: I5311a7a15fed242be23aa1e2c78d971e7beba768
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 19:19:04 +00:00
Kweku Adams
531b7ec817 Add scheduled job high water mark metric.
Add a metric to track the maximum number of jobs that are scheduled at a
time, in 30 minute increments.

Bug: 138239687
Bug: 279935506
Test: atest CtsJobSchedulerTestCases:ConnectivityConstraintTest
Test: atest CtsJobSchedulerTestCases:JobSchedulingTest
Test: atest CtsJobSchedulerTestCases:NotificationTest
Change-Id: If0c190bf8ebcca55ef1907020b37a0e1c72181ae
2023-05-04 19:17:32 +00:00
Winson Chung
d532eb1810 Enforce sysui-held permissions when getting main launch intent
- Because a mutable pending intent is returned, we actually do need to
  enforce that SysUI is the only caller of this method

Bug: 278881947
Bug: 253216640
Bug: 256590334
Test: atest LauncherAppTests

Change-Id: I89dd6891a826f934a247881c6dd9ec5cacf2d082
2023-05-04 19:17:31 +00:00
Miranda Kephart
93c08296fc Merge "Add flag for clipboard shared transitions" into udc-dev 2023-05-04 19:07:53 +00:00
Treehugger Robot
b783f6b010 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2023-05-04 18:53:23 +00:00
Tyler Gunn
6bbc974ac9 Merge "Add extra key to StreamingCall." into udc-dev 2023-05-04 18:49:26 +00:00
John Reck
700384f2a9 Merge "Invalidate buffers on transform change" into udc-dev 2023-05-04 18:41:57 +00:00
Lucas Dupin
bf38e64981 Merge "keyguardGoingAway wallpaperCommand" into udc-dev 2023-05-04 18:35:30 +00:00
TreeHugger Robot
b7d3ddb89f Merge "Log dispatch when handler chosen before playTransition is called" into udc-dev 2023-05-04 18:34:28 +00:00
Mark Renouf
9c524230b3 Skip shared element transition for implicit intent
When launching an EDIT action from the long screenshot activity,
only send a shared element transition when the target is specified.

The shared element transtion ActivityOptions cause a crash when
sent through ResolverActivity.

Bug: 277206284
Test: manual; modified build to suppress editor component name
Change-Id: I57262c622c1d5c2ab4930f3c1bb3512d4dd37ea3
2023-05-04 14:34:09 -04:00
Antony Sargent
956f4084df Fix problem with AOD when secondary power groups are awake
Bug: 279845136
Test: atest UnlockedScreenOffAnimationControllerTest PowerManagerServiceTest
Change-Id: I129ef065f57c494333cbf8b82d3355344fdc8be1
2023-05-04 11:19:05 -07:00
Nicholas Ambur
dab6381d01 fix flaky behavior in FakeLatencyTracker
LatencyTrackerTest exposed a race condition leading to deadlock in
FakeLatencyTracker.

This also fixes users of FakeLatencyTracker like
SoundTriggerMiddlewareLoggingTest

Bug: 275113847
Test: atest LatencyTrackerTest --iterations 20
Test: atest FakeLatencyTrackerTest --iterations 20
Test: atest SoundTriggerMiddlewareLoggingTest --iterations 20
Change-Id: I5e4a4e489711fff05c2fceffbe76c258a54cd49f
2023-05-04 18:11:46 +00:00
Justin Weir
fb416ecf31 Add method for adding expansion listener without firing event
The current method immediately sends a change event to the listener,
which causes the AuthDialogPanelInteractionDetector dialog to
immediately cancel itself upon adding the listener. Adding a new
method that doesn't fire the event and calling that instead fixes
the problem.

Test: manually verified
Test: atest SystemUITests SystemUIGoogleTests
Fixes: 278455611
Change-Id: Id94bba0ab10890fd3c380d69cf6409c614c7e84c
2023-05-04 14:00:45 -04:00
Liran Binyamin
0da375d250 Add a title to BubbleInfo.
Fixes: 269672147
Bug: 273995175
Test: atest BubbleInfoTest
Change-Id: Idd03b8b0cd0f62eca3befa42a0ed3ba8c89b162f
2023-05-04 14:00:09 -04:00
Guangjie (Jerry) Shi
a4e3c52d7c Merge "Support setting primary provider" into udc-dev am: d07c89db48
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22963326

Change-Id: I71f2654e491ed9bd046d6e0ff9fd3ab24b4e7482
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 17:55:38 +00:00
Helen Qin
157f3cae4c Merge "Update the sign-in title variants." into udc-dev am: 6dd8509243
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23018646

Change-Id: I09acbf461a3e69e0b85fcb7e45946cf7dd629009
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 17:53:42 +00:00
Sherry Zhou
2558342f4f Merge "Fix weather clock clipped when swiping in Lockscreen" into udc-dev am: 9b4e878548
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22917063

Change-Id: I68ef8522272303903ad5fd7ed1dc30abf314b6c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 17:52:18 +00:00
Felipe Leme
df1927d4f5 Add AdServicesManagerService to system_server_dumper
Test: adb shell dumpsys system_server_dumper --name AdServices
Bug: 280677793

Change-Id: I2da6527977d0188f5cc0616505280720a841d160
2023-05-04 10:39:53 -07:00
Guangjie (Jerry) Shi
d07c89db48 Merge "Support setting primary provider" into udc-dev 2023-05-04 17:33:04 +00:00
Helen Qin
6dd8509243 Merge "Update the sign-in title variants." into udc-dev 2023-05-04 17:32:25 +00:00
Sherry Zhou
9b4e878548 Merge "Fix weather clock clipped when swiping in Lockscreen" into udc-dev 2023-05-04 17:25:30 +00:00
Evan Rosky
6c3d9ca37f Use isSplitActive vs visible when detecting mixed pip/split
split was changed to preserve splits in "background", so it
needs to be detected via isSplitActive instead of isSplitVisible
so that it can update properly when a PiP transition comes in.

Bug: 280253323
Test: wait for b/280523948, then open split with an auto-pip
      and then swipe-to-home. Try this with both single and
      multi-activity pip and dump window containers to verify
      correct hierarchy.
Change-Id: Id3f28cad593a799933ddc24a570b7a91e22bd275
2023-05-04 10:22:21 -07:00
Austin Wang
3e4fae44e3 Support CMF default wallpaper
Bug: 267504355
Test: launch feather default wallpaper
Change-Id: I294b8b08c76edabe5b01c0403db06da5a987bf75
2023-05-04 10:21:10 -07:00
Pavel Grafov
456dbcae5a Ensure policy has no absurdly long strings
The following APIs now enforce limits and throw IllegalArgumentException
when limits are violated:
* DPM.setTrustAgentConfiguration() limits agent packgage name,
  component name, and strings within configuration bundle.
* DPM.setPermittedAccessibilityServices() limits package names.
* DPM.setPermittedInputMethods() limits package names.
* DPM.setAccountManagementDisabled() limits account name.
* DPM.setLockTaskPackages() limits package names.
* DPM.setAffiliationIds() limits id.
* DPM.transferOwnership() limits strings inside the bundle.

Package names are limited at 223, because they become directory names
and it is a filesystem restriction, see FrameworkParsingPackageUtils.

All other strings are limited at 65535, because longer ones break binary
XML serializer.

The following APIs silently truncate strings that are long beyond reason:
* DPM.setShortSupportMessage() truncates message at 200.
* DPM.setLongSupportMessage() truncates message at 20000.
* DPM.setOrganizationName() truncates org name at 200.

Bug: 260729089
Test: atest com.android.server.devicepolicy
Merged-In: Idcf54e408722f164d16bf2f24a00cd1f5b626d23
Change-Id: Idcf54e408722f164d16bf2f24a00cd1f5b626d23
2023-05-04 17:18:28 +00:00
Kweku Adams
00d4d62436 Merge "Add express logs for several JobScheduler events." into udc-dev am: 23fba5a67d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22937258

Change-Id: Ie085406d35306f721e9085d515128cc5d185660e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 17:14:29 +00:00
Wenhui Yang
21b033ae48 Merge "Disable talkback for title and subtitle in BP" into udc-dev am: 7bb31ace3b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22997107

Change-Id: Ifd29f3ac716ce9b9b98e667b515c35c157d8038c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 17:12:42 +00:00