Searched refs:wifiInfo (Results 1 – 9 of 9) sorted by relevance
171 WifiInfo wifiInfo = sWifiManager.getConnectionInfo(); in testWifiInfoProperties() local173 testWifiInfoPropertiesWhileConnected(wifiInfo); in testWifiInfoProperties()184 private void testWifiInfoPropertiesWhileConnected(WifiInfo wifiInfo) { in testWifiInfoPropertiesWhileConnected() argument185 assertThat(wifiInfo).isNotNull(); in testWifiInfoPropertiesWhileConnected()186 assertThat(wifiInfo.toString()).isNotNull(); in testWifiInfoPropertiesWhileConnected()187 SupplicantState.isValidState(wifiInfo.getSupplicantState()); in testWifiInfoPropertiesWhileConnected()189 String ssid = wifiInfo.getSSID(); in testWifiInfoPropertiesWhileConnected()196 assertThat(wifiInfo.getBSSID()).isNotNull(); in testWifiInfoPropertiesWhileConnected()197 assertThat(wifiInfo.getFrequency()).isGreaterThan(0); in testWifiInfoPropertiesWhileConnected()198 assertThat(wifiInfo.getMacAddress()).isNotNull(); in testWifiInfoPropertiesWhileConnected()[all …]
449 @NonNull WifiInfo wifiInfo) { in assertConnectionEquals() argument450 assertThat(network.SSID).isEqualTo(wifiInfo.getSSID()); in assertConnectionEquals()451 assertThat(network.BSSID).isEqualTo(wifiInfo.getBSSID()); in assertConnectionEquals()516 final WifiInfo wifiInfo = getWifiInfo(testNetworkCallback.networkCapabilities); in testConnectionFlowWithConnect() local517 assertConnectionEquals(network, wifiInfo); in testConnectionFlowWithConnect()520 assertThat(wifiInfo.isPrimary()).isTrue(); in testConnectionFlowWithConnect()674 final WifiInfo wifiInfo = getWifiInfo(testNetworkCallback.networkCapabilities); in testConnectionFlowWithSuggestionInternal() local675 assertConnectionEquals(network, wifiInfo); in testConnectionFlowWithSuggestionInternal()676 assertThat(wifiInfo.isTrusted()).isTrue(); in testConnectionFlowWithSuggestionInternal()677 assertThat(wifiInfo.isRestricted()).isEqualTo(isRestricted); in testConnectionFlowWithSuggestionInternal()[all …]
341 final WifiInfo wifiInfo = sWifiManager.getConnectionInfo(); in testScanResultMatchesWifiInfo() local342 assertThat(wifiInfo).isNotNull(); in testScanResultMatchesWifiInfo()348 currentNetwork = scanResults.stream().filter(r -> r.BSSID.equals(wifiInfo.getBSSID())) in testScanResultMatchesWifiInfo()359 String wifiInfoSsidQuoted = wifiInfo.getSSID(); in testScanResultMatchesWifiInfo()367 assertThat(currentNetwork.frequency).isEqualTo(wifiInfo.getFrequency()); in testScanResultMatchesWifiInfo()369 .asList().contains(wifiInfo.getCurrentSecurityType()); in testScanResultMatchesWifiInfo()
1793 WifiInfo wifiInfo = sWifiManager.getConnectionInfo(); in testGetPrivilegedConnectedNetworkSuccess() local1794 int curNetworkId = wifiInfo.getNetworkId(); in testGetPrivilegedConnectedNetworkSuccess()1799 assertEquals("SSID should match", wifiInfo.getSSID(), curConfig.SSID); in testGetPrivilegedConnectedNetworkSuccess()3560 WifiInfo wifiInfo = sWifiManager.getConnectionInfo(); in testSave() local3566 .filter(config -> config.networkId == wifiInfo.getNetworkId()) in testSave()6010 WifiInfo wifiInfo = sWifiManager.getConnectionInfo(); in testBssidAllowlist() local6011 String connectedBssid = wifiInfo.getBSSID(); in testBssidAllowlist()6012 int networkId = wifiInfo.getNetworkId(); in testBssidAllowlist()6044 wifiInfo = sWifiManager.getConnectionInfo(); in testBssidAllowlist()6045 assertEquals(networkId, wifiInfo.getNetworkId()); in testBssidAllowlist()
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()
216 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in recordCurrentWifiState() local217 if (wifiInfo != null && SupplicantState.COMPLETED.equals(wifiInfo.getSupplicantState())) { in recordCurrentWifiState()218 mRecordedWifiConfiguration = wifiInfo.getNetworkId(); in recordCurrentWifiState()498 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in isConnectedToExpectedWifiNetwork() local501 if (wifiInfo != null in isConnectedToExpectedWifiNetwork()502 && wifiInfo.getSupplicantState().equals(SupplicantState.COMPLETED) in isConnectedToExpectedWifiNetwork()505 Log.i(TAG, "Connected to " + wifiInfo.getSSID() + " expected " + mAccessPointSsid); in isConnectedToExpectedWifiNetwork()506 return mAccessPointSsid.equals(wifiInfo.getSSID()) in isConnectedToExpectedWifiNetwork()507 || failsafeSsid.equals(wifiInfo.getSSID()); in isConnectedToExpectedWifiNetwork()
325 WifiInfo wifiInfo = sWifiManager.getConnectionInfo(); in testMockSignalPollOnMockWifi() local333 wifiInfo.getTxLinkSpeedMbps(), wifiInfo.getRxLinkSpeedMbps(), in testMockSignalPollOnMockWifi()334 wifiInfo.getFrequency() in testMockSignalPollOnMockWifi()
569 field @Deprecated public static final String EXTRA_WIFI_INFO = "wifiInfo";