Commit Graph

2881 Commits

Author SHA1 Message Date
Adam He
50a637b1e5 Changed createOnDeviceTranslator to be asynchronous with callback.
Bug: 176208267
Test: atest CtsTranslationTestCases
Change-Id: Icedc953611e70dc208cbef54b4e459ebb0ccd5a9
2021-04-27 11:56:30 -07:00
Vadim Caen
8773bbe881 Merge "API to override the splashscreen theme" into sc-dev 2021-04-26 19:20:04 +00:00
Ahaan Ugale
b8144d38cc Merge "Leverage new Audio history sharing for HotwordDetectionService." into sc-dev 2021-04-26 15:22:04 +00:00
Ahaan Ugale
2434a92049 Merge "Translate: API for content padding." into sc-dev 2021-04-26 15:17:26 +00:00
Joanne Chung
5d1ebc4f96 Merge "API feedback: TranslationCapability APIs refinement." into sc-dev 2021-04-26 15:07:58 +00:00
Galia Peycheva
57ef720249 Merge "Use global setting instead of forceWindowBlurDisabled" into sc-dev 2021-04-26 11:42:49 +00:00
Joanne Chung
2fcdb2cf9f API feedback: TranslationCapability APIs refinement.
- updates APIs naming and uses Consumer<TranslationCapability>
  instead of PendingIntent
- Implements the propagating capability updates in the client side

Bug: 176208267
Test: manual.
Test: atest CtsTranslationTestCases

Change-Id: I171c908b529e2ef300e4bbd55c1565b33a25c1e5
2021-04-26 18:10:49 +08:00
Ahaan Ugale
8dc9a795e0 Translate: API for content padding.
This allows controlling the content padding behavior needed with some
apps for compatibility reasons.
(see I9d7db5d2bc200e4042baf3267796f00cfc298f19)

The flag is currently the only property in the new UiTranslationSpec
value type, but more properties can be added in the future (such as
animation specifications).

Bug: 179693024
Test: manual
CTS-Coverage-Bug: 182990474
Change-Id: I11052cddb59c928b22ad9ad16e3c9b092da4b907
2021-04-26 01:14:02 -07:00
Ahaan Ugale
35f28d1bb2 Leverage new Audio history sharing for HotwordDetectionService.
The Audio Framework now supports sharing audio history, so
VoiceInteractionManagerService no longer needs to handle audio streams
itself.
See I5beba6c1e489148a14ba86165b8ef2fdc78c802a.

Bug: 168305377
Test: atest CtsVoiceInteractionTestCases
Test: manual
Change-Id: Ia7c5830aa5af6c015ae26619e0a90967ddff74e5
2021-04-26 07:50:01 +00:00
Jeff Sharkey
63721f8c7b Merge "Long-tail of AttributionSource plumbing." into sc-dev 2021-04-24 22:43:56 +00:00
Jeff Sharkey
dd5a4f39c8 Long-tail of AttributionSource plumbing.
Wires up AttributionSource across the remaining long-tail of
Bluetooth AIDL interfaces, ensuring that developers can accurately
make calls chained back to a specific Context.

Moves "for data delivery" permission checks to happen in a single
location on each interface to ensure they're performed consistently
with the new AttributionSource arguments.  Note that "for data
delivery" isn't the best name; it's designed to represent that the
requested action was performed and should result in the relevant
appop being noted for the caller.

This change has the positive side effect of ensuring that all
interfaces are consistently enforcing the BLUETOOTH_CONNECT
permission, even in the case where BLUETOOTH_PRIVILEGED is also
required; this is what ensures that revoking the "Nearby devices"
permission takes effect for all callers.

Additionally, standardizing on enforcing permissions closer to the
AIDL entry point reduces the need for @RequiresPermission annotations
to be carried around inside the Bluetooth stack.

Bug: 183626112
Test: atest BluetoothInstrumentationTests
Change-Id: I8023dda654e325b8bfa2f0cdb994ad63a2b429d4
2021-04-24 08:31:43 -06:00
Sudheer Shanka
f8ebc39f7d Merge "Update a permission to be role based." into sc-dev 2021-04-24 03:24:57 +00:00
TreeHugger Robot
e723159e6b Merge "Camera: Rename the extension latency query" into sc-dev 2021-04-23 23:40:42 +00:00
Emilian Peev
fdd8754d88 Camera: Rename the extension latency query
Include the latency time unit as part of the method
name.

Bug: 186240766
Test: Successful build
Change-Id: I4e728623c46429c03d7fd1d2720b6d2e171b02cb
2021-04-23 13:48:43 -07:00
Jeff Sharkey
43cc358fa0 Merge changes from topic "btapiattribution" into sc-dev
* changes:
  More AttributionSource plumbing.
  Pass attribution source to BT APIs.
