Home
last modified time | relevance | path

Searched refs:cellularPolicy (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_manager_test/
H A Dnet_policy_manager_test.cpp284 NetQuotaPolicy cellularPolicy; variable
286 cellularPolicy.networkmatchrule.simId = std::to_string(i);
287 cellularPolicy.quotapolicy.periodStartTime = TRIGER_DELAY_US + i;
288 cellularPolicy.quotapolicy.periodDuration = TEST_STRING_PERIODDURATION;
289 cellularPolicy.quotapolicy.title = std::to_string(TRIGER_DELAY_US + i);
290 cellularPolicy.quotapolicy.summary = std::to_string(TRIGER_DELAY_US + i);
291 cellularPolicy.quotapolicy.limitBytes = TRIGER_DELAY_US + i;
292 cellularPolicy.quotapolicy.limitAction = TEST_CONSTANT_NUM;
293 cellularPolicy.quotapolicy.usedBytes = TRIGER_DELAY_US + i;
294 cellularPolicy.quotapolicy.usedTimeDuration = TRIGER_DELAY_US + i;
[all …]
/ohos5.0/foundation/communication/netmanager_base/services/netpolicymanager/src/
H A Dnet_access_policy_database.cpp102 policyValues.PutInt(NetAccessPolicyRdbFiledConst::FILED_CELLULAR_POLICY, policy.cellularPolicy); in InsertData()
153 policyValues.PutInt(NetAccessPolicyRdbFiledConst::FILED_CELLULAR_POLICY, policy.cellularPolicy); in UpdateByUid()
189 …ueryResultSet->GetInt(NetAccessPolicyRdbFiledConst::FILED_COLUMN_INDEX_TWO, policy.cellularPolicy); in QueryAll()
229 …yResultSet->GetInt(NetAccessPolicyRdbFiledConst::FILED_COLUMN_INDEX_TWO, uidPolicy.cellularPolicy); in QueryByUid()
H A Dnet_policy_service.cpp433 policy.cellularAllow = result[i].cellularPolicy; in UpdateNetAccessPolicyToMapFromDB()
452 data.cellularPolicy = policy.cellularAllow; in SetNetworkAccessPolicy()
470 policy.policy.cellularAllow = policyData.cellularPolicy; in GetNetworkAccessPolicy()
504 policyTmp.cellularAllow = policyData.cellularPolicy; in GetNetworkAccessPolicy()
/ohos5.0/foundation/communication/netmanager_base/services/netpolicymanager/include/
H A Dnet_access_policy_rdb.h47 int32_t cellularPolicy; member
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/
H A Dbpf_def.h70 __u8 cellularPolicy; member
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
H A Dnetsys.c197 (!netAccessPolicyValue->cellularPolicy)) { in check_network_policy()
213 …f (((*net_bear_type == NETWORK_BEARER_TYPE_CELLULAR)) && (!netAccessPolicyValue->cellularPolicy)) { in check_network_policy()
505 (!value->cellularPolicy))) { in socket_check_network_policy()
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/manager/
H A Dconn_manager.cpp427 v.cellularPolicy = policy.cellularAllow; in SetNetworkAccessPolicy()
437 uid, v2.wifiPolicy, v2.cellularPolicy, v2.configSetFromFlag); in SetNetworkAccessPolicy()