Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DScoredNetwork.java73 public final NetworkKey networkKey; field in ScoredNetwork
115 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve) { in ScoredNetwork() argument
116 this(networkKey, rssiCurve, false /* meteredHint */); in ScoredNetwork()
132 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint) { in ScoredNetwork() argument
133 this(networkKey, rssiCurve, meteredHint, null /* attributes */); in ScoredNetwork()
150 public ScoredNetwork(NetworkKey networkKey, RssiCurve rssiCurve, boolean meteredHint, in ScoredNetwork() argument
152 this.networkKey = networkKey; in ScoredNetwork()
159 networkKey = NetworkKey.CREATOR.createFromParcel(in); in ScoredNetwork()
176 networkKey.writeToParcel(out, flags); in writeToParcel()
194 return Objects.equals(networkKey, that.networkKey) in equals()
[all …]
/frameworks/base/wifi/java/src/android/net/wifi/
DWifiNetworkScoreCache.java102 String networkKey = buildNetworkKey(network); in updateScores() local
103 if (networkKey == null) { in updateScores()
109 mCache.put(networkKey, network); in updateScores()
153 Log.d(TAG, "getNetworkScore found scored network " + network.networkKey in getNetworkScore()
178 Log.d(TAG, "getNetworkScore found scored network " + network.networkKey in getNetworkScore()
200 public ScoredNetwork getScoredNetwork(NetworkKey networkKey) { in getScoredNetwork() argument
201 String key = buildNetworkKey(networkKey); in getScoredNetwork()
204 Log.d(TAG, "Could not build key string for Network Key: " + networkKey); in getScoredNetwork()
217 return buildNetworkKey(network.networkKey); in buildNetworkKey()
220 private String buildNetworkKey(NetworkKey networkKey) { in buildNetworkKey() argument
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java294 NetworkKey networkKey = NetworkKey.createFromWifiInfo(mWifiInfo); in maybeRequestNetworkScore() local
295 if (mWifiNetworkScoreCache.getScoredNetwork(networkKey) == null) { in maybeRequestNetworkScore()
296 mNetworkScoreManager.requestScores(new NetworkKey[]{ networkKey }); in maybeRequestNetworkScore()
DAccessPoint.java330 mScoredNetworkCache.put(timedScore.getScore().networkKey.wifiKey.bssid, timedScore); in AccessPoint()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScoreServiceTest.java160 when(mWifiInfo.getSSID()).thenReturn(SCORED_NETWORK.networkKey.wifiKey.ssid); in setUp()
161 when(mWifiInfo.getBSSID()).thenReturn(SCORED_NETWORK.networkKey.wifiKey.bssid); in setUp()
179 mScanResults.add(createScanResult(SSID, SCORED_NETWORK.networkKey.wifiKey.bssid)); in populateScanResults()
180 mScanResults.add(createScanResult(SSID_2, SCORED_NETWORK_2.networkKey.wifiKey.bssid)); in populateScanResults()
798 createScanResult("", SCORED_NETWORK.networkKey.wifiKey.bssid), in testScanResultsScoreCacheFilter_invalidScanResults()
799 createScanResult(WifiManager.UNKNOWN_SSID, SCORED_NETWORK.networkKey.wifiKey.bssid), in testScanResultsScoreCacheFilter_invalidScanResults()
/frameworks/base/services/core/java/com/android/server/
DNetworkScoreService.java451 List<ScoredNetwork> networkList = networksByType.get(network.networkKey.type); in updateScores()
454 networksByType.put(network.networkKey.type, networkList); in updateScores()
642 if (scoredNetwork.networkKey.equals(mCurrentNetwork)) { in apply()
687 if (mScanResultKeys.contains(scoredNetwork.networkKey)) { in apply()
/frameworks/base/core/api/
Dsystem-current.txt9737 field @Deprecated public final android.net.NetworkKey networkKey;