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
* 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.
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
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
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
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
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
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
The data class supports a ConnectivityManager API, so it should be
together with the ConnectivityManager API surface.
Bug: 181512874
Test: m
Change-Id: I5642486ea0febcb08cadcbd4cd3f0c6056deae0e
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
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
* changes:
[FUI25] Migrate NetworkPolicyManagerService to use ConnectivityManager
[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
* 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
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
This is a temporary change until we can fix an issue
in AMS internally.
Bug: 177641226
Test: treehugger
Change-Id: I7d04b4116f8ecb7da8c3fb0b9229a8896b836811
Merged-In: I888764ff22fba92fe2cccf3d8442ed318a19ad2a