• Home
  • Raw
  • Download

Lines Matching refs:Device

87 static string ObjectID(Device* d) { return d->GetRpcIdentifier(); }  in ObjectID()
91 const char Device::kIPFlagTemplate[] = "/proc/sys/net/%s/conf/%s/%s";
93 const char Device::kIPFlagVersion4[] = "ipv4";
95 const char Device::kIPFlagVersion6[] = "ipv6";
97 const char Device::kIPFlagDisableIPv6[] = "disable_ipv6";
99 const char Device::kIPFlagUseTempAddr[] = "use_tempaddr";
101 const char Device::kIPFlagUseTempAddrUsedAndDefault[] = "2";
103 const char Device::kIPFlagReversePathFilter[] = "rp_filter";
105 const char Device::kIPFlagReversePathFilterEnabled[] = "1";
107 const char Device::kIPFlagReversePathFilterLooseMode[] = "2";
109 const char Device::kIPFlagArpAnnounce[] = "arp_announce";
111 const char Device::kIPFlagArpAnnounceDefault[] = "0";
113 const char Device::kIPFlagArpAnnounceBestLocal[] = "2";
115 const char Device::kIPFlagArpIgnore[] = "arp_ignore";
117 const char Device::kIPFlagArpIgnoreDefault[] = "0";
119 const char Device::kIPFlagArpIgnoreLocalOnly[] = "1";
121 const char Device::kStoragePowered[] = "Powered";
123 const char Device::kStorageReceiveByteCount[] = "ReceiveByteCount";
125 const char Device::kStorageTransmitByteCount[] = "TransmitByteCount";
127 const char Device::kFallbackDnsTestHostname[] = "www.gstatic.com";
129 const char* Device::kFallbackDnsServers[] = {
135 const int Device::kDNSTimeoutMilliseconds = 5000;
136 const int Device::kLinkUnreliableThresholdSeconds = 60 * 60;
137 const size_t Device::kHardwareAddressLength = 6U;
139 Device::Device(ControlInterface* control_interface, in Device() function in shill::Device
162 portal_detector_callback_(Bind(&Device::PortalDetectorCallback, in Device()
172 connection_tester_callback_(Bind(&Device::ConnectionTesterCallback, in Device()
177 Bind(&Device::ConnectionDiagnosticsCallback, in Device()
206 kSelectedServiceProperty, &Device::GetSelectedServiceRpcIdentifier); in Device()
208 &Device::AvailableIPConfigs); in Device()
212 &Device::GetTechnologyString); in Device()
214 &Device::GetLinkMonitorResponseTime); in Device()
231 &Device::GetReceiveByteCountProperty); in Device()
233 &Device::GetTransmitByteCountProperty); in Device()
240 Device::~Device() { in ~Device()
245 void Device::Initialize() { in Initialize()
251 void Device::LinkEvent(unsigned flags, unsigned change) { in LinkEvent()
258 void Device::Scan(ScanType scan_type, Error* error, const string& reason) { in Scan()
265 void Device::SetSchedScan(bool enable, Error* error) { in SetSchedScan()
271 void Device::RegisterOnNetwork(const std::string& /*network_id*/, Error* error, in RegisterOnNetwork()
277 void Device::RequirePIN( in RequirePIN()
285 void Device::EnterPIN(const string& /*pin*/, in EnterPIN()
292 void Device::UnblockPIN(const string& /*unblock_code*/, in UnblockPIN()
300 void Device::ChangePIN(const string& /*old_pin*/, in ChangePIN()
308 void Device::Reset(Error* error, const ResultCallback& /*callback*/) { in Reset()
314 void Device::SetCarrier(const string& /*carrier*/, in SetCarrier()
321 bool Device::IsIPv6Allowed() const { in IsIPv6Allowed()
325 void Device::DisableIPv6() { in DisableIPv6()
330 void Device::EnableIPv6() { in EnableIPv6()
340 void Device::EnableIPv6Privacy() { in EnableIPv6Privacy()
345 void Device::SetLooseRouting(bool is_loose_routing) { in SetLooseRouting()
361 void Device::DisableReversePathFilter() { in DisableReversePathFilter()
368 void Device::EnableReversePathFilter() { in EnableReversePathFilter()
373 void Device::SetIsMultiHomed(bool is_multi_homed) { in SetIsMultiHomed()
393 void Device::DisableArpFiltering() { in DisableArpFiltering()
399 void Device::EnableArpFiltering() { in EnableArpFiltering()
406 bool Device::IsConnected() const { in IsConnected()
412 bool Device::IsConnectedToService(const ServiceRefPtr& service) const { in IsConnectedToService()
416 bool Device::IsConnectedViaTether() const { in IsConnectedViaTether()
432 string Device::GetRpcIdentifier() const { in GetRpcIdentifier()
436 string Device::GetStorageIdentifier() const { in GetStorageIdentifier()
445 vector<GeolocationInfo> Device::GetGeolocationObjects() const { in GetGeolocationObjects()
449 string Device::GetTechnologyString(Error* /*error*/) { in GetTechnologyString()
453 const string& Device::FriendlyName() const { in FriendlyName()
457 const string& Device::UniqueName() const { in UniqueName()
461 bool Device::Load(StoreInterface* storage) { in Load()
489 bool Device::Save(StoreInterface* storage) { in Save()
497 void Device::OnBeforeSuspend(const ResultCallback& callback) { in OnBeforeSuspend()
502 void Device::OnAfterResume() { in OnAfterResume()
517 void Device::OnDarkResume(const ResultCallback& callback) { in OnDarkResume()
522 void Device::DropConnection() { in DropConnection()
528 void Device::DestroyIPConfig() { in DestroyIPConfig()
553 void Device::OnIPv6AddressChanged() { in OnIPv6AddressChanged()
592 void Device::OnIPv6DnsServerAddressesChanged() { in OnIPv6DnsServerAddressesChanged()
642 void Device::StartIPv6DNSServerTimer(uint32_t lifetime_seconds) { in StartIPv6DNSServerTimer()
645 base::Bind(&Device::IPv6DNSServerExpired, base::Unretained(this))); in StartIPv6DNSServerTimer()
650 void Device::StopIPv6DNSServerTimer() { in StopIPv6DNSServerTimer()
654 void Device::IPv6DNSServerExpired() { in IPv6DNSServerExpired()
662 void Device::StopAllActivities() { in StopAllActivities()
672 void Device::AddWakeOnPacketConnection(const string& ip_endpoint, in AddWakeOnPacketConnection()
680 void Device::RemoveWakeOnPacketConnection(const string& ip_endpoint, in RemoveWakeOnPacketConnection()
688 void Device::RemoveAllWakeOnPacketConnections(Error* error) { in RemoveAllWakeOnPacketConnections()
696 void Device::RenewDHCPLease() { in RenewDHCPLease()
717 bool Device::ShouldUseArpGateway() const { in ShouldUseArpGateway()
721 bool Device::IsUsingStaticIP() const { in IsUsingStaticIP()
728 bool Device::IsUsingStaticNameServers() const { in IsUsingStaticNameServers()
735 bool Device::AcquireIPConfig() { in AcquireIPConfig()
739 bool Device::AcquireIPConfigWithLeaseName(const string& lease_name) { in AcquireIPConfigWithLeaseName()
767 ipconfig_->RegisterUpdateCallback(Bind(&Device::OnIPConfigUpdated, in AcquireIPConfigWithLeaseName()
769 ipconfig_->RegisterFailureCallback(Bind(&Device::OnIPConfigFailed, in AcquireIPConfigWithLeaseName()
771 ipconfig_->RegisterRefreshCallback(Bind(&Device::OnIPConfigRefreshed, in AcquireIPConfigWithLeaseName()
773 ipconfig_->RegisterExpireCallback(Bind(&Device::OnIPConfigExpired, in AcquireIPConfigWithLeaseName()
775 dispatcher_->PostTask(Bind(&Device::ConfigureStaticIPTask, in AcquireIPConfigWithLeaseName()
792 bool Device::AcquireIPv6ConfigWithLeaseName(const string& lease_name) { in AcquireIPv6ConfigWithLeaseName()
797 Bind(&Device::OnDHCPv6ConfigUpdated, weak_ptr_factory_.GetWeakPtr())); in AcquireIPv6ConfigWithLeaseName()
799 Bind(&Device::OnDHCPv6ConfigFailed, weak_ptr_factory_.GetWeakPtr())); in AcquireIPv6ConfigWithLeaseName()
801 Bind(&Device::OnDHCPv6ConfigExpired, weak_ptr_factory_.GetWeakPtr())); in AcquireIPv6ConfigWithLeaseName()
809 void Device::AssignIPConfig(const IPConfig::Properties& properties) { in AssignIPConfig()
814 dispatcher_->PostTask(Bind(&Device::OnIPConfigUpdated, in AssignIPConfig()
818 void Device::DestroyIPConfigLease(const string& name) { in DestroyIPConfigLease()
822 void Device::HelpRegisterConstDerivedString( in HelpRegisterConstDerivedString()
824 string(Device::*get)(Error* error)) { in HelpRegisterConstDerivedString()
827 StringAccessor(new CustomAccessor<Device, string>(this, get, nullptr))); in HelpRegisterConstDerivedString()
830 void Device::HelpRegisterConstDerivedRpcIdentifier( in HelpRegisterConstDerivedRpcIdentifier()
832 RpcIdentifier(Device::*get)(Error* error)) { in HelpRegisterConstDerivedRpcIdentifier()
836 new CustomAccessor<Device, RpcIdentifier>(this, get, nullptr))); in HelpRegisterConstDerivedRpcIdentifier()
839 void Device::HelpRegisterConstDerivedRpcIdentifiers( in HelpRegisterConstDerivedRpcIdentifiers()
841 RpcIdentifiers(Device::*get)(Error*)) { in HelpRegisterConstDerivedRpcIdentifiers()
845 new CustomAccessor<Device, RpcIdentifiers>(this, get, nullptr))); in HelpRegisterConstDerivedRpcIdentifiers()
848 void Device::HelpRegisterConstDerivedUint64( in HelpRegisterConstDerivedUint64()
850 uint64_t(Device::*get)(Error*)) { in HelpRegisterConstDerivedUint64()
854 new CustomAccessor<Device, uint64_t>(this, get, nullptr))); in HelpRegisterConstDerivedUint64()
857 void Device::ConnectionTesterCallback() { in ConnectionTesterCallback()
862 void Device::ConfigureStaticIPTask() { in ConfigureStaticIPTask()
885 bool Device::IPConfigCompleted(const IPConfigRefPtr& ipconfig) { in IPConfigCompleted()
890 void Device::OnIPv6ConfigUpdated() { in OnIPv6ConfigUpdated()
901 void Device::SetupConnection(const IPConfigRefPtr& ipconfig) { in SetupConnection()
938 bool Device::SetHostname(const std::string& hostname) { in SetHostname()
955 void Device::PrependDNSServersIntoIPConfig(const IPConfigRefPtr& ipconfig) { in PrependDNSServersIntoIPConfig()
970 void Device::PrependDNSServers(const IPAddress::Family family, in PrependDNSServers()
985 void Device::ConnectionDiagnosticsCallback( in ConnectionDiagnosticsCallback()
993 void Device::OnIPConfigUpdated(const IPConfigRefPtr& ipconfig, in OnIPConfigUpdated()
1017 void Device::OnIPConfigFailed(const IPConfigRefPtr& ipconfig) { in OnIPConfigFailed()
1068 void Device::OnIPConfigRefreshed(const IPConfigRefPtr& ipconfig) { in OnIPConfigRefreshed()
1073 dispatcher_->PostTask(Bind(&Device::ConfigureStaticIPTask, in OnIPConfigRefreshed()
1077 void Device::OnIPConfigFailure() { in OnIPConfigFailure()
1086 void Device::OnIPConfigExpired(const IPConfigRefPtr& ipconfig) { in OnIPConfigExpired()
1096 void Device::OnDHCPv6ConfigUpdated(const IPConfigRefPtr& ipconfig, in OnDHCPv6ConfigUpdated()
1102 void Device::OnDHCPv6ConfigFailed(const IPConfigRefPtr& ipconfig) { in OnDHCPv6ConfigFailed()
1108 void Device::OnDHCPv6ConfigExpired(const IPConfigRefPtr& ipconfig) { in OnDHCPv6ConfigExpired()
1114 void Device::OnConnected() { in OnConnected()
1119 base::Bind(&Device::OnReliableLink, base::Unretained(this))); in OnConnected()
1126 void Device::OnConnectionUpdated() { in OnConnectionUpdated()
1132 void Device::CreateConnection() { in CreateConnection()
1143 void Device::DestroyConnection() { in DestroyConnection()
1154 void Device::SelectService(const ServiceRefPtr& service) { in SelectService()
1187 void Device::SetServiceState(Service::ConnectState state) { in SetServiceState()
1193 void Device::SetServiceFailure(Service::ConnectFailure failure_state) { in SetServiceFailure()
1199 void Device::SetServiceFailureSilent(Service::ConnectFailure failure_state) { in SetServiceFailureSilent()
1205 bool Device::SetIPFlag(IPAddress::Family family, const string& flag, in SetIPFlag()
1235 string Device::PerformTDLSOperation(const string& /* operation */, in PerformTDLSOperation()
1241 void Device::ResetByteCounters() { in ResetByteCounters()
1247 bool Device::RestartPortalDetection() { in RestartPortalDetection()
1252 bool Device::RequestPortalDetection() { in RequestPortalDetection()
1288 bool Device::StartPortalDetection() { in StartPortalDetection()
1335 void Device::StopPortalDetection() { in StopPortalDetection()
1341 bool Device::StartConnectionDiagnosticsAfterPortalDetection( in StartConnectionDiagnosticsAfterPortalDetection()
1360 void Device::StopConnectionDiagnostics() { in StopConnectionDiagnostics()
1366 bool Device::StartConnectivityTest() { in StartConnectivityTest()
1376 void Device::StopConnectivityTest() { in StopConnectivityTest()
1382 void Device::set_link_monitor(LinkMonitor* link_monitor) { in set_link_monitor()
1386 bool Device::StartLinkMonitor() { in StartLinkMonitor()
1403 Bind(&Device::OnLinkMonitorFailure, weak_ptr_factory_.GetWeakPtr()), in StartLinkMonitor()
1404 Bind(&Device::OnLinkMonitorGatewayChange, in StartLinkMonitor()
1413 void Device::StopLinkMonitor() { in StopLinkMonitor()
1419 void Device::OnUnreliableLink() { in OnUnreliableLink()
1428 void Device::OnReliableLink() { in OnReliableLink()
1435 void Device::OnLinkMonitorFailure() { in OnLinkMonitorFailure()
1452 void Device::OnLinkMonitorGatewayChange() { in OnLinkMonitorGatewayChange()
1463 bool Device::StartDNSTest( in StartDNSTest()
1482 void Device::StopDNSTest() { in StopDNSTest()
1486 void Device::FallbackDNSResultCallback(const DNSServerTester::Status status) { in FallbackDNSResultCallback()
1505 Bind(&Device::ConfigDNSResultCallback, in FallbackDNSResultCallback()
1512 void Device::ConfigDNSResultCallback(const DNSServerTester::Status status) { in ConfigDNSResultCallback()
1525 void Device::SwitchDNSServers(const vector<string>& dns_servers) { in SwitchDNSServers()
1539 void Device::set_traffic_monitor(TrafficMonitor* traffic_monitor) { in set_traffic_monitor()
1543 bool Device::TimeToNextDHCPLeaseRenewal(uint32_t* result) { in TimeToNextDHCPLeaseRenewal()
1559 bool Device::IsTrafficMonitorEnabled() const { in IsTrafficMonitorEnabled()
1563 void Device::StartTrafficMonitor() { in StartTrafficMonitor()
1574 Bind(&Device::OnEncounterNetworkProblem, in StartTrafficMonitor()
1580 void Device::StopTrafficMonitor() { in StopTrafficMonitor()
1594 void Device::OnEncounterNetworkProblem(int reason) { in OnEncounterNetworkProblem()
1614 void Device::SetServiceConnectedState(Service::ConnectState state) { in SetServiceConnectedState()
1655 void Device::PortalDetectorCallback(const PortalDetector::Result& result) { in PortalDetectorCallback()
1720 Bind(&Device::FallbackDNSResultCallback, in PortalDetectorCallback()
1726 string Device::GetSelectedServiceRpcIdentifier(Error* /*error*/) { in GetSelectedServiceRpcIdentifier()
1733 vector<string> Device::AvailableIPConfigs(Error* /*error*/) { in AvailableIPConfigs()
1747 uint64_t Device::GetLinkMonitorResponseTime(Error* error) { in GetLinkMonitorResponseTime()
1758 uint64_t Device::GetReceiveByteCount() { in GetReceiveByteCount()
1765 uint64_t Device::GetTransmitByteCount() { in GetTransmitByteCount()
1772 uint64_t Device::GetReceiveByteCountProperty(Error* /*error*/) { in GetReceiveByteCountProperty()
1776 uint64_t Device::GetTransmitByteCountProperty(Error* /*error*/) { in GetTransmitByteCountProperty()
1780 bool Device::IsUnderlyingDeviceEnabled() const { in IsUnderlyingDeviceEnabled()
1785 void Device::OnEnabledStateChanged(const ResultCallback& callback, in OnEnabledStateChanged()
1801 void Device::SetEnabled(bool enable) { in SetEnabled()
1818 void Device::SetEnabledNonPersistent(bool enable, in SetEnabledNonPersistent()
1824 void Device::SetEnabledPersistent(bool enable, in SetEnabledPersistent()
1830 void Device::SetEnabledChecked(bool enable, in SetEnabledChecked()
1873 void Device::SetEnabledUnchecked(bool enable, Error* error, in SetEnabledUnchecked()
1877 Bind(&Device::OnEnabledStateChanged, in SetEnabledUnchecked()
1899 void Device::UpdateIPConfigsProperty() { in UpdateIPConfigsProperty()
1904 bool Device::ResolvePeerMacAddress(const string& input, in ResolvePeerMacAddress()
1955 vector<uint8_t> Device::MakeHardwareAddressFromString( in MakeHardwareAddressFromString()
1968 string Device::MakeStringFromHardwareAddress( in MakeStringFromHardwareAddress()
1976 bool Device::RequestRoam(const std::string& addr, Error* error) { in RequestRoam()