Home
last modified time | relevance | path

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

/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiInfoTest.java171 WifiInfo wifiInfo = sWifiManager.getConnectionInfo(); in testWifiInfoProperties() local
173 testWifiInfoPropertiesWhileConnected(wifiInfo); in testWifiInfoProperties()
184 private void testWifiInfoPropertiesWhileConnected(WifiInfo wifiInfo) { in testWifiInfoPropertiesWhileConnected() argument
185 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 …]
DTestHelper.java449 @NonNull WifiInfo wifiInfo) { in assertConnectionEquals() argument
450 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() local
517 assertConnectionEquals(network, wifiInfo); in testConnectionFlowWithConnect()
520 assertThat(wifiInfo.isPrimary()).isTrue(); in testConnectionFlowWithConnect()
674 final WifiInfo wifiInfo = getWifiInfo(testNetworkCallback.networkCapabilities); in testConnectionFlowWithSuggestionInternal() local
675 assertConnectionEquals(network, wifiInfo); in testConnectionFlowWithSuggestionInternal()
676 assertThat(wifiInfo.isTrusted()).isTrue(); in testConnectionFlowWithSuggestionInternal()
677 assertThat(wifiInfo.isRestricted()).isEqualTo(isRestricted); in testConnectionFlowWithSuggestionInternal()
[all …]
DScanResultTest.java341 final WifiInfo wifiInfo = sWifiManager.getConnectionInfo(); in testScanResultMatchesWifiInfo() local
342 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()
DWifiManagerTest.java1793 WifiInfo wifiInfo = sWifiManager.getConnectionInfo(); in testGetPrivilegedConnectedNetworkSuccess() local
1794 int curNetworkId = wifiInfo.getNetworkId(); in testGetPrivilegedConnectedNetworkSuccess()
1799 assertEquals("SSID should match", wifiInfo.getSSID(), curConfig.SSID); in testGetPrivilegedConnectedNetworkSuccess()
3560 WifiInfo wifiInfo = sWifiManager.getConnectionInfo(); in testSave() local
3566 .filter(config -> config.networkId == wifiInfo.getNetworkId()) in testSave()
6010 WifiInfo wifiInfo = sWifiManager.getConnectionInfo(); in testBssidAllowlist() local
6011 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()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifi/
DTestUtils.java207 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in isConnected() local
208 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()
/cts/tests/tests/wifi/CtsWifiLocationTestApp/src/android/net/wifi/cts/app/
DRetrieveTransportInfoAndReturnStatusActivity.java96 WifiInfo wifiInfo = (WifiInfo) transportInfo; in canRetrieveSsidFromTransportInfo() local
97 boolean succeeded = !Objects.equals(wifiInfo.getSSID(), WifiManager.UNKNOWN_SSID); in canRetrieveSsidFromTransportInfo()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DMultiNetworkConnectivityTestActivity.java216 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in recordCurrentWifiState() local
217 if (wifiInfo != null && SupplicantState.COMPLETED.equals(wifiInfo.getSupplicantState())) { in recordCurrentWifiState()
218 mRecordedWifiConfiguration = wifiInfo.getNetworkId(); in recordCurrentWifiState()
498 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in isConnectedToExpectedWifiNetwork() local
501 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()
/cts/tests/tests/wifi/src/android/net/wifi/mockwifi/cts/
DMockWifiTest.java325 WifiInfo wifiInfo = sWifiManager.getConnectionInfo(); in testMockSignalPollOnMockWifi() local
333 wifiInfo.getTxLinkSpeedMbps(), wifiInfo.getRxLinkSpeedMbps(), in testMockSignalPollOnMockWifi()
334 wifiInfo.getFrequency() in testMockSignalPollOnMockWifi()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dwifi-current.txt569 field @Deprecated public static final String EXTRA_WIFI_INFO = "wifiInfo";