/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiScoreReport.java | 90 public void calculateAndReportScore(WifiInfo wifiInfo, NetworkAgent networkAgent, in calculateAndReportScore() argument 92 if (wifiInfo.getRssi() == WifiInfo.INVALID_RSSI) { in calculateAndReportScore() 105 mAggressiveConnectedScore.updateUsingWifiInfo(wifiInfo, millis); in calculateAndReportScore() 106 mVelocityBasedConnectedScore.updateUsingWifiInfo(wifiInfo, millis); in calculateAndReportScore() 113 if (wifiInfo.score > ConnectedScore.WIFI_TRANSITION_SCORE in calculateAndReportScore() 115 && wifiInfo.txSuccessRate >= mScoringParams.getYippeeSkippyPacketsPerSecond() in calculateAndReportScore() 116 && wifiInfo.rxSuccessRate >= mScoringParams.getYippeeSkippyPacketsPerSecond()) { in calculateAndReportScore() 120 if (wifiInfo.score > ConnectedScore.WIFI_TRANSITION_SCORE in calculateAndReportScore() 126 int entry = mScoringParams.getEntryRssi(wifiInfo.getFrequency()); in calculateAndReportScore() 128 || wifiInfo.getRssi() >= entry) { in calculateAndReportScore() [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 | WifiNetworkSelector.java | 135 private boolean isCurrentNetworkSufficient(WifiInfo wifiInfo, List<ScanDetail> scanDetails) { in isCurrentNetworkSufficient() argument 137 mWifiConfigManager.getConfiguredNetwork(wifiInfo.getNetworkId()); in isCurrentNetworkSufficient() 148 int currentRssi = wifiInfo.getRssi(); in isCurrentNetworkSufficient() 150 > mScoringParams.getSufficientRssi(wifiInfo.getFrequency()); in isCurrentNetworkSufficient() 151 boolean hasActiveStream = (wifiInfo.txSuccessRate > mStayOnNetworkMinimumTxRate) in isCurrentNetworkSufficient() 152 || (wifiInfo.rxSuccessRate > mStayOnNetworkMinimumRxRate); in isCurrentNetworkSufficient() 170 if (wifiInfo.is24GHz()) { in isCurrentNetworkSufficient() 200 private boolean isNetworkSelectionNeeded(List<ScanDetail> scanDetails, WifiInfo wifiInfo, in isNetworkSelectionNeeded() argument 226 if (isCurrentNetworkSufficient(wifiInfo, scanDetails)) { in isNetworkSelectionNeeded() 515 HashSet<String> bssidBlacklist, WifiInfo wifiInfo, in selectNetwork() argument [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 | 93 public void updateUsingWifiInfo(WifiInfo wifiInfo, long millis) { in updateUsingWifiInfo() argument 94 updateUsingRssi(wifiInfo.getRssi(), millis); in updateUsingWifiInfo()
|
D | WifiInjector.java | 528 public WifiConnectivityManager makeWifiConnectivityManager(WifiInfo wifiInfo, in makeWifiConnectivityManager() argument 532 mWifiConfigManager, wifiInfo, mWifiNetworkSelector, mWifiConnectivityHelper, in makeWifiConnectivityManager()
|
D | WifiConnectivityManager.java | 573 WifiScanner scanner, WifiConfigManager configManager, WifiInfo wifiInfo, in WifiConnectivityManager() argument 585 mWifiInfo = wifiInfo; in WifiConnectivityManager()
|
D | WifiMetrics.java | 1098 public void handlePollResult(WifiInfo wifiInfo) { in handlePollResult() argument 1099 mLastPollRssi = wifiInfo.getRssi(); in handlePollResult() 1100 mLastPollLinkSpeed = wifiInfo.getLinkSpeed(); in handlePollResult() 1101 mLastPollFreq = wifiInfo.getFrequency(); in handlePollResult()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 280 WifiInfo wifiInfo = new WifiInfo(); 281 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(configuration.SSID)); 282 wifiInfo.setBSSID(configuration.BSSID); 283 wifiInfo.setNetworkId(configuration.networkId); 284 accessPoint.update(configuration, wifiInfo, networkInfo); 296 WifiInfo wifiInfo = new WifiInfo(); 297 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(configuration.SSID)); 298 wifiInfo.setBSSID(configuration.BSSID); 299 wifiInfo.setNetworkId(configuration.networkId); 300 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/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/ |
D | WifiMacAddressPreferenceControllerTest.java | 86 final WifiInfo wifiInfo = mock(WifiInfo.class); in testWifiMacAddress() local 97 doReturn(wifiInfo).when(wifiManager).getConnectionInfo(); in testWifiMacAddress() 98 doReturn(TEST_MAC_ADDRESS).when(wifiInfo).getMacAddress(); in testWifiMacAddress() 107 doReturn(WifiInfo.DEFAULT_MAC_ADDRESS).when(wifiInfo).getMacAddress(); in testWifiMacAddress()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
D | AbstractWifiMacAddressPreferenceController.java | 81 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in updateConnectivity() local 84 final String macAddress = wifiInfo == null ? null : wifiInfo.getMacAddress(); in updateConnectivity()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiStateMachineTest.java | 981 WifiInfo wifiInfo = mWsm.getWifiInfo(); in connect() local 982 assertNotNull(wifiInfo); in connect() 983 assertEquals(sBSSID, wifiInfo.getBSSID()); in connect() 984 assertEquals(sFreq, wifiInfo.getFrequency()); in connect() 985 assertTrue(sWifiSsid.equals(wifiInfo.getWifiSsid())); in connect() 1785 WifiInfo wifiInfo = mWsm.getWifiInfo(); in testWifiInfoUpdatedUponSupplicantStateChangedEvent() local 1786 assertEquals(sBSSID1, wifiInfo.getBSSID()); in testWifiInfoUpdatedUponSupplicantStateChangedEvent() 1787 assertEquals(sFreq1, wifiInfo.getFrequency()); in testWifiInfoUpdatedUponSupplicantStateChangedEvent() 1788 assertEquals(SupplicantState.COMPLETED, wifiInfo.getSupplicantState()); in testWifiInfoUpdatedUponSupplicantStateChangedEvent() 1794 wifiInfo = mWsm.getWifiInfo(); in testWifiInfoUpdatedUponSupplicantStateChangedEvent() [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 | 287 WifiInfo wifiInfo = new WifiInfo(); in getWifiInfo() local 289 wifiInfo.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID); in getWifiInfo() 290 wifiInfo.setBSSID(null); in getWifiInfo() 291 wifiInfo.setSupplicantState(SupplicantState.DISCONNECTED); in getWifiInfo() 293 return wifiInfo; in getWifiInfo() 1969 List<ScanDetail> scanDetails, HashSet<String> bssidBlacklist, WifiInfo wifiInfo, 2024 List<ScanDetail> scanDetails, HashSet<String> bssidBlacklist, WifiInfo wifiInfo,
|
D | WifiServiceImplTest.java | 1083 WifiInfo wifiInfo = new WifiInfo(); in setupForGetConnectionInfo() local 1084 wifiInfo.setSSID(WifiSsid.createFromAsciiEncoded(TEST_SSID)); in setupForGetConnectionInfo() 1085 wifiInfo.setBSSID(TEST_BSSID); in setupForGetConnectionInfo() 1086 when(mWifiStateMachine.syncRequestConnectionInfo()).thenReturn(wifiInfo); in setupForGetConnectionInfo()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryExternalStatsWorker.java | 439 final WifiActivityEnergyInfo wifiInfo = awaitControllerInfo(wifiReceiver); in updateExternalStatsLocked() local 479 if (wifiInfo != null) { in updateExternalStatsLocked() 480 if (wifiInfo.isValid()) { in updateExternalStatsLocked() 481 mStats.updateWifiState(extractDeltaLocked(wifiInfo)); in updateExternalStatsLocked() 483 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 | 792 final WifiActivityEnergyInfo wifiInfo = awaitControllerInfo(wifiReceiver); in pullWifiActivityInfo() local 794 e.writeLong(wifiInfo.getTimeStamp()); in pullWifiActivityInfo() 795 e.writeInt(wifiInfo.getStackState()); in pullWifiActivityInfo() 796 e.writeLong(wifiInfo.getControllerTxTimeMillis()); in pullWifiActivityInfo() 797 e.writeLong(wifiInfo.getControllerRxTimeMillis()); in pullWifiActivityInfo() 798 e.writeLong(wifiInfo.getControllerIdleTimeMillis()); in pullWifiActivityInfo() 799 e.writeLong(wifiInfo.getControllerEnergyUsed()); in pullWifiActivityInfo()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 11122 final WifiInfo wifiInfo = mInjector.getWifiManager().getConnectionInfo(); in getWifiMacAddress() local 11123 if (wifiInfo == null) { in getWifiMacAddress() 11126 return wifiInfo.hasRealMacAddress() ? wifiInfo.getMacAddress() : null; in getWifiMacAddress()
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 18073 field public static final java.lang.String EXTRA_WIFI_INFO = "wifiInfo";
|
/frameworks/base/api/ |
D | current.txt | 28182 field public static final deprecated java.lang.String EXTRA_WIFI_INFO = "wifiInfo";
|