/base/update/updateservice/services/utils/include/ |
D | dupdate_net_manager.h | 29 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;
|
D | dupdate_inet_observer.h | 32 using NetObserverCallback = std::function<void(NetType)>; 36 virtual bool OnNetChange(NetType netType) = 0;
|
D | dupdate_net_observer.h | 36 void OnNetChange(NetType netType);
|
/base/update/updateservice/services/utils/src/ |
D | dupdate_net_manager.cpp | 45 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()
|
D | dupdate_net_manager_empty.cpp | 39 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()
|
D | dupdate_net_observer.cpp | 71 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/ |
D | firmware_event_listener.cpp | 40 {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/ |
D | firmware_task_operator_empty.cpp | 66 bool FirmwareTaskOperator::UpdateDownloadAllowNetworkByTaskId(const std::string &taskId, NetType do… in UpdateDownloadAllowNetworkByTaskId() 77 …const std::string &taskId, DownloadMode downloadMode, NetType downloadAllowNetwork, Order download… in UpdateDownloadOptionByTaskId()
|
D | firmware_task_table.cpp | 75 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()
|
D | firmware_task_operator.cpp | 76 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/ |
D | firmware_task_operator.h | 53 … bool UpdateDownloadAllowNetworkByTaskId(const std::string &taskId, NetType downloadAllowNetwork); 56 DownloadMode downloadMode, NetType downloadAllowNetwork, Order downloadOrder);
|
D | firmware_task.h | 37 NetType downloadAllowNetwork = NetType::NOT_METERED_WIFI;
|
/base/update/updateservice/frameworks/js/napi/base/src/ |
D | define_property.cpp | 123 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()
|
D | client_helper.cpp | 425 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.ts | 1042 allowNetwork: NetType; 1072 allowNetwork: NetType; 1642 export enum NetType { enum
|
/base/update/updateservice/interfaces/inner_api/include/ |
D | update_helper.h | 126 enum class NetType { enum 327 NetType allowNetwork = NetType::WIFI; 332 NetType allowNetwork = NetType::WIFI;
|
/base/update/update_app/feature/ota/src/main/ets/manager/ |
D | OtaUpdateManager.ets | 171 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/ |
D | message_parcel_helper.cpp | 335 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/ |
D | client_helper.h | 225 static ClientStatus GetNetType(napi_env env, const napi_value arg, NetType &netType);
|
/base/update/updateservice/services/firmware/upgrade/flow/src/ |
D | firmware_manager.cpp | 328 if (!DelayedSingleton<NetManager>::GetInstance()->IsNetAvailable(NetType::NOT_METERED_WIFI)) { in HandleNetChanged()
|
/base/update/update_app/product/oh/base/src/main/ets/pages/ |
D | newVersion.ets | 240 OtaUpdateManager.getInstance().download(update.NetType.CELLULAR);
|