2021-04-23 19:38:54 +00:00
Jeff Sharkey
efe1110be8 More AttributionSource plumbing.
To prepare for future work which will plumb AttributionSource values
through all remaining AIDLs, we need profiles to interact directly
with the specific BluetoothAdapter they were created from.  This is
how we'll ensure that the relevant AttributionSource can be chained
down from the original Context they're obtained from.

This change also marks getDefaultAdapter() as deprecated to clearly
communicate that BluetoothManager.getAdapter() is the best-practice
path to obtaining a correctly scoped BluetoothAdapter instance.

Bug: 183626112
Test: atest BluetoothInstrumentationTests
Change-Id: I1e15170d7679019bbb6e396279d6e633e3dad4d6
2021-04-23 08:51:49 -06:00
Galia Peycheva
85bb3e4da0 Use global setting instead of forceWindowBlurDisabled
This CL removes the existing TestApi
WindowManager#setForceCrossWindowBlurDisabled and replaces it
with Settings.Global#ENABLE_WINDOW_BLURS.

Bug: 14186649
Test: m && atest BlurTests
Change-Id: Ia15b7932ea973a9ed195c507558cdc71f194b366
2021-04-23 11:13:43 +02:00
Vadim Caen
7817164210 API to override the splashscreen theme
By default, the SplashScreen uses the manifest theme.
This API allows user to change the theme used for the splashcreen for
the whole application.

Test: atest CtsWindowManagerDeviceTestCases:SplashscreenTests#testOverrideSplashscreenTheme
Bug: 185109768

Change-Id: I64e24910f6529a0ea2867b67d7e5963b971164b4
2021-04-23 10:53:59 +02:00
TreeHugger Robot
efc7e4c0f0 Merge "Add api to propagating translation capability updates." into sc-dev 2021-04-23 00:39:27 +00:00
Adam He
e5c140a59d Add api to propagating translation capability updates.
This change adda the apia in the TranslationService that allows to
update the TranslationCapability to the registered clients. This
change doesn't contain the register part in the TranslationManager,
the change will be done on the next change.

Bug: 176208267
Test: atest CtsTranslationTestCases
Test: manual verification
CTS-Coverage-Bug: 182990474

Change-Id: Iec7b3dc30f99985415162394d0e64d8e825ea5d9
2021-04-22 14:54:21 -07:00
TreeHugger Robot
386e8ba090 Merge "media: polish EncoderProfiles" into sc-dev 2021-04-22 18:03:17 +00:00
Brad Ebinger
75beeaee6f Merge "Use a typesafe pattern for SIP Delegate configurations" am: 0305ec6109 am: f3e197f2b1 am: bb7fc790f8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682947

Change-Id: Iae7d0c1e64a37e8b76c0e34afe71a6cbc042c27b
2021-04-22 17:13:38 +00:00
Evan Severson
171fe09c3c Merge "Remove package manager feature for toggles" into sc-dev 2021-04-22 16:38:36 +00:00
Saumya Pathak
8bc88258ab Merge "Renaming sharesMediaWithParent on API feedback" into sc-dev 2021-04-22 16:15:55 +00:00
Brad Ebinger
0305ec6109 Merge "Use a typesafe pattern for SIP Delegate configurations" 2021-04-22 15:57:15 +00:00
TreeHugger Robot
557f9e056e Merge "Expose vibration primitives durations in Vibrator" into sc-dev 2021-04-22 15:44:10 +00:00
Jean-Michel Trivi
ec16222b30 Merge "AudioManager: add API for mode listener" into sc-dev 2021-04-22 13:53:02 +00:00
Yan Yan
fcadf51f2c Merge changes from topics "encrypted-tunnel-interface", "iketunnelparams", "vcn-encrypted-tunnel" am: bc545c8a8a am: 7a52d5a3eb am: 1df96ea6ac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1652997

Change-Id: If056d1a90cc4dce3882168ca23302fcd086b40ae
2021-04-22 10:08:28 +00:00
Yan Yan
30dd69e144 Create TunnelConnectionParams interface am: 83956e2a5d am: 586eca54de am: bf54f022db
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1654113

Change-Id: I76bec559bfad6b36c7533d1b76b09fc474c3883e
2021-04-22 10:08:03 +00:00
Yan Yan
586eca54de Create TunnelConnectionParams interface am: 83956e2a5d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1654113

Change-Id: I0c67adb36b0bf69729a40a46eb2dd018db308312
2021-04-22 09:13:35 +00:00
Yan Yan
bc545c8a8a Merge changes from topics "encrypted-tunnel-interface", "iketunnelparams", "vcn-encrypted-tunnel"
* changes:
  Replace VcnControlPlaneConfig with TunnelConnectionParams
  Convert TunnelConnectionParams to/from PersistableBundle
  Create TunnelConnectionParams interface
2021-04-22 08:39:20 +00:00
Philip Junker
463493f57d Merge "Add TestApi to suppress other LightsSession clients" into sc-dev 2021-04-22 08:04:21 +00:00
Yan Yan
4eaa894d84 Replace VcnControlPlaneConfig with TunnelConnectionParams
Use the more generic object TunnelConnectionParams in VCN.
TunnelConnectionParams may also be used in VPN in the future.

