Commit Graph

565875 Commits

Author SHA1 Message Date
Wonsik Kim
f65fcbdbbd media: make ParameterDescriptor static
Bug: 183242434
Test: builds
Change-Id: Ifed0209d36f6d40b0a9fb95008b74eff5c96c742
2021-03-24 16:04:41 -07:00
Benedict Wong
01a61615d8 Merge "Trigger re-evaluation of privileged apps upon app install/uninstall" 2021-03-24 21:09:19 +00:00
Hui Wang
11149deba4 Merge "Integrate RCS provisioning updates into SipTransport" 2021-03-24 21:05:46 +00:00
Janis Danisevskis
11c25156a2 Merge "Keystore 2.0: Disable BackendBusyException." 2021-03-24 19:02:46 +00:00
Janis Danisevskis
e36f515441 Merge "Keystore 2.0: Add onDeviceOffBody to AndroidKeyStoreMaintenance." 2021-03-24 18:32:35 +00:00
Yi Kong
096f175b7f Merge "profcollect: Broadcast intent when a profile report is ready to upload" 2021-03-24 17:59:48 +00:00
Jayachandran Chinnakkannu
bd3a33ed9f Merge "Add 5G/NR QOS support" 2021-03-24 17:44:48 +00:00
Treehugger Robot
59035dd21c Merge "DO NOT MERGE MediaCodec: add methods to query/subscribe vendor parameters" 2021-03-24 17:36:33 +00:00
Treehugger Robot
8c03c2a82e Merge "Move BLOCKED_REASON_* constants from NPMS into ConnectivityManager." 2021-03-24 17:22:50 +00:00
Sudheer Shanka
d533fa78b1 Move BLOCKED_REASON_* constants from NPMS into ConnectivityManager.
These constants will now be including all the reasons for why an
uid's network access can be blocked, instead of only the
restrictions that could be imposed by NPMS.

Bug: 183473548
Test: atest ./tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Merged-In: I4c544415e12adf442fd2415c371b1b70a39c3aa4
Change-Id: I6dcea43fbefa9eac8b5a971b822a5be5422a54b4
2021-03-25 01:33:26 +09:00
Janis Danisevskis
5d1c590723 Keystore 2.0: Disable BackendBusyException.
This disables throwing BackendBusyException in Android S. Instead we
keep the legacy behavior of spinning until an operation can be created.

Bug: 180133780
Test: N/A
Change-Id: I802148c59338b91e751498607fa903e156e40aa6
2021-03-24 09:22:56 -07:00
Treehugger Robot
8c9b5df98a Merge "Don't try to report non-existent stats" 2021-03-24 16:12:45 +00:00
Yi Kong
61db7cd45e profcollect: Broadcast intent when a profile report is ready to upload
The feature is guarded by profcollect_native_boot/upload_report and is
turned off by default.

Test: manual, fake-ota
Bug: 79161490
Change-Id: I0fc59e662a5ae821f66e72ec11f189a842244960
2021-03-25 00:03:24 +08:00
Charles Chen
4eca6d0c5c Merge "Add OWNERS for ComponentCallbacksController" 2021-03-24 10:05:52 +00:00
Lucas Lin
ac06b167f9 Merge "Replace CM#isNetworkSupported() with checking FEATURE_TELEPHONY" 2021-03-24 04:02:56 +00:00
Wonsik Kim
197e1a7f5e DO NOT MERGE MediaCodec: add methods to query/subscribe vendor parameters
Bug: 183242434
Test: atest android.media.cts.MediaCodecTest
Change-Id: Iaef8f8aef564dc8cda84a83f6cc628d87649b43d
2021-03-24 02:51:59 +00:00
Chiachang Wang
b2d5ab569c Merge "Remove the hidden NetworkRequest usage" 2021-03-24 02:41:27 +00:00
Janis Danisevskis
fd5cba4483 Keystore 2.0: Add onDeviceOffBody to AndroidKeyStoreMaintenance.
Also have KeyStore.onDeviceOffBody call
AndroidKeyStoreMaintenance.onDeviceOffBody.

Test: N/A
Bug: 171305684
Change-Id: I0b01764bfc4c5828d17ccfffb4f8dad5f3bcea6d
2021-03-23 19:18:55 -07:00
Jayachandran C
af09816c25 Add 5G/NR QOS support
Bug: 155176305
Bug: 182317794
Test: atest ConnectivityServiceTest
      atest QosCallbackTrackerTest

