529396 Commits

Author SHA1 Message Date
Nikita Ioffe
ec0f77a84e Merge "permission: Set min_sdk_version to "30"" 2020-11-12 21:23:10 +00:00
Hall Liu
9f52302f07 Merge "Move usage of Runnable::run to TelephonyUtils" 2020-11-12 19:11:58 +00:00
Treehugger Robot
9b2537195c Merge "Use name instead of package name" 2020-11-12 18:00:33 +00:00
Nikita Ioffe
6836898311 permission: Set min_sdk_version to "30"
Just a cosmetic cleanup since "R" resolves to 30 as well.

Test: m
Bug: 171330443
Change-Id: I83dcc7be1ff18e6429955a0fee2596d8b0e19a25
2020-11-12 17:59:38 +00:00
Treehugger Robot
47e0d9e30b Merge "Keystore 2.0 SPI: Add forEach for int arrays to ArrayUtils" 2020-11-12 17:57:42 +00:00
Allen Su
b04ef45226 Merge "Declare audio codec bitrate and bandwidth" 2020-11-12 17:08:42 +00:00
Zhuying Li
eac499d10d Use name instead of package name
Can't get package setting info with wrong package name.
The API toStaticSharedLibraryPackageName will build correct package name
with correct information.

Bug: 170699390
Bug: 172232086
Test: manual test pass.
Change-Id: Iad97a3adf19ec37797123070a0662bfc7fc3337c
2020-11-12 16:34:28 +00:00
Janis Danisevskis
cbab0d133b Keystore 2.0 SPI: Add forEach for int arrays to ArrayUtils
This patch adds a forEach function for int arrays to
android.security.keystore.ArrayUtils. A utility function with the
intendet use in Keystore 2.0 Key paramter handling.

Test: None
Change-Id: I2c02b300ee68fcd548c128deb0266fe603226807
2020-11-12 08:03:25 -08:00
Andrei-Valentin Onea
714960f745 Merge "Migrate FILTER_APPLICATION_QUERY" 2020-11-12 13:09:53 +00:00
Anton Hansson
d0fb632e4b Merge "Remove the system-api-stubs-docs target" 2020-11-12 12:28:16 +00:00
Junyu Lai
02bd168520 Merge changes I6a48d4db,I6741c41c,Ifec6bde5,Icd0717c5
* changes:
  Remove unused variables
  Return offloaded traffic when querying from TrafficStats API
  Add hardware tethering traffic in testTethering test
  Remove unused getTetherStats
2020-11-12 08:45:15 +00:00
junyulai
845f3a61ae Remove unused variables
From aosp/537809, variables that used to fetch realtime
stats are defined in NetworkStatsService. These varialbles
are filled by JNI in boot up stage in order to keep
definitions sync with native layer.

However, there is still a copy in TrafficStats.java, and this
copy cannot be filled in boot-up stage since it is in app
process. Besides, making a binder call to fetch these
constants from service is considered an overkill.

Thus, since there is no caller to these variables and callers
should use definitions in TrafficStats, remove these variables.

Test: atest FrameworksNetTests
Bug: 16229221
Change-Id: I6a48d4dbb1b824cfc6c4a47395b2a76aa28cf5c9
2020-11-12 14:22:31 +08:00
junyulai
e5d0585e2c Return offloaded traffic when querying from TrafficStats API
TrafficStats API are being used for querying realtime network
statistics for years. However, on certain devices, some network
traffic are produced by hardware components and not be
able to seen by kernel counters.

Thus, include statistics for those missing network traffic is
necessary. Note that the included statistics might be stale
since polling newest stats from hardware might impact system
health and not suitable for TrafficStats API use cases.

Test: atest FrameworksNetTests TetheringTests
Bug: 16229221

Change-Id: I6741c41cb5145ca8748f9b083b9c15e7e2735681
2020-11-12 14:22:31 +08:00
junyulai
f917b8b786 Add hardware tethering traffic in testTethering test
Test: atest com.android.server.net.NetworkStatsServiceTest#testTethering
Bug: 162292214
Change-Id: Ifec6bde5fd3231f2135f12536c42e42ec6b707de
2020-11-12 14:22:31 +08:00
Sooraj Sasindran
a63c16f36a Provide API to retrive dual connected bandwidth
Provide API to retrive bandwidth per primary carrier
and secondary carrier

Bug: 162373679
Test: New CTS test, unit test, build

Merged-In: I3e8152d22fb9602c7d2ffdee681ac5d69c5dd3fd
Change-Id: I3e8152d22fb9602c7d2ffdee681ac5d69c5dd3fd
2020-11-11 22:17:32 -08:00
lucaslin
113ef80005 Separate 2 tests to verify canBeSatisfiedBy()
In Android R, NetworkSpecifier#satisfiedBy() has changed to
NetworkSpecifier#canBeSatisfiedBy(), but its subclass -
MatchAllNetworkSpecifier hasn't.
In Android S, both of MatchAllNetworkSpecifier and
NetworkSpecifier has changed satisfiedBy() to canBeSatisfiedBy().
So if running the latest CTS on R device, it will verify
NetworkSpecifier#canBeSatisfiedBy() instead of
MatchAllNetworkSpecifier#satisfiedBy() and get the unexpected
result.
The fix is to separate 2 tests to verify canBeSatisfiedBy(), one
is for Android R or older version and the other is for Android
S+.

