Home
last modified time | relevance | path

Searched refs:mWakeupEvaluator (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWakeupEvaluatorTest.java71 private WakeupEvaluator mWakeupEvaluator; field in WakeupEvaluatorTest
117 mWakeupEvaluator = new WakeupEvaluator(mScoringParams); in setUp()
136 assertTrue(mWakeupEvaluator.isBelowThreshold(scanResult24)); in isBelowThreshold_returnsTrueWhenRssiIsBelowThreshold()
139 assertTrue(mWakeupEvaluator.isBelowThreshold(scanResult5)); in isBelowThreshold_returnsTrueWhenRssiIsBelowThreshold()
148 assertFalse(mWakeupEvaluator.isBelowThreshold(scanResult24)); in isBelowThreshold_returnsFalseWhenRssiIsAboveThreshold()
151 assertFalse(mWakeupEvaluator.isBelowThreshold(scanResult5)); in isBelowThreshold_returnsFalseWhenRssiIsAboveThreshold()
163 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsNullWhenScanResultIsNotInSavedNetworks()
176 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsNullWhenScanResultIsBelowThreshold()
188 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsConnectableScanResult()
201 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsConnectableScanResultWithHighestRssi()
DWakeupControllerTest.java87 @Mock private WakeupEvaluator mWakeupEvaluator; field in WakeupControllerTest
190 mWakeupEvaluator, in initializeWakeupController()
734 when(mWakeupEvaluator.findViableNetwork(any(), any())).thenReturn(null); in onResultsSearchesForViableNetworkWhenWakeupLockIsUnlocked()
748 verify(mWakeupEvaluator).findViableNetwork(any(), any()); in onResultsSearchesForViableNetworkWhenWakeupLockIsUnlocked()
784 when(mWakeupEvaluator.findViableNetwork(any(), any())).thenReturn(mTestScanResult); in onResultsEnablesWifi()
798 verify(mWakeupEvaluator).findViableNetwork(any(), any()); in onResultsEnablesWifi()
827 verify(mWakeupEvaluator, never()).findViableNetwork(any(), any()); in controllerDoesNoWorkIfUserStoreIsNotRead()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWakeupController.java65 private final WakeupEvaluator mWakeupEvaluator; field in WakeupController
158 mWakeupEvaluator = wakeupEvaluator; in WakeupController()
450 ScanResult network = mWakeupEvaluator.findViableNetwork(scanResults, goodNetworks); in handleScanResults()