/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiScoreReport.java | 95 public void calculateAndReportScore(WifiInfo wifiInfo, NetworkAgent networkAgent, in calculateAndReportScore() argument 97 if (wifiInfo.getRssi() == WifiInfo.INVALID_RSSI) { in calculateAndReportScore() 113 mAggressiveConnectedScore.updateUsingWifiInfo(wifiInfo, millis); in calculateAndReportScore() 114 mVelocityBasedConnectedScore.updateUsingWifiInfo(wifiInfo, millis); in calculateAndReportScore() 121 if (wifiInfo.score > ConnectedScore.WIFI_TRANSITION_SCORE in calculateAndReportScore() 123 && wifiInfo.txSuccessRate >= mScoringParams.getYippeeSkippyPacketsPerSecond() in calculateAndReportScore() 124 && wifiInfo.rxSuccessRate >= mScoringParams.getYippeeSkippyPacketsPerSecond()) { in calculateAndReportScore() 128 if (wifiInfo.score > ConnectedScore.WIFI_TRANSITION_SCORE in calculateAndReportScore() 134 int entry = mScoringParams.getEntryRssi(wifiInfo.getFrequency()); in calculateAndReportScore() 136 || 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 | WifiDataStall.java | 107 WifiInfo wifiInfo) { in checkForDataStall() argument 145 int txLinkSpeed = wifiInfo.getLinkSpeed(); in checkForDataStall() 146 int rxLinkSpeed = wifiInfo.getRxLinkSpeedMbps(); in checkForDataStall() 148 || (mLastBssid.equals(wifiInfo.getBSSID()) in checkForDataStall() 149 && mLastFrequency == wifiInfo.getFrequency()); in checkForDataStall() 150 mLastFrequency = wifiInfo.getFrequency(); in checkForDataStall() 151 mLastBssid = wifiInfo.getBSSID(); in checkForDataStall() 153 int ccaLevel = updateCcaLevel(newStats, wifiInfo, isSameBssidAndFreq); in checkForDataStall() 212 private int updateCcaLevel(WifiLinkLayerStats newStats, WifiInfo wifiInfo, in updateCcaLevel() argument
|
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 | 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 | ConnectedScore.java | 92 public void updateUsingWifiInfo(WifiInfo wifiInfo, long millis) { in updateUsingWifiInfo() argument 93 updateUsingRssi(wifiInfo.getRssi(), millis); in updateUsingWifiInfo()
|
D | WifiConnectivityManager.java | 592 WifiInjector injector, WifiConfigManager configManager, WifiInfo wifiInfo, in WifiConnectivityManager() argument 601 mWifiInfo = wifiInfo; in WifiConnectivityManager()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 308 WifiInfo wifiInfo = new WifiInfo(); 309 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(configuration.SSID)); 310 wifiInfo.setBSSID(configuration.BSSID); 311 wifiInfo.setNetworkId(configuration.networkId); 312 accessPoint.update(configuration, wifiInfo, networkInfo); 324 WifiInfo wifiInfo = new WifiInfo(); 325 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(configuration.SSID)); 326 wifiInfo.setBSSID(configuration.BSSID); 327 wifiInfo.setNetworkId(configuration.networkId); 328 wifiInfo.setMeteredHint(true); [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkKey.java | 111 public static NetworkKey createFromWifiInfo(@Nullable WifiInfo wifiInfo) { in createFromWifiInfo() argument 112 if (wifiInfo != null) { in createFromWifiInfo() 113 final String ssid = wifiInfo.getSSID(); in createFromWifiInfo() 114 final String bssid = wifiInfo.getBSSID(); in createFromWifiInfo()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ClientModeImplTest.java | 1031 WifiInfo wifiInfo = mCmi.getWifiInfo(); in connect() local 1032 assertNotNull(wifiInfo); in connect() 1033 assertEquals(sBSSID, wifiInfo.getBSSID()); in connect() 1034 assertEquals(sFreq, wifiInfo.getFrequency()); in connect() 1035 assertTrue(sWifiSsid.equals(wifiInfo.getWifiSsid())); in connect() 1036 assertNull(wifiInfo.getPasspointProviderFriendlyName()); in connect() 1214 WifiInfo wifiInfo = mCmi.getWifiInfo(); in connectPasspointAp() local 1215 assertNotNull(wifiInfo); in connectPasspointAp() 1216 assertEquals(WifiConfigurationTestUtil.TEST_FQDN, wifiInfo.getPasspointFqdn()); in connectPasspointAp() 1218 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 | 298 WifiInfo wifiInfo = new WifiInfo(); in getWifiInfo() local 300 wifiInfo.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID); in getWifiInfo() 301 wifiInfo.setBSSID(null); in getWifiInfo() 302 wifiInfo.setSupplicantState(SupplicantState.DISCONNECTED); in getWifiInfo() 304 return wifiInfo; in getWifiInfo() 2033 List<ScanDetail> scanDetails, HashSet<String> bssidBlacklist, WifiInfo wifiInfo, 2089 List<ScanDetail> scanDetails, HashSet<String> bssidBlacklist, WifiInfo wifiInfo,
|
D | WifiServiceImplTest.java | 1315 WifiInfo wifiInfo = new WifiInfo(); in setupForGetConnectionInfo() local 1316 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(TEST_SSID)); in setupForGetConnectionInfo() 1317 wifiInfo.setBSSID(TEST_BSSID); in setupForGetConnectionInfo() 1318 wifiInfo.setNetworkId(TEST_NETWORK_ID); in setupForGetConnectionInfo() 1319 when(mClientModeImpl.syncRequestConnectionInfo()).thenReturn(wifiInfo); in setupForGetConnectionInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wifi/ |
D | WifiDebuggingSecondaryUserActivity.java | 82 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in onReceive() local 83 if (wifiInfo == null || wifiInfo.getNetworkId() == -1) { in onReceive()
|
D | WifiDebuggingActivity.java | 153 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in onReceive() local 154 if (wifiInfo == null || wifiInfo.getNetworkId() == -1) { in onReceive() 158 String bssid = wifiInfo.getBSSID(); in onReceive()
|
/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/adb/ |
D | AdbDebuggingManager.java | 617 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); 618 if (wifiInfo == null || wifiInfo.getNetworkId() == -1) { 626 String bssid = wifiInfo.getBSSID(); 1294 WifiInfo wifiInfo = wifiManager.getConnectionInfo(); in getCurrentWifiApInfo() local 1295 if (wifiInfo == null || wifiInfo.getNetworkId() == -1) { in getCurrentWifiApInfo() 1301 if (wifiInfo.isPasspointAp() || wifiInfo.isOsuAp()) { in getCurrentWifiApInfo() 1302 ssid = wifiInfo.getPasspointProviderFriendlyName(); in getCurrentWifiApInfo() 1304 ssid = wifiInfo.getSSID(); in getCurrentWifiApInfo() 1310 if (networks.get(i).networkId == wifiInfo.getNetworkId()) { in getCurrentWifiApInfo() 1321 String bssid = wifiInfo.getBSSID(); in getCurrentWifiApInfo()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | AccessPoint.java | 794 private boolean matches(WifiConfiguration config, WifiInfo wifiInfo) { in matches() argument 795 if (config == null || wifiInfo == null) { in matches() 798 if (!config.isPasspoint() && !isSameSsidOrBssid(wifiInfo)) { in matches() 1984 private boolean isSameSsidOrBssid(WifiInfo wifiInfo) { in isSameSsidOrBssid() argument 1985 if (wifiInfo == null) { in isSameSsidOrBssid() 1989 if (TextUtils.equals(ssid, removeDoubleQuotes(wifiInfo.getSSID()))) { in isSameSsidOrBssid() 1991 } else if (wifiInfo.getBSSID() != null && TextUtils.equals(bssid, wifiInfo.getBSSID())) { in isSameSsidOrBssid()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | CarrierTextControllerTest.java | 355 WifiInfo wifiInfo = mock(WifiInfo.class); in mockWifi() local 356 when(wifiInfo.getBSSID()).thenReturn(""); in mockWifi() 357 when(mWifiManager.getConnectionInfo()).thenReturn(wifiInfo); in mockWifi()
|
/frameworks/base/services/core/java/com/android/server/stats/ |
D | StatsCompanionService.java | 1080 final WifiActivityEnergyInfo wifiInfo = awaitControllerInfo(wifiReceiver); in pullWifiActivityInfo() local 1083 e.writeLong(wifiInfo.getTimeStamp()); in pullWifiActivityInfo() 1084 e.writeInt(wifiInfo.getStackState()); in pullWifiActivityInfo() 1085 e.writeLong(wifiInfo.getControllerTxTimeMillis()); in pullWifiActivityInfo() 1086 e.writeLong(wifiInfo.getControllerRxTimeMillis()); in pullWifiActivityInfo() 1087 e.writeLong(wifiInfo.getControllerIdleTimeMillis()); in pullWifiActivityInfo() 1088 e.writeLong(wifiInfo.getControllerEnergyUsed()); in pullWifiActivityInfo()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 1577 WifiInfo wifiInfo = new WifiInfo(); in testGetConnectionInfo() local 1578 when(mWifiService.getConnectionInfo(anyString())).thenReturn(wifiInfo); in testGetConnectionInfo() 1580 assertEquals(wifiInfo, mWifiManager.getConnectionInfo()); in testGetConnectionInfo()
|