/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_service_test/ |
H A D | net_conn_service_proxy_test.cpp | 427 std::list<int32_t> netIdList; in HWTEST_F() local 428 int32_t ret = instance_->GetSpecificNet(NetBearType::BEARER_ETHERNET, netIdList); in HWTEST_F() 439 std::list<int32_t> netIdList; in HWTEST_F() local 440 int32_t ret = instance_->GetAllNets(netIdList); in HWTEST_F() 585 std::list<int32_t> netIdList; in HWTEST_F() local 586 int32_t ret = instance_->GetNetIdByIdentifier(TEST_IDENT, netIdList); in HWTEST_F()
|
H A D | net_conn_service_stub_test.h | 150 int32_t GetSpecificNet(NetBearType bearerType, std::list<int32_t> &netIdList) override 155 int32_t GetAllNets(std::list<int32_t> &netIdList) override 205 int32_t GetNetIdByIdentifier(const std::string &ident, std::list<int32_t> &netIdList) override
|
/foundation/communication/netmanager_base/test/netconnmanager/unittest/netmgr_distributed_test/ |
H A D | net_conn_service_stub_test.h | 150 int32_t GetSpecificNet(NetBearType bearerType, std::list<int32_t> &netIdList) override 155 int32_t GetAllNets(std::list<int32_t> &netIdList) override 205 int32_t GetNetIdByIdentifier(const std::string &ident, std::list<int32_t> &netIdList) override
|
/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/proxy/ |
H A D | net_conn_service_proxy.h | 61 int32_t GetSpecificNet(NetBearType bearerType, std::list<int32_t> &netIdList) override; 62 int32_t GetAllNets(std::list<int32_t> &netIdList) override; 72 int32_t GetNetIdByIdentifier(const std::string &ident, std::list<int32_t> &netIdList) override;
|
H A D | i_net_conn_service.h | 71 virtual int32_t GetSpecificNet(NetBearType bearerType, std::list<int32_t> &netIdList) = 0; 72 virtual int32_t GetAllNets(std::list<int32_t> &netIdList) = 0; 82 virtual int32_t GetNetIdByIdentifier(const std::string &ident, std::list<int32_t> &netIdList) = 0;
|
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_manager_test/ |
H A D | net_conn_manager_test.cpp | 351 std::cout << "netIdList size:" << netList.size() << std::endl; in HWTEST_F() 464 std::list<int32_t> netIdList; in HWTEST_F() local 465 result = proxy->GetSpecificNet(bearerType, netIdList); in HWTEST_F() 467 for (auto it : netIdList) { in HWTEST_F() 554 std::list<int32_t> netIdList; in HWTEST_F() local 555 result = NetConnClient::GetInstance().GetNetIdByIdentifier(ident, netIdList); in HWTEST_F() 558 NetHandle netHandle(netIdList.front()); in HWTEST_F() 583 std::cout << "Check1: netIdList size:" << netList.size() << std::endl; in CheckNetListRemainWhenConnected() 594 std::cout << "Check2: netIdList size:" << netList.size() << std::endl; in CheckNetListIncreaseWhenConnected() 606 std::cout << "Check3: netIdList siz in CheckNetListWhenDisconnected() 696 std::list<int32_t> netIdList; HWTEST_F() local [all...] |
H A D | net_conn_service_test.cpp | 406 std::list<int32_t> netIdList; in HWTEST_F() local 407 auto ret = NetConnService::GetInstance()->GetAllNets(netIdList); in HWTEST_F() 418 std::list<int32_t> netIdList; in HWTEST_F() local 419 ret = NetConnService::GetInstance()->GetSpecificNet(BEARER_VPN, netIdList); in HWTEST_F() 421 EXPECT_GE(netIdList.size(), 0); in HWTEST_F() 428 EXPECT_EQ(netID, *netIdList.begin()); in HWTEST_F() 489 std::list<int32_t> netIdList; in HWTEST_F() local 490 auto ret = NetConnService::GetInstance()->GetNetIdByIdentifier("", netIdList); in HWTEST_F() 493 ret = NetConnService::GetInstance()->GetNetIdByIdentifier(TEST_IDENT, netIdList); in HWTEST_F() 683 std::list<int32_t> netIdList; in HWTEST_F() local [all...] |
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/conn_vpn_manager_test/ |
H A D | net_conn_manager_test.cpp | 351 std::cout << "netIdList size:" << netList.size() << std::endl; in HWTEST_F() 464 std::list<int32_t> netIdList; in HWTEST_F() local 465 result = proxy->GetSpecificNet(bearerType, netIdList); in HWTEST_F() 467 for (auto it : netIdList) { in HWTEST_F() 554 std::list<int32_t> netIdList; in HWTEST_F() local 555 result = NetConnClient::GetInstance().GetNetIdByIdentifier(ident, netIdList); in HWTEST_F() 558 NetHandle netHandle(netIdList.front()); in HWTEST_F() 583 std::cout << "Check1: netIdList size:" << netList.size() << std::endl; in CheckNetListRemainWhenConnected() 594 std::cout << "Check2: netIdList size:" << netList.size() << std::endl; in CheckNetListIncreaseWhenConnected() 606 std::cout << "Check3: netIdList siz in CheckNetListWhenDisconnected() 696 std::list<int32_t> netIdList; HWTEST_F() local [all...] |
H A D | net_conn_service_test.cpp | 405 std::list<int32_t> netIdList; in HWTEST_F() local 406 auto ret = NetConnService::GetInstance()->GetAllNets(netIdList); in HWTEST_F() 417 std::list<int32_t> netIdList; in HWTEST_F() local 418 ret = NetConnService::GetInstance()->GetSpecificNet(BEARER_VPN, netIdList); in HWTEST_F() 420 EXPECT_GE(netIdList.size(), 0); in HWTEST_F() 427 EXPECT_EQ(netID, *netIdList.begin()); in HWTEST_F() 488 std::list<int32_t> netIdList; in HWTEST_F() local 489 auto ret = NetConnService::GetInstance()->GetNetIdByIdentifier("", netIdList); in HWTEST_F() 492 ret = NetConnService::GetInstance()->GetNetIdByIdentifier(TEST_IDENT, netIdList); in HWTEST_F() 682 std::list<int32_t> netIdList; in HWTEST_F() local [all...] |
/foundation/communication/netmanager_base/services/netconnmanager/src/stub/ |
H A D | net_conn_service_stub.cpp | 905 std::list<int32_t> netIdList; in OnGetSpecificNet() local 906 int32_t ret = GetSpecificNet(bearerType, netIdList); in OnGetSpecificNet() 911 uint32_t size = static_cast<uint32_t>(netIdList.size()); in OnGetSpecificNet() 918 for (auto p = netIdList.begin(); p != netIdList.end(); ++p) { in OnGetSpecificNet() 933 std::list<int32_t> netIdList; in OnGetAllNets() local 934 int32_t ret = GetAllNets(netIdList); in OnGetAllNets() 939 uint32_t size = static_cast<uint32_t>(netIdList.size()); in OnGetAllNets() 944 for (auto p = netIdList.begin(); p != netIdList in OnGetAllNets() 1225 std::list<int32_t> netIdList; OnGetNetIdByIdentifier() local [all...] |
/foundation/communication/netmanager_ext/services/vpnmanager/src/ |
H A D | net_vpn_impl.cpp | 101 std::list<int32_t> netIdList; in SetUp() local 102 netConnClientIns.GetNetIdByIdentifier(TUN_CARD_NAME, netIdList); in SetUp() 103 if (netIdList.size() == 0) { in SetUp() 108 netId_ = *(netIdList.begin()); in SetUp()
|
/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/ |
H A D | net_conn_client.cpp | 367 std::list<int32_t> netIdList; in GetAllNets() local 368 int32_t result = proxy->GetAllNets(netIdList); in GetAllNets() 373 for (iter = netIdList.begin(); iter != netIdList.end(); ++iter) { in GetAllNets() 698 int32_t NetConnClient::GetNetIdByIdentifier(const std::string &ident, std::list<int32_t> &netIdList) in GetNetIdByIdentifier() argument 705 return proxy->GetNetIdByIdentifier(ident, netIdList); in GetNetIdByIdentifier()
|
/foundation/communication/netmanager_base/services/netconnmanager/include/ |
H A D | net_conn_service.h | 255 int32_t GetSpecificNet(NetBearType bearerType, std::list<int32_t> &netIdList) override; 256 int32_t GetAllNets(std::list<int32_t> &netIdList) override; 320 * @param netIdList output param, the net id list 323 int32_t GetNetIdByIdentifier(const std::string &ident, std::list<int32_t> &netIdList) override;
|
/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/proxy/ |
H A D | net_conn_service_proxy.cpp | 776 int32_t NetConnServiceProxy::GetSpecificNet(NetBearType bearerType, std::list<int32_t> &netIdList) in GetSpecificNet() argument 811 netIdList.push_back(value); in GetSpecificNet() 817 int32_t NetConnServiceProxy::GetAllNets(std::list<int32_t> &netIdList) in GetAllNets() argument 847 netIdList.push_back(value); in GetAllNets() 1221 int32_t NetConnServiceProxy::GetNetIdByIdentifier(const std::string &ident, std::list<int32_t> &netIdList) in GetNetIdByIdentifier() argument 1258 netIdList.push_back(value); in GetNetIdByIdentifier()
|
/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/ |
H A D | net_conn_client.h | 370 * @param netIdList list of network id 375 int32_t GetNetIdByIdentifier(const std::string &ident, std::list<int32_t> &netIdList);
|
/foundation/communication/netmanager_base/services/netconnmanager/src/ |
H A D | net_conn_service.cpp | 1577 int32_t NetConnService::GetSpecificNet(NetBearType bearerType, std::list<int32_t> &netIdList) in GetSpecificNet() argument 1592 netIdList.push_back(iterSupplier->second->GetNetId()); in GetSpecificNet() 1599 int32_t NetConnService::GetAllNets(std::list<int32_t> &netIdList) in GetAllNets() argument 1614 netIdList.push_back(netId); in GetAllNets() 1617 NETMGR_LOG_D("netSuppliers_ size[%{public}zd] netIdList size[%{public}zd]", netSuppliers_.size(), netIdList.size()); in GetAllNets() 1813 int32_t NetConnService::GetNetIdByIdentifier(const std::string &ident, std::list<int32_t> &netIdList) in GetNetIdByIdentifier() argument 1826 netIdList.push_back(netId); in GetNetIdByIdentifier()
|