Commit Graph

565300 Commits

Author SHA1 Message Date
Remi NGUYEN VAN
ebacbf75b4 Move ParseException to Connectivity
ParseException is a public API class used to support Connectivity APIs,
so it should be in the same API surface as connectivity.

Bug: 181512874
Test: m
Change-Id: Ie1213de0d0facc8f409f7b4c2553abb382e4afbf
2021-03-11 17:19:18 +09:00
Treehugger Robot
b002b20492 Merge "Add final qualifier in LocationPermissionChecker" 2021-03-09 07:58:14 +00:00
Chalard Jean
5b7b782a3b Merge "Replace withCleanCallingIdentity with [clear|restore]CallingIdentity" 2021-03-09 07:41:13 +00:00
Zoey Chen
761614c85f Merge "[Telephony] Fix the unknown value of ARFCN from -1 to INT.MAX" 2021-03-09 07:06:06 +00:00
Lucas Lin
55793cc0cb Merge "Use ArraySet#add() instead of ArraySet#append()" 2021-03-09 04:52:42 +00:00
Chiachang Wang
874aefac33 Merge "Replace ConnectivityManager.isNetworkTypeMobile usage in NSS" 2021-03-09 03:58:11 +00:00
Makoto Onuki
4d83226663 Merge "[Bugfix] Fix after performing adb shell am hang and kill this process, the phone can not resume from hang state" 2021-03-09 01:10:27 +00:00
Cody Kesting
3b0cb56475 Merge changes I14740854,Id1c2dc28,I4168c868
* changes:
  Use clean identity for all calls in/out of VcnMgmtSvc.
  Exit Safe Mode when a VCN gets new configs.
  Notify VcnStatusCallbacks for VCN start/stop.
2021-03-09 00:57:57 +00:00
Songchun Fan
bc92c6eb23 Merge "[incremental] update owners file for incremental service" 2021-03-08 23:57:53 +00:00
Hui Wang
629a24b258 Merge "Update Provisioning API name and doc per API review" 2021-03-08 22:02:20 +00:00
Hans Boehm
0272e96327 Merge "No longer call registerNativeAllocation" 2021-03-08 20:48:11 +00:00
Songchun Fan
f62891726d [incremental] update owners file for incremental service
Test: N/A
BUG: 174932174
Change-Id: I8cb5797b880861a9a67678f820035b77924abf12
2021-03-08 20:00:37 +00:00
Cody Kesting
bf1139a93c Use clean identity for all calls in/out of VcnMgmtSvc.
This CL updates VcnManager and VcnManagementService to use a clean
calling identify for handling all code paths entering and leaving the
System Server.

Bug: 180451994
Bug: 182183302
Test: atest FrameworksVcnTests
Change-Id: I147408544531927ecaf5e40af6cb139342f5cd63
2021-03-08 11:58:54 -08:00
Cody Kesting
df8455eae2 Exit Safe Mode when a VCN gets new configs.
This CL updates VCN instances to exit Safe Mode when they receive a
new VcnConfig. When a VCN exits Safe Mode, they will re-register a
request listener to receive all cached requests and start the
needed VcnGatewayConnections.

Bug: 179429339
Test: atest FrameworksVcnTests
Change-Id: Id1c2dc287e1ec56f37821cf0ae77f066f22d22bb
2021-03-08 11:14:25 -08:00
Cody Kesting
212c06aaa6 Notify VcnStatusCallbacks for VCN start/stop.
This CL updates VcnManagementService to notify VcnStatusCallbacks when a
VCN is started or stopped. VcnStatusCallbacks will also be notified for
config changes that cause a VCN to exit Safe Mode.

Bug: 180659281
Test: atest FrameworksVcnTests
Change-Id: I4168c868185880621333855dfcb51e46cb662741
2021-03-08 11:14:25 -08:00
Suren Baghdasaryan
055977a3c9 Merge "Eliminate memtrack variability in Lost RAM when ION is being used" 2021-03-08 17:45:01 +00:00
Suren Baghdasaryan
5630218f93 Eliminate memtrack variability in Lost RAM when ION is being used
Modify lost RAM calculation to account unmapped ION buffers as part of
kernel memory and mapped ION buffers as PSS. Because mapped ION buffers
might be accounted in memtrack HAL's reported Graphics memory, we
need to replace it with the mapped dmabufs representing mapped ION
buffers.

