Lines Matching refs:WakeOnWiFi
58 static std::string ObjectID(WakeOnWiFi* w) { return "(wake_on_wifi)"; } in ObjectID()
61 const char WakeOnWiFi::kWakeOnIPAddressPatternsNotSupported[] =
63 const char WakeOnWiFi::kWakeOnWiFiNotSupported[] = "Wake on WiFi not supported";
64 const int WakeOnWiFi::kVerifyWakeOnWiFiSettingsDelayMilliseconds = 300;
65 const int WakeOnWiFi::kMaxSetWakeOnPacketRetries = 2;
66 const int WakeOnWiFi::kMetricsReportingFrequencySeconds = 600;
67 const uint32_t WakeOnWiFi::kDefaultWakeToScanPeriodSeconds = 900;
68 const uint32_t WakeOnWiFi::kDefaultNetDetectScanPeriodSeconds = 120;
69 const uint32_t WakeOnWiFi::kImmediateDHCPLeaseRenewalThresholdSeconds = 60;
72 const int WakeOnWiFi::kDarkResumeFrequencySamplingPeriodShortMinutes = 1;
73 const int WakeOnWiFi::kDarkResumeFrequencySamplingPeriodLongMinutes = 10;
74 const int WakeOnWiFi::kMaxDarkResumesPerPeriodShort = 3;
75 const int WakeOnWiFi::kMaxDarkResumesPerPeriodLong = 10;
81 int64_t WakeOnWiFi::DarkResumeActionsTimeoutMilliseconds = 18500;
84 const int WakeOnWiFi::kMaxFreqsForDarkResumeScanRetries = 8;
85 const int WakeOnWiFi::kMaxDarkResumeScanRetries = 5;
86 const char WakeOnWiFi::kWakeReasonStringPattern[] = "WiFi.Pattern";
87 const char WakeOnWiFi::kWakeReasonStringDisconnect[] = "WiFi.Disconnect";
88 const char WakeOnWiFi::kWakeReasonStringSSID[] = "WiFi.SSID";
90 WakeOnWiFi::WakeOnWiFi( in WakeOnWiFi() function in shill::WakeOnWiFi
98 Bind(&WakeOnWiFi::ReportMetrics, base::Unretained(this))), in WakeOnWiFi()
121 &WakeOnWiFi::OnWakeupReasonReceived, weak_ptr_factory_.GetWeakPtr())); in WakeOnWiFi()
124 WakeOnWiFi::~WakeOnWiFi() {} in ~WakeOnWiFi()
126 void WakeOnWiFi::InitPropertyStore(PropertyStore* store) { in InitPropertyStore()
129 StringAccessor(new CustomAccessor<WakeOnWiFi, string>( in InitPropertyStore()
130 this, &WakeOnWiFi::GetWakeOnWiFiFeaturesEnabled, in InitPropertyStore()
131 &WakeOnWiFi::SetWakeOnWiFiFeaturesEnabled))); in InitPropertyStore()
140 void WakeOnWiFi::StartMetricsTimer() { in StartMetricsTimer()
147 string WakeOnWiFi::GetWakeOnWiFiFeaturesEnabled(Error* error) { in GetWakeOnWiFiFeaturesEnabled()
151 bool WakeOnWiFi::SetWakeOnWiFiFeaturesEnabled(const std::string& enabled, in SetWakeOnWiFiFeaturesEnabled()
174 void WakeOnWiFi::RunAndResetSuspendActionsDoneCallback(const Error& error) { in RunAndResetSuspendActionsDoneCallback()
182 bool WakeOnWiFi::ByteStringPairIsLessThan( in ByteStringPairIsLessThan()
190 void WakeOnWiFi::SetMask(ByteString* mask, uint32_t pattern_len, in SetMask()
207 bool WakeOnWiFi::CreateIPAddressPatternAndMask(const IPAddress& ip_addr, in CreateIPAddressPatternAndMask()
211 WakeOnWiFi::CreateIPV4PatternAndMask(ip_addr, pattern, mask); in CreateIPAddressPatternAndMask()
214 WakeOnWiFi::CreateIPV6PatternAndMask(ip_addr, pattern, mask); in CreateIPAddressPatternAndMask()
223 void WakeOnWiFi::CreateIPV4PatternAndMask(const IPAddress& ip_addr, in CreateIPV4PatternAndMask()
241 WakeOnWiFi::SetMask(mask, pattern_len, src_ip_offset); in CreateIPV4PatternAndMask()
245 void WakeOnWiFi::CreateIPV6PatternAndMask(const IPAddress& ip_addr, in CreateIPV6PatternAndMask()
263 WakeOnWiFi::SetMask(mask, pattern_len, src_ip_offset); in CreateIPV6PatternAndMask()
267 bool WakeOnWiFi::ConfigureWiphyIndex(Nl80211Message* msg, int32_t index) { in ConfigureWiphyIndex()
279 bool WakeOnWiFi::ConfigureDisableWakeOnWiFiMessage( in ConfigureDisableWakeOnWiFiMessage()
290 bool WakeOnWiFi::ConfigureSetWakeOnWiFiSettingsMessage( in ConfigureSetWakeOnWiFiSettingsMessage()
502 bool WakeOnWiFi::CreateSinglePattern(const IPAddress& ip_addr, in CreateSinglePattern()
507 WakeOnWiFi::CreateIPAddressPatternAndMask(ip_addr, &pattern, &mask); in CreateSinglePattern()
573 bool WakeOnWiFi::ConfigureGetWakeOnWiFiSettingsMessage( in ConfigureGetWakeOnWiFiSettingsMessage()
584 bool WakeOnWiFi::WakeOnWiFiSettingsMatch( in WakeOnWiFiSettingsMatch()
796 void WakeOnWiFi::AddWakeOnPacketConnection(const string& ip_endpoint, in AddWakeOnPacketConnection()
824 void WakeOnWiFi::RemoveWakeOnPacketConnection(const string& ip_endpoint, in RemoveWakeOnPacketConnection()
851 void WakeOnWiFi::RemoveAllWakeOnPacketConnections(Error* error) { in RemoveAllWakeOnPacketConnections()
866 void WakeOnWiFi::OnWakeOnWiFiSettingsErrorResponse( in OnWakeOnWiFiSettingsErrorResponse()
908 void WakeOnWiFi::OnSetWakeOnPacketConnectionResponse( in OnSetWakeOnPacketConnectionResponse()
914 void WakeOnWiFi::RequestWakeOnPacketSettings() { in RequestWakeOnPacketSettings()
925 &get_wowlan_msg, Bind(&WakeOnWiFi::VerifyWakeOnWiFiSettings, in RequestWakeOnPacketSettings()
931 void WakeOnWiFi::VerifyWakeOnWiFiSettings( in VerifyWakeOnWiFiSettings()
953 void WakeOnWiFi::ApplyWakeOnWiFiSettings() { in ApplyWakeOnWiFiSettings()
978 Bind(&WakeOnWiFi::OnSetWakeOnPacketConnectionResponse), in ApplyWakeOnWiFiSettings()
980 Bind(&WakeOnWiFi::OnWakeOnWiFiSettingsErrorResponse, in ApplyWakeOnWiFiSettings()
988 Bind(&WakeOnWiFi::RequestWakeOnPacketSettings, in ApplyWakeOnWiFiSettings()
995 void WakeOnWiFi::DisableWakeOnWiFi() { in DisableWakeOnWiFi()
1010 Bind(&WakeOnWiFi::OnSetWakeOnPacketConnectionResponse), in DisableWakeOnWiFi()
1012 Bind(&WakeOnWiFi::OnWakeOnWiFiSettingsErrorResponse, in DisableWakeOnWiFi()
1020 Bind(&WakeOnWiFi::RequestWakeOnPacketSettings, in DisableWakeOnWiFi()
1027 void WakeOnWiFi::RetrySetWakeOnPacketConnections() { in RetrySetWakeOnPacketConnections()
1039 bool WakeOnWiFi::WakeOnWiFiPacketEnabledAndSupported() { in WakeOnWiFiPacketEnabledAndSupported()
1053 bool WakeOnWiFi::WakeOnWiFiDarkConnectEnabledAndSupported() { in WakeOnWiFiDarkConnectEnabledAndSupported()
1069 void WakeOnWiFi::ReportMetrics() { in ReportMetrics()
1091 void WakeOnWiFi::ParseWakeOnWiFiCapabilities( in ParseWakeOnWiFiCapabilities()
1107 WakeOnWiFi::kWakeTriggerDisconnect); in ParseWakeOnWiFiCapabilities()
1121 WakeOnWiFi::CreateIPV4PatternAndMask(IPAddress("192.168.0.20"), in ParseWakeOnWiFiCapabilities()
1124 WakeOnWiFi::CreateIPV6PatternAndMask( in ParseWakeOnWiFiCapabilities()
1135 WakeOnWiFi::kWakeTriggerPattern); in ParseWakeOnWiFiCapabilities()
1146 wake_on_wifi_triggers_supported_.insert(WakeOnWiFi::kWakeTriggerSSID); in ParseWakeOnWiFiCapabilities()
1154 void WakeOnWiFi::OnWakeupReasonReceived(const NetlinkMessage& netlink_message) { in OnWakeupReasonReceived()
1238 void WakeOnWiFi::OnBeforeSuspend( in OnBeforeSuspend()
1258 dispatcher_->PostTask(Bind(&WakeOnWiFi::BeforeSuspendActions, in OnBeforeSuspend()
1263 dispatcher_->PostTask(Bind(&WakeOnWiFi::BeforeSuspendActions, in OnBeforeSuspend()
1271 void WakeOnWiFi::OnAfterResume() { in OnAfterResume()
1286 void WakeOnWiFi::OnDarkResume( in OnDarkResume()
1337 Bind(&WakeOnWiFi::OnTimerWakeDoNothing, base::Unretained(this))); in OnDarkResume()
1351 &WakeOnWiFi::BeforeSuspendActions, weak_ptr_factory_.GetWeakPtr(), in OnDarkResume()
1384 Bind(&WakeOnWiFi::BeforeSuspendActions, weak_ptr_factory_.GetWeakPtr(), in OnDarkResume()
1391 void WakeOnWiFi::BeforeSuspendActions( in BeforeSuspendActions()
1424 Bind(&WakeOnWiFi::OnTimerWakeDoNothing, base::Unretained(this))); in BeforeSuspendActions()
1456 Bind(&WakeOnWiFi::OnTimerWakeDoNothing, base::Unretained(this))); in BeforeSuspendActions()
1481 WiFi::FreqSet WakeOnWiFi::ParseWakeOnSSIDResults( in ParseWakeOnSSIDResults()
1532 void WakeOnWiFi::InitiateScanInDarkResume( in InitiateScanInDarkResume()
1546 void WakeOnWiFi::OnConnectedAndReachable(bool start_lease_renewal_timer, in OnConnectedAndReachable()
1564 void WakeOnWiFi::ReportConnectedToServiceAfterWake(bool is_connected) { in ReportConnectedToServiceAfterWake()
1590 void WakeOnWiFi::OnNoAutoConnectableServicesAfterScan( in OnNoAutoConnectableServicesAfterScan()
1618 void WakeOnWiFi::OnWiphyIndexReceived(uint32_t index) { in OnWiphyIndexReceived()
1623 void WakeOnWiFi::OnScanStarted(bool is_active_scan) { in OnScanStarted()