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

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

Completed in 225 milliseconds