Lines Matching refs:uidRangeConfig
4010 void verifyAppUidRules(std::vector<bool>&& expectedResults, NativeUidRangeConfig& uidRangeConfig, in verifyAppUidRules() argument
4012 verifyAppUidRules(move(expectedResults), uidRangeConfig.uidRanges, iface, in verifyAppUidRules()
4013 uidRangeConfig.subPriority); in verifyAppUidRules()
4016 void verifyVpnUidRules(std::vector<bool>&& expectedResults, NativeUidRangeConfig& uidRangeConfig, in verifyVpnUidRules() argument
4018 ASSERT_EQ(expectedResults.size(), uidRangeConfig.uidRanges.size()); in verifyVpnUidRules()
4027 for (unsigned long i = 0; i < uidRangeConfig.uidRanges.size(); i++) { in verifyVpnUidRules()
4028 EXPECT_EQ(expectedResults[i], ipRuleExistsForRange(priority + uidRangeConfig.subPriority, in verifyVpnUidRules()
4029 uidRangeConfig.uidRanges[i], action)); in verifyVpnUidRules()
4031 ipRuleExistsForRange(RULE_PRIORITY_EXPLICIT_NETWORK + uidRangeConfig.subPriority, in verifyVpnUidRules()
4032 uidRangeConfig.uidRanges[i], action)); in verifyVpnUidRules()
4034 ipRuleExistsForRange(RULE_PRIORITY_OUTPUT_INTERFACE + uidRangeConfig.subPriority, in verifyVpnUidRules()
4035 uidRangeConfig.uidRanges[i], action, iface.c_str())); in verifyVpnUidRules()
4500 NativeUidRangeConfig uidRangeConfig = in TEST_F() local
4503 binder::Status status = mNetd->networkAddUidRangesParcel(uidRangeConfig); in TEST_F()
4508 uidRangeConfig.subPriority = UidRanges::LOWEST_SUB_PRIORITY + 1; in TEST_F()
4509 status = mNetd->networkAddUidRangesParcel(uidRangeConfig); in TEST_F()
4514 uidRangeConfig.netId = VPN_NETID; in TEST_F()
4515 uidRangeConfig.subPriority = SUB_PRIORITY_1; in TEST_F()
4516 status = mNetd->networkAddUidRangesParcel(uidRangeConfig); in TEST_F()
4521 uidRangeConfig.netId = APP_DEFAULT_NETID; in TEST_F()
4522 uidRangeConfig.subPriority = SUB_PRIORITY_1; in TEST_F()
4523 EXPECT_TRUE(mNetd->networkAddUidRangesParcel(uidRangeConfig).isOk()); in TEST_F()
4524 uidRangeConfig.subPriority = SUB_PRIORITY_2; in TEST_F()
4525 EXPECT_TRUE(mNetd->networkAddUidRangesParcel(uidRangeConfig).isOk()); in TEST_F()
4528 status = mNetd->networkAddUidRangesParcel(uidRangeConfig); in TEST_F()
4533 uidRangeConfig.uidRanges = {makeUidRangeParcel(BASE_UID + 1, BASE_UID + 1), in TEST_F()
4535 status = mNetd->networkAddUidRangesParcel(uidRangeConfig); in TEST_F()