Home
last modified time | relevance | path

Searched refs:netType (Results 1 - 25 of 45) sorted by relevance

12

/foundation/communication/netmanager_base/frameworks/js/napi/network/observer/src/
H A Dnetwork_observer.cpp35 std::unique_ptr<NetworkType, decltype(deleter)> netType(data, deleter); in MakeNetworkResponse()
38 if (netType->bearerTypes.find(BEARER_WIFI) != netType->bearerTypes.end()) { in MakeNetworkResponse()
44 if (netType->bearerTypes.find(BEARER_CELLULAR) != netType->bearerTypes.end()) { in MakeNetworkResponse()
76 auto netType = new NetworkType; in NetCapabilitiesChange() local
77 netType->bearerTypes = netAllCap->bearerTypes_; in NetCapabilitiesChange()
78 manager_->EmitByUv(EVENT_SUBSCRIBE, netType, CallbackTemplate<MakeNetworkResponse>); in NetCapabilitiesChange()
105 auto netType = new NetworkType; in NetUnavailable() local
106 manager_->EmitByUv(EVENT_SUBSCRIBE, netType, CallbackTemplat in NetUnavailable()
[all...]
/foundation/communication/netmanager_base/services/netpolicymanager/src/core/
H A Dnet_policy_traffic.cpp62 int32_t netType = quotaPolicy.networkmatchrule.netType; in IsValidQuotaPolicy() local
63 if (!IsValidNetType(netType)) { in IsValidQuotaPolicy()
64 NETMGR_LOG_E("NetPolicyType is invalid policy[%{public}d]", netType); in IsValidQuotaPolicy()
75 bool NetPolicyTraffic::IsValidNetType(int32_t netType) in IsValidNetType() argument
77 switch (netType) { in IsValidNetType()
87 NETMGR_LOG_E("Invalid netType [%{public}d]", netType); in IsValidNetType()
152 NETMGR_LOG_E("UpdateQuotaPolicies invalid quota policy netType[%{public}d], periodDuration[%{public}s]", in FormalizeQuotaPolicies()
153 quotaPolicy.networkmatchrule.netType, quotaPolic in FormalizeQuotaPolicies()
286 UpdateRemindPolicy(int32_t netType, const std::string &simId, uint32_t remindType) UpdateRemindPolicy() argument
466 IsQuotaPolicyExist(int32_t netType, const std::string &simId) IsQuotaPolicyExist() argument
[all...]
H A Dnet_policy_file.cpp154 cJSON *netType = cJSON_GetObjectItem(quotaPolicyItem, CONFIG_QUOTA_POLICY_NETTYPE); in ParseQuotaPolicy() local
155 quotaPolicy.netType = cJSON_GetStringValue(netType); in ParseQuotaPolicy()
172 NETMGR_LOG_D("netType:%{public}s, simId:%{public}s, perioST:%{public}s, perioDt:%{public}s, ident:%{public}s,\ in ParseQuotaPolicy()
174 quotaPolicy.netType.c_str(), quotaPolicy.simId.c_str(), quotaPolicy.periodStartTime.c_str(), in ParseQuotaPolicy()
284 cJSON_CreateString(netPolicy_.netQuotaPolicies[i].netType.c_str())); in AddQuotaPolicy()
431 netPolicy_.netQuotaPolicies[i].netType == std::to_string(quotaPolicy.networkmatchrule.netType)) { in UpdateQuotaPolicyExist()
435 netPolicy_.netQuotaPolicies[i].netType = std::to_string(quotaPolicy.networkmatchrule.netType); in UpdateQuotaPolicyExist()
[all...]
/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_manager_test/
H A Dut_net_policy_traffic.cpp77 quotaPolicy1.networkmatchrule.netType = NetBearType::BEARER_CELLULAR; in SetUp()
88 quotaPolicy2.networkmatchrule.netType = NetBearType::BEARER_CELLULAR; in SetUp()
116 quotaPolicy1.networkmatchrule.netType = NetBearType::BEARER_CELLULAR; in HWTEST_F()
126 quotaPolicy2.networkmatchrule.netType = NetBearType::BEARER_CELLULAR; in HWTEST_F()
168 if (quotaPolicy.networkmatchrule.netType == NetBearType::BEARER_CELLULAR && in HWTEST_F()
195 if (quotaPolicy.networkmatchrule.netType == NetBearType::BEARER_CELLULAR && in HWTEST_F()
222 if (quotaPolicy.networkmatchrule.netType == NetBearType::BEARER_CELLULAR && in HWTEST_F()
351 quotaPolicy.networkmatchrule.netType = NetBearType::BEARER_DEFAULT; in HWTEST_F()
368 quotaPolicy.networkmatchrule.netType = NetBearType::BEARER_DEFAULT; in HWTEST_F()
371 quotaPolicy.networkmatchrule.netType in HWTEST_F()
[all...]
H A Dut_net_policy_service.cpp212 int32_t netType = 0; in HWTEST_F() local
215 ret = instance_->UpdateRemindPolicy(netType, simId, remindType); in HWTEST_F()
263 int32_t netType = 0; in HWTEST_F() local
266 ret = instance_->UpdateRemindPolicy(netType, simId, remindType); in HWTEST_F()
302 int32_t netType = 0; in HWTEST_F() local
306 auto ret = instance_->UpdateRemindPolicy(netType, simId, remindType); in HWTEST_F()
H A Dut_net_policy_callback.cpp138 quotaPolicy1.networkmatchrule.netType = NetBearType::BEARER_CELLULAR; in SetFirstNetQuotaPolicy()
153 quotaPolicy2.networkmatchrule.netType = NetBearType::BEARER_CELLULAR; in SetSecondNetQuotaPolicy()
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/conn_vpn_manager_test/
H A Dut_net_policy_traffic.cpp77 quotaPolicy1.networkmatchrule.netType = NetBearType::BEARER_CELLULAR; in SetUp()
88 quotaPolicy2.networkmatchrule.netType = NetBearType::BEARER_CELLULAR; in SetUp()
116 quotaPolicy1.networkmatchrule.netType = NetBearType::BEARER_CELLULAR; in HWTEST_F()
126 quotaPolicy2.networkmatchrule.netType = NetBearType::BEARER_CELLULAR; in HWTEST_F()
168 if (quotaPolicy.networkmatchrule.netType == NetBearType::BEARER_CELLULAR && in HWTEST_F()
195 if (quotaPolicy.networkmatchrule.netType == NetBearType::BEARER_CELLULAR && in HWTEST_F()
222 if (quotaPolicy.networkmatchrule.netType == NetBearType::BEARER_CELLULAR && in HWTEST_F()
351 quotaPolicy.networkmatchrule.netType = NetBearType::BEARER_DEFAULT; in HWTEST_F()
368 quotaPolicy.networkmatchrule.netType = NetBearType::BEARER_DEFAULT; in HWTEST_F()
371 quotaPolicy.networkmatchrule.netType in HWTEST_F()
[all...]
H A Dut_net_policy_service.cpp212 int32_t netType = 0; in HWTEST_F() local
215 ret = instance_->UpdateRemindPolicy(netType, simId, remindType); in HWTEST_F()
263 int32_t netType = 0; in HWTEST_F() local
266 ret = instance_->UpdateRemindPolicy(netType, simId, remindType); in HWTEST_F()
302 int32_t netType = 0; in HWTEST_F() local
306 auto ret = instance_->UpdateRemindPolicy(netType, simId, remindType); in HWTEST_F()
/foundation/resourceschedule/work_scheduler/services/native/src/conditions/
H A Dnetwork_listener.cpp47 int32_t netType = data.GetWant().GetIntParam("NetType", DEFAULT_VALUE); in OnReceiveEvent() local
48 WS_HILOGI("Condition changed code:%{public}d, netType:%{public}d", code, netType); in OnReceiveEvent()
51 if (netType == DEFAULT_VALUE) { in OnReceiveEvent()
54 switch (netType) { in OnReceiveEvent()
/foundation/communication/dsoftbus/tools/device_info/
H A Dget_device_info.c83 int32_t netType = 0; in PrintNodePropertyNum() local
85 (uint8_t *)&netType, LNN_COMMON_LEN) != 0) { in PrintNodePropertyNum()
88 printf("netType = %d\n", netType); in PrintNodePropertyNum()
/foundation/communication/netmanager_base/services/netpolicymanager/include/
H A Dnet_policy_traffic.h63 * @param netType {@link NetBearType}.
64 * @param simId Specify the matched simId of quota policy when netType is cellular.
68 int32_t UpdateRemindPolicy(int32_t netType, const std::string &simId, uint32_t remindType);
214 bool IsValidNetType(int32_t netType);
216 bool IsQuotaPolicyExist(int32_t netType, const std::string &simId);
H A Dnet_policy_file.h167 quotaPolicy.networkmatchrule.netType = CommonUtils::StrToInt(netPolicyQuota.netType, BEARER_DEFAULT); in ToQuotaPolicy()
H A Dnet_policy_inner_define.h53 constexpr const char *CONFIG_QUOTA_POLICY_NETTYPE = "netType";
88 std::string netType; member
/foundation/communication/netmanager_base/frameworks/native/netpolicyclient/src/
H A Dnet_quota_policy.cpp32 if (!parcel.WriteInt32(networkmatchrule.netType)) { in Marshalling()
91 if (!parcel.ReadInt32(quotaPolicy.networkmatchrule.netType)) { in Unmarshalling()
138 if (!parcel.ReadInt32(quotaPolicyTmp.networkmatchrule.netType)) { in Unmarshalling()
H A Dnet_policy_client.cpp299 NetPolicyResultCode NetPolicyClient::SetSnoozePolicy(int8_t netType, const std::string &simId) in SetSnoozePolicy() argument
301 return static_cast<NetPolicyResultCode>(UpdateRemindPolicy(netType, simId, RemindType::REMIND_TYPE_LIMIT)); in SetSnoozePolicy()
304 int32_t NetPolicyClient::UpdateRemindPolicy(int32_t netType, const std::string &simId, uint32_t remindType) in UpdateRemindPolicy() argument
312 return proxy->UpdateRemindPolicy(netType, simId, remindType); in UpdateRemindPolicy()
/foundation/communication/netmanager_base/interfaces/innerkits/netpolicyclient/include/
H A Dnet_policy_client.h196 * @param netType {@link NetBearType}.
197 * @param simId Specify the matched simId of quota policy when netType is cellular.
203 NetPolicyResultCode SetSnoozePolicy(int8_t netType, const std::string &simId);
208 * @param netType {@link NetBearType}.
209 * @param simId Specify the matched simId of quota policy when netType is cellular.
215 [[nodiscard]] int32_t UpdateRemindPolicy(int32_t netType, const std::string &simId, uint32_t remindType);
H A Dnet_quota_policy.h42 int32_t netType = BEARER_DEFAULT; member
43 /* The ID of the target card, valid when netType is BEARER_CELLULAR */
H A Di_net_policy_service.h121 * @param netType {@link NetBearType}.
122 * @param simId Specify the matched simId of quota policy when netType is cellular.
126 virtual int32_t UpdateRemindPolicy(int32_t netType, const std::string &simId, uint32_t remindType) = 0;
H A Dnet_policy_service_proxy.h44 int32_t UpdateRemindPolicy(int32_t netType, const std::string &simId, uint32_t remindType) override;
/foundation/communication/netmanager_base/services/netconnmanager/src/stub/
H A Dnet_conn_service_stub.cpp769 uint32_t netType = 0; in OnGetIfaceNames() local
770 if (!data.ReadUint32(netType)) { in OnGetIfaceNames()
773 if (netType > static_cast<uint32_t>(NetBearType::BEARER_DEFAULT)) { in OnGetIfaceNames()
776 NetBearType bearerType = static_cast<NetBearType>(netType); in OnGetIfaceNames()
798 uint32_t netType = 0; in OnGetIfaceNameByType() local
799 if (!data.ReadUint32(netType)) { in OnGetIfaceNameByType()
802 if (netType > static_cast<uint32_t>(NetBearType::BEARER_DEFAULT)) { in OnGetIfaceNameByType()
805 NetBearType bearerType = static_cast<NetBearType>(netType); in OnGetIfaceNameByType()
827 uint32_t netType = 0; in OnGetIfaceNameIdentMaps() local
828 if (!data.ReadUint32(netType)) { in OnGetIfaceNameIdentMaps()
[all...]
/foundation/communication/netmanager_base/test/fuzztest/netpolicyclient_fuzzer/
H A Dnet_policy_client_fuzzer.cpp225 netQuotaPolicy.networkmatchrule.netType = NetPolicyGetData<uint32_t>() % CREATE_NET_TYPE_VALUE; in SetCellularPoliciesFuzzTest()
309 netQuotaPolicy.networkmatchrule.netType = NetPolicyGetData<uint32_t>() % CREATE_NET_TYPE_VALUE; in SetNetQuotaPoliciesFuzzTest()
376 int32_t netType = NetPolicyGetData<int32_t>(); in UpdateRemindPolicyFuzzTest() local
379 dataParcel.WriteInt32(netType); in UpdateRemindPolicyFuzzTest()
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/
H A Dlnn_heartbeat_utils.c491 int32_t netType = 0; in LnnDumpPrintNetType() local
492 if (LnnGetRemoteNumInfo(networkId, NUM_KEY_DISCOVERY_TYPE, &netType) != SOFTBUS_OK) { in LnnDumpPrintNetType()
493 LNN_LOGE(LNN_HEART_BEAT, "get netType fail"); in LnnDumpPrintNetType()
496 LNN_LOGI(LNN_HEART_BEAT, "NetType=%{public}d", netType); in LnnDumpPrintNetType()
/foundation/communication/dsoftbus/core/common/dfx/interface/include/form/
H A Dconn_event_form.h124 int32_t netType; member
/foundation/communication/netmanager_base/frameworks/js/napi/netpolicy/src/
H A Dset_net_quota_policies_context.cpp33 data.networkmatchrule.netType = NapiUtils::GetInt32Property(env, netWorkMatchRule, "netType"); in ReadQuotaPolicy()
/foundation/communication/netmanager_base/test/fuzztest/common_fuzzer/
H A Dcommon_fuzzer.cpp87 uint32_t netType = NetCommonGetData<uint32_t>() % CREATE_NET_TYPE_VALUE; in GetIfaceNamesFuzzTest() local
89 g_netManagerCenter->GetIfaceNames(static_cast<NetBearType>(netType), ifaceNames); in GetIfaceNamesFuzzTest()

Completed in 15 milliseconds

12