Searched refs:wifiInfo (Results 1 – 8 of 8) sorted by relevance
149 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in testWifiInfoProperties() local151 testWifiInfoPropertiesWhileConnected(wifiInfo); in testWifiInfoProperties()162 private void testWifiInfoPropertiesWhileConnected(WifiInfo wifiInfo) { in testWifiInfoPropertiesWhileConnected() argument163 assertThat(wifiInfo).isNotNull(); in testWifiInfoPropertiesWhileConnected()164 assertThat(wifiInfo.toString()).isNotNull(); in testWifiInfoPropertiesWhileConnected()165 SupplicantState.isValidState(wifiInfo.getSupplicantState()); in testWifiInfoPropertiesWhileConnected()167 String ssid = wifiInfo.getSSID(); in testWifiInfoPropertiesWhileConnected()174 assertThat(wifiInfo.getBSSID()).isNotNull(); in testWifiInfoPropertiesWhileConnected()175 assertThat(wifiInfo.getFrequency()).isGreaterThan(0); in testWifiInfoPropertiesWhileConnected()176 assertThat(wifiInfo.getMacAddress()).isNotNull(); in testWifiInfoPropertiesWhileConnected()[all …]
284 @NonNull WifiInfo wifiInfo) { in assertConnectionEquals() argument285 assertThat(network.SSID).isEqualTo(wifiInfo.getSSID()); in assertConnectionEquals()286 assertThat(network.BSSID).isEqualTo(wifiInfo.getBSSID()); in assertConnectionEquals()352 final WifiInfo wifiInfo = getWifiInfo(testNetworkCallback.networkCapabilities); in testConnectionFlowWithConnect() local353 assertConnectionEquals(network, wifiInfo); in testConnectionFlowWithConnect()356 assertThat(wifiInfo.isPrimary()).isTrue(); in testConnectionFlowWithConnect()502 final WifiInfo wifiInfo = getWifiInfo(testNetworkCallback.networkCapabilities); in testConnectionFlowWithSuggestionInternal() local503 assertConnectionEquals(network, wifiInfo); in testConnectionFlowWithSuggestionInternal()505 assertThat(wifiInfo.isTrusted()).isTrue(); in testConnectionFlowWithSuggestionInternal()506 WifiInfo redact = wifiInfo in testConnectionFlowWithSuggestionInternal()[all …]
314 final WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in testScanResultMatchesWifiInfo() local315 assertThat(wifiInfo).isNotNull(); in testScanResultMatchesWifiInfo()321 currentNetwork = scanResults.stream().filter(r -> r.BSSID.equals(wifiInfo.getBSSID())) in testScanResultMatchesWifiInfo()332 String wifiInfoSsidQuoted = wifiInfo.getSSID(); in testScanResultMatchesWifiInfo()340 assertThat(currentNetwork.frequency).isEqualTo(wifiInfo.getFrequency()); in testScanResultMatchesWifiInfo()
2664 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in testSave() local2670 .filter(config -> config.networkId == wifiInfo.getNetworkId()) in testSave()
207 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in isConnected() local208 if (wifiInfo == null) { in isConnected()212 if (wifiInfo.getSupplicantState() != SupplicantState.COMPLETED) return false; in isConnected()213 if (ssid != null && !wifiInfo.getSSID().equals(ssid)) return false; in isConnected()214 if (bssid != null && !wifiInfo.getBSSID().equals(bssid)) return false; in isConnected()
96 WifiInfo wifiInfo = (WifiInfo) transportInfo; in canRetrieveSsidFromTransportInfo() local97 boolean succeeded = !Objects.equals(wifiInfo.getSSID(), WifiManager.UNKNOWN_SSID); in canRetrieveSsidFromTransportInfo()
222 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in recordCurrentWifiState() local223 if (wifiInfo != null && SupplicantState.COMPLETED.equals(wifiInfo.getSupplicantState())) { in recordCurrentWifiState()224 mRecordedWifiConfiguration = wifiInfo.getNetworkId(); in recordCurrentWifiState()518 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in isConnectedToExpectedWifiNetwork() local521 if (wifiInfo != null in isConnectedToExpectedWifiNetwork()522 && wifiInfo.getSupplicantState().equals(SupplicantState.COMPLETED) in isConnectedToExpectedWifiNetwork()525 Log.i(TAG, "Connected to " + wifiInfo.getSSID() + " expected " + mAccessPointSsid); in isConnectedToExpectedWifiNetwork()526 return mAccessPointSsid.equals(wifiInfo.getSSID()) in isConnectedToExpectedWifiNetwork()527 || failsafeSsid.equals(wifiInfo.getSSID()); in isConnectedToExpectedWifiNetwork()
439 field @Deprecated public static final String EXTRA_WIFI_INFO = "wifiInfo";