/foundation/communication/netmanager_base/services/netconnmanager/src/ |
H A D | net_conn_service_iface.cpp | 22 int32_t NetConnServiceIface::GetIfaceNames(NetBearType bearerType, std::list<std::string> &ifaceNames) in GetIfaceNames() argument 24 return NetConnService::GetInstance()->GetIfaceNames(bearerType, ifaceNames); in GetIfaceNames() 27 int32_t NetConnServiceIface::GetIfaceNameByType(NetBearType bearerType, const std::string &ident, in GetIfaceNameByType() argument 30 return NetConnService::GetInstance()->GetIfaceNameByType(bearerType, ident, ifaceName); in GetIfaceNameByType() 59 int32_t NetConnServiceIface::RegisterNetSupplier(NetBearType bearerType, const std::string &ident, in RegisterNetSupplier() argument 62 return NetConnService::GetInstance()->RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in RegisterNetSupplier()
|
H A D | net_activate.cpp | 113 bool NetActivate::CompareByNetworkIdent(const std::string &ident, NetBearType bearerType, bool skipCheckIdent) in CompareByNetworkIdent() argument 124 if (skipCheckIdent && BEARER_WIFI == bearerType) { in CompareByNetworkIdent() 143 bool NetActivate::CompareByNetworkNetType(NetBearType bearerType) in CompareByNetworkNetType() argument 152 if (reqTypes.find(bearerType) == reqTypes.end()) { in CompareByNetworkNetType()
|
H A D | net_conn_service.cpp | 240 int32_t NetConnService::RegisterNetSupplier(NetBearType bearerType, const std::string &ident, in RegisterNetSupplier() argument 246 if (bearerType != BEARER_VPN) { in RegisterNetSupplier() 252 netConnEventHandler_->PostSyncTask([this, bearerType, &ident, tmp, &supplierId, callingUid, &result]() { in RegisterNetSupplier() 253 result = this->RegisterNetSupplierAsync(bearerType, ident, tmp, supplierId, callingUid); in RegisterNetSupplier() 424 int32_t NetConnService::RegisterNetSupplierAsync(NetBearType bearerType, const std::string &ident, in RegisterNetSupplierAsync() argument 428 NETMGR_LOG_I("RegisterNetSupplier service in, bearerType[%{public}u], ident[%{public}s]", in RegisterNetSupplierAsync() 429 static_cast<uint32_t>(bearerType), ident.c_str()); in RegisterNetSupplierAsync() 431 if (bearerType < BEARER_CELLULAR || bearerType >= BEARER_DEFAULT) { in RegisterNetSupplierAsync() 435 sptr<NetSupplier> supplier = GetNetSupplierFromList(bearerType, iden in RegisterNetSupplierAsync() 1510 GetNetSupplierFromList(NetBearType bearerType, const std::string &ident) GetNetSupplierFromList() argument 1529 GetNetSupplierFromList(NetBearType bearerType, const std::string &ident, const std::set<NetCap> &netCaps) GetNetSupplierFromList() argument 1577 GetSpecificNet(NetBearType bearerType, std::list<int32_t> &netIdList) GetSpecificNet() argument 1674 GetIfaceNames(NetBearType bearerType, std::list<std::string> &ifaceNames) GetIfaceNames() argument 1703 GetIfaceNameByType(NetBearType bearerType, const std::string &ident, std::string &ifaceName) GetIfaceNameByType() argument 1738 GetIfaceNameIdentMaps(NetBearType bearerType, SafeMap<std::string, std::string> &ifaceNameIdentMaps) GetIfaceNameIdentMaps() argument 2727 FindSupplierWithInternetByBearerType(NetBearType bearerType) FindSupplierWithInternetByBearerType() argument 2748 UpdateSupplierScore(NetBearType bearerType, uint32_t detectionStatus, uint32_t& supplierId) UpdateSupplierScore() argument 2759 UpdateSupplierScoreAsync(NetBearType bearerType, uint32_t detectionStatus, uint32_t& supplierId) UpdateSupplierScoreAsync() argument [all...] |
/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 &ifaceName) = 0; 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 &ifaceName); 35 int32_t RegisterNetSupplier(NetBearType bearerType, const std::string &ident, const std::set<NetCap> &netCaps,
|
/foundation/communication/netmanager_base/services/common/src/ |
H A D | net_manager_center.cpp | 29 int32_t NetManagerCenter::GetIfaceNames(NetBearType bearerType, std::list<std::string> &ifaceNames) in GetIfaceNames() argument 34 return connService_->GetIfaceNames(bearerType, ifaceNames); in GetIfaceNames() 37 int32_t NetManagerCenter::GetIfaceNameByType(NetBearType bearerType, const std::string &ident, std::string &ifaceName) in GetIfaceNameByType() argument 42 return connService_->GetIfaceNameByType(bearerType, ident, ifaceName); in GetIfaceNameByType() 45 int32_t NetManagerCenter::RegisterNetSupplier(NetBearType bearerType, const std::string &ident, in RegisterNetSupplier() argument 51 return connService_->RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in RegisterNetSupplier()
|
/foundation/communication/netmanager_base/test/netcommon/unittest/net_common_test/ |
H A D | net_manager_center_test.cpp | 48 inline int32_t GetIfaceNames(NetBearType bearerType, std::list<std::string> &ifaceNames) override 52 inline int32_t GetIfaceNameByType(NetBearType bearerType, const std::string &ident, std::string &ifaceName) override 56 inline int32_t RegisterNetSupplier(NetBearType bearerType, const std::string &ident, 236 NetBearType bearerType = BEARER_CELLULAR; in HWTEST_F() local 239 int32_t result = instance_.RegisterNetSupplier(bearerType, ident, netCaps, supplierId_); in HWTEST_F() 247 NetBearType bearerType = BEARER_CELLULAR; in HWTEST_F() local 250 int32_t result = instance_.RegisterNetSupplier(bearerType, ident, netCaps, supplierId_); in HWTEST_F() 270 NetBearType bearerType = BEARER_CELLULAR; in HWTEST_F() local 275 int32_t result = instance_.RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in HWTEST_F() 287 NetBearType bearerType in HWTEST_F() local 302 NetBearType bearerType = BEARER_CELLULAR; HWTEST_F() local 322 NetBearType bearerType = BEARER_CELLULAR; HWTEST_F() local 518 NetBearType bearerType = BEARER_CELLULAR; HWTEST_F() local [all...] |
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_supplier_test/ |
H A D | net_specifier_test.cpp | 113 NetBearType bearerType = NetBearType::BEARER_WIFI; in HWTEST_F() local 114 bearerTypes.insert(bearerType); in HWTEST_F() 127 NetBearType bearerType = NetBearType::BEARER_WIFI; in HWTEST_F() local 128 specifier->SetType(bearerType); in HWTEST_F() 130 bearerTypes.insert(bearerType); in HWTEST_F()
|
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_multi_test/ |
H A D | net_score_test.cpp | 49 NetBearType bearerType = BEARER_CELLULAR; in HWTEST_F() local 50 sptr<NetSupplier> supplier = (std::make_unique<NetSupplier>(bearerType, ident, netCaps)).release(); in HWTEST_F() 88 NetBearType bearerType = BEARER_CELLULAR; in HWTEST_F() local 89 sptr<NetSupplier> supplier = (std::make_unique<NetSupplier>(bearerType, ident, netCaps)).release(); in HWTEST_F()
|
H A D | net_activate_test.cpp | 191 NetBearType bearerType = BEARER_WIFI; in HWTEST_F() local 192 bool ret = instance_->CompareByNetworkNetType(bearerType); in HWTEST_F() 196 ret = instance_->CompareByNetworkNetType(bearerType); in HWTEST_F() 199 bearerType = BEARER_ETHERNET; in HWTEST_F() 200 ret = instance_->CompareByNetworkNetType(bearerType); in HWTEST_F() 204 ret = instance_->CompareByNetworkNetType(bearerType); in HWTEST_F() 212 ret = testNetActivate->CompareByNetworkNetType(bearerType); in HWTEST_F()
|
/foundation/communication/netmanager_base/services/netconnmanager/include/ |
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 &ifaceName) override; 37 int32_t RegisterNetSupplier(NetBearType bearerType, const std::string &ident, const std::set<NetCap> &netCaps,
|
H A D | net_conn_service.h | 105 * @param bearerType Bearer Network Type 112 int32_t RegisterNetSupplier(NetBearType bearerType, const std::string &ident, const std::set<NetCap> &netCaps, 196 * The interface names which NetBearType is equal than bearerType 198 * @param bearerType Network bearer type 202 int32_t GetIfaceNames(NetBearType bearerType, std::list<std::string> &ifaceNames) override; 207 * @param bearerType Network bearer type 212 int32_t GetIfaceNameByType(NetBearType bearerType, const std::string &ident, std::string &ifaceName) override; 217 * @param bearerType the type of network 223 int32_t GetIfaceNameIdentMaps(NetBearType bearerType, 255 int32_t GetSpecificNet(NetBearType bearerType, st [all...] |
H A D | net_activate.h | 65 bool CompareByNetworkIdent(const std::string &ident, NetBearType bearerType, bool skipCheckIdent); 67 bool CompareByNetworkNetType(NetBearType bearerType);
|
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_manager_test/ |
H A D | net_conn_manager_test.cpp | 199 NetBearType bearerType = BEARER_CELLULAR; in HWTEST_F() local 203 int32_t result = NetConnClient::GetInstance().RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in HWTEST_F() 215 NetBearType bearerType = BEARER_CELLULAR; in HWTEST_F() local 219 int32_t result = NetConnClient::GetInstance().RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in HWTEST_F() 235 NetBearType bearerType = BEARER_CELLULAR; in HWTEST_F() local 239 int32_t result = NetConnClient::GetInstance().RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in HWTEST_F() 259 NetBearType bearerType = BEARER_CELLULAR; in HWTEST_F() local 264 int32_t result = NetConnClient::GetInstance().RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in HWTEST_F() 280 NetBearType bearerType = BEARER_CELLULAR; in HWTEST_F() local 285 int32_t result = NetConnClient::GetInstance().RegisterNetSupplier(bearerType, iden in HWTEST_F() 438 NetBearType bearerType = BEARER_CELLULAR; HWTEST_F() local 517 NetBearType bearerType = BEARER_CELLULAR; HWTEST_F() local 540 NetBearType bearerType = BEARER_CELLULAR; HWTEST_F() local 652 NetBearType bearerType = BEARER_CELLULAR; HWTEST_F() local 765 NetBearType bearerType = BEARER_ETHERNET; HWTEST_F() local [all...] |
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/conn_vpn_manager_test/ |
H A D | net_conn_manager_test.cpp | 199 NetBearType bearerType = BEARER_CELLULAR; in HWTEST_F() local 203 int32_t result = NetConnClient::GetInstance().RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in HWTEST_F() 215 NetBearType bearerType = BEARER_CELLULAR; in HWTEST_F() local 219 int32_t result = NetConnClient::GetInstance().RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in HWTEST_F() 235 NetBearType bearerType = BEARER_CELLULAR; in HWTEST_F() local 239 int32_t result = NetConnClient::GetInstance().RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in HWTEST_F() 259 NetBearType bearerType = BEARER_CELLULAR; in HWTEST_F() local 264 int32_t result = NetConnClient::GetInstance().RegisterNetSupplier(bearerType, ident, netCaps, supplierId); in HWTEST_F() 280 NetBearType bearerType = BEARER_CELLULAR; in HWTEST_F() local 285 int32_t result = NetConnClient::GetInstance().RegisterNetSupplier(bearerType, iden in HWTEST_F() 438 NetBearType bearerType = BEARER_CELLULAR; HWTEST_F() local 517 NetBearType bearerType = BEARER_CELLULAR; HWTEST_F() local 540 NetBearType bearerType = BEARER_CELLULAR; HWTEST_F() local 652 NetBearType bearerType = BEARER_CELLULAR; HWTEST_F() local 765 NetBearType bearerType = BEARER_ETHERNET; HWTEST_F() local [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/Mock/ |
H A D | net_conn_client.h | 52 int32_t RegisterNetSupplier(NetBearType bearerType, const std::string &ident, 55 int32_t UpdateSupplierScore(NetBearType bearerType, uint32_t detectionStatus, uint32_t& supplierId);
|
/foundation/communication/netmanager_base/test/netconnmanager/unittest/netmgr_distributed_test/ |
H A D | net_conn_service_stub_test.h | 46 int32_t RegisterNetSupplier(NetBearType bearerType, const std::string &ident, const std::set<NetCap> &netCaps, 109 int32_t GetIfaceNames(NetBearType bearerType, std::list<std::string> &ifaceNames) override 114 int32_t GetIfaceNameByType(NetBearType bearerType, const std::string &ident, std::string &ifaceName) override 144 int32_t GetIfaceNameIdentMaps(NetBearType bearerType, 150 int32_t GetSpecificNet(NetBearType bearerType, std::list<int32_t> &netIdList) override 292 int32_t UpdateSupplierScore(NetBearType bearerType, uint32_t detectionStatus, uint32_t& supplierId) override
|
/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/proxy/ |
H A D | net_conn_service_proxy.h | 37 int32_t RegisterNetSupplier(NetBearType bearerType, const std::string &ident, const std::set<NetCap> &netCaps, 52 int32_t GetIfaceNames(NetBearType bearerType, std::list<std::string> &ifaceNames) override; 53 int32_t GetIfaceNameByType(NetBearType bearerType, const std::string &ident, std::string &ifaceName) override; 54 int32_t GetIfaceNameIdentMaps(NetBearType bearerType, 61 int32_t GetSpecificNet(NetBearType bearerType, std::list<int32_t> &netIdList) override; 93 int32_t UpdateSupplierScore(NetBearType bearerType, uint32_t detectionStatus, uint32_t& supplierId) override;
|
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 &ifaceName) = 0; 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& supplierId) = 0;
|
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_service_test/ |
H A D | net_conn_service_stub_test.h | 46 int32_t RegisterNetSupplier(NetBearType bearerType, const std::string &ident, const std::set<NetCap> &netCaps, 109 int32_t GetIfaceNames(NetBearType bearerType, std::list<std::string> &ifaceNames) override 114 int32_t GetIfaceNameByType(NetBearType bearerType, const std::string &ident, std::string &ifaceName) override 144 int32_t GetIfaceNameIdentMaps(NetBearType bearerType, 150 int32_t GetSpecificNet(NetBearType bearerType, std::list<int32_t> &netIdList) override 292 int32_t UpdateSupplierScore(NetBearType bearerType, uint32_t detectionStatus, uint32_t& supplierId) override
|
/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/ |
H A D | net_specifier.cpp | 52 void NetSpecifier::SetType(NetBearType bearerType) in SetType() argument 55 netCapabilities_.bearerTypes_.insert(bearerType); in SetType()
|
/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/ |
H A D | net_specifier.h | 36 void SetType(NetBearType bearerType);
|
/foundation/communication/netmanager_base/frameworks/js/napi/netstats/include/context/ |
H A D | get_traffic_stats_by_network_context.h | 35 void SetNetBearType(uint32_t bearerType);
|
/foundation/communication/netmanager_base/frameworks/js/napi/netstats/src/context/ |
H A D | get_traffic_stats_by_uid_network_context.cpp | 131 void GetTrafficStatsByUidNetworkContext::SetNetBearType(uint32_t bearerType) in SetNetBearType() argument 133 netBearType_ = bearerType; in SetNetBearType()
|
H A D | get_traffic_stats_by_network_context.cpp | 118 void GetTrafficStatsByNetworkContext::SetNetBearType(uint32_t bearerType) in SetNetBearType() argument 120 netBearType_ = bearerType; in SetNetBearType()
|