Searched refs:SelfRecovery (Results 1 – 13 of 13) sorted by relevance
33 SelfRecovery mSelfRecovery;40 mSelfRecovery = new SelfRecovery(mWifiController, mClock); in setUp()49 mSelfRecovery.trigger(SelfRecovery.REASON_LAST_RESORT_WATCHDOG); in testValidTriggerReasonsSendMessageToWifiController()54 .thenReturn(SelfRecovery.MAX_RESTARTS_TIME_WINDOW_MILLIS + 1); in testValidTriggerReasonsSendMessageToWifiController()55 mSelfRecovery.trigger(SelfRecovery.REASON_WIFINATIVE_FAILURE); in testValidTriggerReasonsSendMessageToWifiController()78 mSelfRecovery.trigger(SelfRecovery.REASON_STA_IFACE_DOWN); in testStaIfaceDownDisablesWifi()92 for (int i = 0; i < SelfRecovery.MAX_RESTARTS_IN_TIME_WINDOW / 2; i++) { in testTimeWindowLimiting_typicalUse()93 mSelfRecovery.trigger(SelfRecovery.REASON_WIFINATIVE_FAILURE); in testTimeWindowLimiting_typicalUse()98 mSelfRecovery.trigger(SelfRecovery.REASON_WIFINATIVE_FAILURE); in testTimeWindowLimiting_typicalUse()103 if ((SelfRecovery.MAX_RESTARTS_IN_TIME_WINDOW % 2) == 1) { in testTimeWindowLimiting_typicalUse()[all …]
264 verify(mClientModeImpl).failureDetected(eq(SelfRecovery.REASON_STA_IFACE_DOWN)); in clientModeStartedStopsWhenInterfaceDown()280 verify(mClientModeImpl, never()).failureDetected(eq(SelfRecovery.REASON_STA_IFACE_DOWN)); in clientModeStartedWithConnectedMacRandDoesNotStopWhenInterfaceDown()
86 @Mock SelfRecovery mSelfRecovery;626 verify(mSelfRecovery).trigger(eq(SelfRecovery.REASON_WIFINATIVE_FAILURE)); in handleWifiNativeFailure()638 verify(mSelfRecovery, never()).trigger(eq(SelfRecovery.REASON_WIFINATIVE_FAILURE)); in handleWifiNativeStatusReady()
961 SelfRecovery.REASON_WIFINATIVE_FAILURE); in testRestartWifiStackInStaEnabledStateTriggersBugReport()970 SelfRecovery.REASON_LAST_RESORT_WATCHDOG); in testRestartWifiWatchdogDoesNotTriggerBugReport()
54 @Mock SelfRecovery mSelfRecovery;1313 verify(mSelfRecovery).trigger(eq(SelfRecovery.REASON_LAST_RESORT_WATCHDOG)); in incrementFailuresUntilTrigger()
370 @Mock SelfRecovery mSelfRecovery;2112 verify(mSelfRecovery, never()).trigger(eq(SelfRecovery.REASON_STA_IFACE_DOWN)); in testSupplicantUpdateDriverInactiveIfaceUpClientModeDoesNotTriggerSelfRecovery()
33 public class SelfRecovery { class54 public SelfRecovery(WifiController wifiController, Clock clock) { in SelfRecovery() method in SelfRecovery
467 if (msg.arg1 < SelfRecovery.REASON_STRINGS.length && msg.arg1 >= 0) { in processMessage()468 bugDetail = SelfRecovery.REASON_STRINGS[msg.arg1]; in processMessage()474 if (msg.arg1 != SelfRecovery.REASON_LAST_RESORT_WATCHDOG) { in processMessage()
61 private final SelfRecovery mSelfRecovery;654 mWifiInjector.getSelfRecovery().trigger(SelfRecovery.REASON_WIFINATIVE_FAILURE); in onStatusChanged()
144 private final SelfRecovery mSelfRecovery;341 mSelfRecovery = new SelfRecovery(mWifiController, mClock); in WifiInjector()750 public SelfRecovery getSelfRecovery() { in getSelfRecovery()
290 mClientModeImpl.failureDetected(SelfRecovery.REASON_STA_IFACE_DOWN); in processMessage()
331 mWifiInjector.getSelfRecovery().trigger(SelfRecovery.REASON_LAST_RESORT_WATCHDOG); in noteConnectionFailureAndTriggerIfNeeded()
3456 mWifiInjector.getSelfRecovery().trigger(SelfRecovery.REASON_STA_IFACE_DOWN); in failureDetected()