Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWakeupEvaluatorTest.java56 private WakeupEvaluator mWakeupEvaluator; field in WakeupEvaluatorTest
84 mWakeupEvaluator = new WakeupEvaluator(mScoringParams); in setUp()
93 assertTrue(mWakeupEvaluator.isBelowThreshold(scanResult24)); in isBelowThreshold_returnsTrueWhenRssiIsBelowThreshold()
96 assertTrue(mWakeupEvaluator.isBelowThreshold(scanResult5)); in isBelowThreshold_returnsTrueWhenRssiIsBelowThreshold()
105 assertFalse(mWakeupEvaluator.isBelowThreshold(scanResult24)); in isBelowThreshold_returnsFalseWhenRssiIsAboveThreshold()
108 assertFalse(mWakeupEvaluator.isBelowThreshold(scanResult5)); in isBelowThreshold_returnsFalseWhenRssiIsAboveThreshold()
120 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsNullWhenScanResultIsNotInSavedNetworks()
133 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsNullWhenScanResultIsBelowThreshold()
145 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsConnectableScanResult()
158 ScanResult scanResult = mWakeupEvaluator.findViableNetwork(scanResults, getSavedNetworks()); in findViableNetwork_returnsConnectableScanResultWithHighestRssi()
DWakeupControllerTest.java72 @Mock private WakeupEvaluator mWakeupEvaluator; field in WakeupControllerTest
133 mWakeupEvaluator, in initializeWakeupController()
586 when(mWakeupEvaluator.findViableNetwork(any(), any())).thenReturn(null); in onResultsSearchesForViableNetworkWhenWakeupLockIsUnlocked()
600 verify(mWakeupEvaluator).findViableNetwork(any(), any()); in onResultsSearchesForViableNetworkWhenWakeupLockIsUnlocked()
636 when(mWakeupEvaluator.findViableNetwork(any(), any())).thenReturn(mTestScanResult); in onResultsEnablesWifi()
650 verify(mWakeupEvaluator).findViableNetwork(any(), any()); in onResultsEnablesWifi()
676 verify(mWakeupEvaluator, never()).findViableNetwork(any(), any()); in controllerDoesNoWorkIfUserStoreIsNotRead()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWakeupController.java61 private final WakeupEvaluator mWakeupEvaluator; field in WakeupController
145 mWakeupEvaluator = wakeupEvaluator; in WakeupController()
387 ScanResult network = mWakeupEvaluator.findViableNetwork(scanResults, goodNetworks); in handleScanResults()