Bug: 174546244
Test: dumpsys meminfo
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ia7f5fc2ca95389a5f2ae78d4cdbf8ba3ef8e3972
Merged-In: Ia7f5fc2ca95389a5f2ae78d4cdbf8ba3ef8e3972
2021-03-08 17:40:51 +00:00
Treehugger Robot
26c490456d Merge "CEC: Move finishWithCallback method to FeatureAction" 2021-03-08 17:18:50 +00:00
Nicholas Ambur
85b00aa8f4 Merge "remove BIND_VOICE_INTERACTION perm from shell user" 2021-03-08 17:13:38 +00:00
Aravind Angadi
0e9610ad3c CEC: Move finishWithCallback method to FeatureAction
Bug: 159901363
Test: None
Change-Id: Idd30ec162136c8b32e8cee1181c6e3e733aa9966
Merged-In: Idd30ec162136c8b32e8cee1181c6e3e733aa9966
2021-03-08 15:23:38 +00:00
Treehugger Robot
492ab3dd2c Merge "Keystore 2.0: Silence common error on operation abort." 2021-03-08 14:10:27 +00:00
Chiachang Wang
569c14a1d4 Replace ConnectivityManager.isNetworkTypeMobile usage in NSS
ConnectivityManager is a part of connectivity mainline. The
hidden methods dependency in ConnectivityManager should be
removed to make it a moudle. NSS use isNetworkTypeMobile to
check if the NetworkState belongs to a cellular network or not.
It should be replaced by the NetworkCapabilities inside the
NetworkState.

The result of isNetworkTypeMobile relies on the legacy network
type. The legacy network type comes from the network type
of its network info. The replacement should consider VPN active
case because the network type will not be TYPE_MOBILE. Thus,
replace it with Networkcapabilities.getDisplayTransport() to
get a transport that can be used to classify a network when
displaying its info to users, i.e. it will return TRANSPORT_VPN
for a vpn network on cellular network.

Bug: 172183305
Test: atest FrameworksNetTests
Change-Id: I2132a7288a93e4430cbd9efabc33ae56ce8bdd9b
2021-03-08 09:11:24 +00:00
Remi NGUYEN VAN
23cca12865 Merge "Move OemNetworkPreferences to Connectivity" 2021-03-08 08:41:04 +00:00
Paul Hu
ab70e79307 Merge "Replace Inet[4|6]Address#ANY" 2021-03-08 07:20:21 +00:00
paulhu
b8c6a56292 Replace Inet[4|6]Address#ANY
Connectivity is becoming a mainline module in S but mainline
modules are not allowed to use non-formal APIs. Thus, replace
non-formal API Inet[4|6]Address#ANY to
NetworkStackConstants#IPV[4|6]_ADDR_ANY.

Bug: 181756157
Test: FrameworksNetTests
Change-Id: Id4d2fc551c1384f549a586e87ab68356ba05b995
2021-03-08 07:18:31 +00:00
Frank Li
02d57fc2ae Merge "[CS10]Remove the hidden API usage of BitUtils" 2021-03-08 02:05:40 +00:00
Treehugger Robot
580dd34fa9 Merge "Update package of DataConnectionStats" 2021-03-08 01:36:37 +00:00
Remi NGUYEN VAN
f9a30cfa4c Move OemNetworkPreferences to Connectivity
The data class supports a ConnectivityManager API, so it should be
together with the ConnectivityManager API surface.

Bug: 181512874
Test: m
Change-Id: I5642486ea0febcb08cadcbd4cd3f0c6056deae0e
2021-03-08 09:26:41 +09:00
Hans Boehm
5dc6b62136 No longer call registerNativeAllocation
The original rationale is obsolete, since contexts are now almost
always shared.

This call was unbalanced; there was no corresponding
freeNativeAllocation call. Thus, in the rare cases in which this
actually makes a difference, it's likely to lead to perpetually
increasing native allocation counts, which is more likely to be
confusing than helpful to the garbage collector.

(Discussed with Tim and Jean-Luc, and concluded that it was best
just to remove the code.)

Test: Treehugger
Bug: 181351667
Change-Id: I376a16732231aad0fdacd022de301464e5ac71dd
2021-03-06 18:47:20 -08:00
lifr
c7028a41f0 [CS10]Remove the hidden API usage of BitUtils
The connection service will become the main line module.
It is difficult to include BitUtils in the module. and so
Move the hidden API needed in BitUtils to NetworkCapabilitiesUtils.

Bug: 170598012
Test: atest ConnectivityServiceTest
      atest NetworkCapabilitiesTest
      atest DnsUtilsTest
Change-Id: Ibc81827e25a54fc3ff94f78d810fe4f5073e3a98
2021-03-06 16:21:16 +00:00
Junyu Lai
eccbfe4b72 Merge changes I6512d3f7,I99bca71c
* changes:
  [FUI25] Migrate NetworkPolicyManagerService to use ConnectivityManager
  [FUI24] Use getAllNetworkStateSnapshot in NetworkPolicyManagerService
