Home
last modified time | relevance | path

Searched refs:netType (Results 1 – 25 of 28) sorted by relevance

12

/base/update/updateservice/services/utils/src/
Ddupdate_net_manager.cpp52 for (auto netType : netTypes) { in RegisterCallback() local
53 if (!IsBaseNetType(netType)) { in RegisterCallback()
55 ENGINE_LOGE("RegisterCallback unSurport netType = %{public}d", netType); in RegisterCallback()
81 bool NetManager::IsNetAvailable(NetType netType) in IsNetAvailable() argument
83 return (CAST_UINT(netType_) & CAST_UINT(netType)) > 0; in IsNetAvailable()
86 bool NetManager::OnNetChange(NetType netType) in OnNetChange() argument
88 if (!IsBaseNetType(netType)) { in OnNetChange()
89 ENGINE_LOGE("OnNetChange illegal netType = %{public}d", netType); in OnNetChange()
92 if (netType == netType_) { in OnNetChange()
95 netType_ = netType; in OnNetChange()
[all …]
Ddupdate_net_manager_empty.cpp55 bool NetManager::IsNetAvailable(NetType netType) in IsNetAvailable() argument
60 bool NetManager::OnNetChange(NetType netType) in OnNetChange() argument
66 bool NetManager::IsBaseNetType(NetType netType) in IsBaseNetType() argument
Ddupdate_net_observer.cpp98 void NetObserver::OnNetChange(NetType netType) in OnNetChange() argument
100 ENGINE_LOGI("OnNetChange %{public}d", netType); in OnNetChange()
105 bool result = callback_.lock()->OnNetChange(netType); in OnNetChange()
/base/update/updateservice/services/startup/model/include/
Dschedule_task.h32 int netType = 0; variable
53 maxDelayTime == other.maxDelayTime && netType == other.netType &&
64 .append("netType:").append(std::to_string(netType)).append(", ") in ToString()
/base/update/updateservice/services/utils/include/
Ddupdate_net_manager.h44 bool IsNetAvailable(NetType netType = NetType::CELLULAR_AND_WIFI);
50 bool OnNetChange(NetType netType) final;
53 bool IsBaseNetType(NetType netType);
Ddupdate_inet_observer.h36 virtual bool OnNetChange(NetType netType) = 0;
Ddupdate_net_observer.h36 void OnNetChange(NetType netType);
/base/telephony/sms_mms/test/gtest/
Dcb_gtest.cpp97 uint8_t netType = 1; in OpenCellBroadcastTestFuc() local
99 helper.slotId, enable, fromMsgId, toMsgId, netType); in OpenCellBroadcastTestFuc()
133 uint8_t netType = 1; in OpenCellBroadcastTestFuc2() local
135 helper.slotId, enable, fromMsgId, toMsgId, netType); in OpenCellBroadcastTestFuc2()
169 uint8_t netType = 3; in OpenCellBroadcastTestFuc3() local
171 helper.slotId, enable, fromMsgId, toMsgId, netType); in OpenCellBroadcastTestFuc3()
205 uint8_t netType = 1; in OpenCellBroadcastTestFuc4() local
207 helper.slotId, enable, fromMsgId, toMsgId, netType); in OpenCellBroadcastTestFuc4()
241 uint8_t netType = 1; in OpenCellBroadcastTestFuc5() local
243 helper.slotId, enable, fromMsgId, toMsgId, netType); in OpenCellBroadcastTestFuc5()
[all …]
/base/update/updateservice/services/firmware/event/src/
Dfirmware_event_listener.cpp41 [=](NetType netType) { in RegisterNetChangedListener() argument
42 … FIRMWARE_LOGI("FirmwareEventListener on NetChanged type: %{public}d", CAST_INT(netType)); in RegisterNetChangedListener()
/base/telephony/sms_mms/test/fuzztest/setgetcbconfig_fuzzer/
Dsetgetcbconfig_fuzzer.cpp64 int32_t netType = static_cast<int32_t>(size % NET_COUNT); in SetCBConfigFuzz() local
70 dataParcel.WriteUint8(netType); in SetCBConfigFuzz()
81 interfaceManager->SetCBConfig(enable, fromMsgId, toMsgId, netType); in SetCBConfigFuzz()
88 smsMiscManager->SetCBConfig(enable, fromMsgId, toMsgId, netType); in SetCBConfigFuzz()
/base/telephony/sms_mms/test/unittest/
Dsms_broadcast_subscriber.cpp46 std::u16string netType = isCdma ? u"3gpp2" : u"3gpp"; in OnReceiveEvent() local
47 ShortMessage::CreateMessage(pdu, netType, *message); in OnReceiveEvent()
/base/telephony/sms_mms/services/sms/
Dsms_interface_manager.cpp165 …msInterfaceManager::SetCBConfig(bool enable, uint32_t fromMsgId, uint32_t toMsgId, uint8_t netType) in SetCBConfig() argument
171 return smsMiscManager_->SetCBConfig(enable, fromMsgId, toMsgId, netType); in SetCBConfig()
Dsms_misc_manager.cpp36 …2_t SmsMiscManager::SetCBConfig(bool enable, uint32_t fromMsgId, uint32_t toMsgId, uint8_t netType) in SetCBConfig() argument
39 if ((toMsgId > RANG_MAX) || (fromMsgId > toMsgId) || (netType != GSM_TYPE)) { in SetCBConfig()
Dsms_service.cpp528 …ce::SetCBConfig(int32_t slotId, bool enable, uint32_t fromMsgId, uint32_t toMsgId, uint8_t netType) in SetCBConfig() argument
544 return interfaceManager->SetCBConfig(enable, fromMsgId, toMsgId, netType); in SetCBConfig()
/base/telephony/sms_mms/services/sms/include/
Dsms_interface_manager.h53 int32_t SetCBConfig(bool enable, uint32_t fromMsgId, uint32_t toMsgId, uint8_t netType);
Dsms_misc_manager.h58 int32_t SetCBConfig(bool enable, uint32_t fromMsgId, uint32_t toMsgId, uint8_t netType);
Dsms_service.h151 …onfig(int32_t slotId, bool enable, uint32_t fromMsgId, uint32_t toMsgId, uint8_t netType) override;
/base/update/updateservice/frameworks/js/napi/update/common/include/
Dclient_helper.h76 static ClientStatus GetNetType(napi_env env, const napi_value arg, NetType &netType);
/base/telephony/ril_adapter/services/vendor/src/
Dat_network.c1793 static int32_t ParseNetTypeStr(const char *netType) in ParseNetTypeStr() argument
1796 if (netType == NULL) { in ParseNetTypeStr()
1800 TELEPHONY_LOGD("netType: [%{public}s]", netType); in ParseNetTypeStr()
1801 if (strcmp(netType, AUTO_TYPE) == 0) { in ParseNetTypeStr()
1803 } else if (strcmp(netType, GSM_TYPE) == 0) { in ParseNetTypeStr()
1805 } else if (strcmp(netType, WCDMA_TYPE) == 0) { in ParseNetTypeStr()
1807 } else if (strcmp(netType, LTE_TYPE) == 0) { in ParseNetTypeStr()
1809 } else if (strcmp(netType, LTE_WCDMA_TYPE) == 0) { in ParseNetTypeStr()
1811 } else if (strcmp(netType, LTE_WCDMA_GSM_TYPE) == 0) { in ParseNetTypeStr()
1813 } else if (strcmp(netType, WCDMA_GSM_TYPE) == 0) { in ParseNetTypeStr()
[all …]
/base/telephony/sms_mms/interfaces/innerkits/
Di_sms_service_interface.h234 …etCBConfig(int32_t slotId, bool enable, uint32_t fromMsgId, uint32_t toMsgId, uint8_t netType) = 0;
Dsms_service_proxy.h135 …onfig(int32_t slotId, bool enable, uint32_t fromMsgId, uint32_t toMsgId, uint8_t netType) override;
/base/location/services/location_gnss/gnss/source/
Dagnss_ni_manager.cpp200 std::u16string netType = isCdma ? u"3gpp2" : u"3gpp"; in CheckSmsSuplInit() local
201 Telephony::ShortMessage::CreateMessage(pdu, netType, *message); in CheckSmsSuplInit()
/base/telephony/cellular_call/services/control/src/
Dcs_control.cpp49 PhoneType netType = moduleServiceUtils.GetNetworkStatus(callInfo.slotId); in Dial() local
50 if (netType == PhoneType::PHONE_TYPE_IS_GSM) { in Dial()
53 if (netType == PhoneType::PHONE_TYPE_IS_CDMA) { in Dial()
/base/telephony/sms_mms/frameworks/native/sms/src/
Dsms_service_proxy.cpp277 int32_t slotId, bool enable, uint32_t fromMsgId, uint32_t toMsgId, uint8_t netType) in SetCBConfig() argument
291 dataParcel.WriteUint8(netType); in SetCBConfig()
/base/update/updateservice/frameworks/js/napi/update/common/src/
Dclient_helper.cpp467 ClientStatus ClientHelper::GetNetType(napi_env env, const napi_value arg, NetType &netType) in GetNetType() argument
475 netType = static_cast<NetType>(allowNetwork); in GetNetType()

12