Bug: 172401624
Test: Run MatchAllNetworkSpecifierTest on Android R and S.
Change-Id: I1391bae9a0fc0298beb8fe80b5f388b492244566
2020-11-12 12:48:16 +08:00
Yi Kong
be52daface Merge "profcollect: Use DeviceConfig to control trace parameters" 2020-11-12 03:42:12 +00:00
Nikita Ioffe
e6ea94960c statsd: Set min_sdk_version to "30"
Just a cosmetic cleanup since "R" resolves to 30 as well.

Test: m
Bug: 171330443
Change-Id: I6c6785b93f64a89633fcc7e64116d7a2f4578d2a
2020-11-12 03:38:38 +00:00
Remi NGUYEN VAN
4c85126591 Merge "Add dependency on modules-utils-build" 2020-11-12 03:32:49 +00:00
Hall Liu
564084cbdb Move usage of Runnable::run to TelephonyUtils
Using Runnable::run in com.android.internal.telephony from this
directory will conflict with any usages from frameworks/opt/telephony
since the compiles apparently scopes method references at the package
level. Move it to TelephonyUtils (which is in the .util sub-package) to
avoid the conflict.

Bug: 156779270
Test: build
Change-Id: I3471162eecde869aea66533de0355b3214859098
2020-11-11 19:02:47 -08:00
David Su
ad8a87b69e Merge "services.net-module-wifi - set min_sdk_level to 30" 2020-11-12 02:53:27 +00:00
Treehugger Robot
412a12977c Merge "Remove UWB RangingParams" 2020-11-12 02:37:44 +00:00
Treehugger Robot
7e42554a0a Merge "Kibosh the NrState Strings" 2020-11-12 01:35:47 +00:00
Tyler Gunn
9da367ace4 Move offered RTP header extension types API.
Moved from ImsCallProfile to MmtelFeature.

Test: Update CTS tests and unit tests.
Bug: 163085177
Change-Id: I9b16b6b17beb1032469d19a214ada0476376d383
2020-11-11 17:26:58 -08:00
Janis Danisevskis
17f24b5799 Merge "Keystore 2.0 SPI: Update KeyInfo and KeyGenParameterSpec" 2020-11-11 23:10:13 +00:00
Nathan Harold
f33864e651 Kibosh the NrState Strings
The toString() method of NetworkRegistrationInfo and
ServiceState are being abused to get info that apps
really should be using: becuase the info can be misleading.

Instead, callers should use ServiceState#getCellBandwidths() and
or the onLinkDownstreamBandwidthKbps() methods from Connectivity
that are part of LinkProperties.

Bug: 172999992
Test: wip
Change-Id: Id4658acd30a50b35d55456ecca19bd92319eeba5
2020-11-11 15:00:48 -08:00
sqian
dfb7ca01a8 Introduce hasCompanionInCallServiceAccess API
It retruns whether the caller has InCallService access for the companion
 apps. A companion app is an app associated with a physical wearable
 device via the {@link android.companion.CompanionDeviceManager} API.

Test: cts
Bug: 169595473
Change-Id: Id659bfae8556e965d3c31613848bde808f28a858
Merged-In: Id659bfae8556e965d3c31613848bde808f28a858
(cherry picked from commit 4d0652699a88ad60c2dfdbf7b59065ee684df6d6)
2020-11-11 22:51:49 +00:00
madym
708e1e5995 Merge "Add mady to Shell/OWNERS" 2020-11-11 21:53:05 +00:00
Tobias Thierer
37ef4e0be3 Merge "Fix malformed OWNERS." 2020-11-11 20:46:18 +00:00
Tobias Thierer
107c4a524e Fix malformed OWNERS.
Per go/android-owners, include directions should be of the form
[gerrit_project_name]:[absolute_path_to_included_file].

Exempt-From-Owner-Approval: Only editing OWNERS file that ought
to be owned by ourselves, anyway.

Bug: 159055442
Test: Treehugger
Change-Id: I4238c3b0895819a96ca5ab0151f772ecdde588ff
2020-11-11 20:45:39 +00:00
Mady Mellor
be0403bcfc Add mady to Shell/OWNERS
Bug: none
Test: none
Change-Id: Ib552ee4a77002eeb089091084cc7d1a4c845e142
2020-11-11 10:09:10 -08:00
Xiangyu/Malcolm Chen
7e5f02b7d4 Merge "Restructure CarrierMessagingServiceWrapper with better interfaces." 2020-11-11 17:38:24 +00:00
Ryan Mitchell
527ebbaa55 Fix DominatorTree for locale and mcc/mnc config
De-duping of configurations with locales was disabled previously since
there is not a good way to dedupe locales in a forwards compatible way
(change SHA: e38567480be67ac83a8f8f090704bb0d49e2eed2).

