/foundation/communication/netmanager_base/services/netconnmanager/src/ |
H A D | net_supplier.cpp | 32 NetSupplier::NetSupplier(NetBearType bearerType, const std::string &netSupplierIdent, const std::set<NetCap> &netCaps) in NetSupplier() function in OHOS::NetManagerStandard::NetSupplier 44 sptr<INetSupplierCallback> NetSupplier::GetSupplierCallback() in GetSupplierCallback() 49 void NetSupplier::RegisterSupplierCallback(const sptr<INetSupplierCallback> &callback) in RegisterSupplierCallback() 54 void NetSupplier::InitNetScore() in InitNetScore() 72 void NetSupplier::ResetNetSupplier() in ResetNetSupplier() 89 bool NetSupplier::operator==(const NetSupplier &netSupplier) const in operator ==() 95 void NetSupplier::UpdateNetSupplierInfo(const NetSupplierInfo &netSupplierInfo) in UpdateNetSupplierInfo() 123 int32_t NetSupplier [all...] |
H A D | net_activate.cpp | 78 bool NetActivate::MatchRequestAndNetwork(sptr<NetSupplier> supplier, bool skipCheckIdent) in MatchRequestAndNetwork() 193 sptr<NetSupplier> NetActivate::GetServiceSupply() const in GetServiceSupply() 198 void NetActivate::SetServiceSupply(sptr<NetSupplier> netServiceSupplied) in SetServiceSupply()
|
H A D | net_conn_service.cpp | 435 sptr<NetSupplier> supplier = GetNetSupplierFromList(bearerType, ident, netCaps); in RegisterNetSupplierAsync() 442 supplier = (std::make_unique<NetSupplier>(bearerType, ident, netCaps)).release(); in RegisterNetSupplierAsync() 635 sptr<NetSupplier> newSupplier = nullptr; in UnregisterNetSupplierAsync() 649 int32_t NetConnService::CheckAndCompareUid(sptr<NetSupplier> &supplier, int32_t callingUid) in CheckAndCompareUid() 824 sptr<NetSupplier> supplier = netActivate->GetServiceSupply(); in DecreaseNetActivates() 1058 sptr<NetSupplier> bestNet = nullptr; in ActivateNetwork() 1097 sptr<NetSupplier> pNetService = iterActivate->second->GetServiceSupply(); in OnNetActivateTimeOut() 1115 sptr<NetSupplier> NetConnService::FindNetSupplier(uint32_t supplierId) in FindNetSupplier() 1165 sptr<NetSupplier> bestSupplier = nullptr; in FindBestNetworkForAllRequest() 1178 sptr<NetSupplier> oldSupplie in FindBestNetworkForAllRequest() [all...] |
/foundation/communication/netmanager_base/services/netconnmanager/include/ |
H A D | net_activate.h | 27 class NetSupplier; 52 bool MatchRequestAndNetwork(sptr<NetSupplier> supplier, bool skipCheckIdent = false); 55 sptr<NetSupplier> GetServiceSupply() const; 56 void SetServiceSupply(sptr<NetSupplier> netServiceSupplied); 77 sptr<NetSupplier> netServiceSupplied_ = nullptr;
|
H A D | net_conn_service.h | 64 using NET_SUPPLIER_MAP = std::map<uint32_t, sptr<NetSupplier>>; 422 std::list<sptr<NetSupplier>> GetNetSupplierFromList(NetBearType bearerType, const std::string &ident = ""); 423 sptr<NetSupplier> GetNetSupplierFromList(NetBearType bearerType, const std::string &ident, 428 void CallbackForSupplier(sptr<NetSupplier> &supplier, CallbackType type); 429 void CallbackForAvailable(sptr<NetSupplier> &supplier, const sptr<INetConnCallback> &callback); 430 uint32_t FindBestNetworkForRequest(sptr<NetSupplier> &supplier, std::shared_ptr<NetActivate> &netActivateNetwork); 432 sptr<NetSupplier> &supplier); 435 void SendAllRequestToNetwork(sptr<NetSupplier> supplier); 437 void MakeDefaultNetWork(sptr<NetSupplier> &oldService, sptr<NetSupplier> [all...] |
H A D | net_supplier.h | 74 class NetSupplier : public virtual RefBase { class in OHOS::NetManagerStandard::NetTypeScoreValue 76 NetSupplier(NetBearType bearerType, const std::string &netSupplierIdent, const std::set<NetCap> &netCaps); 77 ~NetSupplier() = default; 83 bool operator==(const NetSupplier &netSupplier) const;
|
H A D | nat464_service.h | 28 class NetSupplier;
|
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_multi_test/ |
H A D | net_activate_test.cpp | 80 sptr<NetSupplier> supplier = new (std::nothrow) NetSupplier(NetBearType::BEARER_ETHERNET, TEST_IDENT, netCaps); in HWTEST_F() 83 sptr<NetSupplier> supplier001 = nullptr; in HWTEST_F() 87 sptr<NetSupplier> supplier002 = new (std::nothrow) NetSupplier(NetBearType::BEARER_ETHERNET, test, netCaps); in HWTEST_F() 92 sptr<NetSupplier> supplier003 = new (std::nothrow) NetSupplier(NetBearType::BEARER_ETHERNET, TEST_IDENT, netCaps1); in HWTEST_F() 95 sptr<NetSupplier> supplier004 = new (std::nothrow) NetSupplier(NetBearType::BEARER_CELLULAR, TEST_IDENT, netCaps); in HWTEST_F() 104 sptr<NetSupplier> supplie in HWTEST_F() [all...] |
H A D | net_score_test.cpp | 50 sptr<NetSupplier> supplier = (std::make_unique<NetSupplier>(bearerType, ident, netCaps)).release(); in HWTEST_F() 89 sptr<NetSupplier> supplier = (std::make_unique<NetSupplier>(bearerType, ident, netCaps)).release(); in HWTEST_F()
|
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_supplier_test/ |
H A D | net_supplier_test.cpp | 42 static inline sptr<NetSupplier> supplier = nullptr; 49 supplier = new (std::nothrow) NetSupplier(NetBearType::BEARER_ETHERNET, TEST_IDENT, netCaps); in SetUpTestCase() 232 NetSupplier netSupplier1(BEARER_CELLULAR, netSupplierIdent, netCaps); in HWTEST_F() 233 NetSupplier netSupplier2 = netSupplier1; in HWTEST_F()
|
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_manager_test/ |
H A D | net_conn_service_test.cpp | 149 sptr<NetSupplier> supplier = nullptr; in HWTEST_F() 855 sptr<NetSupplier> supplier = nullptr; in HWTEST_F() 895 sptr<NetSupplier> supplier = nullptr; in HWTEST_F() 896 sptr<NetSupplier> newSupplier = nullptr; in HWTEST_F() 954 sptr<NetSupplier> supplier = nullptr; in HWTEST_F() 1079 std::vector<sptr<NetSupplier>> suppliers = in HWTEST_F() 1252 sptr<NetSupplier> supplier = new (std::nothrow) NetSupplier(NetBearType::BEARER_WIFI, netSupplierIdent, netCaps); in HWTEST_F() 1282 sptr<NetSupplier> supplier = new (std::nothrow) NetSupplier(NetBearTyp in HWTEST_F() [all...] |
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/conn_vpn_manager_test/ |
H A D | net_conn_service_test.cpp | 148 sptr<NetSupplier> supplier = nullptr; in HWTEST_F() 854 sptr<NetSupplier> supplier = nullptr; in HWTEST_F() 894 sptr<NetSupplier> supplier = nullptr; in HWTEST_F() 895 sptr<NetSupplier> newSupplier = nullptr; in HWTEST_F() 952 sptr<NetSupplier> supplier = nullptr; in HWTEST_F() 1076 std::vector<sptr<NetSupplier>> suppliers = in HWTEST_F()
|