Home
last modified time | relevance | path

Searched refs:backgroundPolicyOfUid (Results 1 - 17 of 17) sorted by relevance

/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()
/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_manager_test/
H A Dnet_policy_manager_test.cpp403 uint32_t backgroundPolicyOfUid = 0; in HWTEST_F() local
405 BACKGROUND_POLICY_TEST_UID, backgroundPolicyOfUid); in HWTEST_F()
406 std::cout << "NetPolicyManager017 GetBackgroundPolicyByUid " << backgroundPolicyOfUid << std::endl; in HWTEST_F()
409 ASSERT_EQ(backgroundPolicyOfUid, NET_BACKGROUND_POLICY_DISABLE); in HWTEST_F()
421 uint32_t backgroundPolicyOfUid = 0; in HWTEST_F() local
423 BACKGROUND_POLICY_TEST_UID, backgroundPolicyOfUid); in HWTEST_F()
424 std::cout << "NetPolicyManager0018 GetBackgroundPolicyByUid " << backgroundPolicyOfUid << std::endl; in HWTEST_F()
427 ASSERT_EQ(backgroundPolicyOfUid, NET_BACKGROUND_POLICY_ENABLE); in HWTEST_F()
H A Dut_net_policy_rule.cpp199 uint32_t backgroundPolicyOfUid = 0; in HWTEST_F() local
200 g_netPolicyRule->GetBackgroundPolicyByUid(TEST_UID2, backgroundPolicyOfUid); in HWTEST_F()
201 ASSERT_EQ(backgroundPolicyOfUid, NetBackgroundPolicy::NET_BACKGROUND_POLICY_DISABLE); in HWTEST_F()
H A Dut_net_policy_client.cpp321 uint32_t backgroundPolicyOfUid = 0; in HWTEST_F() local
323 int32_t ret2 = g_netPolicyClient->GetBackgroundPolicyByUid(TEST_UID, backgroundPolicyOfUid); in HWTEST_F()
325 ASSERT_EQ(backgroundPolicyOfUid, NET_BACKGROUND_POLICY_DISABLE); in HWTEST_F()
H A Dut_net_policy_service.cpp169 uint32_t backgroundPolicyOfUid = 0; in HWTEST_F() local
170 int32_t ret = instance_->GetBackgroundPolicyByUid(uid, backgroundPolicyOfUid); in HWTEST_F()
H A Dnet_policy_service_stub_test.cpp116 int32_t GetBackgroundPolicyByUid(uint32_t uid, uint32_t &backgroundPolicyOfUid) override
/foundation/communication/netmanager_base/interfaces/innerkits/netpolicyclient/include/
H A Di_net_policy_service.h182 * @param backgroundPolicyOfUid The specified UID of backgroundPolicy.
186 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.h186 * @param backgroundPolicyOfUid The result of this uid's background policy,{@link NetBackgroundPolicy}
191 [[nodiscard]] int32_t GetBackgroundPolicyByUid(uint32_t uid, uint32_t &backgroundPolicyOfUid);
/foundation/communication/netmanager_base/services/netpolicymanager/include/
H A Dnet_policy_rule.h123 * @param backgroundPolicyOfUid The specified UID of backgroundPolicy.
129 int32_t GetBackgroundPolicyByUid(uint32_t uid, uint32_t &backgroundPolicyOfUid);
H A Dnet_policy_service.h153 * @param backgroundPolicyOfUid The specified UID of backgroundPolicy.
157 int32_t GetBackgroundPolicyByUid(uint32_t uid, uint32_t &backgroundPolicyOfUid) override;
/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_service_test/
H A Dnet_policy_service_test.cpp164 uint32_t backgroundPolicyOfUid = 0; in HWTEST_F() local
165 ret = instance_->GetBackgroundPolicyByUid(0, backgroundPolicyOfUid); in HWTEST_F()
/foundation/communication/netmanager_base/services/netpolicymanager/src/
H A Dnet_policy_service.cpp262 int32_t NetPolicyService::GetBackgroundPolicyByUid(uint32_t uid, uint32_t &backgroundPolicyOfUid) in GetBackgroundPolicyByUid() argument
269 return netPolicyRule_->GetBackgroundPolicyByUid(uid, backgroundPolicyOfUid); in GetBackgroundPolicyByUid()
/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 int32_t NetPolicyServiceProxy::GetBackgroundPolicyByUid(uint32_t uid, uint32_t &backgroundPolicyOfUid) in GetBackgroundPolicyByUid() argument
447 if (!reply.ReadUint32(backgroundPolicyOfUid)) { in GetBackgroundPolicyByUid()
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/conn_vpn_manager_test/
H A Dut_net_policy_service.cpp169 uint32_t backgroundPolicyOfUid = 0; in HWTEST_F() local
170 int32_t ret = instance_->GetBackgroundPolicyByUid(uid, backgroundPolicyOfUid); in HWTEST_F()
/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()

Completed in 15 milliseconds