Commit Graph

5377 Commits

Author SHA1 Message Date
TreeHugger Robot
17facee4f3 Merge "Add new features to tuner." 2021-12-23 08:04:13 +00:00
Hongguang
38904f8b24 Add new features to tuner.
*) Support scan unlock event
*) Support get frontend hardware info.
*) Add scIndexMask to MediaEvent.
*) Support more AAC formats.
*) Move Lna to ITuner.

Bug: 203389496
Bug: 184017033
Bug: 202978951
Bug: 205265630
Bug: 203623028
Test: atest android.media.tv.tuner.cts on AIDL and HILD HALs.
Change-Id: Id1bf4f13e7afb5f4264bfc67ca7d822848c6e803
2021-12-23 04:41:39 +00:00
Calvin Pan
55f8b4d30c Merge "Rename TextAttributeBuilder" 2021-12-23 02:03:54 +00:00
TreeHugger Robot
28049a6dc2 Merge "Create new DataEnabledReasons for for DataSettingsManager" 2021-12-23 01:44:13 +00:00
Henry Fang
58cc75249a Merge "Add methods to get vendor extension interfaces" am: 1d6f1c9d04 am: 8ed7a545a7 am: bd75d74c59 am: 39dbf1ac0c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1826093

Change-Id: Icfeb8b0a1cddf488979b44fe726e9e68ddf03406
2021-12-22 23:02:37 +00:00
Henry Fang
39dbf1ac0c Merge "Add methods to get vendor extension interfaces" am: 1d6f1c9d04 am: 8ed7a545a7 am: bd75d74c59
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1826093

Change-Id: Id5afa9a3006a1f10228d1842892d317e0b93dac8
2021-12-22 22:50:14 +00:00
Henry Fang
1d6f1c9d04 Merge "Add methods to get vendor extension interfaces" 2021-12-22 22:05:16 +00:00
Sarah Chin
419e4ff03a Create new DataEnabledReasons for for DataSettingsManager
DataEnabledSettings used an internal DataEnabledChangedReason when
notifying data enabled was changed. For DataSettingsManager, sync the
reasons with TelephonyManager#DataEnabledReasons and remove the internal
reaons.

Test: atest FrameworksTelephonyTests
Bug: 204309297
Change-Id: I8d6fd13e319ce165e25f2afd93bf9884fbf22667
2021-12-22 13:32:52 -08:00
Jeff Sharkey
e9a953fa2a Merge "Add a receiver exported flag to mark unaudited runtime receivers" 2021-12-22 21:24:08 +00:00
Varun Bansal
02853cf179 Merge "Add tristate permission support for body sensor permission" 2021-12-22 17:09:55 +00:00
Tom Natan
f6471579c5 Merge "Add API methods for adding/clearing compat overrides for multiple apps on release builds" 2021-12-22 13:14:11 +00:00
tomnatan
6162b70349 Add API methods for adding/clearing compat overrides for multiple apps on release builds
This is important in cases where we want to add/clear overrides for
multiple apps at the same time, without having to make a binder call for
each package and have the compat config save the changes to file and
invalidate the cache each time.

Bug: 199730202
Test: atest FrameworksServicesTests:CompatConfigTest
Test: atest FrameworksServicesTests:PlatformCompatTest
Change-Id: I3b4a3d9db12fdf99eb78c486bdd8e248fff92e50
2021-12-22 10:27:41 +00:00
TreeHugger Robot
2534fb70db Merge "Support DVB-T Cell Ids." 2021-12-22 10:18:40 +00:00
Hongguang
8d1e01bbfc Support DVB-T Cell Ids.
Bug: 210358443
Test: atest android.media.tv.tuner.cts
Change-Id: I99d947903ed8b44d53e27c80a11c5a23ffaaddd4
2021-12-21 23:23:40 -08:00
varun
4379a4cb56 Add tristate permission support for body sensor permission
Currently only states supported for body sensor permissions are allow
and deny. This change adds support for allowing the permission only
while the app is in foreground by adding a new permission only for
background. This structure is similar to the current state for location
permissions.

