Home
last modified time | relevance | path

Searched refs:IsUidNetAllowed (Results 1 - 25 of 28) sorted by relevance

12

/foundation/communication/netmanager_base/services/netpolicymanager/src/common/
H A Dnet_policy_service_common.cpp27 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 Dnet_policy_exception_service_test.cpp44 * @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 Dut_net_policy_service_common.cpp67 auto ret = instance_->IsUidNetAllowed(uid, metered); in HWTEST_F()
H A Dnet_policy_service_stub_test.cpp51 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 Dut_net_policy_service.cpp87 * @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 Dut_net_policy_client.cpp136 * @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 Dut_net_policy_rule.cpp90 * @tc.desc: Test NetPolicyRule IsUidNetAllowed.
98 g_netPolicyRule->IsUidNetAllowed(15000, false, isAllowed); in HWTEST_F()
/foundation/communication/netmanager_base/services/common/src/
H A Dnet_manager_center.cpp174 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 Dnet_policy_base_service.h25 virtual bool IsUidNetAllowed(uint32_t uid, bool metered) = 0;
H A Dnet_manager_center.h59 bool IsUidNetAllowed(uint32_t uid, bool metered);
/foundation/communication/netmanager_base/services/netpolicymanager/include/
H A Dnet_policy_service_common.h39 bool IsUidNetAllowed(uint32_t uid, bool metered) override;
H A Dnet_policy_service.h88 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 Dnet_policy_rule.h74 int32_t IsUidNetAllowed(uint32_t uid, bool metered, bool &isAllowed);
/foundation/communication/netmanager_base/frameworks/native/netpolicyclient/src/
H A Dnet_policy_client.cpp64 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 Dnet_policy_service_proxy.cpp148 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 Di_net_policy_service.h73 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 Dnet_policy_service_proxy.h34 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 Dnet_policy_client.h77 [[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 Dnet_policy_service.cpp155 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 Dnet_manager_center_test.cpp101 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 Dnetpolicy_module.cpp164 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 Dnetpolicy_exec.cpp125 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 Dut_net_policy_service.cpp87 * @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 Dnet_policy_service_test.cpp109 auto ret = instance_->IsUidNetAllowed(0, ifaceName, isAllowed); in HWTEST_F()
/foundation/communication/netmanager_base/test/fuzztest/common_fuzzer/
H A Dcommon_fuzzer.cpp278 g_netManagerCenter->IsUidNetAllowed(uid, metered); in IsUidNetAllowedFuzzTest()

Completed in 14 milliseconds

12