Home
last modified time | relevance | path

Searched refs:wifiInfo (Results 1 – 16 of 16) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiScoreReport.java95 public static WifiScoreReport calculateScore(WifiInfo wifiInfo, in calculateScore() argument
109 boolean isBadLinkspeed = (wifiInfo.is24GHz() in calculateScore()
110 && wifiInfo.getLinkSpeed() < wifiConfigManager.mBadLinkSpeed24) in calculateScore()
111 || (wifiInfo.is5GHz() && wifiInfo.getLinkSpeed() in calculateScore()
113 boolean isGoodLinkspeed = (wifiInfo.is24GHz() in calculateScore()
114 && wifiInfo.getLinkSpeed() >= wifiConfigManager.mGoodLinkSpeed24) in calculateScore()
115 || (wifiInfo.is5GHz() && wifiInfo.getLinkSpeed() in calculateScore()
170 int rssi = wifiInfo.getRssi() - AGGRESSIVE_HANDOVER_PENALTY * aggressiveHandover in calculateScore()
174 boolean is24GHz = use24Thresholds || wifiInfo.is24GHz(); in calculateScore()
180 && wifiInfo.getRssi() < wifiConfigManager.mThresholdMinimumRssi5.get()); in calculateScore()
[all …]
DWifiConnectivityManager.java511 WifiScanner scanner, WifiConfigManager configManager, WifiInfo wifiInfo, in WifiConnectivityManager() argument
517 mWifiInfo = wifiInfo; in WifiConnectivityManager()
DWifiQualifiedNetworkSelector.java164 WifiInfo wifiInfo, Clock clock) { in WifiQualifiedNetworkSelector() argument
166 mWifiInfo = wifiInfo; in WifiQualifiedNetworkSelector()
/frameworks/base/packages/SettingsLib/tests/src/com/android/settingslib/wifi/
DAccessPointTest.java67 WifiInfo wifiInfo = Mockito.mock(WifiInfo.class); in testOnAccessPointChangedCallback() local
68 Mockito.when(wifiInfo.getNetworkId()).thenReturn(NETWORK_ID); in testOnAccessPointChangedCallback()
70 mAccessPoint.update(wifiInfo, null); in testOnAccessPointChangedCallback()
DWifiTrackerTest.java305 WifiInfo wifiInfo = Mockito.mock(WifiInfo.class); in generateTestNetworks() local
306 Mockito.when(wifiInfo.getSSID()).thenReturn(TEST_SSIDS[4]); in generateTestNetworks()
307 Mockito.when(wifiInfo.getNetworkId()).thenReturn(netId); in generateTestNetworks()
308 Mockito.when(mWifiManager.getConnectionInfo()).thenReturn(wifiInfo); in generateTestNetworks()
/frameworks/base/packages/Osu/src/com/android/hotspot2/
DWifiNetworkAdapter.java157 WifiInfo wifiInfo = getConnectionInfo(); in getActiveWifiConfig() local
158 if (wifiInfo == null) { in getActiveWifiConfig()
163 if (config.networkId == wifiInfo.getNetworkId()) { in getActiveWifiConfig()
193 WifiInfo wifiInfo = getConnectionInfo(); in getActivePasspointConfig() local
194 if (wifiInfo == null) { in getActivePasspointConfig()
199 if (passpointConfig.getWifiConfiguration().networkId == wifiInfo.getNetworkId()) { in getActivePasspointConfig()
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DOSUManager.java467 public void networkConnectEvent(WifiInfo wifiInfo) { in networkConnectEvent() argument
468 if (wifiInfo != null) { in networkConnectEvent()
488 WifiInfo wifiInfo = mWifiNetworkAdapter.getConnectionInfo(); in bssidMatch() local
489 return wifiInfo != null && Utils.parseMac(wifiInfo.getBSSID()) == osuInfo.getBSSID(); in bssidMatch()
697 WifiInfo wifiInfo = mWifiNetworkAdapter.getConnectionInfo(); in wnmRemediate() local
698 if (wifiInfo == null || Utils.parseMac(wifiInfo.getBSSID()) != bssid) { in wnmRemediate()
738 WifiInfo wifiInfo = mWifiNetworkAdapter.getConnectionInfo(); in remediate() local
739 if (wifiInfo == null) { in remediate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerWifiTest.java128 WifiInfo wifiInfo = Mockito.mock(WifiInfo.class); in setWifiState() local
129 Mockito.when(wifiInfo.getSSID()).thenReturn(ssid); in setWifiState()
132 i.putExtra(WifiManager.EXTRA_WIFI_INFO, wifiInfo); in setWifiState()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConnectivityManagerTest.java212 WifiInfo wifiInfo = new WifiInfo(); in getWifiInfo() local
214 wifiInfo.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID); in getWifiInfo()
215 wifiInfo.setBSSID(null); in getWifiInfo()
216 wifiInfo.setSupplicantState(SupplicantState.DISCONNECTED); in getWifiInfo()
218 return wifiInfo; in getWifiInfo()
DWifiQualifiedNetworkSelectorTest.java153 WifiInfo wifiInfo = mock(WifiInfo.class); in getWifiInfo() local
156 when(wifiInfo.is24GHz()).thenReturn(true); in getWifiInfo()
157 when(wifiInfo.is5GHz()).thenReturn(false); in getWifiInfo()
158 when(wifiInfo.getRssi()).thenReturn(-70); in getWifiInfo()
159 when(wifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in getWifiInfo()
160 when(wifiInfo.getBSSID()).thenReturn(null); in getWifiInfo()
161 when(wifiInfo.getNetworkId()).thenReturn(-1); in getWifiInfo()
162 return wifiInfo; in getWifiInfo()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java1489 WifiActivityEnergyInfo wifiInfo = null; in updateExternalStatsSync() local
1493 wifiInfo = awaitControllerInfo(wifiReceiver); in updateExternalStatsSync()
1520 if (wifiInfo != null) { in updateExternalStatsSync()
1521 if (wifiInfo.isValid()) { in updateExternalStatsSync()
1522 mStats.updateWifiStateLocked(extractDelta(wifiInfo)); in updateExternalStatsSync()
1524 Slog.e(TAG, "wifi info is invalid: " + wifiInfo); in updateExternalStatsSync()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java8541 final WifiInfo wifiInfo = mInjector.getWifiManager().getConnectionInfo(); in getWifiMacAddress() local
8542 if (wifiInfo == null) { in getWifiMacAddress()
8545 return wifiInfo.hasRealMacAddress() ? wifiInfo.getMacAddress() : null; in getWifiMacAddress()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt18073 field public static final java.lang.String EXTRA_WIFI_INFO = "wifiInfo";
/frameworks/base/api/
Dtest-current.txt24724 field public static final java.lang.String EXTRA_WIFI_INFO = "wifiInfo";
Dcurrent.txt24654 field public static final java.lang.String EXTRA_WIFI_INFO = "wifiInfo";
Dsystem-current.txt26981 field public static final java.lang.String EXTRA_WIFI_INFO = "wifiInfo";