Lines Matching refs:ipRuleExistsForRange
566 static bool ipRuleExistsForRange(const uint32_t priority, const UidRangeParcel& range, in ipRuleExistsForRange() function
592 static bool ipRuleExistsForRange(const uint32_t priority, const UidRangeParcel& range, in ipRuleExistsForRange() function
594 bool existsIp4 = ipRuleExistsForRange(priority, range, action, IP_RULE_V4, oif); in ipRuleExistsForRange()
595 bool existsIp6 = ipRuleExistsForRange(priority, range, action, IP_RULE_V6, oif); in ipRuleExistsForRange()
600 static bool ipRuleExistsForRange(const uint32_t priority, const UidRangeParcel& range, in ipRuleExistsForRange() function
602 return ipRuleExistsForRange(priority, range, action, nullptr); in ipRuleExistsForRange()
665 EXPECT_TRUE(ipRuleExistsForRange(RULE_PRIORITY_SECURE_VPN, uidRanges[0], action)); in TEST_F()
666 EXPECT_FALSE(ipRuleExistsForRange(RULE_PRIORITY_SECURE_VPN, otherRange, action)); in TEST_F()
668 EXPECT_FALSE(ipRuleExistsForRange(RULE_PRIORITY_SECURE_VPN, uidRanges[0], action)); in TEST_F()
671 EXPECT_TRUE(ipRuleExistsForRange(RULE_PRIORITY_SECURE_VPN, uidRanges[1], action)); in TEST_F()
673 EXPECT_FALSE(ipRuleExistsForRange(RULE_PRIORITY_SECURE_VPN, uidRanges[1], action)); in TEST_F()
683 EXPECT_FALSE(ipRuleExistsForRange(RULE_PRIORITY_PROHIBIT_NON_VPN, range, "prohibit")); in TEST_F()
688 EXPECT_TRUE(ipRuleExistsForRange(RULE_PRIORITY_PROHIBIT_NON_VPN, range, "prohibit")); in TEST_F()
694 EXPECT_FALSE(ipRuleExistsForRange(RULE_PRIORITY_PROHIBIT_NON_VPN, range, "prohibit")); in TEST_F()
3985 ipRuleExistsForRange(RULE_PRIORITY_UID_EXPLICIT_NETWORK + subPriority, in verifyAppUidRules()
3988 ipRuleExistsForRange(RULE_PRIORITY_UID_IMPLICIT_NETWORK + subPriority, in verifyAppUidRules()
3991 ipRuleExistsForRange(RULE_PRIORITY_UID_DEFAULT_NETWORK + subPriority, in verifyAppUidRules()
3998 ipRuleExistsForRange(RULE_PRIORITY_UID_EXPLICIT_NETWORK + subPriority, in verifyAppUidRules()
4001 ipRuleExistsForRange(RULE_PRIORITY_UID_IMPLICIT_NETWORK + subPriority, in verifyAppUidRules()
4004 ipRuleExistsForRange(RULE_PRIORITY_UID_DEFAULT_UNREACHABLE + subPriority, in verifyAppUidRules()
4028 EXPECT_EQ(expectedResults[i], ipRuleExistsForRange(priority + uidRangeConfig.subPriority, in verifyVpnUidRules()
4031 ipRuleExistsForRange(RULE_PRIORITY_EXPLICIT_NETWORK + uidRangeConfig.subPriority, in verifyVpnUidRules()
4034 ipRuleExistsForRange(RULE_PRIORITY_OUTPUT_INTERFACE + uidRangeConfig.subPriority, in verifyVpnUidRules()