Commit Graph

18127 Commits

Author SHA1 Message Date
TreeHugger Robot
f7d49172b1 Merge "Recycle obtained TypedArrays" 2022-02-11 15:48:52 +00:00
Caitlin Cassidy
dc5dff8698 Merge "[Media TTT] Add app icon and name to the receiver SystemApi." 2022-02-10 21:35:27 +00:00
Hai Zhang
cedebbc921 Merge "Query only necessary columns in ChooserActivity.extractFileInfo()." 2022-02-10 19:11:26 +00:00
Alan Viverette
7d1188244c Merge "Migrate frameworks/base javadocs references to androidx" 2022-02-10 18:02:28 +00:00
Nikolas Havrikov
1859e347b4 Recycle obtained TypedArrays
Bug: 218835043
Test: make
Change-Id: Ibe4a9593a574159497b300a98be4af196ee110fe
2022-02-10 15:05:24 +01:00
Alan Viverette
406e0f6553 Migrate frameworks/base javadocs references to androidx
Does not remove Support Library artifacts from docs classpath (ApiDocs.bp)
because they are still used in development/samples, which is not as easy
to migrate as javadoc.

Bug: 158779503
Test: make docs
Exempt-From-Owner-Approval: Mass find/replace for androidx migration
Change-Id: Icf7f53ec36a0e970413352e2ebf40ce9d60ed17e
2022-02-09 22:25:14 +00:00
Florian Mayer
385071800e Merge "[MTE] Respect persist.arm64.memtag.default for system server." 2022-02-09 21:24:20 +00:00
Lee Shombert
0be2f8b9c7 Merge "Add a binder cache to ILockSettings#getCredentialType" 2022-02-09 21:18:50 +00:00
Dmitri Plotnikov
1383532e04 Merge "Remove BatteryStatsHelper and BatterySipper" 2022-02-09 18:32:08 +00:00
Dmitri Plotnikov
81a193fc81 Merge "Move mobile stats calculations from BatteryStatsHelper to BatteryStats" 2022-02-09 18:31:53 +00:00
Caitlin Cassidy
27378ee368 [Media TTT] Add app icon and name to the receiver SystemApi.
We typically get the app icon and name using
`context.packageManager.getApplicationIcon(mediaRoute2Info.packageName)`.
However, this may not work on the receiver device if the receiver
doesn't have the app installed.

The API will allow the caller to provide the app icon and name directly
so that we can ensure the chip on the receiver device is displaying the
necessary app information.

Bug: 216318437
Bug: 217418566
Test: atest MediaTttChipControllerReceiverTest
Test: CTS tests updated in different CL in same topic
Change-Id: Ib5150355a08ae389b218500b235b4bd9c686f919
2022-02-09 17:35:54 +00:00
Yinglei Wang
e7e3dd676c Merge changes from topic "ime"
* changes:
  Add accessibilitySessions to InputBindResult
  Add FLAG_INPUT_METHOD_EDITOR to a11y
  Allow a11y services to enter text via the path IMEs use
2022-02-09 15:42:22 +00:00
Ken Chen
768a91bdb6 Merge "Add system_server to net_admin group" am: f584f880ab am: 0cd6e77d0e am: 18a04ccda5 am: d13163b7a5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978086

Change-Id: I4297024c839b705eac3787e93ef23529e2670563
2022-02-09 10:41:15 +00:00
Ken Chen
d13163b7a5 Merge "Add system_server to net_admin group" am: f584f880ab am: 0cd6e77d0e am: 18a04ccda5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978086

Change-Id: Iee69ac1cace716b3fa457518db7c97b9a7731285
2022-02-09 10:24:30 +00:00
Ken Chen
18a04ccda5 Merge "Add system_server to net_admin group" am: f584f880ab am: 0cd6e77d0e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978086

