/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiScoreReport.java | 94 public void calculateAndReportScore(WifiInfo wifiInfo, NetworkAgent networkAgent, in calculateAndReportScore() argument 96 if (wifiInfo.getRssi() == WifiInfo.INVALID_RSSI) { in calculateAndReportScore() 109 mAggressiveConnectedScore.updateUsingWifiInfo(wifiInfo, millis); in calculateAndReportScore() 110 mVelocityBasedConnectedScore.updateUsingWifiInfo(wifiInfo, millis); in calculateAndReportScore() 117 if (wifiInfo.score > ConnectedScore.WIFI_TRANSITION_SCORE in calculateAndReportScore() 119 && wifiInfo.txSuccessRate >= mScoringParams.getYippeeSkippyPacketsPerSecond() in calculateAndReportScore() 120 && wifiInfo.rxSuccessRate >= mScoringParams.getYippeeSkippyPacketsPerSecond()) { in calculateAndReportScore() 124 if (wifiInfo.score > ConnectedScore.WIFI_TRANSITION_SCORE in calculateAndReportScore() 130 int entry = mScoringParams.getEntryRssi(wifiInfo.getFrequency()); in calculateAndReportScore() 132 || wifiInfo.getRssi() >= entry) { in calculateAndReportScore() [all …]
|
D | WifiScoreCard.java | 160 public @NonNull Pair<String, String> getL2KeyAndGroupHint(ExtendedWifiInfo wifiInfo) { in getL2KeyAndGroupHint() argument 161 PerBssid perBssid = lookupBssid(wifiInfo.getSSID(), wifiInfo.getBSSID()); in getL2KeyAndGroupHint() 200 private void update(WifiScoreCardProto.Event event, ExtendedWifiInfo wifiInfo) { in update() argument 201 PerBssid perBssid = lookupBssid(wifiInfo.getSSID(), wifiInfo.getBSSID()); in update() 203 wifiInfo.getFrequency(), in update() 204 wifiInfo.getRssi(), in update() 205 wifiInfo.getLinkSpeed()); in update() 206 perBssid.setNetworkConfigId(wifiInfo.getNetworkId()); in update() 208 if (DBG) Log.d(TAG, event.toString() + " ID: " + perBssid.id + " " + wifiInfo); in update() 216 public void noteSignalPoll(ExtendedWifiInfo wifiInfo) { in noteSignalPoll() argument [all …]
|
D | VelocityBasedConnectedScore.java | 102 public void updateUsingWifiInfo(WifiInfo wifiInfo, long millis) { in updateUsingWifiInfo() argument 103 int frequency = wifiInfo.getFrequency(); in updateUsingWifiInfo() 110 updateUsingRssi(wifiInfo.getRssi(), millis, mDefaultRssiStandardDeviation); in updateUsingWifiInfo() 111 adjustThreshold(wifiInfo); in updateUsingWifiInfo() 149 private void adjustThreshold(WifiInfo wifiInfo) { in adjustThreshold() argument 153 double txSuccessPps = wifiInfo.txSuccessRate; in adjustThreshold() 154 double rxSuccessPps = wifiInfo.rxSuccessRate; in adjustThreshold() 157 double txBadPps = wifiInfo.txBadRate; in adjustThreshold() 158 double txRetriesPps = wifiInfo.txRetriesRate; in adjustThreshold()
|
D | LinkProbeManager.java | 192 public void updateConnectionStats(WifiInfo wifiInfo, String interfaceName) { in updateConnectionStats() argument 193 mExperiments.forEach(e -> e.updateConnectionStats(wifiInfo)); in updateConnectionStats() 200 if (mLastTxSuccessCount < wifiInfo.txSuccess) { in updateConnectionStats() 203 mLastTxSuccessCount = wifiInfo.txSuccess; in updateConnectionStats() 224 int rssi = wifiInfo.getRssi(); in updateConnectionStats() 225 int linkSpeed = wifiInfo.getLinkSpeed(); in updateConnectionStats() 247 MacAddress.fromString(wifiInfo.getBSSID()), in updateConnectionStats() 340 void updateConnectionStats(WifiInfo wifiInfo) { in updateConnectionStats() argument 343 if (mLastTxSuccessCount < wifiInfo.txSuccess) { in updateConnectionStats() 346 mLastTxSuccessCount = wifiInfo.txSuccess; in updateConnectionStats() [all …]
|
D | AggressiveConnectedScore.java | 42 public void updateUsingWifiInfo(WifiInfo wifiInfo, long millis) { in updateUsingWifiInfo() argument 43 mFrequencyMHz = wifiInfo.getFrequency(); in updateUsingWifiInfo() 44 mRssi = wifiInfo.getRssi(); in updateUsingWifiInfo()
|
D | WifiNetworkSelector.java | 221 private boolean isCurrentNetworkSufficient(WifiInfo wifiInfo, List<ScanDetail> scanDetails) { in isCurrentNetworkSufficient() argument 223 if (wifiInfo.getSupplicantState() != SupplicantState.COMPLETED) { in isCurrentNetworkSufficient() 227 localLog("Current connected network: " + wifiInfo.getSSID() in isCurrentNetworkSufficient() 228 + " , ID: " + wifiInfo.getNetworkId()); in isCurrentNetworkSufficient() 231 int currentRssi = wifiInfo.getRssi(); in isCurrentNetworkSufficient() 233 > mScoringParams.getSufficientRssi(wifiInfo.getFrequency()); in isCurrentNetworkSufficient() 234 boolean hasActiveStream = (wifiInfo.txSuccessRate > mStayOnNetworkMinimumTxRate) in isCurrentNetworkSufficient() 235 || (wifiInfo.rxSuccessRate > mStayOnNetworkMinimumRxRate); in isCurrentNetworkSufficient() 241 mWifiConfigManager.getConfiguredNetwork(wifiInfo.getNetworkId()); in isCurrentNetworkSufficient() 262 if (wifiInfo.isEphemeral()) { in isCurrentNetworkSufficient() [all …]
|
D | ConnectedScore.java | 93 public void updateUsingWifiInfo(WifiInfo wifiInfo, long millis) { in updateUsingWifiInfo() argument 94 updateUsingRssi(wifiInfo.getRssi(), millis); in updateUsingWifiInfo()
|
D | WifiConnectivityManager.java | 592 WifiInjector injector, WifiConfigManager configManager, WifiInfo wifiInfo, in WifiConnectivityManager() argument 601 mWifiInfo = wifiInfo; in WifiConnectivityManager()
|
D | WifiMetrics.java | 1524 public void handlePollResult(WifiInfo wifiInfo) { in handlePollResult() argument 1525 mLastPollRssi = wifiInfo.getRssi(); in handlePollResult() 1526 mLastPollLinkSpeed = wifiInfo.getLinkSpeed(); in handlePollResult() 1527 mLastPollFreq = wifiInfo.getFrequency(); in handlePollResult()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 307 WifiInfo wifiInfo = new WifiInfo(); 308 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(configuration.SSID)); 309 wifiInfo.setBSSID(configuration.BSSID); 310 wifiInfo.setNetworkId(configuration.networkId); 311 accessPoint.update(configuration, wifiInfo, networkInfo); 323 WifiInfo wifiInfo = new WifiInfo(); 324 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(configuration.SSID)); 325 wifiInfo.setBSSID(configuration.BSSID); 326 wifiInfo.setNetworkId(configuration.networkId); 327 wifiInfo.setMeteredHint(true); [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkKey.java | 98 public static NetworkKey createFromWifiInfo(@Nullable WifiInfo wifiInfo) { in createFromWifiInfo() argument 99 if (wifiInfo != null) { in createFromWifiInfo() 100 final String ssid = wifiInfo.getSSID(); in createFromWifiInfo() 101 final String bssid = wifiInfo.getBSSID(); in createFromWifiInfo()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ClientModeImplTest.java | 1018 WifiInfo wifiInfo = mCmi.getWifiInfo(); in connect() local 1019 assertNotNull(wifiInfo); in connect() 1020 assertEquals(sBSSID, wifiInfo.getBSSID()); in connect() 1021 assertEquals(sFreq, wifiInfo.getFrequency()); in connect() 1022 assertTrue(sWifiSsid.equals(wifiInfo.getWifiSsid())); in connect() 1023 assertNull(wifiInfo.getPasspointProviderFriendlyName()); in connect() 1094 WifiInfo wifiInfo = mCmi.getWifiInfo(); in connectPasspointAp() local 1095 assertNotNull(wifiInfo); in connectPasspointAp() 1096 assertEquals(WifiConfigurationTestUtil.TEST_FQDN, wifiInfo.getPasspointFqdn()); in connectPasspointAp() 1098 wifiInfo.getPasspointProviderFriendlyName()); in connectPasspointAp() [all …]
|
D | TestUtil.java | 50 Context context, NetworkInfo nwInfo, WifiInfo wifiInfo) { in sendNetworkStateChanged() argument 53 intent.putExtra(WifiManager.EXTRA_WIFI_INFO, wifiInfo); in sendNetworkStateChanged()
|
D | WifiConnectivityManagerTest.java | 293 WifiInfo wifiInfo = new WifiInfo(); in getWifiInfo() local 295 wifiInfo.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID); in getWifiInfo() 296 wifiInfo.setBSSID(null); in getWifiInfo() 297 wifiInfo.setSupplicantState(SupplicantState.DISCONNECTED); in getWifiInfo() 299 return wifiInfo; in getWifiInfo() 2028 List<ScanDetail> scanDetails, HashSet<String> bssidBlacklist, WifiInfo wifiInfo, 2084 List<ScanDetail> scanDetails, HashSet<String> bssidBlacklist, WifiInfo wifiInfo,
|
D | WifiServiceImplTest.java | 1176 WifiInfo wifiInfo = new WifiInfo(); in setupForGetConnectionInfo() local 1177 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(TEST_SSID)); in setupForGetConnectionInfo() 1178 wifiInfo.setBSSID(TEST_BSSID); in setupForGetConnectionInfo() 1179 wifiInfo.setNetworkId(TEST_NETWORK_ID); in setupForGetConnectionInfo() 1180 when(mClientModeImpl.syncRequestConnectionInfo()).thenReturn(wifiInfo); in setupForGetConnectionInfo()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | OsuNetworkConnection.java | 241 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in onAvailable() local 242 if (wifiInfo == null) { in onAvailable() 246 if (mNetworkId < 0 || mNetworkId != wifiInfo.getNetworkId()) { in onAvailable() 248 + wifiInfo.getNetworkId()); in onAvailable()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryExternalStatsWorker.java | 462 final WifiActivityEnergyInfo wifiInfo = awaitControllerInfo(wifiReceiver); in updateExternalStatsLocked() local 502 if (wifiInfo != null) { in updateExternalStatsLocked() 503 if (wifiInfo.isValid()) { in updateExternalStatsLocked() 504 mStats.updateWifiState(extractDeltaLocked(wifiInfo)); in updateExternalStatsLocked() 506 Slog.w(TAG, "wifi info is invalid: " + wifiInfo); in updateExternalStatsLocked()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerWifiTest.java | 198 WifiInfo wifiInfo = mock(WifiInfo.class); in setWifiState() local 199 when(wifiInfo.getSSID()).thenReturn(ssid); in setWifiState() 200 when(mMockWm.getConnectionInfo()).thenReturn(wifiInfo); in setWifiState()
|
/frameworks/base/services/core/java/com/android/server/stats/ |
D | StatsCompanionService.java | 1078 final WifiActivityEnergyInfo wifiInfo = awaitControllerInfo(wifiReceiver); in pullWifiActivityInfo() local 1081 e.writeLong(wifiInfo.getTimeStamp()); in pullWifiActivityInfo() 1082 e.writeInt(wifiInfo.getStackState()); in pullWifiActivityInfo() 1083 e.writeLong(wifiInfo.getControllerTxTimeMillis()); in pullWifiActivityInfo() 1084 e.writeLong(wifiInfo.getControllerRxTimeMillis()); in pullWifiActivityInfo() 1085 e.writeLong(wifiInfo.getControllerIdleTimeMillis()); in pullWifiActivityInfo() 1086 e.writeLong(wifiInfo.getControllerEnergyUsed()); in pullWifiActivityInfo()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 1589 WifiInfo wifiInfo = new WifiInfo(); in testGetConnectionInfo() local 1590 when(mWifiService.getConnectionInfo(anyString())).thenReturn(wifiInfo); in testGetConnectionInfo() 1592 assertEquals(wifiInfo, mWifiManager.getConnectionInfo()); in testGetConnectionInfo()
|