Home
last modified time | relevance | path

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

/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiInfoTest.java149 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in testWifiInfoProperties() local
151 testWifiInfoPropertiesWhileConnected(wifiInfo); in testWifiInfoProperties()
162 private void testWifiInfoPropertiesWhileConnected(WifiInfo wifiInfo) { in testWifiInfoPropertiesWhileConnected() argument
163 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 …]
DTestHelper.java284 @NonNull WifiInfo wifiInfo) { in assertConnectionEquals() argument
285 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() local
353 assertConnectionEquals(network, wifiInfo); in testConnectionFlowWithConnect()
356 assertThat(wifiInfo.isPrimary()).isTrue(); in testConnectionFlowWithConnect()
502 final WifiInfo wifiInfo = getWifiInfo(testNetworkCallback.networkCapabilities); in testConnectionFlowWithSuggestionInternal() local
503 assertConnectionEquals(network, wifiInfo); in testConnectionFlowWithSuggestionInternal()
505 assertThat(wifiInfo.isTrusted()).isTrue(); in testConnectionFlowWithSuggestionInternal()
506 WifiInfo redact = wifiInfo in testConnectionFlowWithSuggestionInternal()
[all …]
DScanResultTest.java314 final WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in testScanResultMatchesWifiInfo() local
315 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()
DWifiManagerTest.java2664 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in testSave() local
2670 .filter(config -> config.networkId == wifiInfo.getNetworkId()) in testSave()
/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.java222 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in recordCurrentWifiState() local
223 if (wifiInfo != null && SupplicantState.COMPLETED.equals(wifiInfo.getSupplicantState())) { in recordCurrentWifiState()
224 mRecordedWifiConfiguration = wifiInfo.getNetworkId(); in recordCurrentWifiState()
518 WifiInfo wifiInfo = mWifiManager.getConnectionInfo(); in isConnectedToExpectedWifiNetwork() local
521 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()
/cts/common/device-side/bedstead/remoteframeworkclasses/src/processor/res/apis/
Dwifi-current.txt439 field @Deprecated public static final String EXTRA_WIFI_INFO = "wifiInfo";