Change-Id: Idf6d8a7c3b80bc50a2c1244ceaefea9381d40c2f
2021-03-23 19:14:21 -07:00
Rambo Wang
c289c9b0a2 Merge changes from topics "ServiceState#dataRegState", "ServiceState#duplexMode"
* changes:
  Export ServiceState#DataRegState into telephony provider
  Public ServiceState#duplexMode in telephony provider
2021-03-24 01:22:51 +00:00
Benedict Wong
f1a81b04b1 Merge "Check carrier privilege permissions with package name" 2021-03-24 01:19:35 +00:00
Benedict Wong
62f01dfbd5 Trigger re-evaluation of privileged apps upon app install/uninstall
This change registers listeners for package installs and uninstalls,
ensuring that changes to app install statuses are reflected in the VCN

Bug: 183465258
Test: atest FrameworksVcnTests
Change-Id: I8d2afd351208cac12392bf945439845cc521b7ec
2021-03-23 17:42:12 -07:00
Benedict Wong
d68c1f6cb2 Check carrier privilege permissions with package name
This change ensures that carrier privileges for the right packages are
always checked.

Bug: 183465199
Test: atest FrameworksVcnTests
Change-Id: If46c660e54870529868a7b4b1e271c9009b81d45
2021-03-23 17:42:12 -07:00
Hui Wang
3f7fe40e49 Integrate RCS provisioning updates into SipTransport
Bug: 173828167
Test: atest TeleServiceTests:com.android.phone.RcsProvisioningMonitorTest
Merged-In: Ifabbe6a4c4cccef85c5c1b43fcb7876bad33e226
Change-Id: Ifabbe6a4c4cccef85c5c1b43fcb7876bad33e226
2021-03-24 00:21:28 +00:00
Jordan Liu
d7858116ca Merge "Add resource to disable cb" 2021-03-23 22:23:19 +00:00
Tianjie Xu
d0fe0c721d Merge "Clear caller id when reading device config" 2021-03-23 22:10:38 +00:00
Treehugger Robot
abffe558e3 Merge changes from topic "audiomanagertest_cts_dnd"
* changes:
  [Notification] Fix NotificationManagerServiceTest
  [Notification] Fix Notification channel Dnd bypass for multiusers
2021-03-23 20:48:21 +00:00
John Reck
66fc99d578 Merge "Fix thread-shared field evades lock acquisition reported by Coverity" 2021-03-23 19:55:30 +00:00
Tianjie
18fb750cc5 Clear caller id when reading device config
Reading the DeviceConfig with the gmscore call id will result in a
security exception.

Also clear the caller identity when before calling into locksettings
to armRebootEscrow. This is inline with the other usage for RoR
preparation.

Bug: 183475757
Test: trigger RoR from gmscore
Change-Id: Ifc65625fc7aba05d016c127cf6672922a5ffb000
2021-03-23 12:36:14 -07:00
Janis Danisevskis
faabd1a836 Merge "Keystore 2.0: Add @IntDef for Keystore namespaces." 2021-03-23 19:35:00 +00:00
James Lin
fe4b99ee22 Merge "UCE OPTIONS APIs updated" 2021-03-23 18:47:44 +00:00
Zongheng Wang
ab2c1e5777 Merge "Replace createSmsSubmitPdu with createFromNativeSmsSubmitPdu" 2021-03-23 18:47:36 +00:00
Jack He
b4d4127efb Merge "ScanFilter.setDeviceAddress: Should send deviceAddress instead of mDeviceAddress to the next level" 2021-03-23 18:02:22 +00:00
Chen Chen
feab55912c ScanFilter.setDeviceAddress: Should send deviceAddress instead of mDeviceAddress to the next level
Bug: 183409081
Test: build and run

Change-Id: I2d25d21b0f143fc7362679e0094455c9132fda9d
2021-03-23 17:43:36 +00:00
Cody Kesting
46c10cbc4d Merge changes from topic "vcn-status-changed"
* changes:
  Rename VcnStatusCallback#onVcnStatusChanged.
  Reevaluate VcnGatewayConnections on receiving new configs.
