Android Open Source - chaski Chaski Constants






From Project

Back to project page chaski.

License

The source code is released under:

Apache License

If you think the Android project chaski listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package chaski.api;
//ww w.java  2 s  .c o  m
public interface ChaskiConstants {    
  
    /**
     * Used as action indicators for changed access point state
     */
    public static final String AP_STATE_ACTION = "chaski.api.wifi.ap.STATE";
    
    /**
     * Key to retrieve the state of a WiFi access point
     */
    public static final String AP_STATE = "apstate";  
        
    /**
     * State in which a WiFi access point is disabled
     * Usage requires modulo 10 to avoid problems since constants values changed in Android 4.0.
     * Normally 1 but since 4.0 it is 11
     */
    public static final int AP_STATE_DISABLED = 1; 
    
    /**
     * State in which a WiFi access point is enabled
     * Usage requires modulo 10 to avoid problems since constants values changed in Android 4.0.
     * Normally 3 but since it is 4.0 it is 13
     */ 
    public static final int AP_STATE_ENABLED = 3; 
    
    /**
     * Used as action indicators for changed access point connection states
     */
    public static final String CONNECTION_STATE_ACTION = "chaski.api.wifi.connection.STATE";
    
    /**
     * Key to retrieve the connection state of a Wi-Fi station
     */
    public static final String CONNECTION_STATE = "connectionState";
    
    /**
     *  State in which a WiFi station is disconnected
     */
    public static final int DISCONNECTED_STATE = 51;
    
    /**
     * State in which a WiFi station is connected
     */
    public static final int CONNECTED_STATE = 52; 
    
    /**
     * State in which the connection of a WiFi station is an erroneous state
     */
    public static final int CONNECTION_ERROR_STATE = 53; 
    
    /**
     * Key to retrieve connected WiFi stations to a WiFi access points
     */
    public static final String KEY_CLIENTS = "KEY_CLIENTS";
    
    /**
     * Key for retrieving array of IP addresses of clients
     */
    public static final String KEY_STRING_ARRAY_OF_CLIENTS = "KEY_STRING_ARRAY_OF_CLIENTS_CONNECTED";
    
    /**
     * Key to retrieve a value, which has originally been passed as an input parameter for a method that sends the broadcast containing this value.
     */
    public static final String KEY_OPERATION_STRING = "KEY_OPERATION_STRING";
    
    /**
     * Key for messages related to unsuccessful connection trials
     */
    public static final String KEY_CONNECTION_ERROR_DIAGNOSE = "KEY_CONNECTION_ERROR_DIAGNOSE";
    
    /**
     * Network name of connected access point
     */
    public static final String KEY_SSID = "CONNECTED_SSID";

    /**
     * Used as action indicators for client related action
     */
    public static final String CLIENTS_STATE_ACTION = "chaski.api.wifi.conneciton.CLIENTS";

    /**
     * Key to retrieve IP address
     */
    public static final String KEY_IP_ADDRESS = "KEY_IP_ADDRESS";;
  
}




Java Source Code List

chaski.api.ChaskiConstants.java
chaski.api.ChaskiService.java
chaski.api.IChaskiService.java
chaski.api.util.Util.java
chaski.api.util.networking.ConnectToSSIDRunnable.java
chaski.api.util.networking.ConnectionsCacheHelper.java