android_packages_modules_Co.../tests/net/java/com/android/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lorenzo Colitti 60104f59a0 Add onBlockedStatusChanged(Network, int) to NetworkCallback.
This is similar to onBlockedStatusChanged(Network, boolean) but
it allows the callback holder to know the exact reason why
networking was blocked. It is useful to privileged system
components such as JobScheduler that are able to ignore some
blocked reasons but not others.

Also add a new BLOCKED_REASON_LOCKDOWN_VPN that is used when
networking is blocked because an always-on VPN is in
lockdown mode.

Also move BLOCKED_METERED_REASON_MASK to ConnectivityManager.
This is necessary because ConnectivityService must ensure that
the blocked status callbacks are correctly sent when meteredness
changes (e.g., a UID that is blocked on metered networks will
become unblocked on a network that becomes unmetered). In order
to do this it needs to know which reasons apply only on metered
networks.

Bug: 165835257
Test: unit tests in subsequent CLs in the stack
Change-Id: I647db4f5a01280be220288e73ffa85c15bec9370
2021-03-26 02:37:19 +09:00
..
connectivity Merge changes from topics "revert-1645768-revert-1626206-replaceUidRange-MSYTKFNGUE-HIUTVTIGIR", "ti_redaction" 2021-03-21 16:41:13 +00:00
net [FUI09] Expose NetworkStateSnapshot as system API 2021-03-02 23:09:16 +08:00
ConnectivityServiceTest.java Add onBlockedStatusChanged(Network, int) to NetworkCallback. 2021-03-26 02:37:19 +09:00
IpSecServiceParameterizedTest.java Merge changes I852e3a53,I86755647,I0ed8b0c6 2021-02-22 06:49:39 +00:00
IpSecServiceRefcountedResourceTest.java Remove unused INetworkManagementService from IpSecService 2021-02-08 08:05:00 +00:00
IpSecServiceTest.java Add a new API to get the network ID range of IPSec tunnel interface 2021-03-12 00:46:33 +08:00
LegacyTypeTrackerTest.kt Remove usage of networkAttributes 2021-03-16 16:01:40 +09:00
NetIdManagerTest.kt Move utils from network stack to libs. 2020-07-29 21:15:48 +09:00
NetworkManagementServiceTest.java Merge "[IT4.2] Update argument type of interfaceClassDataActivityChanged" 2020-12-28 01:05:28 +00:00
NsdServiceTest.java Migrate frameworks/base/tests/net/ to androidx.test 2019-03-05 09:05:47 -08:00