Change-Id: Ied6448fb2f73d8867463357d6eacc7fbe00ddaea
2022-02-09 10:12:53 +00:00
Ken Chen
f584f880ab Merge "Add system_server to net_admin group" 2022-02-09 09:42:29 +00:00
Jeff Chang
4436955d35 [RESTRICT AUTOMERGE] Add hide-non-system-overlay flag for HarmfulAppWarningActivity am: 9c5c42ad03 am: 0281b203d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16743243

Change-Id: I9833001187073a9a148690e34c0960fc687a6022
2022-02-09 09:26:33 +00:00
Jeff Chang
0281b203d8 [RESTRICT AUTOMERGE] Add hide-non-system-overlay flag for HarmfulAppWarningActivity am: 9c5c42ad03
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16743243

Change-Id: I36a91c0de0d6a072f930277c0f235177b7822d33
2022-02-09 09:09:08 +00:00
Jeff Chang
aa0349bc78 [RESTRICT AUTOMERGE] Add hide-non-system-overlay flag for HarmfulAppWarningActivity am: f36b7b9f80
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16742068

Change-Id: I32f44bfc27e8086a2937112851989c1160877b39
2022-02-09 08:45:52 +00:00
Jean Chalard
993c5e1003 Merge "Allow VPN apps to ask for running the validation checks" am: cbb2fa2f00 am: 64ba50411e am: 1f929d9bd5 am: aac1b3a307
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962928

Change-Id: Iab6157c17d9f4c6554ba65296443eec42dd21e71
2022-02-09 06:57:05 +00:00
Jean Chalard
aac1b3a307 Merge "Allow VPN apps to ask for running the validation checks" am: cbb2fa2f00 am: 64ba50411e am: 1f929d9bd5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962928

Change-Id: Ie35764f5a4d7f9c1d3765a73331687450bbdbaf5
2022-02-09 06:56:37 +00:00
Jean Chalard
1f929d9bd5 Merge "Allow VPN apps to ask for running the validation checks" am: cbb2fa2f00 am: 64ba50411e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962928

Change-Id: I8dcb813cfe589411da7345bc2c4308e9f149b275
2022-02-09 06:38:31 +00:00
Dmitri Plotnikov
58fff8488b Remove BatteryStatsHelper and BatterySipper
These classes have been superseded by BatteryUsageStats

Bug: 217618527
Test: presubmit
Change-Id: Ia562365031048ad5b541dd08196e04e53e7cc547
2022-02-09 06:26:59 +00:00
Dmitri Plotnikov
992d488c81 Move mobile stats calculations from BatteryStatsHelper to BatteryStats
Bug: 217618527
Test: adb shell dumpsys batterystats
Test: atest FrameworksCoreTests:BatteryStatsTests
Change-Id: I70a156e96a855655cde97e8b7736db3e672219c7
2022-02-09 06:26:31 +00:00
yingleiw
107b9413a6 Add accessibilitySessions to InputBindResult
This way, we can pass back a11y sessions from direct startInput()
return value. And a11yManagerService will only request sessions
from a11y services which the client doesn't have sessions yet
(will not request existing a11y sessions again).

Bug: 187453053

Test: tested manually with talkback. Tested client switching within
"recent apps".

Change-Id: I8efdc9886ce33185a2195b741668c12e319ea660
2022-02-08 22:20:52 -08:00
yingleiw
fb17e5ae7a Allow a11y services to enter text via the path IMEs use
InputMethodService is the primary and a11y is the secondary.
InputMethodService is not
affected by a11y status. When the session from input method is
established, app can start input (pass input context to input method).
When an a11y session comes back, it will be passed to the app. When
InputMethodManagerService binds to/start input with
InputMethodService, it does the same to a11y services which
requested IME functionalities.

