Lines Matching refs:WakeOnWiFi

625         WakeOnWiFi::kWakeTriggerPattern);  in SetUp()
627 WakeOnWiFi::kWakeTriggerDisconnect); in SetUp()
629 WakeOnWiFi::kWakeTriggerSSID); in SetUp()
682 return WakeOnWiFi::CreateIPAddressPatternAndMask(ip_addr, pattern, mask); in CreateIPAddressPatternAndMask()
686 return WakeOnWiFi::ConfigureWiphyIndex(msg, index); in ConfigureWiphyIndex()
691 return WakeOnWiFi::ConfigureDisableWakeOnWiFiMessage(msg, wiphy_index, in ConfigureDisableWakeOnWiFiMessage()
696 const set<WakeOnWiFi::WakeOnWiFiTrigger>& trigs, in WakeOnWiFiSettingsMatch()
700 return WakeOnWiFi::WakeOnWiFiSettingsMatch( in WakeOnWiFiSettingsMatch()
706 const set<WakeOnWiFi::WakeOnWiFiTrigger>& trigs, in ConfigureSetWakeOnWiFiSettingsMessage()
710 return WakeOnWiFi::ConfigureSetWakeOnWiFiSettingsMessage( in ConfigureSetWakeOnWiFiSettingsMessage()
739 set<WakeOnWiFi::WakeOnWiFiTrigger>* GetWakeOnWiFiTriggers() { in GetWakeOnWiFiTriggers()
743 set<WakeOnWiFi::WakeOnWiFiTrigger>* GetWakeOnWiFiTriggersSupported() { in GetWakeOnWiFiTriggersSupported()
806 WakeOnWiFi::InitiateScanCallback initiate_scan_callback( in OnDarkResume()
933 GetWakeOnWiFiTriggers()->find(WakeOnWiFi::kWakeTriggerPattern) != in VerifyStateConnectedBeforeSuspend()
936 GetWakeOnWiFiTriggers()->find(WakeOnWiFi::kWakeTriggerDisconnect) != in VerifyStateConnectedBeforeSuspend()
945 GetWakeOnWiFiTriggers()->find(WakeOnWiFi::kWakeTriggerPattern) != in VerifyStateDisconnectedBeforeSuspend()
947 EXPECT_TRUE(GetWakeOnWiFiTriggers()->find(WakeOnWiFi::kWakeTriggerSSID) != in VerifyStateDisconnectedBeforeSuspend()
959 WakeOnWiFi::InitiateScanCallback initiate_scan_callback( in OnNoAutoConnectableServicesAfterScan()
999 void SetLastWakeReason(WakeOnWiFi::WakeOnWiFiTrigger reason) { in SetLastWakeReason()
1003 WakeOnWiFi::WakeOnWiFiTrigger GetLastWakeReason() { in GetLastWakeReason()
1052 std::unique_ptr<WakeOnWiFi> wake_on_wifi_;
1059 new WakeOnWiFi(&netlink_manager_, &dispatcher_, &metrics_, in WakeOnWiFiTestWithDispatcher()
1073 new WakeOnWiFi(&netlink_manager_, &mock_dispatcher_, &metrics_, in WakeOnWiFiTestWithMockDispatcher()
1226 set<WakeOnWiFi::WakeOnWiFiTrigger> trigs; in TEST_F()
1236 trigs.insert(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
1248 trigs.insert(WakeOnWiFi::kWakeTriggerDisconnect); in TEST_F()
1260 trigs.erase(WakeOnWiFi::kWakeTriggerDisconnect); in TEST_F()
1312 trigs.insert(WakeOnWiFi::kWakeTriggerSSID); in TEST_F()
1353 set<WakeOnWiFi::WakeOnWiFiTrigger> trigs; in TEST_F()
1359 trigs.insert(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
1442 trigs.insert(WakeOnWiFi::kWakeTriggerSSID); in TEST_F()
1488 GetWakeOnWiFiTriggers()->insert(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
1513 GetWakeOnWiFiTriggers()->insert(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
1514 GetWakeOnWiFiTriggers()->insert(WakeOnWiFi::kWakeTriggerDisconnect); in TEST_F()
1530 GetWakeOnWiFiTriggers()->erase(WakeOnWiFi::kWakeTriggerDisconnect); in TEST_F()
1555 GetWakeOnWiFiTriggers()->insert(WakeOnWiFi::kWakeTriggerSSID); in TEST_F()
1605 GetWakeOnWiFiTriggers()->insert(WakeOnWiFi::kWakeTriggerDisconnect); in TEST_F()
1606 SetNumSetWakeOnPacketRetries(WakeOnWiFi::kMaxSetWakeOnPacketRetries - 1); in TEST_F()
1614 WakeOnWiFi::kMaxSetWakeOnPacketRetries); in TEST_F()
1622 SetNumSetWakeOnPacketRetries(WakeOnWiFi::kMaxSetWakeOnPacketRetries); in TEST_F()
1644 SetNumSetWakeOnPacketRetries(WakeOnWiFi::kMaxSetWakeOnPacketRetries); in TEST_F()
1664 WakeOnWiFi::kWakeTriggerDisconnect) != in TEST_F()
1667 GetWakeOnWiFiTriggersSupported()->find(WakeOnWiFi::kWakeTriggerPattern) != in TEST_F()
1670 GetWakeOnWiFiTriggersSupported()->find(WakeOnWiFi::kWakeTriggerSSID) != in TEST_F()
1692 WakeOnWiFi::kWakeTriggerDisconnect) != in TEST_F()
1695 GetWakeOnWiFiTriggersSupported()->find(WakeOnWiFi::kWakeTriggerSSID) != in TEST_F()
1700 GetWakeOnWiFiTriggersSupported()->find(WakeOnWiFi::kWakeTriggerPattern) != in TEST_F()
1720 GetWakeOnWiFiTriggersSupported()->find(WakeOnWiFi::kWakeTriggerPattern) != in TEST_F()
1723 GetWakeOnWiFiTriggersSupported()->find(WakeOnWiFi::kWakeTriggerSSID) != in TEST_F()
1728 WakeOnWiFi::kWakeTriggerDisconnect) != in TEST_F()
1748 GetWakeOnWiFiTriggersSupported()->find(WakeOnWiFi::kWakeTriggerPattern) != in TEST_F()
1751 WakeOnWiFi::kWakeTriggerDisconnect) != in TEST_F()
1756 GetWakeOnWiFiTriggersSupported()->find(WakeOnWiFi::kWakeTriggerSSID) != in TEST_F()
1789 GetWakeOnWiFiTriggers()->insert(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
1812 SetLastWakeReason(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
1820 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
1824 SetLastWakeReason(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
1839 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
1855 SetLastWakeReason(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
1862 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
1869 SetLastWakeReason(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
1876 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
1881 GetWakeOnWiFiTriggersSupported()->insert(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
1883 SetLastWakeReason(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
1889 EXPECT_TRUE(GetWakeOnWiFiTriggers()->find(WakeOnWiFi::kWakeTriggerPattern) != in TEST_F()
1891 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
1898 GetWakeOnWiFiTriggersSupported()->insert(WakeOnWiFi::kWakeTriggerDisconnect); in TEST_F()
1899 GetWakeOnWiFiTriggersSupported()->insert(WakeOnWiFi::kWakeTriggerSSID); in TEST_F()
1901 SetLastWakeReason(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
1908 GetWakeOnWiFiTriggers()->find(WakeOnWiFi::kWakeTriggerDisconnect) != in TEST_F()
1910 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
1929 SetLastWakeReason(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
1939 GetWakeOnWiFiTriggers()->find(WakeOnWiFi::kWakeTriggerDisconnect) != in TEST_F()
1941 EXPECT_TRUE(GetWakeOnWiFiTriggers()->find(WakeOnWiFi::kWakeTriggerPattern) != in TEST_F()
1945 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
1967 SetLastWakeReason(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
1978 EXPECT_TRUE(GetWakeOnWiFiTriggers()->find(WakeOnWiFi::kWakeTriggerSSID) != in TEST_F()
1982 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
1993 SetLastWakeReason(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
2004 EXPECT_TRUE(GetWakeOnWiFiTriggers()->find(WakeOnWiFi::kWakeTriggerSSID) != in TEST_F()
2008 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
2018 SetLastWakeReason(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
2031 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
2036 GetWakeOnWiFiTriggers()->insert(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
2069 SetLastWakeReason(WakeOnWiFi::kWakeTriggerSSID); in TEST_F()
2073 SetLastWakeReason(WakeOnWiFi::kWakeTriggerDisconnect); in TEST_F()
2082 SetLastWakeReason(WakeOnWiFi::kWakeTriggerUnsupported); in TEST_F()
2086 SetLastWakeReason(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
2112 EXPECT_LE(freqs.size(), WakeOnWiFi::kMaxFreqsForDarkResumeScanRetries); in TEST_F()
2116 EXPECT_EQ(WakeOnWiFi::kMaxDarkResumeScanRetries, in TEST_F()
2162 GetWakeOnWiFiTriggersSupported()->insert(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
2175 GetWakeOnWiFiTriggersSupported()->insert(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
2244 const int kNumEvents = WakeOnWiFi::kMaxDarkResumesPerPeriodShort - 1; in TEST_F()
2336 SetLastWakeReason(WakeOnWiFi::kWakeTriggerUnsupported); in TEST_F()
2344 WakeOnWiFi::kWakeTriggerUnsupported)); in TEST_F()
2362 SetLastWakeReason(WakeOnWiFi::kWakeTriggerUnsupported); in TEST_F()
2370 WakeOnWiFi::kWakeTriggerUnsupported)); in TEST_F()
2389 SetLastWakeReason(WakeOnWiFi::kWakeTriggerUnsupported); in TEST_F()
2397 WakeOnWiFi::kWakeTriggerUnsupported)); in TEST_F()
2417 SetLastWakeReason(WakeOnWiFi::kWakeTriggerUnsupported); in TEST_F()
2427 WakeOnWiFi::kWakeTriggerUnsupported)); in TEST_F()
2446 SetLastWakeReason(WakeOnWiFi::kWakeTriggerUnsupported); in TEST_F()
2456 WakeOnWiFi::kWakeTriggerUnsupported)); in TEST_F()
2475 SetLastWakeReason(WakeOnWiFi::kWakeTriggerUnsupported); in TEST_F()
2485 WakeOnWiFi::kWakeTriggerUnsupported)); in TEST_F()
2504 SetLastWakeReason(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
2511 NotifyWakeOnWiFiOnDarkResume(WakeOnWiFi::kWakeTriggerPattern)); in TEST_F()
2518 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
2529 SetLastWakeReason(WakeOnWiFi::kWakeTriggerDisconnect); in TEST_F()
2539 NotifyWakeOnWiFiOnDarkResume(WakeOnWiFi::kWakeTriggerDisconnect)); in TEST_F()
2546 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
2557 SetLastWakeReason(WakeOnWiFi::kWakeTriggerDisconnect); in TEST_F()
2567 NotifyWakeOnWiFiOnDarkResume(WakeOnWiFi::kWakeTriggerDisconnect)); in TEST_F()
2574 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
2587 SetLastWakeReason(WakeOnWiFi::kWakeTriggerDisconnect); in TEST_F()
2597 NotifyWakeOnWiFiOnDarkResume(WakeOnWiFi::kWakeTriggerDisconnect)); in TEST_F()
2605 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
2617 SetLastWakeReason(WakeOnWiFi::kWakeTriggerSSID); in TEST_F()
2627 NotifyWakeOnWiFiOnDarkResume(WakeOnWiFi::kWakeTriggerSSID)); in TEST_F()
2634 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
2644 SetLastWakeReason(WakeOnWiFi::kWakeTriggerSSID); in TEST_F()
2654 NotifyWakeOnWiFiOnDarkResume(WakeOnWiFi::kWakeTriggerSSID)); in TEST_F()
2661 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
2674 SetLastWakeReason(WakeOnWiFi::kWakeTriggerSSID); in TEST_F()
2684 NotifyWakeOnWiFiOnDarkResume(WakeOnWiFi::kWakeTriggerSSID)); in TEST_F()
2692 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
2720 WakeOnWiFi::kMaxDarkResumesPerPeriodShort), in TEST_F()
2726 EXPECT_EQ(3, WakeOnWiFi::kMaxDarkResumesPerPeriodShort); in TEST_F()
2727 EXPECT_EQ(1, WakeOnWiFi::kDarkResumeFrequencySamplingPeriodShortMinutes); in TEST_F()
2731 SetLastWakeReason(WakeOnWiFi::kWakeTriggerSSID); in TEST_F()
2736 for (int i = 0; i < WakeOnWiFi::kMaxDarkResumesPerPeriodShort - 1; ++i) { in TEST_F()
2743 EXPECT_EQ(WakeOnWiFi::kMaxDarkResumesPerPeriodShort - 1, in TEST_F()
2758 kTimeSeconds[WakeOnWiFi::kMaxDarkResumesPerPeriodShort - 1]))); in TEST_F()
2774 static_cast<const unsigned int>(WakeOnWiFi::kMaxDarkResumesPerPeriodLong), in TEST_F()
2781 EXPECT_EQ(3, WakeOnWiFi::kMaxDarkResumesPerPeriodShort); in TEST_F()
2782 EXPECT_EQ(1, WakeOnWiFi::kDarkResumeFrequencySamplingPeriodShortMinutes); in TEST_F()
2783 EXPECT_EQ(10, WakeOnWiFi::kMaxDarkResumesPerPeriodLong); in TEST_F()
2784 EXPECT_EQ(10, WakeOnWiFi::kDarkResumeFrequencySamplingPeriodLongMinutes); in TEST_F()
2788 SetLastWakeReason(WakeOnWiFi::kWakeTriggerSSID); in TEST_F()
2793 for (int i = 0; i < WakeOnWiFi::kMaxDarkResumesPerPeriodLong - 1; ++i) { in TEST_F()
2800 EXPECT_EQ(WakeOnWiFi::kMaxDarkResumesPerPeriodLong - 1, in TEST_F()
2815 kTimeSeconds[WakeOnWiFi::kMaxDarkResumesPerPeriodLong - 1]))); in TEST_F()
2849 GetWakeOnWiFiTriggers()->insert(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
2863 GetWakeOnWiFiTriggersSupported()->insert(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
2996 EXPECT_TRUE(GetWakeOnWiFiTriggers()->find(WakeOnWiFi::kWakeTriggerSSID) != in TEST_F()
3041 EXPECT_TRUE(GetWakeOnWiFiTriggers()->find(WakeOnWiFi::kWakeTriggerSSID) != in TEST_F()
3061 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
3081 WakeOnWiFi::kWakeReasonStringDisconnect)); in TEST_F()
3083 EXPECT_EQ(WakeOnWiFi::kWakeTriggerDisconnect, GetLastWakeReason()); in TEST_F()
3102 WakeOnWiFi::kWakeReasonStringSSID)); in TEST_F()
3104 EXPECT_EQ(WakeOnWiFi::kWakeTriggerSSID, GetLastWakeReason()); in TEST_F()
3130 WakeOnWiFi::kWakeReasonStringPattern)); in TEST_F()
3132 EXPECT_EQ(WakeOnWiFi::kWakeTriggerPattern, GetLastWakeReason()); in TEST_F()
3154 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
3167 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
3181 EXPECT_EQ(WakeOnWiFi::kWakeTriggerUnsupported, GetLastWakeReason()); in TEST_F()
3195 EXPECT_STREQ(e.message().c_str(), WakeOnWiFi::kWakeOnWiFiNotSupported); in TEST_F()
3204 EXPECT_STREQ(e.message().c_str(), WakeOnWiFi::kWakeOnWiFiNotSupported); in TEST_F()
3213 EXPECT_STREQ(e.message().c_str(), WakeOnWiFi::kWakeOnWiFiNotSupported); in TEST_F()
3268 EXPECT_STREQ(e.message().c_str(), WakeOnWiFi::kWakeOnWiFiNotSupported); in TEST_F()
3275 EXPECT_STREQ(e.message().c_str(), WakeOnWiFi::kWakeOnWiFiNotSupported); in TEST_F()
3374 set<WakeOnWiFi::WakeOnWiFiTrigger> no_trigs; in TEST_F()
3375 set<WakeOnWiFi::WakeOnWiFiTrigger> one_trig; in TEST_F()
3376 one_trig.insert(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
3394 set<WakeOnWiFi::WakeOnWiFiTrigger> trigs; in TEST_F()
3404 trigs.insert(WakeOnWiFi::kWakeTriggerPattern); in TEST_F()
3413 trigs.insert(WakeOnWiFi::kWakeTriggerDisconnect); in TEST_F()
3421 trigs.erase(WakeOnWiFi::kWakeTriggerDisconnect); in TEST_F()
3448 trigs.insert(WakeOnWiFi::kWakeTriggerSSID); in TEST_F()