Commit Graph

6542 Commits

Author SHA1 Message Date
Adam Bookatz
aa804f9749 Merge "UserManager.getProfileType hidden API and caching" 2022-02-11 23:58:05 +00:00
TreeHugger Robot
129a032374 Merge "speech: Fix builder plurality" 2022-02-11 21:28:48 +00:00
Rubin Xu
b86ec0a5a4 Merge "Security log: additional events for WiFi and BLE connections" 2022-02-11 20:46:50 +00:00
Jean-Michel Trivi
d9b337e921 Merge "Spatializer: more SysApi for availability, head tracker" 2022-02-11 19:11:52 +00:00
TreeHugger Robot
ce366b9a97 Merge "Revert^2 "Add parameter annotations to createVirtualDisplay"" 2022-02-11 18:43:05 +00:00
TreeHugger Robot
ca8c3c269f Merge "Security Logging: log password change events" 2022-02-11 18:28:44 +00:00
Hui Wu
b6f82945c2 Merge "CloudSearch API: add the field of source to SearchRequest" 2022-02-11 17:53:17 +00:00
Rubin Xu
b3655d8ada Security log: additional events for WiFi and BLE connections
Bug: 194988881
CTS-Coverage-Bug: 218677588
Test: atest MixedDeviceOwnerTest#testSecurityLoggingWithSingleUser
Test: atest OrgOwnedProfileOwnerTest#testSecurityLogging

Change-Id: I98d1c8fcd4fae334f1f770751b047dc8ab07c7c5
2022-02-11 17:50:58 +00:00
TreeHugger Robot
6ca24eea7c Merge "Makes acknowledgeNewUserDisclaimer() a @TestApi" 2022-02-11 16:19:40 +00:00
Jean-Michel Trivi
f474524ab4 Spatializer: more SysApi for availability, head tracker
Add @SystemApi to check if the Spatializer will be available for
a given device, if it has a head tracker, if enabled, and
change its tracker enabled state.
  Implement checking device compatibility with transaural and
binaural modes. Create list of compatible devices, list of
devices that have been enabled, and list of disabled. This is
to support the V3 UI where add/removeCompatibleDevice is used
to control Spatial Audio state for a subset of output devices.

Bug: 210803914
Test: atest SpatializerTest
Change-Id: I0acf0c0310dbd503de2ea87328fca7e5597ae32d
2022-02-11 08:08:51 -08:00
Andrea Ambu
3d349876fb speech: Fix builder plurality
Bug: 216474107
Test: atest
Change-Id: Ib804f70db5d9e617b36f4f2eb4bd2ed61a4f185b
2022-02-11 15:36:26 +00:00
Ahaan Ugale
ad7dd8fecb Merge changes from topics "aohd-invalidate", "eventpayload-data"
* changes:
  API to destroy active detectors
  expose HAL keyphrase trigger extras to EventPayload
  expose HAL keyphrase trigger data to EventPayload
2022-02-11 10:05:03 +00:00
Hui Wu
1fa501674c CloudSearch API: add the field of source to SearchRequest
The System Server populates this new field.

CTS-Coverage-Bug: 210528288
Bug: 210528288
Test: RBE Built redfin-eng and tested on a physical device
Change-Id: I34e1631190b1baa2de9b2c97650865ac1ae1f38e
2022-02-11 00:39:59 -08:00
TreeHugger Robot
8eb30b3b30 Merge changes from topic "cross_uid_embedding_verification"
* changes:
  Verify cross-uid activity embedding
  Add Cross-UID ActivityEmbedding trust model APIs
2022-02-11 07:42:58 +00:00
Chen Xu
6583413a0d Merge "A overloaded API for downloadSubscription with portIndex for LPA" 2022-02-11 05:57:01 +00:00
Maurice Lam
6364f5dadb Revert^2 "Add parameter annotations to createVirtualDisplay"
Also changed the Handler parameter to Executor