In b/171892595, since every locale is a root in the dominator tree,
configs that do not specify locale qualifiers are dominated by the
default config and their values are checked for compatiblity with the
locale config values.

b/171892595 took a while to detect because, this is only an issue at
runtime when a resource has one config containing mnc/mcc without a
locale, one config containing a locale, and the values for the configs
differ. This is because mcc/mnc is the only qualifier with a greater
precedence than locale.

Make configurations with mcc/mnc and mcc unable to be dominated until
locale deduping is fixed.

Bug: 171892595
Bug: 62409213
Test: aapt2-tests
Change-Id: Ia0a5e5d7a1650d070f5f2fcaf9a8469a8c7dabe6
2020-11-11 17:02:57 +00:00
Anton Hansson
5426f50028 Remove the system-api-stubs-docs target
Nothing consumes the output of this module anymore. The txt files
themselves will be removed in a follow-up change (it is easier after
this build rule stops them changing all the time).

Bug: 171029603
Test: m checkapi with txts removed
Change-Id: Iac487dd6c62504b33cf4e372ba4a7cf9808bf5fc
2020-11-11 16:32:53 +00:00
Steven Moreland
9910d9980e Merge "IBinder: support FLAG_CLEAR_BUF" 2020-11-11 16:17:20 +00:00
Janis Danisevskis
c5bdd77f1a Keystore 2.0 SPI: Update KeyInfo and KeyGenParameterSpec
This patch adds set/getSecurityLevel to KeyInfo and KeyGenParameterSpec
and it deprecates the superseded function isInSecureHardware.

It also deprecates the system API set/getUid and replaces it with the
more generic set/getNamespace.

Test: None
Change-Id: Id2f54596510954862b5077a935f3daf07211f29c
2020-11-11 07:53:54 -08:00
Mathew Inwood
9f42b2859b Merge "Temporarily move unused APIs to the blocklist." 2020-11-11 09:13:45 +00:00
Yi Kong
8b3a39f088 profcollect: Use DeviceConfig to control trace parameters
Test: presubmit
Bug: 79161490
Change-Id: I80dd9fda6dc095cec61cffd2389f28992c6973d1
2020-11-11 14:37:53 +08:00
Paul Hu
feb3a2ee1b Merge "Replace AppGlobals @hide APIs" 2020-11-11 05:25:03 +00:00
Paul Hu
5753a34e67 Merge "Expose some ApplicationInfo#is* methods as in-process API" 2020-11-11 05:23:56 +00:00
Chiachang Wang
aeab3f7d9f Merge "Replace the way to add legacy routing" 2020-11-11 05:06:58 +00:00
Gwen Lin
3acec4d14f Merge "Add KEY_CARRIER_USSD_METHOD_INT to specify methods for USSD requests" 2020-11-11 01:45:38 +00:00
nchalko
f501120399 Merge changes Ib7d4be70,Ia0f12e9b,I540c2900,Ife9ad043,Ie81c995b, ...
* changes:
  CEC : Add validator for user control pressed message
  CEC : Add validator for select digital service message
  CEC : Add validator for select analogue service message
  CEC : Add validator for give tuner device status message
  CEC : Add validator for play message
  CEC : Add validator for give deck status message
  CEC : Add validator for deck status message
  CEC : Add validator for deck control message
2020-11-10 21:29:09 +00:00
Brian Stack
f178b46b87 Merge "Fix typo in AngleOfArrivalSupportType values" 2020-11-10 18:49:23 +00:00
James Mattis
fa3f7a3366 Merge "Updating network preference comments" 2020-11-10 17:30:36 +00:00
allenwtsu
6ec972a72a Declare audio codec bitrate and bandwidth
Bug: 172304392
Test: atest
Change-Id: Iea4de76a4c1628c8828ba84282ef014f94cc169a
2020-11-11 00:55:52 +08:00
Treehugger Robot
3e2cfa7b3d Merge "Avoid hardcoded paths to specific APEX jars in the fd allow list." 2020-11-10 16:06:04 +00:00
Anton Hansson
181885c868 Merge "Re-submit "Add genrule for combined srcjar of modules"" 2020-11-10 13:35:37 +00:00
Mathew Inwood
d0cfc1fc0e Temporarily move unused APIs to the blocklist.
Bug: 170729553
Test: m
NoNonSdkCheck: b/170729553
Change-Id: Ic08ac71551a5973e65b696bfd3956d11ec97f397
2020-11-10 13:07:02 +00:00
Mathew Inwood
caf6c158bb Merge "Derestrict PROP_NAME_MAX." 2020-11-10 11:39:03 +00:00