/base/web/webview/ohos_adapter/net_connect_adapter/src/ |
H A D | net_connect_utils.cpp | 19 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 RadioTech &subtype) in ConvertToConnectType() 80 return NetConnectType::CONNECTION_WIFI; in ConvertToConnectType() 82 return NetConnectType in ConvertToConnectType() [all...] |
H A D | net_capabilities_adapter_impl.cpp | 25 NetConnectType NetCapabilitiesAdapterImpl::GetConnectType() in GetConnectType() 40 void NetCapabilitiesAdapterImpl::SetConnectType(NetConnectType type) in SetConnectType()
|
H A D | net_connect_callback_impl.cpp | 70 NetConnectType type = NetConnectUtils::ConvertToConnectType(bearerTypes, radioTech); in NetCapabilitiesChange()
|
H A D | net_connect_adapter_impl.cpp | 74 int32_t NetConnectAdapterImpl::GetDefaultNetConnect(NetConnectType &type, NetConnectSubtype &subtype) in GetDefaultNetConnect()
|
/base/web/webview/test/unittest/net_connect_adapter_test/ |
H A D | net_connect_adapter_test.cpp | 55 std::unordered_map<RadioTech, NetConnectType> typeMap; in HWTEST_F() 56 typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_UNKNOWN, NetConnectType::CONNECTION_UNKNOWN)); in HWTEST_F() 57 typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_IWLAN, NetConnectType::CONNECTION_UNKNOWN)); in HWTEST_F() 58 typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_GSM, NetConnectType::CONNECTION_2G)); in HWTEST_F() 59 typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_1XRTT, NetConnectType::CONNECTION_2G)); in HWTEST_F() 60 typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_WCDMA, NetConnectType::CONNECTION_3G)); in HWTEST_F() 61 typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_HSPA, NetConnectType::CONNECTION_3G)); in HWTEST_F() 62 typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_HSPAP, NetConnectType::CONNECTION_3G)); in HWTEST_F() 63 typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_TD_SCDMA, NetConnectType::CONNECTION_3G)); in HWTEST_F() 64 typeMap.insert(std::make_pair(RadioTech::RADIO_TECHNOLOGY_EVDO, NetConnectType in HWTEST_F() [all...] |
/base/web/webview/ohos_adapter/net_connect_adapter/include/ |
H A D | net_capabilities_adapter_impl.h | 31 NetConnectType GetConnectType() override; 37 void SetConnectType(NetConnectType type); 43 NetConnectType type_ = NetConnectType::CONNECTION_UNKNOWN;
|
H A D | net_connect_utils.h | 34 static NetConnectType ConvertToConnectType(const NetBearType &netBearType, const RadioTech &subtype); 35 static std::string ConnectTypeToString(const NetConnectType &type); 37 static NetConnectType ConvertToConnectTypeInner(const RadioTech &subtype);
|
H A D | net_connect_adapter_impl.h | 40 int32_t GetDefaultNetConnect(NetConnectType &type, NetConnectSubtype &netConnectSubtype) override;
|
/base/web/webview/ohos_interface/include/ohos_adapter/ |
H A D | net_connect_adapter.h | 24 enum class NetConnectType : uint32_t { class 80 virtual NetConnectType GetConnectType() = 0; 99 const NetConnectType& netConnectType, const NetConnectSubtype& netConnectSubtype) = 0; 118 virtual int32_t GetDefaultNetConnect(NetConnectType& type, NetConnectSubtype& netConnectSubtype) = 0;
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/ |
H A D | ark_net_capabilities_adapter_wrapper.cpp | 28 OHOS::NWeb::NetConnectType ArkNetCapabilitiesAdapterWrapper::GetConnectType() in GetConnectType() 30 return static_cast<OHOS::NWeb::NetConnectType>(ctocpp_->GetConnectType()); in GetConnectType()
|
H A D | ark_net_connect_adapter_wrapper.cpp | 41 OHOS::NWeb::NetConnectType& type, OHOS::NWeb::NetConnectSubtype& netConnectSubtype) in GetDefaultNetConnect() 46 type = OHOS::NWeb::NetConnectType(uType); in GetDefaultNetConnect()
|
H A D | ark_net_capabilities_adapter_wrapper.h | 31 OHOS::NWeb::NetConnectType GetConnectType() override;
|
H A D | ark_net_connect_adapter_wrapper.h | 34 OHOS::NWeb::NetConnectType& type, OHOS::NWeb::NetConnectSubtype& netConnectSubtype) override;
|
H A D | ark_net_conn_callback_impl.cpp | 34 (NWeb::NetConnectType)netConnectType, (NWeb::NetConnectSubtype)netConnectSubtype); in NetCapabilitiesChange()
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/ |
H A D | ark_net_conn_callback_wrapper.h | 29 int32_t NetCapabilitiesChange(const OHOS::NWeb::NetConnectType& netConnectType,
|
H A D | ark_net_conn_callback_wrapper.cpp | 32 const OHOS::NWeb::NetConnectType& netConnectType, const OHOS::NWeb::NetConnectSubtype& netConnectSubtype) in NetCapabilitiesChange()
|
H A D | ark_net_connect_adapter_impl.cpp | 42 NWeb::NetConnectType nType; in GetDefaultNetConnect()
|
/base/web/webview/test/unittest/net_connect_adapter_impl_test/ |
H A D | net_connect_adapter_impl_test.cpp | 130 int32_t NetCapabilitiesChange(const NetConnectType &netConnectType, 189 NetConnectType type = NetConnectType::CONNECTION_UNKNOWN; in HWTEST_F()
|
/base/web/webview/test/unittest/net_connect_callback_impl_test/ |
H A D | net_connect_callback_impl_test.cpp | 71 int32_t NetCapabilitiesChange(const NetConnectType &netConnectType,
|