Test: atest FrameworksVcnTests
Bug: 180664474
Change-Id: Ie433f9df614e1f51cdff200d915b68b61e5ca35e
2021-04-21 22:52:22 -07:00
Yan Yan
83956e2a5d Create TunnelConnectionParams interface
TunnelConnectionParams represents configurations for setting up a
secure encrypted tunnel with a remote endpoint. TunnelConnectionParams
will be used to configure a VCN and will be used for VPN configuration
in the future.

Bug: 180664474
Test: make update-api
Change-Id: Ic8e5c8535e84971517f16c54ce8b8645cfc7f944
2021-04-21 22:48:21 -07:00
Lajos Molnar
4ef563a2a5 media: polish EncoderProfiles
Made inner classes private.
Added IntDef annotations (also to related CamcorderProfiles methods).
Deprecated CamcorderProfiles.get methods.

Bug: 184714224
Test: atest CamcorderProfileTest
Change-Id: Ibbacb7d3c5f3558f82c109bf36a64f6a3e369b31
2021-04-21 22:20:37 -07:00
TreeHugger Robot
bf8262b57d Merge "Expose carrier privilege rules certificates as @TestApi." into sc-dev 2021-04-22 03:36:21 +00:00
Lorenzo Colitti
609f5cff0b Merge "Hide NetworkPolicyManager.blockedReasonsToString API." am: 0549ca0217 am: fe78ceab36 am: 8027b42fe6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682220

Change-Id: If0d8f99d618173d707d2f473d4f6634c3461f0ca
2021-04-22 03:29:41 +00:00
Nate Myren
08635fe057 AudioManager: add API for mode listener
New API to add/remove a listener for changes to the audio
mode (see existing AudioManager.getMode() API).

Bug: 184891081
Test: atest android.media.cts.AudioModeListenerTest
Change-Id: I0be07d577c7497066b61a1573752343227605fd7
2021-04-21 20:19:46 -07:00
Aaron Huang
0924e0d9d6 Merge "Add getters to UnderlyingNetworkInfo" into sc-dev 2021-04-22 03:09:41 +00:00
Benedict Wong
fbc23c6adb Merge changes I64b56575,I40553a7b am: 80afe1eeee am: f595e45401 am: 0b3c038764
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682062

Change-Id: I50cb828d54b8f7669c33945c7cef8a366c7c316c
2021-04-22 02:50:04 +00:00
Lorenzo Colitti
0549ca0217 Merge "Hide NetworkPolicyManager.blockedReasonsToString API." 2021-04-22 02:36:11 +00:00
Treehugger Robot
fc8683e284 Merge "Add Japanese Photo L size" am: d8464708f6 am: edea4fa173 am: 6275761bbd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1527008

Change-Id: I12470fa6debd0ffb49ba18fdf9e1e5cef49a363a
2021-04-22 01:34:55 +00:00
Benedict Wong
80afe1eeee Merge changes I64b56575,I40553a7b
* changes:
  Expose API for retrieval of subscription groups with VCN configured
  Add support for retrieval of configured VCNs by carrier privilege
2021-04-22 01:31:11 +00:00
Brad Ebinger
06f96d3733 Use a typesafe pattern for SIP Delegate configurations
Moves SipDelegateImsConfiguration -> SipDelegate configuration
in order to not break existing impls and defines the new typesafe
alternative for sip configurations instead of bundles.

Bug: 181764849
Test: atest  CtsTelephonyTestCases
Change-Id: I5040f30575f7b774d6ec1e28183f6812b420087f
2021-04-22 00:26:13 +00:00
Sudheer Shanka
9d716ca573 Update a permission to be role based.
ACCESS_BLOBS_ACROSS_USERS is updated to be
role based so that apps holding assist role
can have this permission granted.

Bug: 175844032
Test: manual
Change-Id: Iece8cc8caff439538391585af7199892baac235e
2021-04-21 17:15:53 -07:00
TreeHugger Robot
c8bd865328 Merge "Add the REGISTRATION_TECH_NR Tech type" into sc-dev 2021-04-22 00:15:46 +00:00
Treehugger Robot
d8464708f6 Merge "Add Japanese Photo L size" 2021-04-22 00:15:34 +00:00
Joy Babafemi
8f671e175f UWB: Add setUwbEnabled System API.
Test: Test updated for AdapterStateListener.java
Bug: 183254940

Merged-In: I269d24c995d8064f8e62c80a1566fa0646e96580
Change-Id: I269d24c995d8064f8e62c80a1566fa0646e96580
2021-04-21 22:26:05 +00:00
Jeff Sharkey
d4b3fcac16 Merge "Annotations for Bluetooth broadcast intents." into sc-dev 2021-04-21 22:23:48 +00:00
TreeHugger Robot
373fafb24b Merge "Camera: Enable camera extension latency range queries" into sc-dev 2021-04-21 22:23:35 +00:00