/foundation/communication/netmanager_base/services/netpolicymanager/src/common/ |
H A D | net_policy_service_common.cpp | 27 bool NetPolicyServiceCommon::IsUidNetAllowed(uint32_t uid, bool metered) in IsUidNetAllowed() function in OHOS::NetManagerStandard::NetPolicyServiceCommon 30 DelayedSingleton<NetPolicyService>::GetInstance()->IsUidNetAllowed(uid, metered, isAllowed); in IsUidNetAllowed()
|
/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_manager_test/ |
H A D | net_policy_exception_service_test.cpp | 44 * @tc.name: IsUidNetAllowed 45 * @tc.desc: Test NetPolicyService IsUidNetAllowed. 48 HWTEST_F(NetPolicyExceptionServiceUt, IsUidNetAllowed, TestSize.Level1) in HWTEST_F() 53 int32_t ret = DelayedSingleton<NetPolicyService>::GetInstance()->IsUidNetAllowed(uit, metered, isAllowed); in HWTEST_F()
|
H A D | ut_net_policy_service_common.cpp | 67 auto ret = instance_->IsUidNetAllowed(uid, metered); in HWTEST_F()
|
H A D | net_policy_service_stub_test.cpp | 51 int32_t IsUidNetAllowed(uint32_t uid, bool metered, bool &isAllowed) override 56 int32_t IsUidNetAllowed(uint32_t uid, const std::string &ifaceName, bool &isAllowed) override
|
H A D | ut_net_policy_service.cpp | 87 * @tc.desc: Test NetPolicyService IsUidNetAllowed. 95 int32_t ret = instance_->IsUidNetAllowed(uid, policy, isAllowed); in HWTEST_F() 101 * @tc.desc: Test NetPolicyService IsUidNetAllowed. 109 int32_t ret = instance_->IsUidNetAllowed(uid, ifaceName, isAllowed); in HWTEST_F()
|
H A D | ut_net_policy_client.cpp | 136 * @tc.desc: Test NetPolicyClient IsUidNetAllowed. 143 int32_t ret = g_netPolicyClient->IsUidNetAllowed(TEST_UID, false, isAllowed); in HWTEST_F() 145 std::cout << "NetPolicyClient004 IsUidNetAllowed ret:" << ret << std::endl; in HWTEST_F() 151 * @tc.desc: Test NetPolicyClient IsUidNetAllowed. 159 int32_t ret = g_netPolicyClient->IsUidNetAllowed(TEST_UID, ifaceName, isAllowed); in HWTEST_F() 161 std::cout << "NetPolicyClient005 IsUidNetAllowed isAllowed:" << isAllowed << std::endl; in HWTEST_F()
|
H A D | ut_net_policy_rule.cpp | 90 * @tc.desc: Test NetPolicyRule IsUidNetAllowed. 98 g_netPolicyRule->IsUidNetAllowed(15000, false, isAllowed); in HWTEST_F()
|
/foundation/communication/netmanager_base/services/common/src/ |
H A D | net_manager_center.cpp | 174 return IsUidNetAllowed(uid, metered); in IsUidNetAccess() 177 bool NetManagerCenter::IsUidNetAllowed(uint32_t uid, bool metered) in IsUidNetAllowed() function in OHOS::NetManagerStandard::NetManagerCenter 182 return policyService_->IsUidNetAllowed(uid, metered); in IsUidNetAllowed()
|
/foundation/communication/netmanager_base/services/common/include/ |
H A D | net_policy_base_service.h | 25 virtual bool IsUidNetAllowed(uint32_t uid, bool metered) = 0;
|
H A D | net_manager_center.h | 59 bool IsUidNetAllowed(uint32_t uid, bool metered);
|
/foundation/communication/netmanager_base/services/netpolicymanager/include/ |
H A D | net_policy_service_common.h | 39 bool IsUidNetAllowed(uint32_t uid, bool metered) override;
|
H A D | net_policy_service.h | 88 int32_t IsUidNetAllowed(uint32_t uid, bool metered, bool &isAllowed) override; 98 int32_t IsUidNetAllowed(uint32_t uid, const std::string &ifaceName, bool &isAllowed) override;
|
H A D | net_policy_rule.h | 74 int32_t IsUidNetAllowed(uint32_t uid, bool metered, bool &isAllowed);
|
/foundation/communication/netmanager_base/frameworks/native/netpolicyclient/src/ |
H A D | net_policy_client.cpp | 64 int32_t NetPolicyClient::IsUidNetAllowed(uint32_t uid, bool metered, bool &isAllowed) in IsUidNetAllowed() function in OHOS::NetManagerStandard::NetPolicyClient 71 return proxy->IsUidNetAllowed(uid, metered, isAllowed); in IsUidNetAllowed() 74 int32_t NetPolicyClient::IsUidNetAllowed(uint32_t uid, const std::string &ifaceName, bool &isAllowed) in IsUidNetAllowed() function in OHOS::NetManagerStandard::NetPolicyClient 82 return proxy->IsUidNetAllowed(uid, ifaceName, isAllowed); in IsUidNetAllowed() 87 return IsUidNetAllowed(uid, isMetered, isAllowed); in IsUidNetAccess() 92 return IsUidNetAllowed(uid, ifaceName, isAllowed); in IsUidNetAccess()
|
H A D | net_policy_service_proxy.cpp | 148 int32_t NetPolicyServiceProxy::IsUidNetAllowed(uint32_t uid, bool metered, bool &isAllowed) in IsUidNetAllowed() function in OHOS::NetManagerStandard::NetPolicyServiceProxy 188 int32_t NetPolicyServiceProxy::IsUidNetAllowed(uint32_t uid, const std::string &ifaceName, bool &isAllowed) in IsUidNetAllowed() function in OHOS::NetManagerStandard::NetPolicyServiceProxy
|
/foundation/communication/netmanager_base/interfaces/innerkits/netpolicyclient/include/ |
H A D | i_net_policy_service.h | 73 virtual int32_t IsUidNetAllowed(uint32_t uid, bool metered, bool &isAllowed) = 0; 84 virtual int32_t IsUidNetAllowed(uint32_t uid, const std::string &ifaceName, bool &isAllowed) = 0;
|
H A D | net_policy_service_proxy.h | 34 int32_t IsUidNetAllowed(uint32_t uid, bool metered, bool &isAllowed) override; 35 int32_t IsUidNetAllowed(uint32_t uid, const std::string &ifaceName, bool &isAllowed) override;
|
H A D | net_policy_client.h | 77 [[nodiscard]] int32_t IsUidNetAllowed(uint32_t uid, bool metered, bool &isAllowed); 89 [[nodiscard]] int32_t IsUidNetAllowed(uint32_t uid, const std::string &ifaceName, bool &isAllowed);
|
/foundation/communication/netmanager_base/services/netpolicymanager/src/ |
H A D | net_policy_service.cpp | 155 int32_t NetPolicyService::IsUidNetAllowed(uint32_t uid, bool metered, bool &isAllowed) in IsUidNetAllowed() function in OHOS::NetManagerStandard::NetPolicyService 157 NETMGR_LOG_I("IsUidNetAllowed uid[%{public}d metered[%{public}d]", uid, metered); in IsUidNetAllowed() 163 return netPolicyRule_->IsUidNetAllowed(uid, metered, isAllowed); in IsUidNetAllowed() 168 int32_t NetPolicyService::IsUidNetAllowed(uint32_t uid, const std::string &ifaceName, bool &isAllowed) in IsUidNetAllowed() function in OHOS::NetManagerStandard::NetPolicyService 170 NETMGR_LOG_D("IsUidNetAllowed uid[%{public}d ifaceName[%{public}s]", uid, ifaceName.c_str()); in IsUidNetAllowed() 173 return IsUidNetAllowed(uid, true, isAllowed); in IsUidNetAllowed() 175 return IsUidNetAllowed(uid, false, isAllowed); in IsUidNetAllowed()
|
/foundation/communication/netmanager_base/test/netcommon/unittest/net_common_test/ |
H A D | net_manager_center_test.cpp | 101 inline bool IsUidNetAllowed(uint32_t uid, bool metered) override 462 bool ret = instance_.IsUidNetAllowed(0, true); in HWTEST_F() 468 bool ret = instance_.IsUidNetAllowed(0, false); in HWTEST_F()
|
/foundation/communication/netmanager_base/frameworks/js/napi/netpolicy/src/ |
H A D | netpolicy_module.cpp | 164 napi_value IsUidNetAllowed(napi_env env, napi_callback_info info) in IsUidNetAllowed() function 339 DECLARE_NAPI_FUNCTION(FUNCTION_IS_UID_NET_ACCESS, IsUidNetAllowed), in InitPolicyModule()
|
H A D | netpolicy_exec.cpp | 125 result = NetPolicyClient::GetInstance().IsUidNetAllowed(context->uid_, context->isMetered_, context->isUidNet_); in ExecIsUidNetAllowed() 127 result = NetPolicyClient::GetInstance().IsUidNetAllowed(context->uid_, context->iface_, context->isUidNet_); in ExecIsUidNetAllowed()
|
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/conn_vpn_manager_test/ |
H A D | ut_net_policy_service.cpp | 87 * @tc.desc: Test NetPolicyService IsUidNetAllowed. 95 int32_t ret = instance_->IsUidNetAllowed(uid, policy, isAllowed); in HWTEST_F() 101 * @tc.desc: Test NetPolicyService IsUidNetAllowed. 109 int32_t ret = instance_->IsUidNetAllowed(uid, ifaceName, isAllowed); in HWTEST_F()
|
/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_service_test/ |
H A D | net_policy_service_test.cpp | 109 auto ret = instance_->IsUidNetAllowed(0, ifaceName, isAllowed); in HWTEST_F()
|
/foundation/communication/netmanager_base/test/fuzztest/common_fuzzer/ |
H A D | common_fuzzer.cpp | 278 g_netManagerCenter->IsUidNetAllowed(uid, metered); in IsUidNetAllowedFuzzTest()
|