Home
last modified time | relevance | path

Searched refs:networkKey (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/android/net/
DScoredNetwork.java70 public final NetworkKey networkKey; field in ScoredNetwork
112 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve) { in ScoredNetwork() argument
113 this(networkKey, rssiCurve, false /* meteredHint */); in ScoredNetwork()
129 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint) { in ScoredNetwork() argument
130 this(networkKey, rssiCurve, meteredHint, null /* attributes */); in ScoredNetwork()
147 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint, in ScoredNetwork() argument
149 this.networkKey = networkKey; in ScoredNetwork()
156 networkKey = NetworkKey.CREATOR.createFromParcel(in); in ScoredNetwork()
173 networkKey.writeToParcel(out, flags); in writeToParcel()
191 return Objects.equals(networkKey, that.networkKey) in equals()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkScoreCache.java101 String networkKey = buildNetworkKey(network); in updateScores() local
102 if (networkKey == null) { in updateScores()
108 mCache.put(networkKey, network); in updateScores()
152 Log.d(TAG, "getNetworkScore found scored network " + network.networkKey in getNetworkScore()
177 Log.d(TAG, "getNetworkScore found scored network " + network.networkKey in getNetworkScore()
199 public ScoredNetwork getScoredNetwork(NetworkKey networkKey) { in getScoredNetwork() argument
200 String key = buildNetworkKey(networkKey); in getScoredNetwork()
203 Log.d(TAG, "Could not build key string for Network Key: " + networkKey); in getScoredNetwork()
216 return buildNetworkKey(network.networkKey); in buildNetworkKey()
219 private String buildNetworkKey(NetworkKey networkKey) { in buildNetworkKey() argument
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java149 NetworkKey networkKey = NetworkKey.createFromWifiInfo(mWifiInfo); in maybeRequestNetworkScore() local
150 if (mWifiNetworkScoreCache.getScoredNetwork(networkKey) == null) { in maybeRequestNetworkScore()
151 mNetworkScoreManager.requestScores(new NetworkKey[]{ networkKey }); in maybeRequestNetworkScore()
DAccessPoint.java307 mScoredNetworkCache.put(timedScore.getScore().networkKey.wifiKey.bssid, timedScore); in AccessPoint()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScoredNetworkEvaluator.java96 NetworkKey networkKey = NetworkKey.createFromScanResult(scanResult); in updateNetworkScoreCache() local
97 if (networkKey != null) { in updateNetworkScoreCache()
99 if (mScoreCache.getScoredNetwork(networkKey) == null) { in updateNetworkScoreCache()
100 unscoredNetworks.add(networkKey); in updateNetworkScoreCache()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScoreServiceTest.java158 when(mWifiInfo.getSSID()).thenReturn(SCORED_NETWORK.networkKey.wifiKey.ssid); in setUp()
159 when(mWifiInfo.getBSSID()).thenReturn(SCORED_NETWORK.networkKey.wifiKey.bssid); in setUp()
176 mScanResults.add(createScanResult(SSID, SCORED_NETWORK.networkKey.wifiKey.bssid)); in populateScanResults()
177 mScanResults.add(createScanResult(SSID_2, SCORED_NETWORK_2.networkKey.wifiKey.bssid)); in populateScanResults()
795 createScanResult("", SCORED_NETWORK.networkKey.wifiKey.bssid), in testScanResultsScoreCacheFilter_invalidScanResults()
796 createScanResult(WifiSsid.NONE, SCORED_NETWORK.networkKey.wifiKey.bssid), in testScanResultsScoreCacheFilter_invalidScanResults()
/frameworks/base/services/core/java/com/android/server/
DNetworkScoreService.java458 List<ScoredNetwork> networkList = networksByType.get(network.networkKey.type); in updateScores()
461 networksByType.put(network.networkKey.type, networkList); in updateScores()
649 if (scoredNetwork.networkKey.equals(mCurrentNetwork)) { in apply()
694 if (mScanResultKeys.contains(scoredNetwork.networkKey)) { in apply()
/frameworks/base/api/
Dsystem-current.txt4189 field public final android.net.NetworkKey networkKey;