Home
last modified time | relevance | path

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

/ohos5.0/base/web/webview/ohos_adapter/net_connect_adapter/src/
H A Dnet_connect_utils.cpp27 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()
97 case NetConnectType::CONNECTION_UNKNOWN: in ConnectTypeToString()
101 case NetConnectType::CONNECTION_WIFI: in ConnectTypeToString()
103 case NetConnectType::CONNECTION_2G: in ConnectTypeToString()
105 case NetConnectType::CONNECTION_3G: in ConnectTypeToString()
107 case NetConnectType::CONNECTION_4G: in ConnectTypeToString()
109 case NetConnectType::CONNECTION_NONE: in ConnectTypeToString()
[all …]
H A Dnet_capabilities_adapter_impl.cpp25 NetConnectType NetCapabilitiesAdapterImpl::GetConnectType() in GetConnectType()
40 void NetCapabilitiesAdapterImpl::SetConnectType(NetConnectType type) in SetConnectType()
H A Dnet_connect_callback_impl.cpp70 NetConnectType type = NetConnectUtils::ConvertToConnectType(bearerTypes, radioTech); in NetCapabilitiesChange()
H A Dnet_connect_adapter_impl.cpp74 int32_t NetConnectAdapterImpl::GetDefaultNetConnect(NetConnectType &type, NetConnectSubtype &subtyp… in GetDefaultNetConnect()
/ohos5.0/base/web/webview/test/unittest/net_connect_adapter_test/
H A Dnet_connect_adapter_test.cpp55 std::unordered_map<RadioTech, NetConnectType> typeMap;
71 NetConnectType exceptType = iter.second;
76 EXPECT_EQ(NetConnectType::CONNECTION_UNKNOWN,
120 std::unordered_map<NetBearType, OHOS::NWeb::NetConnectType> typeMap;
130 NetConnectType exceptType = iter.second;
148 std::unordered_map<OHOS::NWeb::NetConnectType, std::string> typeMap;
152 typeMap.insert(std::make_pair(NetConnectType::CONNECTION_2G, "2g"));
153 typeMap.insert(std::make_pair(NetConnectType::CONNECTION_3G, "3g"));
154 typeMap.insert(std::make_pair(NetConnectType::CONNECTION_4G, "4g"));
157 typeMap.insert(std::make_pair(NetConnectType::CONNECTION_5G, "5g"));
[all …]
/ohos5.0/base/web/webview/ohos_adapter/net_connect_adapter/include/
H A Dnet_capabilities_adapter_impl.h31 NetConnectType GetConnectType() override;
37 void SetConnectType(NetConnectType type);
43 NetConnectType type_ = NetConnectType::CONNECTION_UNKNOWN;
H A 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);
H A Dnet_connect_adapter_impl.h40 … int32_t GetDefaultNetConnect(NetConnectType &type, NetConnectSubtype &netConnectSubtype) override;
/ohos5.0/base/web/webview/ohos_interface/include/ohos_adapter/
H A Dnet_connect_adapter.h24 enum class NetConnectType : uint32_t { enum
80 virtual NetConnectType GetConnectType() = 0;
99 const NetConnectType& netConnectType, const NetConnectSubtype& netConnectSubtype) = 0;
118 …virtual int32_t GetDefaultNetConnect(NetConnectType& type, NetConnectSubtype& netConnectSubtype) =…
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_net_capabilities_adapter_wrapper.cpp28 OHOS::NWeb::NetConnectType ArkNetCapabilitiesAdapterWrapper::GetConnectType() in GetConnectType()
30 return static_cast<OHOS::NWeb::NetConnectType>(ctocpp_->GetConnectType()); in GetConnectType()
H A Dark_net_connect_adapter_wrapper.cpp41 OHOS::NWeb::NetConnectType& type, OHOS::NWeb::NetConnectSubtype& netConnectSubtype) in GetDefaultNetConnect()
46 type = OHOS::NWeb::NetConnectType(uType); in GetDefaultNetConnect()
H A Dark_net_capabilities_adapter_wrapper.h31 OHOS::NWeb::NetConnectType GetConnectType() override;
H A Dark_net_connect_adapter_wrapper.h34 … OHOS::NWeb::NetConnectType& type, OHOS::NWeb::NetConnectSubtype& netConnectSubtype) override;
H A Dark_net_conn_callback_impl.cpp34 (NWeb::NetConnectType)netConnectType, (NWeb::NetConnectSubtype)netConnectSubtype); in NetCapabilitiesChange()
/ohos5.0/base/web/webview/test/unittest/net_connect_adapter_impl_test/
H A Dnet_connect_adapter_impl_test.cpp130 int32_t NetCapabilitiesChange(const NetConnectType &netConnectType, in NetCapabilitiesChange()
189 NetConnectType type = NetConnectType::CONNECTION_UNKNOWN;
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_net_conn_callback_wrapper.h29 int32_t NetCapabilitiesChange(const OHOS::NWeb::NetConnectType& netConnectType,
H A Dark_net_conn_callback_wrapper.cpp32 …const OHOS::NWeb::NetConnectType& netConnectType, const OHOS::NWeb::NetConnectSubtype& netConnectS… in NetCapabilitiesChange()
H A Dark_net_connect_adapter_impl.cpp42 NWeb::NetConnectType nType; in GetDefaultNetConnect()
/ohos5.0/base/web/webview/test/unittest/net_connect_callback_impl_test/
H A Dnet_connect_callback_impl_test.cpp71 int32_t NetCapabilitiesChange(const NetConnectType &netConnectType, in NetCapabilitiesChange()