Bug: 217742182
Test: atest CtsVirtualDevicesTestCases
Change-Id: I0f8f0c6a0f57e773191382da824e53d6ea371f4b
2022-02-11 04:33:58 +00:00
Maurice Lam
cc9f89383f Merge "Revert "Add parameter annotations to createVirtualDisplay"" 2022-02-11 04:23:34 +00:00
Maurice Lam
a343cdb58e Revert "Add parameter annotations to createVirtualDisplay"
Revert "Update usage of VirtualDevice.createVirtualDisplay"

Revert submission 16788542-vdm-api-review

Reason for revert: Broke build
BUG: 218953698
Reverted Changes:
Iea9be6d6d:Update usage of VirtualDevice.createVirtualDisplay...
I3ff9fe54c:Update usage of VirtualDevice.createVirtualDisplay...
I3321927b3:Add parameter annotations to createVirtualDisplay

Change-Id: I22a345200d0dce57acdced1fc102e4631e659a44
2022-02-11 04:10:16 +00:00
Maurice Lam
d93cbb0074 Merge "Add parameter annotations to createVirtualDisplay" 2022-02-11 03:35:02 +00:00
Ahaan Ugale
d6e0516f35 Merge "API to show autofill dialog." 2022-02-11 03:08:12 +00:00
Etan Cohen
f08068fef6 Merge "Add permission MANAGE_WIFI_INTERFACES" 2022-02-11 03:00:42 +00:00
Les Lee
52dbc0d234 Merge "wifi: refine API: notifyCountryCodeChanged" 2022-02-11 01:35:29 +00:00
Beth Thibodeau
4f2645ae1b Merge "Add SystemAPI to override default media output switcher" 2022-02-11 00:22:07 +00:00
Felipe Leme
247a059662 Makes acknowledgeNewUserDisclaimer() a @TestApi
It's already a @SystemApi, but it's used by CTS so it needs to be
allowlisted as @TestApi, otherwise the test fails with a
NoSuchMethodException.

Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_newUserDisclaimer
Test: m update-api

Bug: 217753260

Change-Id: Ied5d86a5c067d57a4ae9bbc4d753481879d2e89e
2022-02-10 15:52:03 -08:00
Nicholas Ambur
935e33f416 API to destroy active detectors
The active AlwaysOnHotwordDetector and SoftwareHotwordDetector is always
maintained  in memory regardless if the client is using it or not.
This added API allows an active VoiceInteractionService to indicate that
they will no longer use the detector, and it can be cleaned up.

Test: atest HotwordDetectionServiceBasicTest
Bug: 193232191
Change-Id: I47c6c64c5c85c01e75ddc6bc504664883a57730b
2022-02-10 13:37:41 -08:00
Nicholas Ambur
2f7b2d5f94 expose HAL keyphrase trigger extras to EventPayload
The SoundTrigger HAL can deliver additional context about the kephrase
that was triggered along with the trigger audio. This change moves to
expose the information which was previously suppressed by the Android
framework.

Data exposed:
- Keyphrase extras providing details on what phrase was interpreted by
the voice engine

Extra keyphrase information provided by the SoundTrigger HAL which was
previously suppressed is also exposed.

Test: atest AlwaysOnHotwordDetectorEventPayloadTest
CTS-Coverage-Bug: 215375531
Bug: 215066299
Change-Id: I3b20fd3692c3f9c86181f87d66622c77778b9ab2
2022-02-10 13:37:41 -08:00
Nicholas Ambur
6b6d178bd6 expose HAL keyphrase trigger data to EventPayload
The SoundTrigger HAL can deliver additional context about the kephrase
that was triggered along with the trigger audio. This change moves to
expose the information which was previously suppressed by the Android
framework.

Data exposed:
- Raw data field

Previously raw data was only exposed when the data was of a specific
audio format. This change allows the raw data to be retrieved regardless
of format.

