public enum SupplicantState extends Enum<SupplicantState> implements Parcelable
defs.h
in wpa_supplicant
.
These enumeration values are used to indicate the current wpa_supplicant
state. This is more fine-grained than most users will be interested in.
In general, it is better to use
NetworkInfo.State
.
Note, the order of these enum constants must match the numerical values of the
state constants in defs.h
in wpa_supplicant
.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Enum Constant and Description |
---|
ASSOCIATED
Association completed.
|
ASSOCIATING
Trying to associate with a BSS/SSID.
|
AUTHENTICATING
Trying to authenticate with a BSS/SSID
This state is entered when wpa_supplicant has found a suitable BSS
to authenticate with and the driver is configured to try to
authenticate with this BSS.
|
COMPLETED
All authentication completed.
|
DISCONNECTED
This state indicates that client is not associated, but is likely to
start looking for an access point.
|
DORMANT
An Android-added state that is reported when a client issues an
explicit DISCONNECT command.
|
FOUR_WAY_HANDSHAKE
WPA 4-Way Key Handshake in progress.
|
GROUP_HANDSHAKE
WPA Group Key Handshake in progress.
|
INACTIVE
Inactive state (wpa_supplicant disabled).
|
INTERFACE_DISABLED
Interface is disabled
This state is entered if the network interface is disabled.
|
INVALID
A pseudo-state that should normally never be seen.
|
SCANNING
Scanning for a network.
|
UNINITIALIZED
No connection to wpa_supplicant.
|
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<SupplicantState> |
CREATOR
Implement the Parcelable interface
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Implement the Parcelable interface
|
static boolean |
isHandshakeState(SupplicantState state)
Supplicant associating or authenticating is considered a handshake state
|
static boolean |
isValidState(SupplicantState state)
Returns
true if the supplicant state is valid and false
otherwise. |
static SupplicantState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SupplicantState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeToParcel(Parcel dest,
int flags)
Implement the Parcelable interface
|
public static final SupplicantState DISCONNECTED
public static final SupplicantState INTERFACE_DISABLED
public static final SupplicantState INACTIVE
public static final SupplicantState SCANNING
public static final SupplicantState AUTHENTICATING
public static final SupplicantState ASSOCIATING
public static final SupplicantState ASSOCIATED
public static final SupplicantState FOUR_WAY_HANDSHAKE
public static final SupplicantState GROUP_HANDSHAKE
public static final SupplicantState COMPLETED
public static final SupplicantState DORMANT
public static final SupplicantState UNINITIALIZED
public static final SupplicantState INVALID
public static final Parcelable.Creator<SupplicantState> CREATOR
public static SupplicantState[] values()
for (SupplicantState c : SupplicantState.values()) System.out.println(c);
public static SupplicantState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static boolean isValidState(SupplicantState state)
true
if the supplicant state is valid and false
otherwise.state
- The supplicant statetrue
if the supplicant state is valid and false
otherwise.public static boolean isHandshakeState(SupplicantState state)
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.