BYPASS_INCLUSIVE_LANGUAGE_REASON=Referring to an existing method failing
the inclusive language check.

Test: Manual atest
Change-Id: I8fcab6c0c884b79291586f64fd221e40982bc4c5
Bug: 208305481
2021-12-22 05:16:40 +00:00
Michael Groover
7970fff4cd Add a receiver exported flag to mark unaudited runtime receivers
Android T allows apps to declare a runtime receiver as not exported
by invoking registerReceiver with a new RECEIVER_NOT_EXPORTED flag;
receivers registered with this flag will only receive broadcasts from
the platform and the app itself. However to ensure developers can
properly protect their receivers, all apps targeting T or later
registering a receiver for non-system broadcasts must specify either
the exported or not exported flag when invoking #registerReceiver;
if one of these flags is not provided, the platform will throw a
SecurityException. The platform and system apps have several locations
where a receiver is registered for non-system broadcasts that have
not yet been audited to determine if they should be exported. This
commit introduces a temporary flag that can be used to meet the
new requirement that a flag be specified while also marking the
receiver as needing an audit before the T release to determine
whether the receiver should be exported or not.

Bug: 161145287
Test: atest ContextTest
Change-Id: Ie9d1e2ad6e2d831c374437ed65d085711b7dc3b7
2021-12-21 16:42:47 -08:00
David Samuelson
3f8c511822 Merge "Add initial support for GameSessions and corresponding unit tests." 2021-12-21 22:19:47 +00:00
TreeHugger Robot
971ebed248 Merge "Telephony data refactoring API changes" 2021-12-21 20:41:49 +00:00
Treehugger Robot
951422f828 Merge "Adding mustPlayShutterSound to break Cam2 dependency on Cam1" am: cb6c04738b am: 9b83844f48 am: 401703e3aa am: ecf6241e5c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1911999

Change-Id: If8f30c48857c037caaf3d6b264f3f3433e6a28e1
2021-12-21 18:53:09 +00:00
Treehugger Robot
ecf6241e5c Merge "Adding mustPlayShutterSound to break Cam2 dependency on Cam1" am: cb6c04738b am: 9b83844f48 am: 401703e3aa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1911999

Change-Id: Ib9ab9f740e096ce901155ed73a40504bd7ed9863
2021-12-21 18:24:10 +00:00
TreeHugger Robot
75f3dc479f Merge "Add config value and a new permission for SafetyCenter." 2021-12-21 18:03:26 +00:00
Treehugger Robot
cb6c04738b Merge "Adding mustPlayShutterSound to break Cam2 dependency on Cam1" 2021-12-21 17:30:31 +00:00
Jack Yu
3c3c522cfb Telephony data refactoring API changes
DataProfile is the parameters used for setup data, but DataProfile
is almost identical as ApnSetting. So move ApnSetting into
DataProfile, also add TrafficDescriptor, which is specific to
5G SA network.

Also added a new state for data handover between IWLAN and cellular.

Bug: 196597630
Test: CTS && atest FrameworksTelephonyTests
Change-Id: I3f188921b92b4a14c323819ff58ab9ae57488937
2021-12-21 08:57:59 -08:00
David Samuelson
face3dd479 Add initial support for GameSessions and corresponding unit tests.
- Define GameSession & GameSessionService Game Service provider SPIs.
 - Implement support for binding to GameSessionService, creating
   GameSessions, and destroying GameSessions.
 - Refactor Game Service provider selection into
   GameServiceProviderSelectorImpl. Parse and validate the
   declared GameSessionService associated with the GameService.

