Home
last modified time | relevance | path

Searched refs:scoreCache (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkScoreManager.java437 public void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { in registerNetworkScoreCache() argument
438 registerNetworkScoreCache(networkType, scoreCache, SCORE_FILTER_NONE); in registerNetworkScoreCache()
453 public void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache, in registerNetworkScoreCache() argument
456 mService.registerNetworkScoreCache(networkType, scoreCache, filterType); in registerNetworkScoreCache()
473 public void unregisterNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { in unregisterNetworkScoreCache() argument
475 mService.unregisterNetworkScoreCache(networkType, scoreCache); in unregisterNetworkScoreCache()
DINetworkScoreService.aidl68 void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache, int filterType); in registerNetworkScoreCache() argument
78 void unregisterNetworkScoreCache(int networkType, INetworkScoreCache scoreCache); in unregisterNetworkScoreCache() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java562 WifiNetworkScoreCache scoreCache, in update() argument
567 scoreChanged = updateScores(scoreCache, maxScoreCacheAgeMillis); in update()
569 return updateMetered(scoreCache) || scoreChanged; in update()
586 private boolean updateScores(WifiNetworkScoreCache scoreCache, long maxScoreCacheAgeMillis) { in updateScores() argument
590 ScoredNetwork score = scoreCache.getScoredNetwork(result); in updateScores()
666 private boolean updateMetered(WifiNetworkScoreCache scoreCache) { in updateMetered() argument
672 ScoredNetwork score = scoreCache.getScoredNetwork(key); in updateMetered()
679 ScoredNetwork score = scoreCache.getScoredNetwork(result); in updateMetered()
/frameworks/base/services/core/java/com/android/server/
DNetworkScoreService.java816 INetworkScoreCache scoreCache, in registerNetworkScoreCache() argument
827 if (!callbackList.register(scoreCache, filterType)) { in registerNetworkScoreCache()
842 public void unregisterNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { in unregisterNetworkScoreCache() argument
848 if (callbackList == null || !callbackList.unregister(scoreCache)) { in unregisterNetworkScoreCache()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java408 WifiNetworkScoreCache scoreCache = mScoreCacheCaptor.getValue(); in sendUpdatedScores() local
409 scoreCache.updateScores(Arrays.asList(sc1, sc2)); in sendUpdatedScores()
471 WifiNetworkScoreCache scoreCache = mScoreCacheCaptor.getValue(); in startAndStopTrackingShouldRegisterAndUnregisterScoreCache() local
479 .unregisterNetworkScoreCache(NetworkKey.TYPE_WIFI, scoreCache); in startAndStopTrackingShouldRegisterAndUnregisterScoreCache()
486 .unregisterNetworkScoreCache(NetworkKey.TYPE_WIFI, scoreCache); in startAndStopTrackingShouldRegisterAndUnregisterScoreCache()