Test: atest AlwaysOnHotwordDetectorEventPayloadTest
CTS-Coverage-Bug: 215375531
Bug: 215066299
Change-Id: Ie75773853d3b338e092dfbf3bd6ccef61a1420c9
2022-02-10 13:37:40 -08:00
Caitlin Cassidy
dc5dff8698 Merge "[Media TTT] Add app icon and name to the receiver SystemApi." 2022-02-10 21:35:27 +00:00
Maurice Lam
1feb56be88 Add parameter annotations to createVirtualDisplay
Also changed the Handler parameter to Executor

Bug: 217742182
Test: atest CtsVirtualDevicesTestCases
Change-Id: I3321927b36361168655f4886825955a642fb6c79
2022-02-10 21:25:22 +00:00
Adam Bookatz
c9bc9adfd7 UserManager.getProfileType hidden API and caching
Currently we have a few APIs for isXXXProfile. In the case of managed
profiles, we cachce the results.

Here, we introduce a new hidden API getProfileType, which gets and
caches the user type (string), if the user type is a profile. That way,
we automatically have the caching benefits for all profiles, not just
managed profiles.

We only do this for profiles because they have a relaxed permission
requirement. Other user types have strong restrictions, so we do not use
their more general getters here.

Test: atest UserManagerTest
Change-Id: I36b4caead83954518d6fc48860af61f8988f19a9
2022-02-10 13:17:28 -08:00
Chen Xu
3c22236cda A overloaded API for downloadSubscription with portIndex for LPA
Most of cases, download opperation is port agnostic we don't need
to specify the portIndex. However if this is triggered from carier
apps and apps specify download followed with esim activation, then
platform need to resolve a portIndex(maybe through UX) and need to
pass this portIndex to LPA app. thus we need to add an overloaded
version of download API for LPA.

Bug: 214055002
Test: Build & atest EuiccServiceTest
Change-Id: If127224ca7ca696c8eb512dc80c27f54e4f25b38
2022-02-10 11:22:17 -08:00
Ömer Yaveroğlu
5d08fb7a9c Merge "Add a new install-time integrity formula type to check the lineages of the app certificate." 2022-02-10 17:13:34 +00:00
TreeHugger Robot
9da38b8761 Merge "Camera: Add mirror mode in OutputConfiguration" 2022-02-10 17:12:59 +00:00
Sally Yuen
6bb459d3de Merge "Expose prefetching strategies to services" 2022-02-10 17:09:37 +00:00
Shuzhen Wang
aad70e9883 Camera: Add mirror mode in OutputConfiguration
The mirror mode gives the camera framework the ability to override the
default AUTO mode, where front facing camera's outputs are mirrored.

CTS-Coverage-Bug: 218869676
Test: Camera CTS
Bug: 200309079
Change-Id: I90d5826311c7f9088d13240085506d5b040565eb
2022-02-10 17:06:05 +00:00
Nikita Ioffe
99d28ac1cb Merge "Promote Slog to @SystemApi(client = Client.MODULE_LIBS)" 2022-02-10 16:42:25 +00:00
Nikita Ioffe
130228bfe0 Promote Slog to @SystemApi(client = Client.MODULE_LIBS)
Bug: 218862380
Fixes: 218862380
Test: m
Change-Id: I8ae8968471130e87abff14593a992229e683b034
2022-02-10 16:30:17 +00:00
Nate Myren
65c07eea84 Merge "Add information to grant permissions intent for continue messages" 2022-02-10 16:26:18 +00:00
Ömer Yaveroğlu
70a8f68db5 Add a new install-time integrity formula type to
check the lineages of the app certificate.

Bug: 218486995
Test: atest frameworks/base/core/tests/coretests/src/android/content/integrity
Test: atest services/tests/servicestests/src/com/android/server/integrity
CTS-Coverage-Bug: 218679238
Change-Id: I3bee5b95be7217967764b7bd304a2fe3a6ee52e9
2022-02-10 16:18:33 +00:00
Beth Thibodeau
ded4a734d1 Add SystemAPI to override default media output switcher
To support RCN use case, allow system apps with the
MEDIA_CONTENT_CONTROL permission to declare that their MediaStyle notification
is for remote playback, and pass in their own device name, icon, and intent to
use in place of the default output switcher that appears on the media controls

