Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkScoreManager.java372 public void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { in registerNetworkScoreCache() argument
373 registerNetworkScoreCache(networkType, scoreCache, CACHE_FILTER_NONE); in registerNetworkScoreCache()
387 public void registerNetworkScoreCache(int networkType, INetworkScoreCache scoreCache, in registerNetworkScoreCache() argument
390 mService.registerNetworkScoreCache(networkType, scoreCache, filterType); in registerNetworkScoreCache()
406 public void unregisterNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { in unregisterNetworkScoreCache() argument
408 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.java358 boolean update(WifiNetworkScoreCache scoreCache, boolean scoringUiEnabled) { in update() argument
361 scoreChanged = updateScores(scoreCache); in update()
363 return updateMetered(scoreCache) || scoreChanged; in update()
371 private boolean updateScores(WifiNetworkScoreCache scoreCache) { in updateScores() argument
378 ScoredNetwork score = scoreCache.getScoredNetwork(result); in updateScores()
396 private boolean updateMetered(WifiNetworkScoreCache scoreCache) { in updateMetered() argument
400 ScoredNetwork score = scoreCache.getScoredNetwork(result); in updateMetered()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java322 WifiNetworkScoreCache scoreCache = mScoreCacheCaptor.getValue(); in updateScores() local
323 scoreCache.updateScores(Arrays.asList(sc1, sc2)); in updateScores()
389 WifiNetworkScoreCache scoreCache = mScoreCacheCaptor.getValue(); in startAndStopTrackingShouldRegisterAndUnregisterScoreCache() local
397 .unregisterNetworkScoreCache(NetworkKey.TYPE_WIFI, scoreCache); in startAndStopTrackingShouldRegisterAndUnregisterScoreCache()
404 .unregisterNetworkScoreCache(NetworkKey.TYPE_WIFI, scoreCache); in startAndStopTrackingShouldRegisterAndUnregisterScoreCache()
/frameworks/base/services/core/java/com/android/server/
DNetworkScoreService.java765 INetworkScoreCache scoreCache, in registerNetworkScoreCache() argument
776 if (!callbackList.register(scoreCache, filterType)) { in registerNetworkScoreCache()
791 public void unregisterNetworkScoreCache(int networkType, INetworkScoreCache scoreCache) { in unregisterNetworkScoreCache() argument
797 if (callbackList == null || !callbackList.unregister(scoreCache)) { in unregisterNetworkScoreCache()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkSelectorTestUtil.java322 public static void configureScoreCache(WifiNetworkScoreCache scoreCache, in configureScoreCache() argument
351 scoreCache.updateScores(networks); in configureScoreCache()