java.lang.Object | |
↳ | com.htc.net.wimax.WimaxController |
This class provides the primary API for managing all aspects of Wimax
connectivity. Get an instance of this class by calling
Context.getSystemService(Context.WIMAX_SERVICE)
.
It deals with several categories of items:
ConnectivityManager
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WimaxController.WimaxLock | Return dynamic information about the current Wimax connection, if any is active. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | AUTH_NAI_REJECTED_ACTION | ||||||||||
String | AUTH_STATE_FAIL_ACTION | ||||||||||
String | CURRENT_WIMAX_ENABLED_STATE | The lookup key for an int that indicates whether Wimax is enabled, disabled, enabling, disabling, or unknown. | |||||||||
int | ERROR_AUTHENTICATING | The error code if there was a problem authenticating. | |||||||||
String | EXTRA_NAPID | The lookup key for a String giving the NAPID of the NAP to which we are connected. | |||||||||
String | EXTRA_NETWORK_INFO | The lookup key for a NetworkInfo object associated with the
Wimax network. |
|||||||||
String | EXTRA_NEW_RSSI_LEVEL | The lookup key for an int giving the new RSSI level from 0 to 3. |
|||||||||
String | EXTRA_NEW_STATE | The lookup key for a SsState describing the new state
Retrieve with
getParcelableExtra(String) . |
|||||||||
String | EXTRA_NSPID | The lookup key for a String giving the NSPID of the NSP to which we are connected. | |||||||||
String | EXTRA_WXCM_CONNECTED | The lookup key for a boolean that indicates whether a connection to the wxcm daemon has been gained or lost. | |||||||||
String | NETWORK_IDS_CHANGED_ACTION | The network IDs of the configured networks could have changed. | |||||||||
String | NETWORK_STATE_CHANGED_ACTION | Broadcast intent action indicating that the state of Wimax connectivity has changed. | |||||||||
String | ON_BACKOFF_STATE_ACTION | ||||||||||
String | PICK_WIMAX_NETWORK_ACTION | Activity Action: Pick a Wimax network to connect to. | |||||||||
String | PREVIOUS_WIMAX_ENABLED_STATE | The previous Wimax state. | |||||||||
String | RSSI_CHANGED_ACTION | The RSSI (signal strength) has changed. | |||||||||
int | RSSI_LEVEL | Convert RSSI to number of levels. | |||||||||
String | SCAN_RESULTS_AVAILABLE_ACTION | An NAP and NSP scan has completed, and results are available from the wxcm. | |||||||||
String | WIMAX_ENABLED_CHANGED_ACTION | Broadcast intent action indicating that Wimax has been enabled, disabled, enabling, disabling, or unknown. | |||||||||
int | WIMAX_ENABLED_STATE_DISABLED | Wimax is disabled. | |||||||||
int | WIMAX_ENABLED_STATE_DISABLING | Wimax is currently being disabled. | |||||||||
int | WIMAX_ENABLED_STATE_ENABLED | Wimax is enabled. | |||||||||
int | WIMAX_ENABLED_STATE_ENABLING | Wimax is currently being enabled. | |||||||||
int | WIMAX_ENABLED_STATE_UNKNOWN | Wimax is in an unknown state. | |||||||||
String | WXCM_CONNECTION_CHANGE_ACTION | Broadcast intent action indicating that a connection to the wxcm has been established (and it is now possible to perform Wimax operations) or the connection to the wxcm has been lost. | |||||||||
String | WXCM_ERROR_ACTION | The lookup key for a SsState describing the wxcm
error code if any
Retrieve with
getIntExtra(String, int) . |
|||||||||
String | WXCM_STATE_CHANGED_ACTION | Broadcast intent action indicating that the state of establishing a connection to an access point has changed.One extra provides the new SsState. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Calculates the level of the signal.
| |||||||||||
set config about network discovery and selection
| |||||||||||
Gets the Wimax enabled state.
| |||||||||||
Return whether Wimax is enabled or disabled.
| |||||||||||
start the radio interface of this SS
| |||||||||||
Enable or disable Wimax daemon and SS
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The lookup key for an int that indicates whether Wimax is enabled,
disabled, enabling, disabling, or unknown. Retrieve it with
getIntExtra(String, int)
.
The error code if there was a problem authenticating.
The lookup key for a String giving the NAPID of the NAP to which
we are connected. Only present when the new state is CONNECTED.
Retrieve with
getStringExtra(String)
.
The lookup key for a NetworkInfo
object associated with the
Wimax network. Retrieve with
getParcelableExtra(String)
.
The lookup key for an int
giving the new RSSI level from 0 to 3.
The lookup key for a SsState describing the new state
Retrieve with
getParcelableExtra(String)
.
The lookup key for a String giving the NSPID of the NSP to which
we are connected. Only present when the new state is CONNECTED.
Retrieve with
getStringExtra(String)
.
The lookup key for a boolean that indicates whether a connection to
the wxcm daemon has been gained or lost. true
means
a connection now exists.
Retrieve it with getBooleanExtra(String, boolean)
.
The network IDs of the configured networks could have changed.
Broadcast intent action indicating that the state of Wimax connectivity
has changed. One extra provides the new state
in the form of a NetworkInfo
object. If the new state is
CONNECTED, a second extra may provide the BSSID of the access point,
as a String
.
Activity Action: Pick a Wimax network to connect to.
Input: Nothing.
Output: Nothing.
The previous Wimax state.
The RSSI (signal strength) has changed.
Convert RSSI to number of levels.
An NAP and NSP scan has completed, and results are available from the wxcm. Call #ndssGetScanResults() to obtain the results.
Broadcast intent action indicating that Wimax has been enabled, disabled, enabling, disabling, or unknown. One extra provides this state as an int. Another extra provides the previous state, if available.
CURRENT_WIMAX_ENABLED_STATE
Wimax is disabled.
Wimax is currently being disabled. The state will change to WIMAX_ENABLED_STATE_DISABLED
if
it finishes successfully.
Wimax is enabled.
Wimax is currently being enabled. The state will change to WIMAX_ENABLED_STATE_ENABLED
if
it finishes successfully.
Wimax is in an unknown state. This state will occur when an error happens while enabling or disabling.
Broadcast intent action indicating that a connection to the wxcm has
been established (and it is now possible
to perform Wimax operations) or the connection to the wxcm has been
lost. One extra provides the connection state as a boolean, where true
means CONNECTED.
The lookup key for a SsState describing the wxcm
error code if any
Retrieve with
getIntExtra(String, int)
.
Broadcast intent action indicating that the state of establishing a connection to an access point has changed.One extra provides the new SsState. Note that the wxcm state is Wimax specific, and is not generally the most useful thing to look at if you are just interested in the overall state of connectivity.
EXTRA_NEW_STATE
Calculates the level of the signal. This should be used any time a signal is being shown.
set config about network discovery and selection
Return whether Wimax is enabled or disabled.
true
if Wimax is enabledstart the radio interface of this SS
Enable or disable Wimax daemon and SS