Bug: 204910409
Test: atest
Test: manual with test app
Change-Id: Icbfa288c48da9c2ab2fdfdd6b0bfe2b545afaac0
2022-02-10 11:00:00 -05:00
Ahaan Ugale
00209d94fc API to show autofill dialog.
This allows a UI Toolkit to display the autofill dialog instead of an
input method, if autofill suggestions are already available when the
user focuses on a view.

The dialog typically covers the input method, so it is undesirable to
show the input method under it.

Bug: 210926084
Test: atest android.autofillservice.cts.dialog.DialogTest
Change-Id: Ib982b0fcc271ed3fa2bf43ebe2f9baf494ec82ef
2022-02-10 14:21:09 +00:00
TreeHugger Robot
823af0a05d Merge "Expose EthernetManager state and control APIs." 2022-02-10 14:09:06 +00:00
Treehugger Robot
ed3cc1bb75 Merge "Expose VpnManager events API" am: e82d94fde0 am: 756a66d3fe am: 9107933dc6 am: 965f6b8900
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976227

Change-Id: I2bd5eb312d7f6a05e064d433f9cb4faf1d699562
2022-02-10 13:44:44 +00:00
Treehugger Robot
965f6b8900 Merge "Expose VpnManager events API" am: e82d94fde0 am: 756a66d3fe am: 9107933dc6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976227

Change-Id: Iaed33abb15a4cbd7f717e46550e55ad7b3ed4140
2022-02-10 13:27:04 +00:00
Nikita Ioffe
ecfb7fbf24 Merge changes from topics "sp-permissions", "sp-pm-uid-apis"
* changes:
  Add Process.toSupplementalUid to @TestApi
  Handle supplemental process uid range for uid-based PM apis
2022-02-10 13:12:17 +00:00
Treehugger Robot
9107933dc6 Merge "Expose VpnManager events API" am: e82d94fde0 am: 756a66d3fe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976227

Change-Id: I302743380c8dcbe3b67093562db0ae7dd810d250
2022-02-10 13:09:49 +00:00
Treehugger Robot
c268c99376 Merge "Split out the ipsec API surface and use framework-connectivity-tiramisu" am: 5edd77be5c am: 7dc8a7f592 am: 56313350b5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1960193

Change-Id: I4b7122a3b2cee5b53b039288ab164604a917edb1
2022-02-10 12:44:54 +00:00
Treehugger Robot
e82d94fde0 Merge "Expose VpnManager events API" 2022-02-10 12:36:37 +00:00
Treehugger Robot
56313350b5 Merge "Split out the ipsec API surface and use framework-connectivity-tiramisu" am: 5edd77be5c am: 7dc8a7f592
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1960193

Change-Id: Ia0e71b82ccac777afdb80732aff22337a3f1c6c5
2022-02-10 12:28:04 +00:00
Xiao Ma
a968c3b109 Expose EthernetManager state and control APIs.
This CL exposes EthernetManager APIs that settings and other
system components can use to modify and monitor Ethernet state.
The new APIs are similar to the existing @hide methods but
pass on more information and meet API guidelines:

1. Add an InterfaceStateListener interface, and
   addInterfaceStateListener and removeInterfaceStateListener
   methods that meet API guidelines (e.g., take Executor, take
   SAM parameter last, etc.) This new listener passes interface
   state (absent, up, down), role (client or server) and IP
   configuration.
2. Implement the legacy Listener type as a subinterface of the
   new interface. Hopefully existing callers should be able to
   use it unchanged.
3. Expose setIncludeTestInterfaces as module-lib api instead of
   TestApi, since modules cannot expose TestApi methods.

Bug: 210586283
Test: m
Test: atest EthernetServiceTests
Test: atest EthernetTetheringTest
Change-Id: I88240a546ab51d128ed83775499f2bcabab74db0
2022-02-10 20:53:55 +09:00