Home
last modified time | relevance | path

Searched refs:GetInterfaceIndex (Results 1 – 17 of 17) sorted by relevance

/system/connectivity/shill/cellular/
Dmodem_unittest.cc97 EXPECT_CALL(rtnl_handler_, GetInterfaceIndex(kLinkName)). in SetUp()
122 EXPECT_CALL(rtnl_handler_, GetInterfaceIndex(StrEq(kLinkName))). in TEST_F()
194 EXPECT_CALL(rtnl_handler_, GetInterfaceIndex(StrEq(kLinkName))).WillOnce( in TEST_F()
203 EXPECT_CALL(rtnl_handler_, GetInterfaceIndex(StrEq(kLinkName))) in TEST_F()
255 EXPECT_CALL(rtnl_handler_, GetInterfaceIndex(_)).WillOnce(Return(-1)); in TEST_F()
261 EXPECT_CALL(rtnl_handler_, GetInterfaceIndex(_)).WillOnce(Return(-2)); in TEST_F()
267 EXPECT_CALL(rtnl_handler_, GetInterfaceIndex(_)).WillOnce(Return(1)); in TEST_F()
272 EXPECT_CALL(rtnl_handler_, GetInterfaceIndex(_)).WillOnce(Return(2)); in TEST_F()
Dmodem_1_unittest.cc92 EXPECT_CALL(rtnl_handler_, GetInterfaceIndex(kLinkName)). in SetUp()
Dmodem.cc168 *interface_index = rtnl_handler_->GetInterfaceIndex(link_name_); in GetDeviceParams()
/system/connectivity/shill/net/
Drtnl_handler_unittest.cc217 EXPECT_EQ(-1, RTNLHandler::GetInstance()->GetInterfaceIndex("")); in TEST_F()
221 EXPECT_EQ(-1, RTNLHandler::GetInstance()->GetInterfaceIndex(name)); in TEST_F()
235 EXPECT_EQ(-1, RTNLHandler::GetInstance()->GetInterfaceIndex("eth0")); in TEST_F()
236 EXPECT_EQ(-1, RTNLHandler::GetInstance()->GetInterfaceIndex("wlan0")); in TEST_F()
238 RTNLHandler::GetInstance()->GetInterfaceIndex("usb0")); in TEST_F()
Dmock_rtnl_handler.h49 MOCK_METHOD1(GetInterfaceIndex, int(const std::string& interface_name));
Drtnl_handler.h111 virtual int GetInterfaceIndex(const std::string& interface_name);
Drtnl_handler.cc417 int RTNLHandler::GetInterfaceIndex(const string& interface_name) { in GetInterfaceIndex() function in shill::RTNLHandler
/system/connectivity/apmanager/
Ddhcp_server.cc69 rtnl_handler_->GetInterfaceIndex(interface_name_), server_address_); in ~DHCPServer()
92 int interface_index = rtnl_handler_->GetInterfaceIndex(interface_name_); in Start()
Ddhcp_server_unittest.cc128 EXPECT_CALL(*rtnl_handler_.get(), GetInterfaceIndex(kTestInterfaceName)) in TEST_F()
/system/connectivity/dhcp_client/
Ddevice_info_unittest.cc88 EXPECT_CALL(rtnl_handler_, GetInterfaceIndex(kFakeDeviceName)) in TEST_F()
133 EXPECT_CALL(rtnl_handler_, GetInterfaceIndex(kFakeDeviceName)) in TEST_F()
Ddevice_info.cc76 int if_index = rtnl_handler_->GetInterfaceIndex(interface_name); in GetDeviceInfo()
/system/connectivity/shill/
Deap_listener_unittest.cc74 int GetInterfaceIndex() { return listener_.interface_index_; } in GetInterfaceIndex() function in shill::EapListenerTest
135 EXPECT_EQ(kInterfaceIndex, GetInterfaceIndex()); in TEST_F()
Darp_client_unittest.cc75 int GetInterfaceIndex() { return client_.interface_index_; } in GetInterfaceIndex() function in shill::ArpClientTest
151 EXPECT_EQ(kInterfaceIndex, GetInterfaceIndex()); in TEST_F()
/system/extras/tests/net_test/
Danycast_test.py82 self.ifindices[netid] = net_test.GetInterfaceIndex(iface)
Dsock_diag.py284 iface = GetInterfaceIndex(iface) if iface else 0
Dnet_test.py174 def GetInterfaceIndex(ifname): function
Dmultinetwork_base.py376 cls.ifindices[netid] = net_test.GetInterfaceIndex(iface)