Test: atest FramworksMockingServicesTests and manual e2e
Bug: 204504879
Bug: 202414447
Bug: 202417255
CTS-Coverage-Bug: 206128693
Change-Id: I301579d5c7426a55c442b7ae04aacbedf293a4d6
2021-12-21 16:08:22 +00:00
William Escande
d9340d5854 Merge "Add SystemApi to AudioManager method" am: 837956204e am: 8cdb8e97fb am: 6afaa06a05 am: c9dc2fe310
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1863722

Change-Id: I116e186a347cd1e6e564f146ff6099a410f67629
2021-12-21 14:26:11 +00:00
William Escande
c9dc2fe310 Merge "Add SystemApi to AudioManager method" am: 837956204e am: 8cdb8e97fb am: 6afaa06a05
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1863722

Change-Id: I1cab8d1e87f82f4c939b5e27803c16369de2c0e6
2021-12-21 14:14:05 +00:00
Aaron Huang
9a60501560 Merge "Make IpSecManager.DIRECTION_FWD @SystemApi" am: 644ab1a544 am: 453ce239aa am: 63c911b9d5 am: e439212deb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1928463

Change-Id: Id0f002e61d5fa6df4e3712b22e1911e4acce2b43
2021-12-21 14:01:09 +00:00
Aaron Huang
e439212deb Merge "Make IpSecManager.DIRECTION_FWD @SystemApi" am: 644ab1a544 am: 453ce239aa am: 63c911b9d5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1928463

Change-Id: Ie524806023ddceb4481831a05a4750112f4be1b7
2021-12-21 13:48:51 +00:00
William Escande
837956204e Merge "Add SystemApi to AudioManager method" 2021-12-21 13:23:13 +00:00
TreeHugger Robot
8a42ad2013 Merge "Address tuner API review comments" 2021-12-21 01:39:30 +00:00
William Escande
a05cb45b0e Add SystemApi to AudioManager method
getHwOffloadFormatsSupportedForBluetoothMedia is convert to a SystemApi
for module only (only use in BT)

Change-Id: Iae212ff5fd2159198543c0b877c2e56e3aefdb7c
Test: Build
Bug: 190422401
Tag: #refactor
2021-12-21 00:51:38 +01:00
Jan Tomljanovic
8066d1ef7b Add config value and a new permission for SafetyCenter.
Also giving it to the Shell for Cts purposes.

Test: atest CtsSafetyCenterTestCases
Bug: 208421513

Ignore-AOSP-First: Not announced yet, and need to use a permission
that hasn't been merged in AOSP

Change-Id: I2c63c54efac0add7c412fa43b77fa18ba2e486c3
2021-12-20 15:59:38 +00:00
Hui Wang
c1183c038e Merge "Add new Telephony feature flags and update API annotations" 2021-12-20 15:50:57 +00:00
Aaron Huang
935cafbabe Make IpSecManager.DIRECTION_FWD @SystemApi
IpSecManager.DIRECTION_FWD is used by VcnGatewayConnection and
it will be not visible to platform after IpSec was moved into
Connectivity mainline module. Therefore, make DIRECTION_FWD
@SystemApi so that it can be used by VcnGatewayConnection.

Bug: 204153604
Test: FrameworksNetTests
Change-Id: I80dc2a5b4940504820cee0d8e2d2e59ef3fcca18
2021-12-19 02:44:24 +08:00
John Wu
7a6f2c8e23 Merge "Update system package broadcasts for app ID changes" 2021-12-17 01:31:04 +00:00
Nathan Harold
0d631acac1 Merge changes from topic "usage-setting"
* changes:
  Expose Usage Setting API
  Add DeviceConfigs for Usage Setting
  Add set/getUsageSetting APIs
  Update SubscriptionInfo
  Add Usage Setting to SIMINFO
  Add Use Setting Constants
  Add a carrier config for cellular usage setting
2021-12-16 23:54:50 +00:00
Etienne Ruffieux
5251dfbc2a Merge "Moved AttributionSource related APIs in AttributionSource" am: 70d456d06c am: 52ddc063b0 am: e5d5eefb16 am: 52dfe57f07
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1922817

