/ohos5.0/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_manager_test/ |
H A D | net_all_capabilities_test.cpp | 62 std::set<NetBearType> bearType = { 63 NetBearType::BEARER_CELLULAR, 64 NetBearType::BEARER_WIFI, 65 NetBearType::BEARER_BLUETOOTH, 66 NetBearType::BEARER_ETHERNET, 67 NetBearType::BEARER_VPN, 69 NetBearType::BEARER_DEFAULT 101 NetBearType::BEARER_CELLULAR, 102 NetBearType::BEARER_WIFI, 105 NetBearType::BEARER_VPN, [all …]
|
H A D | net_specifier_test.cpp | 112 std::set<NetBearType> bearerTypes; 113 NetBearType bearerType = NetBearType::BEARER_WIFI; 127 NetBearType bearerType = NetBearType::BEARER_WIFI; 129 std::set<NetBearType> bearerTypes;
|
H A D | net_conn_service_stub_test.h | 46 …int32_t RegisterNetSupplier(NetBearType bearerType, const std::string &ident, const std::set<NetCa… in RegisterNetSupplier() 109 int32_t GetIfaceNames(NetBearType bearerType, std::list<std::string> &ifaceNames) override in GetIfaceNames() 114 …int32_t GetIfaceNameByType(NetBearType bearerType, const std::string &ident, std::string &ifaceNam… in GetIfaceNameByType() 144 int32_t GetIfaceNameIdentMaps(NetBearType bearerType, in GetIfaceNameIdentMaps() 150 int32_t GetSpecificNet(NetBearType bearerType, std::list<int32_t> &netIdList) override in GetSpecificNet() 292 …int32_t UpdateSupplierScore(NetBearType bearerType, uint32_t detectionStatus, uint32_t& supplierId… in UpdateSupplierScore()
|
H A D | net_activate_test.cpp | 80 …sptr<NetSupplier> supplier = new (std::nothrow) NetSupplier(NetBearType::BEARER_ETHERNET, TEST_IDE… 87 …sptr<NetSupplier> supplier002 = new (std::nothrow) NetSupplier(NetBearType::BEARER_ETHERNET, test,… 92 …sptr<NetSupplier> supplier003 = new (std::nothrow) NetSupplier(NetBearType::BEARER_ETHERNET, TEST_… 95 …sptr<NetSupplier> supplier004 = new (std::nothrow) NetSupplier(NetBearType::BEARER_CELLULAR, TEST_… 107 supplier = new (std::nothrow) NetSupplier(NetBearType::BEARER_ETHERNET, TEST_IDENT, netCaps); 122 …sptr<NetSupplier> supplier = new (std::nothrow) NetSupplier(NetBearType::BEARER_ETHERNET, TEST_IDE… 191 NetBearType bearerType = BEARER_WIFI; 254 std::set<NetBearType> bearerTypes;
|
H A D | net_conn_manager_test.cpp | 188 NetBearType bearerType = BEARER_CELLULAR; 204 NetBearType bearerType = BEARER_CELLULAR; 224 NetBearType bearerType = BEARER_CELLULAR; 248 NetBearType bearerType = BEARER_CELLULAR; 269 NetBearType bearerType = BEARER_CELLULAR; 427 NetBearType bearerType = BEARER_CELLULAR; 468 NetBearType bearerTypeCel = BEARER_CELLULAR; 506 NetBearType bearerType = BEARER_CELLULAR; 529 NetBearType bearerType = BEARER_CELLULAR; 641 NetBearType bearerType = BEARER_CELLULAR; [all …]
|
/ohos5.0/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_manager_test/ |
H A D | ut_net_policy_traffic.cpp | 77 quotaPolicy1.networkmatchrule.netType = NetBearType::BEARER_CELLULAR; in SetUp() 88 quotaPolicy2.networkmatchrule.netType = NetBearType::BEARER_CELLULAR; in SetUp() 116 quotaPolicy1.networkmatchrule.netType = NetBearType::BEARER_CELLULAR; 126 quotaPolicy2.networkmatchrule.netType = NetBearType::BEARER_CELLULAR; 351 quotaPolicy.networkmatchrule.netType = NetBearType::BEARER_DEFAULT; 368 quotaPolicy.networkmatchrule.netType = NetBearType::BEARER_DEFAULT; 371 quotaPolicy.networkmatchrule.netType = NetBearType::BEARER_CELLULAR; 378 quotaPolicy.networkmatchrule.netType = NetBearType::BEARER_WIFI; 469 quotaPolicy.networkmatchrule.netType = NetBearType::BEARER_ETHERNET; 482 quotaPolicy.networkmatchrule.netType = NetBearType::BEARER_CELLULAR; [all …]
|
/ohos5.0/foundation/communication/netmanager_base/test/netcommon/unittest/net_common_test/ |
H A D | net_manager_center_test.cpp | 33 constexpr std::initializer_list<NetBearType> BEAR_TYPE_LIST = { 34 NetBearType::BEARER_CELLULAR, NetBearType::BEARER_WIFI, NetBearType::BEARER_BLUETOOTH, 35 NetBearType::BEARER_ETHERNET, NetBearType::BEARER_VPN, NetBearType::BEARER_WIFI_AWARE, 161 int32_t ret = instance_.GetIfaceNames(NetBearType::BEARER_DEFAULT, list); 236 NetBearType bearerType = BEARER_CELLULAR; 247 NetBearType bearerType = BEARER_CELLULAR; 270 NetBearType bearerType = BEARER_CELLULAR; 287 NetBearType bearerType = BEARER_CELLULAR; 302 NetBearType bearerType = BEARER_CELLULAR; 322 NetBearType bearerType = BEARER_CELLULAR; [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-network-kit/ |
H A D | js-apis-net-policy.md | 16 ## NetBearType section 18 type NetBearType = connection.NetBearType 26 | [connection.NetBearType](./js-apis-net-connection.md#netbeartype) | 网络类型。 |
|
/ohos5.0/base/web/webview/test/unittest/net_connect_adapter_test/ |
H A D | net_connect_adapter_test.cpp | 120 std::unordered_map<NetBearType, OHOS::NWeb::NetConnectType> typeMap; 121 … typeMap.insert(std::make_pair(NetBearType::BEARER_CELLULAR, NetConnectType::CONNECTION_UNKNOWN)); 122 typeMap.insert(std::make_pair(NetBearType::BEARER_WIFI, NetConnectType::CONNECTION_WIFI)); 123 …typeMap.insert(std::make_pair(NetBearType::BEARER_BLUETOOTH, NetConnectType::CONNECTION_BLUETOOTH)… 124 … typeMap.insert(std::make_pair(NetBearType::BEARER_ETHERNET, NetConnectType::CONNECTION_ETHERNET)); 125 typeMap.insert(std::make_pair(NetBearType::BEARER_VPN, NetConnectType::CONNECTION_UNKNOWN)); 126 …typeMap.insert(std::make_pair(NetBearType::BEARER_WIFI_AWARE, NetConnectType::CONNECTION_UNKNOWN)); 127 typeMap.insert(std::make_pair(NetBearType::BEARER_DEFAULT, NetConnectType::CONNECTION_UNKNOWN)); 129 NetBearType netBearType = iter.first; 137 static_cast<NetBearType>(BEARER_ELSE), RadioTech::RADIO_TECHNOLOGY_UNKNOWN));
|
/ohos5.0/docs/en/application-dev/reference/apis-network-kit/ |
H A D | js-apis-net-policy.md | 16 ## NetBearType section 18 type NetBearType = connection.NetBearType 26 | [connection.NetBearType](./js-apis-net-connection.md#netbeartype) | Network type.|
|
/ohos5.0/foundation/communication/netmanager_base/interfaces/kits/js/ |
H A D | @ohos.net.policy.d.ts | 26 type NetBearType = connection.NetBearType; 187 …function updateRemindPolicy(netType: NetBearType, iccid: string, remindType: RemindType, callback:… 188 …function updateRemindPolicy(netType: NetBearType, iccid: string, remindType: RemindType): Promise<… 346 netType: NetBearType;
|
/ohos5.0/base/web/webview/test/unittest/net_connect_callback_impl_test/ |
H A D | net_connect_callback_impl_test.cpp | 121 netAllCap->bearerTypes_.insert(NetBearType::BEARER_WIFI); 122 netAllCap->bearerTypes_.insert(NetBearType::BEARER_BLUETOOTH); 123 netAllCap->bearerTypes_.insert(NetBearType::BEARER_ETHERNET); 124 netAllCap->bearerTypes_.insert(NetBearType::BEARER_CELLULAR); 150 netAllCap->bearerTypes_.insert(NetBearType::BEARER_WIFI);
|
/ohos5.0/foundation/communication/netmanager_base/services/netconnmanager/include/ |
H A D | net_activate.h | 60 std::set<NetBearType> GetBearType() const; 63 … bool CompareByNetworkIdent(const std::string &ident, NetBearType bearerType, bool skipCheckIdent); 65 bool CompareByNetworkNetType(NetBearType bearerType); 68 bool HaveTypes(const std::set<NetBearType> &bearerTypes) const;
|
H A D | net_conn_service_iface.h | 30 int32_t GetIfaceNames(NetBearType bearerType, std::list<std::string> &ifaceNames) override; 31 …int32_t GetIfaceNameByType(NetBearType bearerType, const std::string &ident, std::string &ifaceNam… 34 …int32_t RegisterNetSupplier(NetBearType bearerType, const std::string &ident, const std::set<NetCa…
|
H A D | net_conn_service.h | 109 …int32_t RegisterNetSupplier(NetBearType bearerType, const std::string &ident, const std::set<NetCa… 199 int32_t GetIfaceNames(NetBearType bearerType, std::list<std::string> &ifaceNames) override; 209 …int32_t GetIfaceNameByType(NetBearType bearerType, const std::string &ident, std::string &ifaceNam… 220 int32_t GetIfaceNameIdentMaps(NetBearType bearerType, 252 int32_t GetSpecificNet(NetBearType bearerType, std::list<int32_t> &netIdList) override; 361 …int32_t UpdateSupplierScore(NetBearType bearerType, uint32_t detectionStatus, uint32_t& supplierId… 403 …std::list<sptr<NetSupplier>> GetNetSupplierFromList(NetBearType bearerType, const std::string &ide… 404 sptr<NetSupplier> GetNetSupplierFromList(NetBearType bearerType, const std::string &ident, 429 …int32_t RegisterNetSupplierAsync(NetBearType bearerType, const std::string &ident, const std::set<… 444 …int32_t UpdateSupplierScoreAsync(NetBearType bearerType, uint32_t detectionStatus, uint32_t& suppl… [all …]
|
H A D | net_supplier.h | 46 using NetTypeScore = std::unordered_map<NetBearType, int32_t>; 71 …NetSupplier(NetBearType bearerType, const std::string &netSupplierIdent, const std::set<NetCap> &n… 83 NetBearType GetNetSupplierType() const; 149 NetBearType netSupplierType_;
|
/ohos5.0/foundation/communication/netmanager_base/services/netconnmanager/src/ |
H A D | net_activate.cpp | 112 bool NetActivate::CompareByNetworkIdent(const std::string &ident, NetBearType bearerType, bool skip… in CompareByNetworkIdent() 142 bool NetActivate::CompareByNetworkNetType(NetBearType bearerType) in CompareByNetworkNetType() 147 std::set<NetBearType> &reqTypes = netSpecifier_->netCapabilities_.bearerTypes_; in CompareByNetworkNetType() 177 std::set<NetBearType> NetActivate::GetBearType() const in GetBearType() 219 bool NetActivate::HaveTypes(const std::set<NetBearType> &bearerTypes) const in HaveTypes()
|
H A D | net_conn_service_iface.cpp | 22 int32_t NetConnServiceIface::GetIfaceNames(NetBearType bearerType, std::list<std::string> &ifaceNam… in GetIfaceNames() 27 int32_t NetConnServiceIface::GetIfaceNameByType(NetBearType bearerType, const std::string &ident, in GetIfaceNameByType() 43 int32_t NetConnServiceIface::RegisterNetSupplier(NetBearType bearerType, const std::string &ident, in RegisterNetSupplier()
|
/ohos5.0/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/proxy/ |
H A D | i_net_conn_service.h | 47 virtual int32_t RegisterNetSupplier(NetBearType bearerType, const std::string &ident, 60 virtual int32_t GetIfaceNames(NetBearType bearerType, std::list<std::string> &ifaceNames) = 0; 61 …virtual int32_t GetIfaceNameByType(NetBearType bearerType, const std::string &ident, std::string &… 62 virtual int32_t GetIfaceNameIdentMaps(NetBearType bearerType, 71 virtual int32_t GetSpecificNet(NetBearType bearerType, std::list<int32_t> &netIdList) = 0; 106 …virtual int32_t UpdateSupplierScore(NetBearType bearerType, uint32_t detectionStatus, uint32_t& su…
|
H A D | net_conn_service_proxy.h | 33 …int32_t RegisterNetSupplier(NetBearType bearerType, const std::string &ident, const std::set<NetCa… 48 int32_t GetIfaceNames(NetBearType bearerType, std::list<std::string> &ifaceNames) override; 49 …int32_t GetIfaceNameByType(NetBearType bearerType, const std::string &ident, std::string &ifaceNam… 50 int32_t GetIfaceNameIdentMaps(NetBearType bearerType, 57 int32_t GetSpecificNet(NetBearType bearerType, std::list<int32_t> &netIdList) override; 89 …int32_t UpdateSupplierScore(NetBearType bearerType, uint32_t detectionStatus, uint32_t& supplierId…
|
/ohos5.0/foundation/communication/netmanager_base/services/common/include/ |
H A D | net_conn_base_service.h | 31 virtual int32_t GetIfaceNames(NetBearType bearerType, std::list<std::string> &ifaceNames) = 0; 32 …virtual int32_t GetIfaceNameByType(NetBearType bearerType, const std::string &ident, std::string &… 33 virtual int32_t RegisterNetSupplier(NetBearType bearerType, const std::string &ident,
|
H A D | net_manager_center.h | 33 int32_t GetIfaceNames(NetBearType bearerType, std::list<std::string> &ifaceNames); 34 …int32_t GetIfaceNameByType(NetBearType bearerType, const std::string &ident, std::string &ifaceNam… 35 …int32_t RegisterNetSupplier(NetBearType bearerType, const std::string &ident, const std::set<NetCa…
|
/ohos5.0/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/ |
H A D | net_all_capabilities.h | 41 enum NetBearType { enum 56 std::set<NetBearType> bearerTypes_; 70 void ToStrNetBearTypes(const std::set<NetBearType> &bearerTypes, std::string &str) const;
|
H A D | net_specifier.h | 35 void SetTypes(const std::set<NetBearType> &bearerTypes); 36 void SetType(NetBearType bearerType);
|
/ohos5.0/foundation/communication/netmanager_base/services/netconnmanager/src/stub/ |
H A D | net_conn_service_stub.cpp | 356 NetBearType bearerType; in OnRegisterNetSupplier() 364 if (type > static_cast<uint32_t>(NetBearType::BEARER_DEFAULT)) { in OnRegisterNetSupplier() 367 bearerType = static_cast<NetBearType>(type); in OnRegisterNetSupplier() 704 if (netType > static_cast<uint32_t>(NetBearType::BEARER_DEFAULT)) { in OnGetIfaceNames() 707 NetBearType bearerType = static_cast<NetBearType>(netType); in OnGetIfaceNames() 736 NetBearType bearerType = static_cast<NetBearType>(netType); in OnGetIfaceNameByType() 765 NetBearType bearerType = static_cast<NetBearType>(netType); in OnGetIfaceNameIdentMaps() 829 if (type > static_cast<uint32_t>(NetBearType::BEARER_DEFAULT)) { in OnGetSpecificNet() 833 NetBearType bearerType = static_cast<NetBearType>(type); in OnGetSpecificNet() 1490 if (type > static_cast<uint32_t>(NetBearType::BEARER_DEFAULT)) { in OnUpdateSupplierScore() [all …]
|