Home
last modified time | relevance | path

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

12

/ohos5.0/base/update/updateservice/services/utils/include/
H A Ddupdate_net_manager.h32 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 Ddupdate_inet_observer.h32 using NetObserverCallback = std::function<void(NetType)>;
36 virtual bool OnNetChange(NetType netType) = 0;
H A Ddupdate_net_observer.h36 void OnNetChange(NetType netType);
/ohos5.0/base/update/updateservice/services/utils/src/
H A 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()
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 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()
H A Ddupdate_net_observer.cpp72 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 Dfirmware_event_listener.cpp40 {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 Djs-apidiff-update.md16 |起始版本有变化|类名: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 Dresume_download_options.h23 NetType allowNetwork = NetType::WIFI;
H A Ddownload_options.h24 NetType allowNetwork = NetType::WIFI;
/ohos5.0/base/update/updateservice/frameworks/js/napi/update/src/
H A Ddefine_property.cpp134 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 Dfirmware_task_operator_empty.cpp67 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 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()
H A Dfirmware_task_operator.cpp79 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 Djs-apidiff-update.md11 | 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 Dfirmware_task_operator.h56 … bool UpdateDownloadAllowNetworkByTaskId(const std::string &taskId, NetType downloadAllowNetwork);
59 DownloadMode downloadMode, NetType downloadAllowNetwork, Order downloadOrder);
H A Dfirmware_task.h39 NetType downloadAllowNetwork = NetType::NOT_METERED_WIFI;
/ohos5.0/docs/en/release-notes/api-diff/Beta5-to-v3.2-Release/
H A Djs-apidiff-update.md16 …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 Djs-apidiff-update.md11 | 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 Djs-apidiff-update.md83 …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 Djs-apidiff-update.md40 | 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 Dclient_helper.cpp467 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 Dnetwork_type.h20 enum class NetType { enum
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta2/
H A Djs-apidiff-update.md40 | 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 Djs-apidiff-update.md83 …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 …
142NetType;<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…

12