Change-Id: I60fa5ecea7c9b1bffbd8bfaf0ed85cafb80fa5bc
2021-12-16 22:52:35 +00:00
John Wu
4776cdee49 Update system package broadcasts for app ID changes
Whenever a package's app ID has changed, the system broadcasts should
behave as if the package is fully uninstalled and then re-installed
subsequently. Additional extras are added to indicate the app ID change
to allow components to handle this case specifically.

Test: atest SharedUserMigrationTest#testDataMigration
Bug: 179284822
Change-Id: Ie00eaed1f0a704876ea76aa0e5ae2a1b21f199df
2021-12-16 14:48:56 -08:00
Kholoud Mohamed
ddb7e26230 Merge "Add new permission UPDATE_DEVICE_MANAGEMENT_RESOURCES" 2021-12-16 22:24:49 +00:00
Etienne Ruffieux
52dfe57f07 Merge "Moved AttributionSource related APIs in AttributionSource" am: 70d456d06c am: 52ddc063b0 am: e5d5eefb16
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1922817

Change-Id: Id6bcfb0cca120540dd251dda22c713539c5c2b8c
2021-12-16 22:08:37 +00:00
TreeHugger Robot
ac68facca4 Merge "Scribe in IMF: Handwriting support API 1/N" 2021-12-16 21:36:32 +00:00
Sarah Chin
3486dfbfbe Merge "Update unthrottleApn calls to take in DataProfile" 2021-12-16 21:31:57 +00:00
Henry Fang
8bbec8b0d0 Merge "TvProvider API standardization for ARIB and DVB TvProvider" am: 525fc0dccb am: 4851cbef3e am: 1475f07281 am: 573fd786c9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1842094

Change-Id: Ie554f98c35a4962d462a446a09b469300bd06cdf
2021-12-16 21:26:41 +00:00
Etienne Ruffieux
70d456d06c Merge "Moved AttributionSource related APIs in AttributionSource" 2021-12-16 21:16:58 +00:00
Henry Fang
573fd786c9 Merge "TvProvider API standardization for ARIB and DVB TvProvider" am: 525fc0dccb am: 4851cbef3e am: 1475f07281
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1842094

Change-Id: Icb52ad9d3f7a63fd08a0ab3353b57669c2144721
2021-12-16 21:08:38 +00:00
Nathan Harold
dff34b3a6a Expose Usage Setting API
Expose APIs as follows:
-A CarrierConfig key that allows carriers to override the
 device's usage setting.
-An API that allows callers to query the current usage setting
 for a given subscription.
-A set of constants to describe the usage setting.

Bug: 210023167
Test: atest SubscriptionManagerTest#testCellularUsageSetting;
Test: atest CarrierConfigManager#testGetConfig
Change-Id: I62534d6f304a297f646d1dd4b008a9a4d4a30560
2021-12-16 13:08:16 -08:00
Hunter Knepshield
d95546ffed Merge "Create CarrierPrivilegesListener callback." am: d54e1126ab am: e66c82b449 am: c7a0de9f6f am: 93a25e9cd1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1912993

Change-Id: Ica9fba211d8cc8c866a370a83c57e070dd6f338c
2021-12-16 20:48:34 +00:00
Hunter Knepshield
93a25e9cd1 Merge "Create CarrierPrivilegesListener callback." am: d54e1126ab am: e66c82b449 am: c7a0de9f6f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1912993

Change-Id: Id89455067252fd32f2c8890af120c4241185fcf7
2021-12-16 19:48:39 +00:00
Yasin Kilicdere
5f8f93b97e Merge "Add settings entrypoint to add a supervised user" 2021-12-16 19:45:24 +00:00
Henry Fang
525fc0dccb Merge "TvProvider API standardization for ARIB and DVB TvProvider" 2021-12-16 19:34:31 +00:00