Lines Matching defs:DeviceInfo

82 static string ObjectID(const DeviceInfo* d) { return "(device_info)"; }
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,
119 link_callback_(Bind(&DeviceInfo::LinkMsgHandler, Unretained(this))),
120 address_callback_(Bind(&DeviceInfo::AddressMsgHandler, Unretained(this))),
121 rdnss_callback_(Bind(&DeviceInfo::RdnssMsgHandler, Unretained(this))),
132 DeviceInfo::~DeviceInfo() {}
134 void DeviceInfo::AddDeviceToBlackList(const string& device_name) {
144 void DeviceInfo::RemoveDeviceFromBlackList(const string& device_name) {
154 bool DeviceInfo::IsDeviceBlackListed(const string& device_name) {
158 void DeviceInfo::Start() {
168 Bind(&DeviceInfo::RequestLinkStatistics, AsWeakPtr()));
173 void DeviceInfo::Stop() {
182 vector<string> DeviceInfo::GetUninitializedTechnologies() const {
202 void DeviceInfo::RegisterDevice(const DeviceRefPtr& device) {
220 void DeviceInfo::DeregisterDevice(const DeviceRefPtr& device) {
241 FilePath DeviceInfo::GetDeviceInfoPath(const string& iface_name,
246 bool DeviceInfo::GetDeviceInfoContents(const string& iface_name,
253 bool DeviceInfo::GetDeviceInfoSymbolicLink(const string& iface_name,
260 Technology::Identifier DeviceInfo::GetDeviceTechnology(
390 bool DeviceInfo::IsCdcEthernetModemDevice(const std::string& iface_name) {
438 bool DeviceInfo::HasSubdir(const FilePath& base_dir, const FilePath& subdir) {
450 DeviceRefPtr DeviceInfo::CreateDevice(const string& link_name,
581 bool DeviceInfo::GetLinkNameFromMessage(const RTNLMessage& msg,
593 bool DeviceInfo::IsRenamedBlacklistedDevice(const RTNLMessage& msg) {
615 void DeviceInfo::AddLinkMsgHandler(const RTNLMessage& msg) {
687 void DeviceInfo::DelLinkMsgHandler(const RTNLMessage& msg) {
699 DeviceRefPtr DeviceInfo::GetDevice(int interface_index) const {
704 int DeviceInfo::GetIndex(const string& interface_name) const {
709 bool DeviceInfo::GetMACAddress(int interface_index, ByteString* address) const {
726 ByteString DeviceInfo::GetMACAddressFromKernel(int interface_index) const {
752 bool DeviceInfo::GetMACAddressOfPeer(int interface_index,
807 bool DeviceInfo::GetAddresses(int interface_index,
817 void DeviceInfo::FlushAddresses(int interface_index) const {
836 bool DeviceInfo::HasOtherAddress(
861 bool DeviceInfo::GetPrimaryIPv6Address(int interface_index,
900 bool DeviceInfo::GetIPv6DnsServerAddresses(int interface_index,
928 bool DeviceInfo::HasDirectConnectivityTo(
946 bool DeviceInfo::GetFlags(int interface_index, unsigned int* flags) const {
955 bool DeviceInfo::GetByteCounts(int interface_index,
967 bool DeviceInfo::CreateTunnelInterface(string* interface_name) const {
993 int DeviceInfo::OpenTunnelInterface(const std::string& interface_name) const {
1012 bool DeviceInfo::DeleteInterface(int interface_index) const {
1016 const DeviceInfo::Info* DeviceInfo::GetInfo(int interface_index) const {
1024 void DeviceInfo::RemoveInfo(int interface_index) {
1029 // are deregistered through a call to DeviceInfo::DeregisterDevice.
1043 void DeviceInfo::LinkMsgHandler(const RTNLMessage& msg) {
1054 void DeviceInfo::AddressMsgHandler(const RTNLMessage& msg) {
1100 void DeviceInfo::RdnssMsgHandler(const RTNLMessage& msg) {
1125 void DeviceInfo::DelayDeviceCreation(int interface_index) {
1128 Bind(&DeviceInfo::DelayedDeviceCreationTask, AsWeakPtr()));
1134 void DeviceInfo::DelayedDeviceCreationTask() {
1186 void DeviceInfo::RetrieveLinkStatistics(int interface_index,
1208 void DeviceInfo::RequestLinkStatistics() {
1215 void DeviceInfo::GetWiFiInterfaceInfo(int interface_index) {
1226 Bind(&DeviceInfo::OnWiFiInterfaceInfoReceived, AsWeakPtr()),
1231 void DeviceInfo::OnWiFiInterfaceInfoReceived(const Nl80211Message& msg) {
1281 bool DeviceInfo::SetHostname(const std::string& hostname) const {