android_packages_modules_Co.../tests/unit/java/android/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Motomu Utsumi 11d3345daa Add firewall chains for HAPPY_BOX and user/admin PENALTY_BOX
Follow up CLs will update CS to generate blocked reason from bpf map
instead of asking NPMS.

However, one issue is NPMS set PENALTY_BOX for
BLOCKED_METERED_REASON_USER_RESTRICTED and
BLOCKED_METERED_REASON_ADMIN_DISABLED without telling the reason.
So, CS can not know the reason of PENALTY_BOX.

This CL add new firewall chain and match to distinguish reasons.
NPMS must call setUidFirewallRule with
FIREWALL_CHAIN_METERED_DENY_USER or FIREWALL_CHAIN_METERED_DENY_ADMIN
based on the reason so that CS can know the reason of restriction.

Bug: 332628891
Test: atest com.android.cts.net.HostsideRestrictBackgroundNetworkTests
Change-Id: Ia4ad4bdb345abc22c782630e828edfad2452db36
2024-04-23 15:04:28 +09: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 [mDNS] pretty print txt values in log 2024-04-02 14:47:57 +08:00
util add TRANSPORT_SATELLITE to NetworkCapabilities 2024-02-07 16:07:39 +00:00
ConnectivityManagerTest.java [BR14] Tracker Data Saver status in ConnectivityService 2023-12-08 13:54:29 +08:00
EthernetNetworkUpdateRequestTest.java Add test for nullable IpConfiguration 2022-03-16 20:29:10 +01: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
MulticastRoutingConfigTest.kt Add equals, hashCode to MulticastRoutingConfig 2023-11-10 13:06:22 +08: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
NetworkStackBpfNetMapsTest.kt Add firewall chains for HAPPY_BOX and user/admin PENALTY_BOX 2024-04-23 15:04:28 +09: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 [AF02.1] Support read by FastDataInput in the NetworkStatsRecorder 2023-12-21 15:14:59 +08:00
NetworkStatsHistoryTest.java Disable flaky NetworkStatsHistoryTest#testFuzzing in presubmit 2023-10-16 17:21:06 +08:00
NetworkStatsRecorderTest.java [AF08] Fill useFastDataInput metrics 2023-12-26 03:38:48 +00: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 NetworkUtilsTest.testSetSockOptBytes 2024-01-29 13:30:53 +08: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