Home
last modified time | relevance | path

Searched refs:setUidRule (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSFirewallChainTest.kt130 verify(bpfNetMaps).setUidRule(FIREWALL_CHAIN_BACKGROUND, uid, FIREWALL_RULE_DENY) in <lambda>()
135 verify(bpfNetMaps).setUidRule(FIREWALL_CHAIN_BACKGROUND, uid, FIREWALL_RULE_DENY) in <lambda>()
140 verify(bpfNetMaps).setUidRule(FIREWALL_CHAIN_BACKGROUND, uid, FIREWALL_RULE_ALLOW) in <lambda>()
155 verify(bpfNetMaps, never()).setUidRule(anyInt(), anyInt(), anyInt()) in <lambda>()
175 verify(bpfNetMaps).setUidRule(FIREWALL_CHAIN_METERED_ALLOW, uid, FIREWALL_RULE_ALLOW) in <lambda>()
182 verify(bpfNetMaps).setUidRule(FIREWALL_CHAIN_METERED_ALLOW, uid, FIREWALL_RULE_DENY) in <lambda>()
189 verify(bpfNetMaps).setUidRule(FIREWALL_CHAIN_METERED_DENY_USER, uid, FIREWALL_RULE_DENY) in <lambda>()
196 verify(bpfNetMaps).setUidRule(FIREWALL_CHAIN_METERED_DENY_USER, uid, FIREWALL_RULE_ALLOW) in <lambda>()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DBpfNetMapsTest.java507 mBpfNetMaps.setUidRule(chain, TEST_UID, ruleToAddMatch); in doTestSetUidRule()
515 mBpfNetMaps.setUidRule(chain, TEST_UID, ruleToRemoveMatch); in doTestSetUidRule()
560 () -> mBpfNetMaps.setUidRule(FIREWALL_CHAIN_DOZABLE, TEST_UID, FIREWALL_RULE_DENY)); in testSetUidRuleRemoveRuleFromUidWithNoRule()
568 () -> mBpfNetMaps.setUidRule(-1 /* childChain */, TEST_UID, FIREWALL_RULE_ALLOW)); in testSetUidRuleInvalidChain()
570 () -> mBpfNetMaps.setUidRule(1000 /* childChain */, TEST_UID, FIREWALL_RULE_ALLOW)); in testSetUidRuleInvalidChain()
578 mBpfNetMaps.setUidRule(FIREWALL_CHAIN_DOZABLE, TEST_UID, -1 /* firewallRule */)); in testSetUidRuleInvalidRule()
580 mBpfNetMaps.setUidRule(FIREWALL_CHAIN_DOZABLE, TEST_UID, 1000 /* firewallRule */)); in testSetUidRuleInvalidRule()
587 mBpfNetMaps.setUidRule(FIREWALL_CHAIN_DOZABLE, TEST_UID, FIREWALL_RULE_ALLOW)); in testSetUidRuleBeforeT()
DConnectivityServiceTest.java10523 verify(mBpfNetMaps).setUidRule(chain, uid, FIREWALL_RULE_ALLOW);
10527 verify(mBpfNetMaps).setUidRule(chain, uid, FIREWALL_RULE_DENY);
10531 verify(mBpfNetMaps).setUidRule(chain, uid, defaultRule);
/packages/modules/Connectivity/service/src/com/android/server/
DBpfNetMaps.java558 public void setUidRule(final int childChain, final int uid, final int firewallRule) { in setUidRule() method in BpfNetMaps
DConnectivityService.java13897 mBpfNetMaps.setUidRule(chain, uid, firewallRule);