static final int BASE = Protocol.BASE_WIFI;-------------------------------------------------------------------------
131072
/* Start the supplicant */
static final int CMD_START_SUPPLICANT = BASE + 11;---------------------------------------------
131083
/* Stop the supplicant */
static final int CMD_STOP_SUPPLICANT = BASE + 12; ---------------------------------------------
131084
/* Start the driver */
static final int CMD_START_DRIVER = BASE + 13; ---------------------------------------------
131085
/* Stop the driver */
static final int CMD_STOP_DRIVER = BASE + 14; ---------------------------------------------
131086
/* Indicates Static IP succeeded */
static final int CMD_STATIC_IP_SUCCESS = BASE + 15;---------------------------------------------
131087
/* Indicates Static IP failed */
static final int CMD_STATIC_IP_FAILURE = BASE + 16; ---------------------------------------------
131088
/* Indicates supplicant stop failed */
static final int CMD_STOP_SUPPLICANT_FAILED = BASE + 17;------------------------------------------
131089
/* Delayed stop to avoid shutting down driver too quick*/
static final int CMD_DELAYED_STOP_DRIVER = BASE + 18; -------------------------------------------
131090
/* A delayed message sent to start driver when it fail to come up */
static final int CMD_DRIVER_START_TIMED_OUT = BASE + 19;-----------------------------------------
131091
/* Ready to switch to network as default */
static final int CMD_CAPTIVE_CHECK_COMPLETE = BASE + 20;-----------------------------------------
131092
/* Start the soft access point */
static final int CMD_START_AP = BASE + 21; -------------------------------------------
131093
/* Indicates soft ap start succeeded */
static final int CMD_START_AP_SUCCESS = BASE + 22; ------------------------------------------
131094
/* Indicates soft ap start failed */
static final int CMD_START_AP_FAILURE = BASE + 23; -------------------------------------------
131095
/* Stop the soft access point */
static final int CMD_STOP_AP = BASE + 24; --------------------------------------- ---
131096
/* Set the soft access point configuration */
static final int CMD_SET_AP_CONFIG = BASE + 25;
/* Soft access point configuration set completed */
static final int CMD_SET_AP_CONFIG_COMPLETED = BASE + 26; -------------------------------------- --
131098
/* Request the soft access point configuration */
static final int CMD_REQUEST_AP_CONFIG = BASE + 27;
/* Response to access point configuration request */
static final int CMD_RESPONSE_AP_CONFIG = BASE + 28;
/* Invoked when getting a tether state change notification */
static final int CMD_TETHER_STATE_CHANGE = BASE + 29; -------------------------------------
131101
/* A delayed message sent to indicate tether state change failed to arrive */
static final int CMD_TETHER_NOTIFICATION_TIMED_OUT = BASE + 30; -------------------------------------
131102
static final int CMD_BLUETOOTH_ADAPTER_STATE_CHANGE = BASE + 31; -----------------------------------
131103
/* Supplicant commands */
/* Is supplicant alive ? */
static final int CMD_PING_SUPPLICANT = BASE + 51; ------------------------------------
131123
/* Add/update a network configuration */
static final int CMD_ADD_OR_UPDATE_NETWORK = BASE + 52; ------------------------------------
131124
/* Delete a network */
static final int CMD_REMOVE_NETWORK = BASE + 53; -----------------------------------
131125
/* Enable a network. The device will attempt a connection to the given network. */
static final int CMD_ENABLE_NETWORK = BASE + 54; ------------------------------------
131126
/* Enable all networks */
static final int CMD_ENABLE_ALL_NETWORKS = BASE + 55;
/* Blacklist network. De-prioritizes the given BSSID for connection. */
static final int CMD_BLACKLIST_NETWORK = BASE + 56;
/* Clear the blacklist network list */
static final int CMD_CLEAR_BLACKLIST = BASE + 57;
/* Save configuration */
static final int CMD_SAVE_CONFIG = BASE + 58;
/* Get configured networks*/
static final int CMD_GET_CONFIGURED_NETWORKS = BASE + 59;
------------------------------------------131131
/* Supplicant commands after driver start*/
/* Initiate a scan */
static final int CMD_START_SCAN = BASE + 71;---------------------------------------------------
131143
/* Set operational mode. CONNECT, SCAN ONLY, SCAN_ONLY with Wi-Fi off mode */
static final int CMD_SET_OPERATIONAL_MODE = BASE + 72;
/* Disconnect from a network */
static final int CMD_DISCONNECT = BASE + 73;
/* Reconnect to a network */
static final int CMD_RECONNECT = BASE + 74;
/* Reassociate to a network */
static final int CMD_REASSOCIATE = BASE + 75;
/* Controls suspend mode optimizations
*
* When high perf mode is enabled, suspend mode optimizations are disabled
*
* When high perf mode is disabled, suspend mode optimizations are enabled
*
* Suspend mode optimizations include:
* - packet filtering
* - turn off roaming
* - DTIM wake up settings
*/
static final int CMD_SET_HIGH_PERF_MODE = BASE + 77;
/* Set the country code */
static final int CMD_SET_COUNTRY_CODE = BASE + 80;-------------------------------------------
131152
/* Enables RSSI poll */
static final int CMD_ENABLE_RSSI_POLL = BASE + 82;
/* RSSI poll */
static final int CMD_RSSI_POLL = BASE + 83;
--------------------------------------------------131155
/* Set up packet filtering */
static final int CMD_START_PACKET_FILTERING = BASE + 84;
/* Clear packet filter */
static final int CMD_STOP_PACKET_FILTERING = BASE + 85;
/* Enable suspend mode optimizations in the driver */
static final int CMD_SET_SUSPEND_OPT_ENABLED = BASE + 86;
/* When there are no saved networks, we do a periodic scan to notify user of
* an open network */
static final int CMD_NO_NETWORKS_PERIODIC_SCAN = BASE + 88;
/* arg1 values to CMD_STOP_PACKET_FILTERING and CMD_START_PACKET_FILTERING */
static final int MULTICAST_V6 = 1;
static final int MULTICAST_V4 = 0;
/* Set the frequency band */
static final int CMD_SET_FREQUENCY_BAND = BASE + 90; -------------------------------------------
131162
/* Enable background scan for configured networks */
static final int CMD_ENABLE_BACKGROUND_SCAN = BASE + 91;-----------------------------------------
131163
/* Commands from/to the SupplicantStateTracker */
/* Reset the supplicant state tracker */
static final int CMD_RESET_SUPPLICANT_STATE = BASE + 111; ---------------------------------------
131183
/* P2p commands */
/* We are ok with no response here since we wont do much with it anyway */
public static final int CMD_ENABLE_P2P = BASE + 131; ------------------------------------------
131203
/* In order to shut down supplicant cleanly, we wait till p2p has
* been disabled */
public static final int CMD_DISABLE_P2P_REQ = BASE + 132;
public static final int CMD_DISABLE_P2P_RSP = BASE + 133;
--------------------------------------For Android 4.3 And 4.4-----------------------------------------------------------
public static final int CMD_BOOT_COMPLETED = BASE + 134;
--------------------------------------For Android 4.3 And 4.4 ----------------------------------------------------------
------------------------------------For Android 4.4-----------------------------------------------------------------------------
/* An new IP address was added to our interface, or an existing IP address was updated */
static final int CMD_IP_ADDRESS_REMOVED = BASE + 141;-------------------------------------------
------------------------------------End For Android 4.4-----------------------------------------------------------------------------
-------------------------------For Android 4.4-----------------------------------------------------------
public static final int ASSOCIATION_REJECTION_EVENT = BASE + 43;
public static final int WIFI_DEVICE_ADDED_EVENT = BASE + 44;
public static final int WIFI_DEVICE_REMOVED_EVENT = BASE + 45;
--------------------------------End of 4.4----------------------------------------------------------------
private static final int BASE = Protocol.BASE_WIFI_P2P_MANAGER;-------------------------139264
/** @hide */
public static final int DISCOVER_PEERS = BASE + 1;---------139265
/** @hide */
public static final int DISCOVER_PEERS_FAILED = BASE + 2;
/** @hide */
public static final int DISCOVER_PEERS_SUCCEEDED = BASE + 3;
/** @hide */
public static final int STOP_DISCOVERY = BASE + 4;---------139268
/** @hide */
public static final int STOP_DISCOVERY_FAILED = BASE + 5;
/** @hide */
public static final int STOP_DISCOVERY_SUCCEEDED = BASE + 6;
/** @hide */
public static final int CONNECT = BASE + 7;
/** @hide */
public static final int CONNECT_FAILED = BASE + 8;
/** @hide */
public static final int CONNECT_SUCCEEDED = BASE + 9;
/** @hide */
public static final int CANCEL_CONNECT = BASE + 10;--------------139274
/** @hide */
public static final int CANCEL_CONNECT_FAILED = BASE + 11;
/** @hide */
public static final int CANCEL_CONNECT_SUCCEEDED = BASE + 12;
/** @hide */
public static final int CREATE_GROUP = BASE + 13;
/** @hide */
public static final int CREATE_GROUP_FAILED = BASE + 14;--------------139278
/** @hide */
public static final int CREATE_GROUP_SUCCEEDED = BASE + 15;
/** @hide */
public static final int REMOVE_GROUP = BASE + 16;--------------139280
/** @hide */
public static final int REMOVE_GROUP_FAILED = BASE + 17;
/** @hide */
public static final int REMOVE_GROUP_SUCCEEDED = BASE + 18;
/** @hide */
public static final int REQUEST_PEERS = BASE + 19;--------------139283
/** @hide */
public static final int RESPONSE_PEERS = BASE + 20;
/** @hide */
public static final int REQUEST_CONNECTION_INFO = BASE + 21;
/** @hide */
public static final int RESPONSE_CONNECTION_INFO = BASE + 22;
/** @hide */
public static final int REQUEST_GROUP_INFO = BASE + 23;--------------139287
/** @hide */
public static final int RESPONSE_GROUP_INFO = BASE + 24;
/** @hide */
public static final int ADD_LOCAL_SERVICE = BASE + 28;
/** @hide */
public static final int ADD_LOCAL_SERVICE_FAILED = BASE + 29;
/** @hide */
public static final int ADD_LOCAL_SERVICE_SUCCEEDED = BASE + 30;
/** @hide */
public static final int REMOVE_LOCAL_SERVICE = BASE + 31;
/** @hide */
public static final int REMOVE_LOCAL_SERVICE_FAILED = BASE + 32;
/** @hide */
public static final int REMOVE_LOCAL_SERVICE_SUCCEEDED = BASE + 33;-----------139297
/** @hide */
public static final int CLEAR_LOCAL_SERVICES = BASE + 34;
/** @hide */
public static final int CLEAR_LOCAL_SERVICES_FAILED = BASE + 35;
/** @hide */
public static final int CLEAR_LOCAL_SERVICES_SUCCEEDED = BASE + 36;
/** @hide */
public static final int ADD_SERVICE_REQUEST = BASE + 37;
/** @hide */
public static final int ADD_SERVICE_REQUEST_FAILED = BASE + 38;
/** @hide */
public static final int ADD_SERVICE_REQUEST_SUCCEEDED = BASE + 39;
/** @hide */
public static final int REMOVE_SERVICE_REQUEST = BASE + 40;
/** @hide */
public static final int REMOVE_SERVICE_REQUEST_FAILED = BASE + 41;
/** @hide */
public static final int REMOVE_SERVICE_REQUEST_SUCCEEDED = BASE + 42;
/** @hide */
public static final int CLEAR_SERVICE_REQUESTS = BASE + 43;------------139307
/** @hide */
public static final int CLEAR_SERVICE_REQUESTS_FAILED = BASE + 44;
/** @hide */
public static final int CLEAR_SERVICE_REQUESTS_SUCCEEDED = BASE + 45;
/** @hide */
public static final int DISCOVER_SERVICES = BASE + 46;
/** @hide */
public static final int DISCOVER_SERVICES_FAILED = BASE + 47;
/** @hide */
public static final int DISCOVER_SERVICES_SUCCEEDED = BASE + 48;
/** @hide */
public static final int PING = BASE + 49;
/** @hide */
public static final int RESPONSE_SERVICE = BASE + 50;
/** @hide */
public static final int SET_DEVICE_NAME = BASE + 51;----------139315
/** @hide */
public static final int SET_DEVICE_NAME_FAILED = BASE + 52;
/** @hide */
public static final int SET_DEVICE_NAME_SUCCEEDED = BASE + 53;
/** @hide */
public static final int DELETE_PERSISTENT_GROUP = BASE + 54;
/** @hide */
public static final int DELETE_PERSISTENT_GROUP_FAILED = BASE + 55;
/** @hide */
public static final int DELETE_PERSISTENT_GROUP_SUCCEEDED = BASE + 56;
/** @hide */
public static final int REQUEST_PERSISTENT_GROUP_INFO = BASE + 57;
/** @hide */
public static final int RESPONSE_PERSISTENT_GROUP_INFO = BASE + 58;
/** @hide */
public static final int SET_WFD_INFO = BASE + 59;
/** @hide */
public static final int SET_WFD_INFO_FAILED = BASE + 60;
/** @hide */
public static final int SET_WFD_INFO_SUCCEEDED = BASE + 61;
/** @hide */
public static final int START_WPS = BASE + 62;
/** @hide */
public static final int START_WPS_FAILED = BASE + 63;
/** @hide */
public static final int START_WPS_SUCCEEDED = BASE + 64;
// MStar Android Patch Begin
/** @hide */
public static String MIRACAST_RX_CONNECTION_ENABLE = "Miracast_Rx_Connection_Enable";
/** @hide */
public static String MIRACAST_RX_CONNECTION_DISABLE = "Miracast_Rx_Connection_Disable";
// MStar Android Patch End
private static final int BASE = Protocol.BASE_WIFI_P2P_SERVICE;
/* Delayed message to timeout group creation */
public static final int GROUP_CREATING_TIMED_OUT = BASE + 1;
/* User accepted a peer request */
private static final int PEER_CONNECTION_USER_ACCEPT = BASE + 2;-----------------------143362
/* User rejected a peer request */
private static final int PEER_CONNECTION_USER_REJECT = BASE + 3;
/* User wants to disconnect wifi in favour of p2p */
private static final int DROP_WIFI_USER_ACCEPT = BASE + 4;
/* User wants to keep his wifi connection and drop p2p */
private static final int DROP_WIFI_USER_REJECT = BASE + 5;
/* Delayed message to timeout p2p disable */
public static final int DISABLE_P2P_TIMED_OUT = BASE + 6;
/* Commands to the WifiStateMachine */
public static final int P2P_CONNECTION_CHANGED = BASE + 11;
/* These commands are used to temporarily disconnect wifi when we detect
* a frequency conflict which would make it impossible to have with p2p
* and wifi active at the same time.
*
* If the user chooses to disable wifi temporarily, we keep wifi disconnected
* until the p2p connection is done and terminated at which point we will
* bring back wifi up
*
* DISCONNECT_WIFI_REQUEST
* msg.arg1 = 1 enables temporary disconnect and 0 disables it.
*/
public static final int DISCONNECT_WIFI_REQUEST = BASE + 12;
public static final int DISCONNECT_WIFI_RESPONSE = BASE + 13;
public static final int SET_MIRACAST_MODE = BASE + 14;--------------------143374
// During dhcp (and perhaps other times) we can't afford to drop packets
// but Discovery will switch our channel enough we will.
// msg.arg1 = ENABLED for blocking, DISABLED for resumed.
// msg.arg2 = msg to send when blocked
// msg.obj = StateMachine to send to when blocked
public static final int BLOCK_DISCOVERY = BASE + 15;