Lines Matching refs:DeviceInfo
82 static string ObjectID(const DeviceInfo* d) { return "(device_info)"; } in ObjectID()
86 const char DeviceInfo::kModemPseudoDeviceNamePrefix[] = "pseudomodem";
87 const char DeviceInfo::kEthernetPseudoDeviceNamePrefix[] = "pseudoethernet";
88 const char DeviceInfo::kIgnoredDeviceNamePrefix[] = "veth";
89 const char DeviceInfo::kDeviceInfoRoot[] = "/sys/class/net";
90 const char DeviceInfo::kDriverCdcEther[] = "cdc_ether";
91 const char DeviceInfo::kDriverCdcNcm[] = "cdc_ncm";
92 const char DeviceInfo::kDriverGdmWiMax[] = "gdm_wimax";
93 const char DeviceInfo::kDriverVirtioNet[] = "virtio_net";
94 const char DeviceInfo::kInterfaceUevent[] = "uevent";
95 const char DeviceInfo::kInterfaceUeventWifiSignature[] = "DEVTYPE=wlan\n";
96 const char DeviceInfo::kInterfaceDevice[] = "device";
97 const char DeviceInfo::kInterfaceDriver[] = "device/driver";
98 const char DeviceInfo::kInterfaceTunFlags[] = "tun_flags";
99 const char DeviceInfo::kInterfaceType[] = "type";
100 const char* DeviceInfo::kModemDrivers[] = {
107 const char DeviceInfo::kTunDeviceName[] = "/dev/net/tun";
108 const int DeviceInfo::kDelayedDeviceCreationSeconds = 5;
109 const int DeviceInfo::kRequestLinkStatisticsIntervalMilliseconds = 20000;
111 DeviceInfo::DeviceInfo(ControlInterface* control_interface, in DeviceInfo() function in shill::DeviceInfo
119 link_callback_(Bind(&DeviceInfo::LinkMsgHandler, Unretained(this))), in DeviceInfo()
120 address_callback_(Bind(&DeviceInfo::AddressMsgHandler, Unretained(this))), in DeviceInfo()
121 rdnss_callback_(Bind(&DeviceInfo::RdnssMsgHandler, Unretained(this))), in DeviceInfo()
132 DeviceInfo::~DeviceInfo() {} in ~DeviceInfo()
134 void DeviceInfo::AddDeviceToBlackList(const string& device_name) { in AddDeviceToBlackList()
144 void DeviceInfo::RemoveDeviceFromBlackList(const string& device_name) { in RemoveDeviceFromBlackList()
154 bool DeviceInfo::IsDeviceBlackListed(const string& device_name) { in IsDeviceBlackListed()
158 void DeviceInfo::Start() { in Start()
168 Bind(&DeviceInfo::RequestLinkStatistics, AsWeakPtr())); in Start()
173 void DeviceInfo::Stop() { in Stop()
182 vector<string> DeviceInfo::GetUninitializedTechnologies() const { in GetUninitializedTechnologies()
202 void DeviceInfo::RegisterDevice(const DeviceRefPtr& device) { in RegisterDevice()
220 void DeviceInfo::DeregisterDevice(const DeviceRefPtr& device) { in DeregisterDevice()
241 FilePath DeviceInfo::GetDeviceInfoPath(const string& iface_name, in GetDeviceInfoPath()
246 bool DeviceInfo::GetDeviceInfoContents(const string& iface_name, in GetDeviceInfoContents()
253 bool DeviceInfo::GetDeviceInfoSymbolicLink(const string& iface_name, in GetDeviceInfoSymbolicLink()
260 Technology::Identifier DeviceInfo::GetDeviceTechnology( in GetDeviceTechnology()
390 bool DeviceInfo::IsCdcEthernetModemDevice(const std::string& iface_name) { in IsCdcEthernetModemDevice()
438 bool DeviceInfo::HasSubdir(const FilePath& base_dir, const FilePath& subdir) { in HasSubdir()
450 DeviceRefPtr DeviceInfo::CreateDevice(const string& link_name, in CreateDevice()
581 bool DeviceInfo::GetLinkNameFromMessage(const RTNLMessage& msg, in GetLinkNameFromMessage()
593 bool DeviceInfo::IsRenamedBlacklistedDevice(const RTNLMessage& msg) { in IsRenamedBlacklistedDevice()
615 void DeviceInfo::AddLinkMsgHandler(const RTNLMessage& msg) { in AddLinkMsgHandler()
687 void DeviceInfo::DelLinkMsgHandler(const RTNLMessage& msg) { in DelLinkMsgHandler()
699 DeviceRefPtr DeviceInfo::GetDevice(int interface_index) const { in GetDevice()
704 int DeviceInfo::GetIndex(const string& interface_name) const { in GetIndex()
709 bool DeviceInfo::GetMACAddress(int interface_index, ByteString* address) const { in GetMACAddress()
726 ByteString DeviceInfo::GetMACAddressFromKernel(int interface_index) const { in GetMACAddressFromKernel()
752 bool DeviceInfo::GetMACAddressOfPeer(int interface_index, in GetMACAddressOfPeer()
807 bool DeviceInfo::GetAddresses(int interface_index, in GetAddresses()
817 void DeviceInfo::FlushAddresses(int interface_index) const { in FlushAddresses()
836 bool DeviceInfo::HasOtherAddress( in HasOtherAddress()
861 bool DeviceInfo::GetPrimaryIPv6Address(int interface_index, in GetPrimaryIPv6Address()
900 bool DeviceInfo::GetIPv6DnsServerAddresses(int interface_index, in GetIPv6DnsServerAddresses()
928 bool DeviceInfo::HasDirectConnectivityTo( in HasDirectConnectivityTo()
946 bool DeviceInfo::GetFlags(int interface_index, unsigned int* flags) const { in GetFlags()
955 bool DeviceInfo::GetByteCounts(int interface_index, in GetByteCounts()
967 bool DeviceInfo::CreateTunnelInterface(string* interface_name) const { in CreateTunnelInterface()
993 int DeviceInfo::OpenTunnelInterface(const std::string& interface_name) const { in OpenTunnelInterface()
1012 bool DeviceInfo::DeleteInterface(int interface_index) const { in DeleteInterface()
1016 const DeviceInfo::Info* DeviceInfo::GetInfo(int interface_index) const { in GetInfo()
1024 void DeviceInfo::RemoveInfo(int interface_index) { in RemoveInfo()
1043 void DeviceInfo::LinkMsgHandler(const RTNLMessage& msg) { in LinkMsgHandler()
1054 void DeviceInfo::AddressMsgHandler(const RTNLMessage& msg) { in AddressMsgHandler()
1100 void DeviceInfo::RdnssMsgHandler(const RTNLMessage& msg) { in RdnssMsgHandler()
1125 void DeviceInfo::DelayDeviceCreation(int interface_index) { in DelayDeviceCreation()
1128 Bind(&DeviceInfo::DelayedDeviceCreationTask, AsWeakPtr())); in DelayDeviceCreation()
1134 void DeviceInfo::DelayedDeviceCreationTask() { in DelayedDeviceCreationTask()
1186 void DeviceInfo::RetrieveLinkStatistics(int interface_index, in RetrieveLinkStatistics()
1208 void DeviceInfo::RequestLinkStatistics() { in RequestLinkStatistics()
1215 void DeviceInfo::GetWiFiInterfaceInfo(int interface_index) { in GetWiFiInterfaceInfo()
1226 Bind(&DeviceInfo::OnWiFiInterfaceInfoReceived, AsWeakPtr()), in GetWiFiInterfaceInfo()
1231 void DeviceInfo::OnWiFiInterfaceInfoReceived(const Nl80211Message& msg) { in OnWiFiInterfaceInfoReceived()
1281 bool DeviceInfo::SetHostname(const std::string& hostname) const { in SetHostname()