android_packages_modules_Co.../tests/unit/java/android/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Junyu Lai c3dc5b6222 [BR06] Support check whether network is blocked by data saver
This change adds a DataSaverStatusTracker, which is a helper
class to continuously track data saver status through NPMS
public API and intents. ConnectivityManager#isUidNetworkingBlocked
would use this cached information along with bpf maps to decide
whether networking of an uid is blocked.

Test: atest FrameworksNetTests:android.net.connectivity.android.net.BpfNetMapsReaderTest
Test: atest ConnectivityCoverageTests:android.net.connectivity.android.net.ConnectivityManagerTest
Bug: 297836825
Change-Id: I7e13191759430f3ea1f4dec7facc02f16be7146d
2023-11-01 11:10:01 +08:00
..
ipmemorystore Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
netstats Don't clobber existing history entries. 2022-05-24 11:37:42 +08:00
nsd Merge "Move NsdServiceInfoTest to common tests" 2023-07-03 06:24:43 +00:00
util Move ConnectivityResources to service-connectivity 2023-04-28 19:18:39 +09:00
BpfNetMapsReaderTest.kt [BR06] Support check whether network is blocked by data saver 2023-11-01 11:10:01 +08:00
ConnectivityManagerTest.java [BR06] Support check whether network is blocked by data saver 2023-11-01 11:10:01 +08:00
EthernetNetworkUpdateRequestTest.java Add test for nullable IpConfiguration 2022-03-16 20:29:10 +01:00
Ikev2VpnProfileTest.java Add unit tests for new VpnProfile fields 2023-02-15 15:01:28 +00:00
IpMemoryStoreTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
IpSecAlgorithmTest.java ipsec - use ro.vendor.api_level instead of ro.product.first_api_level 2022-11-09 00:47:13 +00:00
IpSecConfigTest.java Add some non-connectivity-module-test back to ConnectivityCoverageTests 2022-05-27 07:16:46 +00:00
IpSecManagerTest.java Add some non-connectivity-module-test back to ConnectivityCoverageTests 2022-05-27 07:16:46 +00:00
IpSecTransformTest.java Expose APIs to migrate IpSecTransform 2023-01-10 19:09:05 +00:00
KeepalivePacketDataUtilTest.java Remove toString test. 2023-06-01 21:34:50 +00:00
MacAddressTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
NetworkIdentitySetTest.kt Fix NullPointerException happens in dumpCheckin 2022-04-19 17:49:30 +08:00
NetworkIdentityTest.kt Revert consider TEMPORARILY_NOT_METERED as unmetered in data usage 2022-12-02 16:04:55 +08:00
NetworkStatsAccessTest.java Check MAINLINE_NETWORK_STACK as well to make GTS can access proper stats 2023-04-11 14:56:15 +08:00
NetworkStatsCollectionTest.java Cleanup constructor of NetworkStats#Entry 2022-08-02 22:49:16 +08:00
NetworkStatsHistoryTest.java Disable flaky NetworkStatsHistoryTest#testFuzzing in presubmit 2023-10-16 17:21:06 +08:00
NetworkStatsRecorderTest.java Add wipeOnError flag to NetworkStatsRecorder 2022-06-22 17:37:51 +08:00
NetworkStatsTest.java Address review followup comments for NetworkStats 2023-09-04 18:01:14 +08:00
NetworkTemplateTest.kt Add some tests back which were removed for fixing kotlin nullable errors 2023-08-24 11:25:21 +09:00
NetworkUtilsTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
QosSocketFilterTest.java Support QosCallback with UDP socket. UnitTest 2022-05-05 08:45:00 +00:00
QosSocketInfoTest.java Support QosCallback with UDP socket. UnitTest 2022-05-05 08:45:00 +00:00
TelephonyNetworkSpecifierTest.java Re-skip connectivity unit tests before S 2021-06-30 12:00:28 +09:00
VpnManagerTest.java Disable the remaining VPN CTS tests on watches. 2023-10-02 06:29:46 +00:00