Home
last modified time | relevance | path

Searched refs:NetConnectType (Results 1 – 9 of 9) sorted by relevance

/base/web/webview/ohos_adapter/net_connect_adapter/src/
Dnet_connect_utils.cpp19 NetConnectType NetConnectUtils::ConvertToConnectTypeInner(const RadioTech &subtype) in ConvertToConnectTypeInner()
24 return NetConnectType::CONNECTION_UNKNOWN; in ConvertToConnectTypeInner()
27 return NetConnectType::CONNECTION_2G; in ConvertToConnectTypeInner()
34 return NetConnectType::CONNECTION_3G; in ConvertToConnectTypeInner()
37 return NetConnectType::CONNECTION_4G; in ConvertToConnectTypeInner()
39 return NetConnectType::CONNECTION_5G; in ConvertToConnectTypeInner()
41 return NetConnectType::CONNECTION_UNKNOWN; in ConvertToConnectTypeInner()
74 NetConnectType NetConnectUtils::ConvertToConnectType(const NetBearType &netBearType, const RadioTec… in ConvertToConnectType()
80 return NetConnectType::CONNECTION_WIFI; in ConvertToConnectType()
82 return NetConnectType::CONNECTION_BLUETOOTH; in ConvertToConnectType()
[all …]
Dnet_connect_callback_impl.cpp68 NetConnectType type = NetConnectUtils::ConvertToConnectType(bearerTypes, radioTech); in NetCapabilitiesChange()
Dnet_connect_adapter_impl.cpp72 int32_t NetConnectAdapterImpl::GetDefaultNetConnect(NetConnectType &type, NetConnectSubtype &subtyp… in GetDefaultNetConnect()
/base/web/webview/test/unittest/net_connect_adapter_test/
Dnet_connect_adapter_test.cpp55 std::unordered_map<RadioTech, NetConnectType> typeMap;
56 …typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_UNKNOWN, NetConnectType::CONNECTION_UNKN…
57 …typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_IWLAN, NetConnectType::CONNECTION_UNKNOW…
58 typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_GSM, NetConnectType::CONNECTION_2G));
59 … typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_1XRTT, NetConnectType::CONNECTION_2G));
60 … typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_WCDMA, NetConnectType::CONNECTION_3G));
61 typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_HSPA, NetConnectType::CONNECTION_3G));
62 … typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_HSPAP, NetConnectType::CONNECTION_3G));
63 …typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_TD_SCDMA, NetConnectType::CONNECTION_3G)…
64 typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_EVDO, NetConnectType::CONNECTION_3G));
[all …]
/base/web/webview/ohos_adapter/net_connect_adapter/include/
Dnet_connect_utils.h34 …static NetConnectType ConvertToConnectType(const NetBearType &netBearType, const RadioTech &subtyp…
35 static std::string ConnectTypeToString(const NetConnectType &type);
37 static NetConnectType ConvertToConnectTypeInner(const RadioTech &subtype);
Dnet_connect_adapter_impl.h40 … int32_t GetDefaultNetConnect(NetConnectType &type, NetConnectSubtype &netConnectSubtype) override;
/base/web/webview/ohos_adapter/interfaces/
Dnet_connect_adapter.h23 enum class NetConnectType { enum
76 virtual int32_t NetCapabilitiesChange(const NetConnectType &netConnectType,
92 …virtual int32_t GetDefaultNetConnect(NetConnectType &type, NetConnectSubtype &netConnectSubtype) =…
/base/web/webview/test/unittest/net_connect_adapter_impl_test/
Dnet_connect_adapter_impl_test.cpp101 int32_t NetCapabilitiesChange(const NetConnectType &netConnectType, in NetCapabilitiesChange()
152 NetConnectType type = NetConnectType::CONNECTION_UNKNOWN;
/base/web/webview/test/unittest/net_connect_callback_impl_test/
Dnet_connect_callback_impl_test.cpp71 int32_t NetCapabilitiesChange(const NetConnectType &netConnectType, in NetCapabilitiesChange()