Home
last modified time | relevance | path

Searched refs:backgroundPolicy (Results 1 - 19 of 19) sorted by relevance

/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_manager_test/
H A Dut_net_policy_rule.cpp185 bool backgroundPolicy = false; in HWTEST_F() local
186 g_netPolicyRule->GetBackgroundPolicy(backgroundPolicy); in HWTEST_F()
187 ASSERT_TRUE(backgroundPolicy); in HWTEST_F()
214 bool backgroundPolicy; in HWTEST_F() local
215 g_netPolicyRule->GetBackgroundPolicy(backgroundPolicy); in HWTEST_F()
216 ASSERT_TRUE(backgroundPolicy); in HWTEST_F()
H A Dut_net_policy_client.cpp303 bool backgroundPolicy; in HWTEST_F() local
305 int32_t ret = g_netPolicyClient->GetBackgroundPolicy(backgroundPolicy); in HWTEST_F()
308 ASSERT_TRUE(backgroundPolicy == true); in HWTEST_F()
H A Dut_net_policy_service.cpp156 bool backgroundPolicy = false; in HWTEST_F() local
157 int32_t ret = instance_->GetBackgroundPolicy(backgroundPolicy); in HWTEST_F()
H A Dnet_policy_manager_test.cpp389 bool backgroundPolicy = false; in HWTEST_F() local
390 int32_t result = DelayedSingleton<NetPolicyClient>::GetInstance()->GetBackgroundPolicy(backgroundPolicy); in HWTEST_F()
H A Dnet_policy_service_stub_test.cpp111 int32_t GetBackgroundPolicy(bool &backgroundPolicy) override
/foundation/communication/netmanager_base/services/netpolicymanager/src/core/
H A Dnet_policy_file.cpp325 cJSON *backgroundPolicy = cJSON_CreateObject(); in AddBackgroundPolicy() local
330 cJSON_AddItemToObject(backgroundPolicy, CONFIG_BACKGROUND_POLICY_STATUS, in AddBackgroundPolicy()
332 cJSON_AddItemToObject(root, CONFIG_BACKGROUND_POLICY, backgroundPolicy); in AddBackgroundPolicy()
514 void NetPolicyFile::WriteBackgroundPolicy(bool backgroundPolicy) in WriteBackgroundPolicy() argument
516 if (backgroundPolicy) { in WriteBackgroundPolicy()
H A Dnet_policy_rule.cpp335 int32_t NetPolicyRule::GetBackgroundPolicy(bool &backgroundPolicy) in GetBackgroundPolicy() argument
338 backgroundPolicy = backgroundAllow_; in GetBackgroundPolicy()
/foundation/communication/netmanager_base/interfaces/innerkits/netpolicyclient/include/
H A Di_net_policy_service.h172 * @param backgroundPolicy True is allowed to use data on background.
176 virtual int32_t GetBackgroundPolicy(bool &backgroundPolicy) = 0;
182 * @param backgroundPolicyOfUid The specified UID of backgroundPolicy.
H A Dnet_policy_service_proxy.h42 int32_t GetBackgroundPolicy(bool &backgroundPolicy) override;
H A Dnet_policy_client.h175 * @param backgroundPolicy Put the background policy's value
180 [[nodiscard]] int32_t GetBackgroundPolicy(bool &backgroundPolicy);
/foundation/communication/netmanager_base/services/netpolicymanager/include/
H A Dnet_policy_rule.h123 * @param backgroundPolicyOfUid The specified UID of backgroundPolicy.
133 * @param backgroundPolicy True is allowed to use data on background.
139 int32_t GetBackgroundPolicy(bool &backgroundPolicy);
H A Dnet_policy_service.h144 * @param backgroundPolicy True is allowed to use data on background.
148 int32_t GetBackgroundPolicy(bool &backgroundPolicy) override;
153 * @param backgroundPolicyOfUid The specified UID of backgroundPolicy.
/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_service_test/
H A Dnet_policy_service_test.cpp161 bool backgroundPolicy = true; in HWTEST_F() local
162 ret = instance_->GetBackgroundPolicy(backgroundPolicy); in HWTEST_F()
/foundation/communication/netmanager_base/services/netpolicymanager/src/
H A Dnet_policy_service.cpp252 int32_t NetPolicyService::GetBackgroundPolicy(bool &backgroundPolicy) in GetBackgroundPolicy() argument
259 return netPolicyRule_->GetBackgroundPolicy(backgroundPolicy); in GetBackgroundPolicy()
/foundation/communication/netmanager_base/frameworks/native/netpolicyclient/src/
H A Dnet_policy_client.cpp278 int32_t NetPolicyClient::GetBackgroundPolicy(bool &backgroundPolicy) in GetBackgroundPolicy() argument
286 return proxy->GetBackgroundPolicy(backgroundPolicy); in GetBackgroundPolicy()
H A Dnet_policy_service_proxy.cpp389 int32_t NetPolicyServiceProxy::GetBackgroundPolicy(bool &backgroundPolicy) in GetBackgroundPolicy() argument
412 if (!reply.ReadBool(backgroundPolicy)) { in GetBackgroundPolicy()
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/conn_vpn_manager_test/
H A Dut_net_policy_service.cpp156 bool backgroundPolicy = false; in HWTEST_F() local
157 int32_t ret = instance_->GetBackgroundPolicy(backgroundPolicy); in HWTEST_F()
/foundation/communication/netmanager_base/services/netpolicymanager/src/stub/
H A Dnet_policy_service_stub.cpp464 bool backgroundPolicy = false; in OnGetBackgroundPolicy() local
465 int32_t result = GetBackgroundPolicy(backgroundPolicy); in OnGetBackgroundPolicy()
471 if (!reply.WriteBool(backgroundPolicy)) { in OnGetBackgroundPolicy()
/foundation/communication/netmanager_base/frameworks/js/napi/netpolicy/src/
H A Dnapi_net_policy.cpp506 context->backgroundPolicy = NetPolicyClient::GetInstance().GetCurrentBackgroundPolicy(); in ExecGetBackgroundPolicy()
556 napi_create_int32(env, static_cast<int32_t>(context->backgroundPolicy), &callbackValue); in CompleteGetBackgroundPolicy()

Completed in 16 milliseconds