Home
last modified time | relevance | path

Searched refs:SetAllowedList (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/communication/netmanager_base/services/netpolicymanager/src/firewall_rule/
H A Dfirewall_rule.cpp50 void FirewallRule::SetAllowedList(const std::vector<uint32_t> &uids, uint32_t rule) in SetAllowedList() function in OHOS::NetManagerStandard::FirewallRule
53 SetAllowedList(uid, rule); in SetAllowedList()
58 void FirewallRule::SetAllowedList(uint32_t uid, uint32_t rule) in SetAllowedList() function in OHOS::NetManagerStandard::FirewallRule
74 void FirewallRule::SetAllowedList(const std::set<uint32_t> &uids) in SetAllowedList() function in OHOS::NetManagerStandard::FirewallRule
82 SetAllowedList(); in SetAllowedList()
85 void FirewallRule::SetAllowedList() in SetAllowedList() function in OHOS::NetManagerStandard::FirewallRule
/ohos5.0/foundation/communication/netmanager_base/services/netpolicymanager/include/
H A Dfirewall_rule.h53 virtual void SetAllowedList(const std::vector<uint32_t> &uids, uint32_t rule);
60 virtual void SetAllowedList(const std::set<uint32_t> &uids);
66 virtual void SetAllowedList();
154 void SetAllowedList(uint32_t uid, uint32_t rule);
/ohos5.0/foundation/communication/netmanager_base/services/netpolicymanager/src/core/
H A Dnet_policy_firewall.cpp36 deviceIdleFirewallRule_->SetAllowedList(deviceIdleAllowedList_); in Init()
37 powerSaveFirewallRule_->SetAllowedList(powerSaveAllowedList_); in Init()
48 …deviceIdleFirewallRule_->SetAllowedList(uids, isAllowed ? FIREWALL_RULE_ALLOW : FIREWALL_RULE_DENY… in SetDeviceIdleTrustlist()
69 …powerSaveFirewallRule_->SetAllowedList(uids, isAllowed ? FIREWALL_RULE_ALLOW : FIREWALL_RULE_DENY); in SetPowerSaveTrustlist()
130 deviceIdleFirewallRule_->SetAllowedList(); in UpdateDeviceIdlePolicy()
157 powerSaveFirewallRule_->SetAllowedList(); in UpdatePowerSavePolicy()
/ohos5.0/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_manager_test/
H A Dut_firewall_rule.cpp83 HWTEST_F(UtFirewallRule, SetAllowedList, TestSize.Level1)
92 rule.SetAllowedList(uidsVec, FIREWALL_RULE_ALLOW);
100 rule.SetAllowedList(uids);
102 rule.SetAllowedList(uidsVec, FIREWALL_RULE_DENY);
106 rule.SetAllowedList(uidsVec, FIREWALL_RULE_DENY);