2021-03-06 04:10:21 +00:00
junyulai
a76fc32242 [FUI25] Migrate NetworkPolicyManagerService to use ConnectivityManager
Test: atest NetworkPolicyManagerServiceTest
Bug: 174123988
Change-Id: I6512d3f704f35f2cc3555dcc40b46c7294d3b455
2021-03-06 08:38:13 +08:00
junyulai
0d72b18349 [FUI24] Use getAllNetworkStateSnapshot in NetworkPolicyManagerService
Currently, in NPMS, getAllNetworkState is used to get all
information of all connected networks. However, this will not
be available after ConnectivityService goes to mainline module.

Thus, replace the usage with new API.

Test: atest NetworkPolicyManagerServiceTest
Bug: 174123988
Change-Id: I99bca71cb3b98f74eab036fac4517ee926eb539c
2021-03-06 08:38:05 +08:00
Daniel Bright
ee4668c5a5 Merge "Hide start and cancel handover from api surface" 2021-03-05 23:42:05 +00:00
Sudheer Shanka
9ffb8a6bc6 Merge "Remove network capability from CAPABILITY_ALL constant." 2021-03-05 23:14:54 +00:00
Daniel Bright
e69ec553b4 Hide start and cancel handover from api surface
* Since AOSP is in control of when IWlan allocates and releases the
  pdu session id, it doesn't need to react to start handover and
  cancel handover.
* CellularDataService can still use these methods since it is in
  AOSP.

Bug: 177607048
Test: make
Merged-In: I9e65ad178a843e92a59e5e4f7debd4d7b77a3edb
Change-Id: I9e65ad178a843e92a59e5e4f7debd4d7b77a3edb
2021-03-05 13:41:17 -08:00
James Mattis
c1a548b132 Merge "Applying OEM network pref to all users" 2021-03-05 19:09:24 +00:00
Jeff Sharkey
e191d88136 Merge "Add per-file OWNERS for ChargeCalculators" 2021-03-05 18:07:45 +00:00
Treehugger Robot
1b2163d9e8 Merge "Update OWNER for team's files under content" 2021-03-05 18:07:37 +00:00
Dmitri Plotnikov
266ce1a1f0 Add per-file OWNERS for ChargeCalculators
Test: N/A
Change-Id: I0fd382a25afafcfb9476d35897ec8295f0293053
2021-03-05 10:04:07 -08:00
Treehugger Robot
f80c56df73 Merge "Don't crash if the MediaCodecList is null." 2021-03-05 16:42:29 +00:00
Zoey Chen
d22eced34b Merge "[Telephony] Remove the dead code setRadioCapability in ITelephony" 2021-03-05 12:35:39 +00:00
Treehugger Robot
db3769c465 Merge "Set SAM according to TV's settings" 2021-03-05 11:55:58 +00:00
Remi NGUYEN VAN
d0355e1be2 Merge "Move NetworkState to Connectivity" 2021-03-05 10:27:57 +00:00
Treehugger Robot
dfc3abdf72 Merge "Update NPMS to listen for all uid procstate changes." 2021-03-05 10:23:27 +00:00
Junyu Lai
0bb7932183 Merge "[FUI23] Remove getNetworkQuotaInfo" 2021-03-05 10:05:06 +00:00
Sudheer Shanka
4d9cc95b52 Remove network capability from CAPABILITY_ALL constant.
We shouldn't include it until we also update OomAdjuster
to add it to certain processes.

Fixes: 181902246
Test: atest ./tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Change-Id: I3bfdd2b01c3ba8010e96177e41fc90be3dce8a55
Merged-In: I888764ff22fba92fe2cccf3d8442ed318a19ad2a
2021-03-05 09:09:55 +00:00
Aaron Huang
918e60b615 Merge "Use NetworkCallback in BatteryStatsService to get connectivity change" 2021-03-05 07:03:51 +00:00
Sudheer Shanka
b5127c0713 Update NPMS to listen for all uid procstate changes.
This is a temporary change until we can fix an issue
in AMS internally.

Bug: 177641226
Test: treehugger
Change-Id: I7d04b4116f8ecb7da8c3fb0b9229a8896b836811
Merged-In: I888764ff22fba92fe2cccf3d8442ed318a19ad2a
2021-03-05 06:36:31 +00:00
Wei Sheng Shih
cc1e7da83c Merge "[RESTRICT AUTOMERGE]Fix launching app from work profile cannot show splash screen." 2021-03-05 05:55:56 +00:00