Home
last modified time | relevance | path

Searched refs:SupplicantState (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/wifi/java/android/net/wifi/
DSupplicantState.java33 public enum SupplicantState implements Parcelable { enum
169 public static boolean isValidState(SupplicantState state) { in isValidState()
175 public static boolean isHandshakeState(SupplicantState state) { in isHandshakeState()
198 public static boolean isConnecting(SupplicantState state) { in isConnecting()
221 public static boolean isDriverActive(SupplicantState state) { in isDriverActive()
254 public static final @android.annotation.NonNull Creator<SupplicantState> CREATOR =
255 new Creator<SupplicantState>() {
256 public SupplicantState createFromParcel(Parcel in) {
257 return SupplicantState.valueOf(in.readString());
260 public SupplicantState[] newArray(int size) {
[all …]
DWifiInfo.java49 private static final EnumMap<SupplicantState, DetailedState> stateMap =
50 new EnumMap<SupplicantState, DetailedState>(SupplicantState.class);
62 stateMap.put(SupplicantState.DISCONNECTED, DetailedState.DISCONNECTED); in stateMap.put()
63 stateMap.put(SupplicantState.INTERFACE_DISABLED, DetailedState.DISCONNECTED); in stateMap.put()
64 stateMap.put(SupplicantState.INACTIVE, DetailedState.IDLE); in stateMap.put()
65 stateMap.put(SupplicantState.SCANNING, DetailedState.SCANNING); in stateMap.put()
66 stateMap.put(SupplicantState.AUTHENTICATING, DetailedState.CONNECTING); in stateMap.put()
67 stateMap.put(SupplicantState.ASSOCIATING, DetailedState.CONNECTING); in stateMap.put()
68 stateMap.put(SupplicantState.ASSOCIATED, DetailedState.CONNECTING); in stateMap.put()
69 stateMap.put(SupplicantState.FOUR_WAY_HANDSHAKE, DetailedState.AUTHENTICATING); in stateMap.put()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSupplicantStateTrackerTest.java26 import android.net.wifi.SupplicantState;
60 String bssid, SupplicantState newSupplicantState) { in getSupplicantStateChangeMessage()
86 SupplicantState recvdState = in testSupplicantStateChangeIntent()
87 (SupplicantState) intent.getExtra(WifiManager.EXTRA_NEW_STATE, -1); in testSupplicantStateChangeIntent()
88 assertEquals(SupplicantState.SCANNING, recvdState); in testSupplicantStateChangeIntent()
95 sBSSID, SupplicantState.SCANNING)); in testSupplicantStateChangeIntent()
108 SupplicantState recvdState = in testAuthPassInSupplicantStateChangeIntent()
109 (SupplicantState) intent.getExtra(WifiManager.EXTRA_NEW_STATE, -1); in testAuthPassInSupplicantStateChangeIntent()
110 assertEquals(SupplicantState.AUTHENTICATING, recvdState); in testAuthPassInSupplicantStateChangeIntent()
120 sBSSID, SupplicantState.AUTHENTICATING)); in testAuthPassInSupplicantStateChangeIntent()
[all …]
DClientModeImplTest.java84 import android.net.wifi.SupplicantState;
1011 new StateChangeResult(0, sWifiSsid, sBSSID, SupplicantState.ASSOCIATED)); in connect()
1018 new StateChangeResult(0, sWifiSsid, sBSSID, SupplicantState.COMPLETED)); in connect()
1305 SupplicantState.ASSOCIATING)); in connectPasspointAp()
1333 SupplicantState.ASSOCIATING)); in testResetWifiInfoPasspointFields()
1338 SupplicantState.ASSOCIATING)); in testResetWifiInfoPasspointFields()
1365 SupplicantState.ASSOCIATING)); in connectOsuAp()
1395 SupplicantState.ASSOCIATING)); in testResetWifiInfoOsuFields()
1400 SupplicantState.ASSOCIATING)); in testResetWifiInfoOsuFields()
1668 new StateChangeResult(0, sWifiSsid, sBSSID, SupplicantState.COMPLETED)); in connectWhileObtainingIp()
[all …]
DWifiNetworkSelectorTest.java33 import android.net.wifi.SupplicantState;
296 when(mWifiInfo.getSupplicantState()).thenReturn(SupplicantState.DISCONNECTED); in setupWifiInfo()
492 when(mWifiInfo.getSupplicantState()).thenReturn(SupplicantState.COMPLETED); in lowRssi5GNetworkIsNotSufficient()
543 when(mWifiInfo.getSupplicantState()).thenReturn(SupplicantState.COMPLETED); in noInternetAccessNetworkIsNotSufficient()
666 when(mWifiInfo.getSupplicantState()).thenReturn(SupplicantState.COMPLETED); in noSelectionWhenCurrentNetworkNotInScanResults()
1050 when(mWifiInfo.getSupplicantState()).thenReturn(SupplicantState.COMPLETED); in testStayOrTryToSwitchImpl()
DWifiScoreCardTest.java42 import android.net.wifi.SupplicantState;
408 mWifiInfo.setSupplicantState(SupplicantState.COMPLETED); in testFirmwareRoam()
430 mWifiScoreCard.noteSupplicantStateChanging(mWifiInfo, SupplicantState.COMPLETED); in testFirmwareRoam()
435 mWifiInfo.setSupplicantState(SupplicantState.COMPLETED); in testFirmwareRoam()
446 mWifiScoreCard.noteSupplicantStateChanging(mWifiInfo, SupplicantState.COMPLETED); in testFirmwareRoam()
449 mWifiInfo.setSupplicantState(SupplicantState.COMPLETED); in testFirmwareRoam()
DWifiMonitorTest.java29 import android.net.wifi.SupplicantState;
467 SupplicantState newState = SupplicantState.ASSOCIATED; in testBroadcastSupplicantStateChangeEvent()
DSupplicantStaIfaceHalTest.java75 import android.net.wifi.SupplicantState;
973 any(WifiSsid.class), eq(BSSID), eq(SupplicantState.INACTIVE)); in testStateChangeCallbackWithNoConfiguredNetwork()
993 any(WifiSsid.class), eq(BSSID), eq(SupplicantState.ASSOCIATED)); in testStateChangeToAssociatedCallback()
1016 any(WifiSsid.class), eq(BSSID), eq(SupplicantState.COMPLETED)); in testStateChangeToCompletedCallback()
2745 any(WifiSsid.class), eq(BSSID), eq(SupplicantState.INACTIVE)); in testonStateChangedV13CallbackWithNoConfiguredNetwork()
2767 any(WifiSsid.class), eq(BSSID), eq(SupplicantState.ASSOCIATED)); in testStateChangeV13ToAssociatedCallback()
2792 any(WifiSsid.class), eq(BSSID), eq(SupplicantState.COMPLETED)); in testStateChangeV13ToCompletedCallback()
2873 any(WifiSsid.class), eq(BSSID), eq(SupplicantState.COMPLETED)); in testStateChangeV13WithFilsHlpIESentToCompletedCallback()
DWifiConnectivityManagerTest.java34 import android.net.wifi.SupplicantState;
388 wifiInfo.setSupplicantState(SupplicantState.DISCONNECTED); in getWifiInfo()
DWifiMetricsTest.java61 import android.net.wifi.SupplicantState;
2194 new StateChangeResult(0, sWifiSsid, sBSSID, SupplicantState.DISCONNECTED);
2196 new StateChangeResult(0, sWifiSsid, sBSSID, SupplicantState.COMPLETED);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSupplicantStaIfaceCallbackImpl.java31 import android.net.wifi.SupplicantState;
73 protected static SupplicantState supplicantHidlStateToFrameworkState(int state) { in supplicantHidlStateToFrameworkState()
76 return SupplicantState.DISCONNECTED; in supplicantHidlStateToFrameworkState()
78 return SupplicantState.INTERFACE_DISABLED; in supplicantHidlStateToFrameworkState()
80 return SupplicantState.INACTIVE; in supplicantHidlStateToFrameworkState()
82 return SupplicantState.SCANNING; in supplicantHidlStateToFrameworkState()
84 return SupplicantState.AUTHENTICATING; in supplicantHidlStateToFrameworkState()
86 return SupplicantState.ASSOCIATING; in supplicantHidlStateToFrameworkState()
88 return SupplicantState.ASSOCIATED; in supplicantHidlStateToFrameworkState()
90 return SupplicantState.FOUR_WAY_HANDSHAKE; in supplicantHidlStateToFrameworkState()
[all …]
DSupplicantStateTracker.java21 import android.net.wifi.SupplicantState;
130 SupplicantState supState = (SupplicantState) stateChangeResult.state; in transitionOnSupplicantStateChange()
170 private void sendSupplicantStateChangedBroadcast(SupplicantState state, boolean failedAuth) { in sendSupplicantStateChangedBroadcast()
174 private void sendSupplicantStateChangedBroadcast(SupplicantState state, boolean failedAuth, in sendSupplicantStateChangedBroadcast()
257 SupplicantState state = stateChangeResult.state; in processMessage()
317 sendSupplicantStateChangedBroadcast(SupplicantState.DISCONNECTED, false); in processMessage()
346 SupplicantState state = stateChangeResult.state; in processMessage()
347 if (SupplicantState.isHandshakeState(state)) { in processMessage()
384 SupplicantState state = stateChangeResult.state; in processMessage()
391 if (SupplicantState.isConnecting(state)) { in processMessage()
DStateChangeResult.java19 import android.net.wifi.SupplicantState;
30 SupplicantState state) { in StateChangeResult()
40 SupplicantState state;
DSupplicantStaIfaceCallbackV1_3Impl.java23 import android.net.wifi.SupplicantState;
369 SupplicantState newSupplicantState = in onStateChanged_1_3()
376 if (newSupplicantState == SupplicantState.COMPLETED) { in onStateChanged_1_3()
DWifiMonitor.java19 import android.net.wifi.SupplicantState;
543 SupplicantState newSupplicantState) { in broadcastSupplicantStateChangeEvent()
DClientModeImpl.java73 import android.net.wifi.SupplicantState;
1510 SupplicantState supplicantState = mWifiInfo.getSupplicantState(); in isSupplicantTransientState()
1511 if (supplicantState == SupplicantState.ASSOCIATING in isSupplicantTransientState()
1512 || supplicantState == SupplicantState.AUTHENTICATING in isSupplicantTransientState()
1513 || supplicantState == SupplicantState.FOUR_WAY_HANDSHAKE in isSupplicantTransientState()
1514 || supplicantState == SupplicantState.GROUP_HANDSHAKE) { in isSupplicantTransientState()
2623 private SupplicantState handleSupplicantStateChange(Message message) { in handleSupplicantStateChange()
2625 SupplicantState state = stateChangeResult.state; in handleSupplicantStateChange()
2633 if (SupplicantState.isConnecting(state)) { in handleSupplicantStateChange()
2637 if (state == SupplicantState.ASSOCIATED) { in handleSupplicantStateChange()
[all …]
DWifiNetworkSelector.java27 import android.net.wifi.SupplicantState;
242 if (wifiInfo.getSupplicantState() != SupplicantState.COMPLETED) { in isNetworkSufficient()
DWifiShellCommand.java36 import android.net.wifi.SupplicantState;
928 if (info.getSupplicantState() != SupplicantState.COMPLETED) { in printStatus()
DWifiScoreCard.java37 import android.net.wifi.SupplicantState;
499 SupplicantState state) { in noteSupplicantStateChanging()
500 if (state == SupplicantState.COMPLETED && wifiInfo.getSupplicantState() == state) { in noteSupplicantStateChanging()
DWifiConnectivityManager.java27 import android.net.wifi.SupplicantState;
891 && SupplicantState.isConnecting(mWifiInfo.getSupplicantState())) { in connectToNetwork()
DWifiMetrics.java30 import android.net.wifi.SupplicantState;
4849 public static int supplicantStateToBit(SupplicantState state) { in supplicantStateToBit()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
DWifiClientTest.java28 import android.net.wifi.SupplicantState;
50 SupplicantState mSupplicantState;
77 mSupplicantState = (SupplicantState) in onReceive()
254 assertTrue(mSupplicantState == SupplicantState.COMPLETED); in testWifiBroadcasts()
263 assertTrue(mSupplicantState != SupplicantState.COMPLETED); in testWifiBroadcasts()
/frameworks/base/wifi/api/
Dcurrent.txt74 public enum SupplicantState implements android.os.Parcelable {
76 method public static boolean isValidState(android.net.wifi.SupplicantState);
78 enum_constant public static final android.net.wifi.SupplicantState ASSOCIATED;
79 enum_constant public static final android.net.wifi.SupplicantState ASSOCIATING;
80 enum_constant public static final android.net.wifi.SupplicantState AUTHENTICATING;
81 enum_constant public static final android.net.wifi.SupplicantState COMPLETED;
82 enum_constant public static final android.net.wifi.SupplicantState DISCONNECTED;
83 enum_constant public static final android.net.wifi.SupplicantState DORMANT;
84 enum_constant public static final android.net.wifi.SupplicantState FOUR_WAY_HANDSHAKE;
85 enum_constant public static final android.net.wifi.SupplicantState GROUP_HANDSHAKE;
[all …]
/frameworks/opt/net/wifi/service/proto/src/
Dmetrics.proto1392 // See {@code frameworks/base/wifi/java/android/net/wifi/SupplicantState.java} for documentation
1393 enum SupplicantState { enum
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt17877 public final class SupplicantState extends java.lang.Enum implements android.os.Parcelable {
17879 method public static boolean isValidState(android.net.wifi.SupplicantState);
17880 method public static android.net.wifi.SupplicantState valueOf(java.lang.String);
17881 method public static final android.net.wifi.SupplicantState[] values();
17883 enum_constant public static final android.net.wifi.SupplicantState ASSOCIATED;
17884 enum_constant public static final android.net.wifi.SupplicantState ASSOCIATING;
17885 enum_constant public static final android.net.wifi.SupplicantState AUTHENTICATING;
17886 enum_constant public static final android.net.wifi.SupplicantState COMPLETED;
17887 enum_constant public static final android.net.wifi.SupplicantState DISCONNECTED;
17888 enum_constant public static final android.net.wifi.SupplicantState DORMANT;
[all …]

12