Home
last modified time | relevance | path

Searched refs:IsUidNetAccess (Results 1 - 8 of 8) sorted by relevance

/foundation/communication/netmanager_base/interfaces/innerkits/netpolicyclient/include/
H A Dnet_policy_client.h94 [[nodiscard]] int32_t IsUidNetAccess(uint32_t uid, bool isMetered, bool &isAllowed);
99 [[nodiscard]] int32_t IsUidNetAccess(uint32_t uid, const std::string &ifaceName, bool &isAllowed);
/foundation/communication/netmanager_base/services/common/include/
H A Dnet_manager_center.h58 bool IsUidNetAccess(uint32_t uid, bool metered);
/foundation/communication/netmanager_base/services/common/src/
H A Dnet_manager_center.cpp169 bool NetManagerCenter::IsUidNetAccess(uint32_t uid, bool metered) in IsUidNetAccess() function in OHOS::NetManagerStandard::NetManagerCenter
/foundation/communication/netmanager_base/frameworks/native/netpolicyclient/src/
H A Dnet_policy_client.cpp85 int32_t NetPolicyClient::IsUidNetAccess(uint32_t uid, bool isMetered, bool &isAllowed) in IsUidNetAccess() function in OHOS::NetManagerStandard::NetPolicyClient
90 int32_t NetPolicyClient::IsUidNetAccess(uint32_t uid, const std::string &ifaceName, bool &isAllowed) in IsUidNetAccess() function in OHOS::NetManagerStandard::NetPolicyClient
/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_manager_test/
H A Dut_net_policy_client.cpp167 * @tc.desc: Test NetPolicyClient IsUidNetAccess.
174 int32_t ret = g_netPolicyClient->IsUidNetAccess(TEST_UID, false, isAllowed); in HWTEST_F()
175 std::cout << "NetPolicyClient006 IsUidNetAccess isAllowed:" << isAllowed << std::endl; in HWTEST_F()
182 * @tc.desc: Test NetPolicyClient IsUidNetAccess.
190 int32_t ret = g_netPolicyClient->IsUidNetAccess(TEST_UID, ifaceName, isAllowed); in HWTEST_F()
191 std::cout << "NetPolicyClient007 IsUidNetAccess isAllowed:" << isAllowed << std::endl; in HWTEST_F()
/foundation/communication/netmanager_base/test/netcommon/unittest/net_common_test/
H A Dnet_manager_center_test.cpp450 bool ret = instance_.IsUidNetAccess(0, false); in HWTEST_F()
456 bool ret = instance_.IsUidNetAccess(0, true); in HWTEST_F()
/foundation/communication/netmanager_base/test/fuzztest/common_fuzzer/
H A Dcommon_fuzzer.cpp268 g_netManagerCenter->IsUidNetAccess(uid, metered); in IsUidNetAccessFuzzTest()
/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnet_conn_service.cpp1437 bool newBlocked = NetManagerCenter::GetInstance().IsUidNetAccess(supplier->GetSupplierUid(), Metered); in CallbackForSupplier()
2386 bool newBlocked = NetManagerCenter::GetInstance().IsUidNetAccess(uid, metered); in SendNetPolicyChange()

Completed in 10 milliseconds