Searched refs:netPolicy (Results 1 - 8 of 8) sorted by relevance
/foundation/communication/netmanager_base/services/netpolicymanager/include/ |
H A D | net_policy_file.h | 141 bool Json2Obj(const std::string &content, NetPolicy &netPolicy); 142 bool Obj2Json(const NetPolicy &netPolicy, std::string &content); 153 void ParseUidPolicy(const cJSON* const root, NetPolicy &netPolicy); 154 void ParseBackgroundPolicy(const cJSON* const root, NetPolicy &netPolicy); 155 void ParseQuotaPolicy(const cJSON* const root, NetPolicy &netPolicy); 156 void ParseFirewallRule(const cJSON* const root, NetPolicy &netPolicy);
|
H A D | net_policy_service.h | 300 FactoryResetCallBack(std::shared_ptr<NetPolicyService> netPolicy) in FactoryResetCallBack() argument 302 netPolicy_ = netPolicy; in FactoryResetCallBack()
|
/foundation/communication/netmanager_base/services/netpolicymanager/src/core/ |
H A D | net_policy_file.cpp | 105 void NetPolicyFile::ParseUidPolicy(const cJSON* const root, NetPolicy &netPolicy) in ParseUidPolicy() argument 125 netPolicy.uidPolicies.push_back(uidPolicy); in ParseUidPolicy() 129 void NetPolicyFile::ParseBackgroundPolicy(const cJSON* const root, NetPolicy &netPolicy) in ParseBackgroundPolicy() argument 134 netPolicy.backgroundPolicyStatus = cJSON_GetStringValue(status); in ParseBackgroundPolicy() 135 NETMGR_LOG_D("backgroundPolicyStatus: %{public}s", netPolicy.backgroundPolicyStatus.c_str()); in ParseBackgroundPolicy() 139 void NetPolicyFile::ParseQuotaPolicy(const cJSON* const root, NetPolicy &netPolicy) in ParseQuotaPolicy() argument 177 netPolicy.netQuotaPolicies.push_back(quotaPolicy); in ParseQuotaPolicy() 181 void NetPolicyFile::ParseFirewallRule(const cJSON* const root, NetPolicy &netPolicy) in ParseFirewallRule() argument 200 netPolicy.netFirewallRules[chainType].deniedList.insert(deniedListNumber); in ParseFirewallRule() 208 netPolicy in ParseFirewallRule() 213 Json2Obj(const std::string &content, NetPolicy &netPolicy) Json2Obj() argument 248 Obj2Json(const NetPolicy &netPolicy, std::string &content) Obj2Json() argument [all...] |
/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_service_test/ |
H A D | net_policy_service_test.cpp | 208 std::shared_ptr<NetPolicyService> netPolicy = std::make_shared<NetPolicyService>(); in HWTEST_F() local 209 instance_->netFactoryResetCallback_ = new NetPolicyService::FactoryResetCallBack(netPolicy); in HWTEST_F()
|
/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_manager_test/ |
H A D | ut_net_policy_client.cpp | 445 uint32_t netPolicy = callback->GetPolicy(); in HWTEST_F() local 447 << " netPolicy:" << static_cast<uint32_t>(netPolicy) << std::endl; in HWTEST_F() 449 ASSERT_EQ(netPolicy, NetUidPolicy::NET_POLICY_REJECT_METERED_BACKGROUND); in HWTEST_F()
|
H A D | net_policy_manager_test.cpp | 224 uint32_t netPolicy = callback->GetPolicy(); in HWTEST_F() local 226 << " netPolicy:" << static_cast<uint32_t>(netPolicy) << std::endl; in HWTEST_F() 228 ASSERT_EQ(netPolicy, NetUidPolicy::NET_POLICY_ALLOW_METERED_BACKGROUND); in HWTEST_F()
|
/foundation/communication/netmanager_base/services/netpolicymanager/src/stub/ |
H A D | net_policy_service_stub.cpp | 210 uint32_t netPolicy = 0; in OnSetPolicyByUid() local 211 if (!data.ReadUint32(netPolicy)) { in OnSetPolicyByUid() 216 int32_t result = SetPolicyByUid(uid, netPolicy); in OnSetPolicyByUid()
|
/foundation/communication/netmanager_base/services/netconnmanager/src/ |
H A D | net_conn_service.cpp | 2516 std::shared_ptr<NetPolicyClient> netPolicy = DelayedSingleton<NetPolicyClient>::GetInstance(); in OnAddSystemAbility() local 2517 int32_t registerRet = netPolicy->RegisterNetPolicyCallback(policyCallback_); in OnAddSystemAbility()
|
Completed in 11 milliseconds