It is possible that input method can edit text before ally sessios are
established. So the EditorInfo passed to a11y could be stale.
So when an a11y session is passed to client, client will send
a notification (input method doesn't have this extra notification) for
the current selection. I think since the time for a11y session establish
shouldn't be long, and we get the current state later, it should be fine
for a11y services.

When input method is disconnected from app (client) (even for input
method switching), we cleared a11y and sessions too. When
input method request sessions, we must rerequest sessions for a11y. This
is mainly because when we unbindCurrentClientLocked(SWITCH_IME), we set
active to false for the current client. Suppose we don't want to
change the current structure of input method, an inactive client
probably should clear accessibility sessions too.

When we switch to a client which already has a session with input
method, there might be some a11y sessions with this client, and
some a11y services might be disabled or enabled while the client was
switched out. We pass unchanged a11y
sessions to client, and request sessions for newly enabled a11y services.
When an a11y service is disabled, it removes its session
from all clients in InputMethodManagerService.

Test: type word through modified "switchToInputMethod". Tested session
notification through logs. Tested client switching, input method
switching, a11y service enabled/disable, multiple a11y services,
a11y service enabled before device reboot.
Also tested work profile.

Bug: 187453053

Change-Id: Ia651a811093a939d00c081be1961e24ed3ad0356
2022-02-08 22:14:19 -08:00
Jean Chalard
cbb2fa2f00 Merge "Allow VPN apps to ask for running the validation checks" 2022-02-09 06:03:45 +00:00
TreeHugger Robot
7fab305427 Merge "New API: DumpableContainer.removeDumpable." 2022-02-09 05:46:08 +00:00
Ken Chen
5c5b682b6d Add system_server to net_admin group
This allows system_server to search/read skfilter BPF programs. Skfilter
BPF programs status were previously dumped by Netd. In Android T, the
related code are mainlined and dumped by system_server process.
system_server needs to be in net_admin group so that it can read program
status.

$ adb root; adb shell ls -l /sys/fs/bpf/
-r--r----- 1 root net_admin ... prog_netd_skfilter_allowlist_xtbpf
-r--r----- 1 root net_admin ... prog_netd_skfilter_denylist_xtbpf
-r--r----- 1 root net_admin ... prog_netd_skfilter_egress_xtbpf
-r--r----- 1 root net_admin ... prog_netd_skfilter_ingress_xtbpf

Bug: 202086915
Test: test in Ib0e935ee2b714ac61daceba6d13fa7a20f97f68f
Change-Id: I8c48230a5da6873eee7d0ba183cb83e1d92cd8f6
2022-02-09 03:47:18 +00:00
Florian Mayer
c9be4eb994 [MTE] Respect persist.arm64.memtag.default for system server.
Bug: 216305376

Change-Id: Ief009bde45eb5bb7e9cd555c071be582b46560a5
2022-02-08 18:25:56 -08:00
Felipe Leme
8daa920d2d Fixes OWNERS on com.androd.internal.util
Somehow it was merged with a conflict.

Test: no, thanks
Bug: 149254050

Change-Id: I1dbb8a4c04817f39de147927c26c14e461eb564b
2022-02-08 21:19:55 +00:00
Maurice Lam
5c5cdad706 Merge "Roll forward "Show error dialog if activity is blocked from streaming"" 2022-02-08 19:58:13 +00:00
Felipe Leme
1b6ac220bb Merge "Adds OWNERS to com.androd.internal.util.Dump*" am: 0b6e3a959b am: 2727d1af13 am: a9428c51ac am: cc98604cbe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976675

Change-Id: Iee025490ce6b23fdf85d0441853120ac02bcfa77
2022-02-08 19:53:10 +00:00
Felipe Leme
cc98604cbe Merge "Adds OWNERS to com.androd.internal.util.Dump*" am: 0b6e3a959b am: 2727d1af13 am: a9428c51ac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976675

Change-Id: I613dd7d9e8e246aef420bda8c79817685a690be1
2022-02-08 19:22:08 +00:00
Felipe Leme
a9428c51ac Merge "Adds OWNERS to com.androd.internal.util.Dump*" am: 0b6e3a959b am: 2727d1af13
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976675

Change-Id: I9094e6421123193cc474520d43c00f299e64a3ac
2022-02-08 19:05:18 +00:00
Felipe Leme
0b6e3a959b Merge "Adds OWNERS to com.androd.internal.util.Dump*" 2022-02-08 18:14:23 +00:00
Dmitri Plotnikov
5d1735108a Merge "Remove some uses of deprecated BatteryStatsHelper" 2022-02-08 18:13:11 +00:00
Chiachang Wang
3fc98d5ebd Allow VPN apps to ask for running the validation checks
Expose an API to allow VPNs app to ask for running the validation
check on the VPN network built from Ikev2VpnProfile.

Bug: 184750836
Test: New test in Ikev2VpnTest
      Also FrameworksNetTests
Change-Id: I385bb887b6c697d8f5d87af750dbd2aab44afca6
CTS-Coverage-Bug: 184750836
 (but CTS is in the same topic, just not detected by the tool)
2022-02-09 02:19:15 +09:00
Felipe Leme
3c5dea3fe4 Adds OWNERS to com.androd.internal.util.Dump*
Test: no, thanks
Bug: 149254050

Change-Id: I1dbb8a4c04817f39de147927c26c14e461eb564b
2022-02-08 08:50:43 -08:00
Sailendra Bathi
f86b75c9f2 Merge "Use isCredentialSharedWithParent in LockSettingsService" 2022-02-08 16:00:52 +00:00
Lee Shombert
fabb749d64 Add a binder cache to ILockSettings#getCredentialType
Bug: 214623625

Put a binder cache in front of ILockSettings#getCredentialType().  The
cache is in LockPatternUtils and the invalidation logic is in
LogSettingsService.  The cache is invalidated whenever the
LockSettingsStorage changes.

Three unit tests disable caches because they do not have permission to
write to the system properties.

Test: atest com.android.server.locksettings

Change-Id: Iea4c50ba5cc39de9196d9a9873ae501a946bf9fd
2022-02-08 15:47:49 +00:00
Shawn Lin
6a201acdc2 Merge "Support the ability to force-show navigation for GKS" 2022-02-08 06:49:09 +00:00
Treehugger Robot
ed3eb039b8 Merge "Delete legacy fs-verity support" am: 81568fa22f am: b4661e274c am: b754030dbe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966068

Change-Id: If68ccff8bad40fd9c74f38a7cd935a00c1575ba8
2022-02-08 01:50:05 +00:00
Treehugger Robot
b754030dbe Merge "Delete legacy fs-verity support" am: 81568fa22f am: b4661e274c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1966068

Change-Id: I797f197a29a811795fc5be5339be1afbde2e5fcd
2022-02-08 01:26:39 +00:00
Felipe Leme
f888255510 Merge "Adds OWNERS to com.androd.internal.util.dump" am: 5f09bb49f0 am: 4019688e39 am: 72c121d807 am: 77d989649b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1975006

Change-Id: I86327fcb09c4be3fd80d42dbb56f89815e850712
2022-02-08 01:14:52 +00:00
Felipe Leme
77d989649b Merge "Adds OWNERS to com.androd.internal.util.dump" am: 5f09bb49f0 am: 4019688e39 am: 72c121d807
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1975006

Change-Id: I95b4f23001815a4d3423a779a4427656199e9a3e
2022-02-08 01:02:47 +00:00
Treehugger Robot
81568fa22f Merge "Delete legacy fs-verity support" 2022-02-08 00:48:19 +00:00
Felipe Leme
72c121d807 Merge "Adds OWNERS to com.androd.internal.util.dump" am: 5f09bb49f0 am: 4019688e39
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1975006

Change-Id: Ic92a701e2fe530cad0f74e0cc5bb28dc67df9b2d
2022-02-08 00:45:31 +00:00
Felipe Leme
5f09bb49f0 Merge "Adds OWNERS to com.androd.internal.util.dump" 2022-02-08 00:24:38 +00:00
Felipe Leme
e5ae1783f8 New API: DumpableContainer.removeDumpable.
Test: m update-api
Test: atest com.android.internal.util.DumpableContainerImplTest

Bug: 149254050
Bug: 217567642
CTS-Coverage-Bug: 149254050

Change-Id: I4efe99a545bd3db2308d0956eaa85e0f799f0f1d
2022-02-07 22:59:23 +00:00