Home
last modified time | relevance | path

Searched refs:backgroundPolicyOfUid (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/foundation/communication/netmanager_base/services/netpolicymanager/src/core/
H A Dnet_policy_rule.cpp303 int32_t NetPolicyRule::GetBackgroundPolicyByUid(uint32_t uid, uint32_t &backgroundPolicyOfUid) in GetBackgroundPolicyByUid() argument
309 backgroundPolicyOfUid = NET_BACKGROUND_POLICY_DISABLE; in GetBackgroundPolicyByUid()
314 backgroundPolicyOfUid = NET_BACKGROUND_POLICY_ENABLE; in GetBackgroundPolicyByUid()
319 backgroundPolicyOfUid = NET_BACKGROUND_POLICY_TRUSTLIST; in GetBackgroundPolicyByUid()
322 backgroundPolicyOfUid = NET_BACKGROUND_POLICY_DISABLE; in GetBackgroundPolicyByUid()
/ohos5.0/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_manager_test/
H A Dnet_policy_manager_test.cpp403 uint32_t backgroundPolicyOfUid = 0; variable
405 BACKGROUND_POLICY_TEST_UID, backgroundPolicyOfUid);
406 …std::cout << "NetPolicyManager017 GetBackgroundPolicyByUid " << backgroundPolicyOfUid << std::endl;
409 ASSERT_EQ(backgroundPolicyOfUid, NET_BACKGROUND_POLICY_DISABLE);
421 uint32_t backgroundPolicyOfUid = 0; variable
423 BACKGROUND_POLICY_TEST_UID, backgroundPolicyOfUid);
424 …std::cout << "NetPolicyManager0018 GetBackgroundPolicyByUid " << backgroundPolicyOfUid << std::end…
427 ASSERT_EQ(backgroundPolicyOfUid, NET_BACKGROUND_POLICY_ENABLE);
H A Dut_net_policy_rule.cpp199 uint32_t backgroundPolicyOfUid = 0; variable
200 g_netPolicyRule->GetBackgroundPolicyByUid(TEST_UID2, backgroundPolicyOfUid);
201 ASSERT_EQ(backgroundPolicyOfUid, NetBackgroundPolicy::NET_BACKGROUND_POLICY_DISABLE);
H A Dut_net_policy_client.cpp321 uint32_t backgroundPolicyOfUid = 0; variable
323 int32_t ret2 = g_netPolicyClient->GetBackgroundPolicyByUid(TEST_UID, backgroundPolicyOfUid);
325 ASSERT_EQ(backgroundPolicyOfUid, NET_BACKGROUND_POLICY_DISABLE);
H A Dut_net_policy_service.cpp169 uint32_t backgroundPolicyOfUid = 0; variable
170 int32_t ret = instance_->GetBackgroundPolicyByUid(uid, backgroundPolicyOfUid);
H A Dnet_policy_service_stub_test.cpp116 int32_t GetBackgroundPolicyByUid(uint32_t uid, uint32_t &backgroundPolicyOfUid) override in GetBackgroundPolicyByUid() argument
/ohos5.0/foundation/communication/netmanager_base/interfaces/innerkits/netpolicyclient/include/
H A Di_net_policy_service.h186 virtual int32_t GetBackgroundPolicyByUid(uint32_t uid, uint32_t &backgroundPolicyOfUid) = 0;
H A Dnet_policy_service_proxy.h43 int32_t GetBackgroundPolicyByUid(uint32_t uid, uint32_t &backgroundPolicyOfUid) override;
H A Dnet_policy_client.h191 [[nodiscard]] int32_t GetBackgroundPolicyByUid(uint32_t uid, uint32_t &backgroundPolicyOfUid);
/ohos5.0/foundation/communication/netmanager_base/frameworks/native/netpolicyclient/src/
H A Dnet_policy_client.cpp289 int32_t NetPolicyClient::GetBackgroundPolicyByUid(uint32_t uid, uint32_t &backgroundPolicyOfUid) in GetBackgroundPolicyByUid() argument
296 return proxy->GetBackgroundPolicyByUid(uid, backgroundPolicyOfUid); in GetBackgroundPolicyByUid()
H A Dnet_policy_service_proxy.cpp419 …32_t NetPolicyServiceProxy::GetBackgroundPolicyByUid(uint32_t uid, uint32_t &backgroundPolicyOfUid) in GetBackgroundPolicyByUid() argument
447 if (!reply.ReadUint32(backgroundPolicyOfUid)) { in GetBackgroundPolicyByUid()
/ohos5.0/foundation/communication/netmanager_base/services/netpolicymanager/include/
H A Dnet_policy_rule.h129 int32_t GetBackgroundPolicyByUid(uint32_t uid, uint32_t &backgroundPolicyOfUid);
H A Dnet_policy_service.h157 int32_t GetBackgroundPolicyByUid(uint32_t uid, uint32_t &backgroundPolicyOfUid) override;
/ohos5.0/foundation/communication/netmanager_base/services/netpolicymanager/src/stub/
H A Dnet_policy_service_stub.cpp489 uint32_t backgroundPolicyOfUid = 0; in OnGetBackgroundPolicyByUid() local
490 int32_t result = GetBackgroundPolicyByUid(uid, backgroundPolicyOfUid); in OnGetBackgroundPolicyByUid()
496 if (!reply.WriteUint32(backgroundPolicyOfUid)) { in OnGetBackgroundPolicyByUid()
/ohos5.0/foundation/communication/netmanager_base/services/netpolicymanager/src/
H A Dnet_policy_service.cpp261 int32_t NetPolicyService::GetBackgroundPolicyByUid(uint32_t uid, uint32_t &backgroundPolicyOfUid) in GetBackgroundPolicyByUid() argument
268 return netPolicyRule_->GetBackgroundPolicyByUid(uid, backgroundPolicyOfUid); in GetBackgroundPolicyByUid()