Home
last modified time | relevance | path

Searched refs:NetType (Results 1 – 21 of 21) sorted by relevance

/base/update/updateservice/services/utils/include/
Ddupdate_net_manager.h29 std::set<NetType> netTypes;
40 NetType GetNetType();
41 bool IsNetAvailable(NetType netType = NetType::CELLULAR_AND_WIFI);
44 … NetChangeCallbackType callbackType, const std::set<NetType> &netTypes, NetObserverCallback cb);
47 bool OnNetChange(NetType netType) final;
50 bool IsBaseNetType(NetType netType);
54 NetType netType_ = NetType::NO_NET;
Ddupdate_inet_observer.h32 using NetObserverCallback = std::function<void(NetType)>;
36 virtual bool OnNetChange(NetType netType) = 0;
Ddupdate_net_observer.h36 void OnNetChange(NetType netType);
/base/update/updateservice/services/utils/src/
Ddupdate_net_manager.cpp45 NetChangeCallbackType callbackType, const std::set<NetType> &netTypes, NetObserverCallback cb) in RegisterCallback()
76 NetType NetManager::GetNetType() in GetNetType()
81 bool NetManager::IsNetAvailable(NetType netType) in IsNetAvailable()
86 bool NetManager::OnNetChange(NetType netType) in OnNetChange()
108 bool NetManager::IsBaseNetType(NetType netType) in IsBaseNetType()
110 …return netType == NetType::NO_NET || netType == NetType::CELLULAR || netType == NetType::METERED_W… in IsBaseNetType()
111 netType == NetType::NOT_METERED_WIFI; in IsBaseNetType()
Ddupdate_net_manager_empty.cpp39 NetChangeCallbackType callbackType, const std::set<NetType> &netTypes, NetObserverCallback cb) in RegisterCallback()
50 NetType NetManager::GetNetType() in GetNetType()
55 bool NetManager::IsNetAvailable(NetType netType) in IsNetAvailable()
60 bool NetManager::OnNetChange(NetType netType) in OnNetChange()
66 bool NetManager::IsBaseNetType(NetType netType) in IsBaseNetType()
Ddupdate_net_observer.cpp71 OnNetChange(NetType::NO_NET); in NetCapabilitiesChange()
77 OnNetChange(NetType::NOT_METERED_WIFI); in NetCapabilitiesChange()
81 OnNetChange(NetType::METERED_WIFI); in NetCapabilitiesChange()
85 OnNetChange(NetType::CELLULAR); in NetCapabilitiesChange()
94 OnNetChange(NetType::NO_NET); in NetLost()
98 void NetObserver::OnNetChange(NetType netType) in OnNetChange()
/base/update/updateservice/services/firmware/event/src/
Dfirmware_event_listener.cpp40 {NetType::CELLULAR, NetType::METERED_WIFI, NetType::NOT_METERED_WIFI, NetType::NO_NET}, in RegisterNetChangedListener()
41 [=](NetType netType) { in RegisterNetChangedListener()
/base/update/updateservice/services/firmware/data/db/src/
Dfirmware_task_operator_empty.cpp66 bool FirmwareTaskOperator::UpdateDownloadAllowNetworkByTaskId(const std::string &taskId, NetType do… in UpdateDownloadAllowNetworkByTaskId()
77 …const std::string &taskId, DownloadMode downloadMode, NetType downloadAllowNetwork, Order download… in UpdateDownloadOptionByTaskId()
Dfirmware_task_table.cpp75 int32_t downloadAllowNetwork = CAST_INT(NetType::WIFI); in ParseDbValue()
77 value.downloadAllowNetwork = static_cast<NetType>(downloadAllowNetwork); in ParseDbValue()
78 int32_t downloadOrder = CAST_INT(NetType::WIFI); in ParseDbValue()
Dfirmware_task_operator.cpp76 bool FirmwareTaskOperator::UpdateDownloadAllowNetworkByTaskId(const std::string &taskId, NetType do… in UpdateDownloadAllowNetworkByTaskId()
91 …const std::string &taskId, DownloadMode downloadMode, NetType downloadAllowNetwork, Order download… in UpdateDownloadOptionByTaskId()
/base/update/updateservice/services/firmware/data/db/include/
Dfirmware_task_operator.h53 … bool UpdateDownloadAllowNetworkByTaskId(const std::string &taskId, NetType downloadAllowNetwork);
56 DownloadMode downloadMode, NetType downloadAllowNetwork, Order downloadOrder);
Dfirmware_task.h37 NetType downloadAllowNetwork = NetType::NOT_METERED_WIFI;
/base/update/updateservice/frameworks/js/napi/base/src/
Ddefine_property.cpp123 DECLARE_ENUM_PROPERTY(NetType::CELLULAR), in DefineNetType()
124 DECLARE_ENUM_PROPERTY(NetType::METERED_WIFI), in DefineNetType()
125 DECLARE_ENUM_PROPERTY(NetType::NOT_METERED_WIFI), in DefineNetType()
126 DECLARE_ENUM_PROPERTY(NetType::WIFI), in DefineNetType()
127 DECLARE_ENUM_PROPERTY(NetType::CELLULAR_AND_WIFI) in DefineNetType()
Dclient_helper.cpp425 ClientStatus ClientHelper::GetNetType(napi_env env, const napi_value arg, NetType &netType) in GetNetType()
429 …static const std::list netTypeList = {NetType::CELLULAR, NetType::METERED_WIFI, NetType::NOT_METER… in GetNetType()
430 NetType::WIFI, NetType::CELLULAR_AND_WIFI}; in GetNetType()
433 netType = static_cast<NetType>(allowNetwork); in GetNetType()
/base/update/updateservice/interfaces/kits/js/declaration/
D@ohos.update.d.ts1042 allowNetwork: NetType;
1072 allowNetwork: NetType;
1642 export enum NetType { enum
/base/update/updateservice/interfaces/inner_api/include/
Dupdate_helper.h126 enum class NetType { enum
327 NetType allowNetwork = NetType::WIFI;
332 NetType allowNetwork = NetType::WIFI;
/base/update/update_app/feature/ota/src/main/ets/manager/
DOtaUpdateManager.ets171 async download(downloadNetwork: update.NetType = update.NetType.WIFI): Promise<void> {
192 this.updateManager.resumeDownload(versionDigest, update.NetType.WIFI).then(result => {
/base/update/updateservice/services/engine/src/
Dmessage_parcel_helper.cpp335 downloadOptions.allowNetwork = static_cast<NetType>(reply.ReadUint32()); in ReadDownloadOptions()
363 resumeDownloadOptions.allowNetwork = static_cast<NetType>(reply.ReadUint32()); in ReadResumeDownloadOptions()
/base/update/updateservice/frameworks/js/napi/base/include/
Dclient_helper.h225 static ClientStatus GetNetType(napi_env env, const napi_value arg, NetType &netType);
/base/update/updateservice/services/firmware/upgrade/flow/src/
Dfirmware_manager.cpp328 if (!DelayedSingleton<NetManager>::GetInstance()->IsNetAvailable(NetType::NOT_METERED_WIFI)) { in HandleNetChanged()
/base/update/update_app/product/oh/base/src/main/ets/pages/
DnewVersion.ets240 OtaUpdateManager.getInstance().download(update.NetType.CELLULAR);