/ohos5.0/base/update/updateservice/services/utils/include/ |
H A D | dupdate_net_manager.h | 32 std::set<NetType> netTypes; 43 NetType GetNetType(); 44 bool IsNetAvailable(NetType netType = NetType::CELLULAR_AND_WIFI); 47 … NetChangeCallbackType callbackType, const std::set<NetType> &netTypes, NetObserverCallback cb); 50 bool OnNetChange(NetType netType) final; 53 bool IsBaseNetType(NetType netType); 59 NetType netType_ = NetType::NO_NET;
|
H A D | dupdate_inet_observer.h | 32 using NetObserverCallback = std::function<void(NetType)>; 36 virtual bool OnNetChange(NetType netType) = 0;
|
H A D | dupdate_net_observer.h | 36 void OnNetChange(NetType netType);
|
/ohos5.0/base/update/updateservice/services/utils/src/ |
H A 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() 112 bool NetManager::IsBaseNetType(NetType netType) in IsBaseNetType() 114 …return netType == NetType::NO_NET || netType == NetType::CELLULAR || netType == NetType::METERED_W… in IsBaseNetType() 115 netType == NetType::NOT_METERED_WIFI; in IsBaseNetType()
|
H A 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()
|
H A D | dupdate_net_observer.cpp | 72 OnNetChange(NetType::NO_NET); in NetCapabilitiesChange() 78 OnNetChange(NetType::NOT_METERED_WIFI); in NetCapabilitiesChange() 82 OnNetChange(NetType::METERED_WIFI); in NetCapabilitiesChange() 86 OnNetChange(NetType::CELLULAR); in NetCapabilitiesChange() 95 OnNetChange(NetType::NO_NET); in NetLost() 99 void NetObserver::OnNetChange(NetType netType) in OnNetChange()
|
/ohos5.0/base/update/updateservice/services/firmware/event/src/ |
H A 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()
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/ |
H A D | js-apidiff-update.md | 16 |起始版本有变化|类名:NetType<br>方法 or 属性:CELLULAR = 1<br>起始版本:N/A|类名:NetType<br>方法 or 属性:CELLULAR = 1<br>起始版… 17 |起始版本有变化|类名:NetType<br>方法 or 属性:METERED_WIFI = 2<br>起始版本:N/A|类名:NetType<br>方法 or 属性:METERED_WIFI = … 18 |起始版本有变化|类名:NetType<br>方法 or 属性:NOT_METERED_WIFI = 4<br>起始版本:N/A|类名:NetType<br>方法 or 属性:NOT_METERED… 19 |起始版本有变化|类名:NetType<br>方法 or 属性:WIFI = 6<br>起始版本:N/A|类名:NetType<br>方法 or 属性:WIFI = 6<br>起始版本:9|@oho… 20 |起始版本有变化|类名:NetType<br>方法 or 属性:CELLULAR_AND_WIFI = 7<br>起始版本:N/A|类名:NetType<br>方法 or 属性:CELLULAR_A…
|
/ohos5.0/base/update/updateservice/interfaces/inner_api/feature/update/model/download/ |
H A D | resume_download_options.h | 23 NetType allowNetwork = NetType::WIFI;
|
H A D | download_options.h | 24 NetType allowNetwork = NetType::WIFI;
|
/ohos5.0/base/update/updateservice/frameworks/js/napi/update/src/ |
H A D | define_property.cpp | 134 DECLARE_ENUM_PROPERTY(NetType::CELLULAR), in DefineNetType() 135 DECLARE_ENUM_PROPERTY(NetType::METERED_WIFI), in DefineNetType() 136 DECLARE_ENUM_PROPERTY(NetType::NOT_METERED_WIFI), in DefineNetType() 137 DECLARE_ENUM_PROPERTY(NetType::WIFI), in DefineNetType() 138 DECLARE_ENUM_PROPERTY(NetType::CELLULAR_AND_WIFI) in DefineNetType()
|
/ohos5.0/base/update/updateservice/services/firmware/data/db/src/ |
H A D | firmware_task_operator_empty.cpp | 67 bool FirmwareTaskOperator::UpdateDownloadAllowNetworkByTaskId(const std::string &taskId, NetType do… in UpdateDownloadAllowNetworkByTaskId() 78 …const std::string &taskId, DownloadMode downloadMode, NetType downloadAllowNetwork, Order download… in UpdateDownloadOptionByTaskId()
|
H A 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()
|
H A D | firmware_task_operator.cpp | 79 bool FirmwareTaskOperator::UpdateDownloadAllowNetworkByTaskId(const std::string &taskId, NetType do… in UpdateDownloadAllowNetworkByTaskId() 94 …const std::string &taskId, DownloadMode downloadMode, NetType downloadAllowNetwork, Order download… in UpdateDownloadOptionByTaskId()
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta3/ |
H A D | js-apidiff-update.md | 11 | ohos.update | NetType | CELLULAR_AND_WIFI = 7 … 12 | ohos.update | NetType | WIFI = 6 …
|
/ohos5.0/base/update/updateservice/services/firmware/data/db/include/ |
H A D | firmware_task_operator.h | 56 … bool UpdateDownloadAllowNetworkByTaskId(const std::string &taskId, NetType downloadAllowNetwork); 59 DownloadMode downloadMode, NetType downloadAllowNetwork, Order downloadOrder);
|
H A D | firmware_task.h | 39 NetType downloadAllowNetwork = NetType::NOT_METERED_WIFI;
|
/ohos5.0/docs/en/release-notes/api-diff/Beta5-to-v3.2-Release/ |
H A D | js-apidiff-update.md | 16 …l version changed|Class name: NetType<br>Method or attribute name: CELLULAR = 1<br>Initial version… 17 …version changed|Class name: NetType<br>Method or attribute name: METERED_WIFI = 2<br>Initial versi… 18 …rsion changed|Class name: NetType<br>Method or attribute name: NOT_METERED_WIFI = 4<br>Initial ver… 19 …ial version changed|Class name: NetType<br>Method or attribute name: WIFI = 6<br>Initial version: … 20 …sion changed|Class name: NetType<br>Method or attribute name: CELLULAR_AND_WIFI = 7<br>Initial ver…
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta3/ |
H A D | js-apidiff-update.md | 11 | ohos.update | NetType | CELLULAR_AND_WIFI = 7 … 12 | ohos.update | NetType | WIFI = 6 …
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/ |
H A D | js-apidiff-update.md | 83 …DownloadOptions;<br>方法or属性:allowNetwork: NetType;<br>旧版本信息:|类名:DownloadOptions;<br>方法or属性:allowNet… 84 …nloadOptions;<br>方法or属性:allowNetwork: NetType;<br>旧版本信息:|类名:ResumeDownloadOptions;<br>方法or属性:allow… 142 |访问级别有变化|类名:NetType;<br>方法or属性:export enum NetType<br>旧版本信息:|类名:NetType;<br>方法or属性:export enum NetT… 143 |访问级别有变化|类名:NetType;<br>方法or属性:CELLULAR = 1<br>旧版本信息:|类名:NetType;<br>方法or属性:CELLULAR = 1<br>新版本信息:s… 144 |访问级别有变化|类名:NetType;<br>方法or属性:METERED_WIFI = 2<br>旧版本信息:|类名:NetType;<br>方法or属性:METERED_WIFI = 2<br… 145 |访问级别有变化|类名:NetType;<br>方法or属性:NOT_METERED_WIFI = 4<br>旧版本信息:|类名:NetType;<br>方法or属性:NOT_METERED_WIF… 146 |访问级别有变化|类名:NetType;<br>方法or属性:WIFI = 6<br>旧版本信息:|类名:NetType;<br>方法or属性:WIFI = 6<br>新版本信息:systemapi… 147 |访问级别有变化|类名:NetType;<br>方法or属性:CELLULAR_AND_WIFI = 7<br>旧版本信息:|类名:NetType;<br>方法or属性:CELLULAR_AND_W…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta2/ |
H A D | js-apidiff-update.md | 40 | ohos.update | NetType | NOT_METERED_WIFI = 4 | 新增 | 41 | ohos.update | NetType | METERED_WIFI = 2 | 新增 | 42 | ohos.update | NetType | CELLULAR = 1 | 新增 | 80 | ohos.update | ResumeDownloadOptions | allowNetwork: NetType; | 新增 | 82 | ohos.update | DownloadOptions | allowNetwork: NetType; | 新增 |
|
/ohos5.0/base/update/updateservice/frameworks/js/napi/update/common/src/ |
H A D | client_helper.cpp | 467 ClientStatus ClientHelper::GetNetType(napi_env env, const napi_value arg, NetType &netType) in GetNetType() 471 …static const std::list<NetType> netTypeList = {NetType::CELLULAR, NetType::METERED_WIFI, NetType::… in GetNetType() 472 NetType::WIFI, NetType::CELLULAR_AND_WIFI}; in GetNetType() 475 netType = static_cast<NetType>(allowNetwork); in GetNetType()
|
/ohos5.0/base/update/updateservice/foundations/model/include/ |
H A D | network_type.h | 20 enum class NetType { enum
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta2/ |
H A D | js-apidiff-update.md | 40 | ohos.update | NetType | NOT_METERED_WIFI = 4 | Added| 41 | ohos.update | NetType | METERED_WIFI = 2 | Added| 42 | ohos.update | NetType | CELLULAR = 1 | Added| 80 | ohos.update | ResumeDownloadOptions | allowNetwork: NetType; | Added| 82 | ohos.update | DownloadOptions | allowNetwork: NetType; | Added|
|
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v3.2-Release/ |
H A D | js-apidiff-update.md | 83 …me: allowNetwork: NetType;<br>Old version information: |Class name: DownloadOptions;<br>Method or … 84 … allowNetwork: NetType;<br>Old version information: |Class name: ResumeDownloadOptions;<br>Method … 142 …NetType;<br>Method or attribute name: export enum NetType<br>Old version information: |Class name:… 143 … level changed|Class name: NetType;<br>Method or attribute name: CELLULAR = 1<br>Old version infor… 144 …evel changed|Class name: NetType;<br>Method or attribute name: METERED_WIFI = 2<br>Old version inf… 145 …el changed|Class name: NetType;<br>Method or attribute name: NOT_METERED_WIFI = 4<br>Old version i… 146 …ss level changed|Class name: NetType;<br>Method or attribute name: WIFI = 6<br>Old version informa… 147 …l changed|Class name: NetType;<br>Method or attribute name: CELLULAR_AND_WIFI = 7<br>Old version i…
|