Searched refs:mScoreCache (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiNetworkScoreCacheTest.java | 75 private WifiNetworkScoreCache mScoreCache; field in WifiNetworkScoreCacheTest 95 mScoreCache.updateScores(ImmutableList.of(mValidScoredNetwork)); in initializeCacheWithValidScoredNetwork() 105 mScoreCache = new WifiNetworkScoreCache(mockContext); in setUp() 124 assertThat(mScoreCache.isScoredNetwork(VALID_SCAN_RESULT)).isTrue(); in isScoredNetworkShouldReturnTrueAfterUpdateScoresIsCalled() 129 mScoreCache.clearScores(); in isScoredNetworkShouldReturnFalseAfterClearScoresIsCalled() 130 assertThat(mScoreCache.isScoredNetwork(VALID_SCAN_RESULT)).isFalse(); in isScoredNetworkShouldReturnFalseAfterClearScoresIsCalled() 139 mScoreCache.updateScores(ImmutableList.of(network2)); in updateScoresShouldAddNewNetwork() 141 assertThat(mScoreCache.isScoredNetwork(VALID_SCAN_RESULT)).isTrue(); in updateScoresShouldAddNewNetwork() 142 assertThat(mScoreCache.isScoredNetwork(result2)).isTrue(); in updateScoresShouldAddNewNetwork() 147 assertThat(mScoreCache.hasScoreCurve(VALID_SCAN_RESULT)).isTrue(); in hasScoreCurveShouldReturnTrue() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScoredNetworkEvaluatorTest.java | 80 private WifiNetworkScoreCache mScoreCache; field in ScoredNetworkEvaluatorTest 96 mScoreCache = new WifiNetworkScoreCache(mContext); in setUp() 99 mWifiConfigManager, new LocalLog(0), mScoreCache, mWifiPermissionsUtil); in setUp() 202 mScoreCache, scoredScanDetails, scores, meteredHints); in testUpdate_oneScored_oneUnscored() 291 WifiNetworkSelectorTestUtil.configureScoreCache(mScoreCache, in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable() 336 WifiNetworkSelectorTestUtil.configureScoreCache(mScoreCache, in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork() 379 WifiNetworkSelectorTestUtil.configureScoreCache(mScoreCache, in testEvaluateNetworks_chooseHigherScoredEphemeralNetwork() 421 WifiNetworkSelectorTestUtil.configureScoreCache(mScoreCache, in testEvaluateNetworks_noEphemeralNetworkWhenUntrustedNetworksNotAllowed() 459 WifiNetworkSelectorTestUtil.configureScoreCache(mScoreCache, in testEvaluateNetworks_chooseSavedNetworkWithExternalScore() 495 WifiNetworkSelectorTestUtil.configureScoreCache(mScoreCache, in testEvaluateNetworks_chooseSavedNetworkWithHigherExternalScore() [all …]
|
D | WifiConnectivityManagerTest.java | 146 @Mock private WifiNetworkScoreCache mScoreCache; field in WifiConnectivityManagerTest
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ScoredNetworkEvaluator.java | 58 private WifiNetworkScoreCache mScoreCache; field in ScoredNetworkEvaluator 65 mScoreCache = wifiNetworkScoreCache; in ScoredNetworkEvaluator() 99 if (mScoreCache.getScoredNetwork(networkKey) == null) { in updateNetworkScoreCache() 213 if (mScoreCache.isScoredNetwork(scanResult)) { in getNetworkScore() 214 int score = mScoreCache.getNetworkScore(scanResult, isCurrentNetwork); in getNetworkScore() 301 mEphemeralConfig.meteredHint = mScoreCache.getMeteredHint(mScanResultCandidate); in getCandidateConfiguration()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiTracker.java | 164 private WifiNetworkScoreCache mScoreCache; field in WifiTracker 259 mScoreCache = new WifiNetworkScoreCache(mContext, new CacheListener(mWorkHandler) { in setWorkThread() 363 mScoreCache, in registerScoreCache() 404 mNetworkScoreManager.unregisterNetworkScoreCache(NetworkKey.TYPE_WIFI, mScoreCache); in unregisterScoreCache() 635 ap.update(mScoreCache, mNetworkScoringUiEnabled, mMaxSpeedLabelScoreCacheAge); in updateAccessPoints() 812 if (ap.update(mScoreCache, mNetworkScoringUiEnabled, mMaxSpeedLabelScoreCacheAge)) { in updateNetworkInfo() 853 mScoreCache, mNetworkScoringUiEnabled, mMaxSpeedLabelScoreCacheAge)) { in updateNetworkScores()
|