Searched refs:mScoreCache (Results 1 – 2 of 2) sorted by relevance
75 private WifiNetworkScoreCache mScoreCache; field in WifiNetworkScoreCacheTest95 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 …]
173 private WifiNetworkScoreCache mScoreCache; field in WifiTracker268 mScoreCache = new WifiNetworkScoreCache(mContext, new CacheListener(mWorkHandler) { in setWorkThread()373 mScoreCache, in registerScoreCache()414 mNetworkScoreManager.unregisterNetworkScoreCache(NetworkKey.TYPE_WIFI, mScoreCache); in unregisterScoreCache()644 ap.update(mScoreCache, mNetworkScoringUiEnabled, mMaxSpeedLabelScoreCacheAge); in updateAccessPoints()821 if (ap.update(mScoreCache, mNetworkScoringUiEnabled, mMaxSpeedLabelScoreCacheAge)) { in updateNetworkInfo()862 mScoreCache, mNetworkScoringUiEnabled, mMaxSpeedLabelScoreCacheAge)) { in updateNetworkScores()