2021-03-23 17:10:51 +00:00
Jordan Liu
61c1f3c415 Add resource to disable cb
Bug: 176557108
Test: manual
Change-Id: I060836c10b60638e4155670e16cf6475e6740665
Merged-In: I060836c10b60638e4155670e16cf6475e6740665
2021-03-23 09:54:23 -07:00
Rambo Wang
cff9760e07 Export ServiceState#DataRegState into telephony provider
Keep ServiceState#getDataRegState hide. Apps can get the same
info from telephony provider without loation permission.

Bug: 182601774
Test: atest com.android.phone.ServiceStateProviderTest
Change-Id: I1ba72a5b767761d2f7bd1b52459a0c9d101061a2
2021-03-23 09:33:21 -07:00
Rambo Wang
4481b5181e Public ServiceState#duplexMode in telephony provider
ServiceState#getDuplexMode is a public API. Expose the same
info through telephony provider to let applications retreive
it without location permission.

Bug: 182601774
Test: atest com.android.phone.ServiceStateProviderTest
Change-Id: I19128c938993f351533aca9a8e1a1356e21eb30e
2021-03-23 09:27:42 -07:00
Alex Light
6b3d3b38ba Don't try to report non-existent stats
During OTAPreopt we don't have compilation stats due to the way we
compile things. Don't attempt to report stats in this case since it
will cause an NPE.

Test: manual OTA on a blueline
Bug: 181182967
Bug: 177694884
Change-Id: Ie2eb4d7e2ab562d4436a605bcbdd2ea17517dfc3
Merged-In: Ie2eb4d7e2ab562d4436a605bcbdd2ea17517dfc3
2021-03-23 15:50:45 +00:00
Francois Gaffie
978bb8f810 [Notification] Fix NotificationManagerServiceTest
NotificationManagerServiceTest fails (10 failures) when launched
with different user as 0 (e.g. Automotive platform).
Test could be launched with "--user 0" to fix these test or test
can be adapted not to hardcode user id launching these test.

This CL makes the test adapative to the user id launching unit test.

Bug: 178032672

Test: adb shell am instrument -w -e class com.android.server.notification.NotificationManagerServiceTest com.android.frameworks.tests.uiservices

Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Change-Id: I1f124deafd50d257683667ef986b88df1e4b8a75
Merged-in: I1f124deafd50d257683667ef986b88df1e4b8a75
2021-03-23 15:27:56 +00:00
Francois Gaffie
92a9f5fc1d [Notification] Fix Notification channel Dnd bypass for multiusers
-Permission granted for a given package using shell cmd (user system)
are not sufficient due to a check of notification uid vs packagepreference uid.

-If the packagepreference is deleted then restored, the channel preference
are not taken into account.

Bug: 178032672

Test: CTS/AudioManagerTest

Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Change-Id: Ia26467f27b31bc048bdb141beac7d764fcb27f51
Merged-in: Ia26467f27b31bc048bdb141beac7d764fcb27f51
2021-03-23 15:27:24 +00:00
Rambo Wang
9446a5239f Merge "Expose ServiceState#getDataNetworkType in telephony provider" 2021-03-23 14:26:52 +00:00
Junyu Lai
4e6166801e Merge "Remove the reference of new Network(int) in Vpn.java" 2021-03-23 14:00:35 +00:00
Jack Nudelman
fdad0e26a7 Merge "Require calling package to be allowlisted for thermal mitigation." 2021-03-23 12:53:08 +00:00
Junyu Lai
5b477acbbe Merge "Fix cannot find removeUnwantedCapability on R device" 2021-03-23 12:16:18 +00:00
Chiachang Wang
457f91decf Merge "Correct the logic in NetworkCapabilitiesTest" 2021-03-23 11:46:31 +00:00
Paul Duffin
82cd5382b7 Merge "Remove unnecessary dependency on libcore-platform-compat-config" 2021-03-23 11:17:06 +00:00
junyulai
7472deb59b Remove the reference of new Network(int) in Vpn.java
Test: atest FrameworksNetTests
Bug: 182963397
Merged-In: I4176dd1298ad8d8e8407eb95b2e6cbb8faf4bc17
Change-Id: I4176dd1298ad8d8e8407eb95b2e6cbb8faf4bc17
  (cherry-picked from ag/13959430)
2021-03-23 10:51:48 +00:00
Chiachang Wang
9327a57876 Merge "Add NetworkRequest.Builder creating from an existing instance" 2021-03-23 10:46:20 +00:00
Treehugger Robot
3972f1c61c Merge "Replace hidden API usages of NetworkCapabilities" 2021-03-23 10:07:46 +00:00