Example usage for android.net.wifi SupplicantState FOUR_WAY_HANDSHAKE

List of usage examples for android.net.wifi SupplicantState FOUR_WAY_HANDSHAKE

Introduction

In this page you can find the example usage for android.net.wifi SupplicantState FOUR_WAY_HANDSHAKE.

Prototype

SupplicantState FOUR_WAY_HANDSHAKE

To view the source code for android.net.wifi SupplicantState FOUR_WAY_HANDSHAKE.

Click Source Link

Document

WPA 4-Way Key Handshake in progress.

Usage

From source file:com.geniatech.client_phone.wifi.WifiStatusTest.java

private void setSupplicantStateText(SupplicantState supplicantState) {
    if (SupplicantState.FOUR_WAY_HANDSHAKE.equals(supplicantState)) {
        mSupplicantState.setText("FOUR WAY HANDSHAKE");
    } else if (SupplicantState.ASSOCIATED.equals(supplicantState)) {
        mSupplicantState.setText("ASSOCIATED");
    } else if (SupplicantState.ASSOCIATING.equals(supplicantState)) {
        mSupplicantState.setText("ASSOCIATING");
    } else if (SupplicantState.COMPLETED.equals(supplicantState)) {
        mSupplicantState.setText("COMPLETED");
    } else if (SupplicantState.DISCONNECTED.equals(supplicantState)) {
        mSupplicantState.setText("DISCONNECTED");
    } else if (SupplicantState.DORMANT.equals(supplicantState)) {
        mSupplicantState.setText("DORMANT");
    } else if (SupplicantState.GROUP_HANDSHAKE.equals(supplicantState)) {
        mSupplicantState.setText("GROUP HANDSHAKE");
    } else if (SupplicantState.INACTIVE.equals(supplicantState)) {
        mSupplicantState.setText("INACTIVE");
    } else if (SupplicantState.INVALID.equals(supplicantState)) {
        mSupplicantState.setText("INVALID");
    } else if (SupplicantState.SCANNING.equals(supplicantState)) {
        mSupplicantState.setText("SCANNING");
    } else if (SupplicantState.UNINITIALIZED.equals(supplicantState)) {
        mSupplicantState.setText("UNINITIALIZED");
    } else {/*from w w w .ja v a 2 s  . co m*/
        mSupplicantState.setText("BAD");
        Log.e(TAG, "supplicant state is bad");
    }
}