Searched refs:NetPolicyFile (Results 1 – 6 of 6) sorted by relevance
46 NetPolicyFile::NetPolicyFile() in NetPolicyFile() function in OHOS::NetManagerStandard::NetPolicyFile51 NetPolicyFile::~NetPolicyFile() = default;81 bool NetPolicyFile::ReadFile() in ReadFile()86 bool NetPolicyFile::WriteFile() in WriteFile()276 void NetPolicyFile::AddQuotaPolicy(cJSON *root) in AddQuotaPolicy()307 void NetPolicyFile::AddUidPolicy(cJSON *root) in AddUidPolicy()323 void NetPolicyFile::AddBackgroundPolicy(cJSON *root) in AddBackgroundPolicy()335 void NetPolicyFile::AddFirewallRule(cJSON *root) in AddFirewallRule()503 int32_t NetPolicyFile::ResetPolicies() in ResetPolicies()525 bool NetPolicyFile::ReadBackgroundPolicy() in ReadBackgroundPolicy()[all …]
31 std::shared_ptr<NetPolicyFile> NetPolicyBase::GetFileInst() in GetFileInst()33 return DelayedSingleton<NetPolicyFile>::GetInstance(); in GetFileInst()
30 std::shared_ptr<NetPolicyFile> netPolicyFile_ = nullptr;45 netPolicyFile_ = DelayedSingleton<NetPolicyFile>::GetInstance(); in SetUpTestCase()46 ASSERT_TRUE(DelayedSingleton<NetPolicyFile>::GetInstance()); in SetUpTestCase()
50 class NetPolicyFile : public std::enable_shared_from_this<NetPolicyFile> {51 DECLARE_DELAYED_SINGLETON(NetPolicyFile);
67 std::shared_ptr<NetPolicyFile> GetFileInst();
284 std::shared_ptr<NetPolicyFile> netPolicyFile_ = nullptr;