public class

Wimax4GManager

extends FourGManager
java.lang.Object
   ↳ com.htc.net.FourG.FourGManager
     ↳ com.htc.net.wimax.Wimax4GManager
Known Direct Subclasses

Class Overview

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:

  • The list of configured networks. The list can be viewed and updated, and attributes of individual entries can be modified.
  • The currently active Wimax network, if any. Connectivity can be established or torn down, and dynamic information about the state of the network can be queried.
  • Results of access point scans, containing enough information to make decisions about what access point to connect to.
  • It defines the names of various Intent actions that are broadcast upon any sort of change in Wimax state.
This is the API to use when performing Wimax specific operations. To perform operations that pertain to network connectivity at an abstract level, use ConnectivityManager.

Summary

Nested Classes
class Wimax4GManager.WimaxConnectionStatistics This class provides access to certain WiMAX radio technology-specific connection related information related to the current overall performance data communications between the Mobile Station and the serving Base Station. 
class Wimax4GManager.WimaxQosServiceFlowControl This class provides access to and control of the potential QoS service flows between the Mobile Station and the serving Base Station. 
[Expand]
Inherited Constants
From class com.htc.net.FourG.FourGManager
Fields
protected final Handler mHandler
protected final IWimaxController mService
[Expand]
Inherited Fields
From class com.htc.net.FourG.FourGManager
Public Constructors
Wimax4GManager(IWimaxController service, Handler handler)
Public Methods
int addNetwork(FourGConfiguration config)
Add a network description to the set of configured networks.
FourGManager.ConnectionStatistics createConnectionStatistics()
Get the upload/download statistics object for the current connection session.
FourGManager.QosServiceFlowControl createQosServiceFlowControl()
Create a new QoS control object for the 4G radio subsystem.
boolean disableNetwork(int netId)
The specified network will not be candidate for MS association/connection.
boolean disconnect()
Disassociate from the connected network and go to disconnected state.
void enableLogLevel(int logLevel)
enable wimax log level
boolean enableNetwork(int netId, boolean disableOthers)
Allow a previously configured network to be associated with.
List<FourGConfiguration> getAvailableNetworks()
Return the available networks to connect.
List<FourGConfiguration> getConfiguredDefaultNetworks()
Return a list of only those networks configured in the supplicant via means outside of this API, e.g.
List<FourGConfiguration> getConfiguredNetworks()
Return a list of al the networks configured in the supplicant.
FourGInfo getConnectionInfo()
Get the information about the currently connected network and base station, if any.
DeviceInfo getDeviceInformation()
Get the information about the 4G radio device on the system.
DhcpInfo getDhcpInfo()
Return the DHCP-assigned addresses from the last successful DHCP request, if any.
List<FourGBaseStationInfo> getScanResults()
Return the list of base stations from either the latest API initiated network scan and as may have been gathered as the result of other implementation-interanl, network management operations.
int getScanResultsAge()
Returns number of milliseconds since the base station scan list available from getScanResults() was last compiled.
boolean reassociate()
Reconnect to the currently active network, even if we are already connected.
boolean reconnect()
Reconnect to the currently active network, even if we are currently disconnected.
boolean removeNetwork(int netId)
Remove the specified network from the list of configured networks.
boolean saveConfiguration()
Tell the supplicant to persist the current list of configured networks, configured with this API.
boolean set4GEnabled(boolean enabled)
Turns the 4G radio on or off.
boolean updateNetwork(FourGConfiguration config)
Update the network description of an existing configured network.
[Expand]
Inherited Methods
From class com.htc.net.FourG.FourGManager
From class java.lang.Object

Fields

protected final Handler mHandler

protected final IWimaxController mService

Public Constructors

public Wimax4GManager (IWimaxController service, Handler handler)

Public Methods

public int addNetwork (FourGConfiguration config)

Add a network description to the set of configured networks.

public FourGManager.ConnectionStatistics createConnectionStatistics ()

Get the upload/download statistics object for the current connection session.

public FourGManager.QosServiceFlowControl createQosServiceFlowControl ()

Create a new QoS control object for the 4G radio subsystem. This control object allows applications to submit QoS Service Flow descriptors (QosServiceFlowDescriptor) tp the implementation for realization service flows between the MS and BS on the 4G RAN.

public boolean disableNetwork (int netId)

The specified network will not be candidate for MS association/connection. Returns true if successful and false otherwise.

public boolean disconnect ()

Disassociate from the connected network and go to disconnected state. Returns true if successful and false otherwise.

public void enableLogLevel (int logLevel)

enable wimax log level

public boolean enableNetwork (int netId, boolean disableOthers)

Allow a previously configured network to be associated with. If disableOthers is true, then all other configured networks are dsiabled, and an attempt to connect to the selected network is initiated.

public List<FourGConfiguration> getAvailableNetworks ()

Return the available networks to connect. This is a list of all networks that are currently "seen" by the MS.

public List<FourGConfiguration> getConfiguredDefaultNetworks ()

Return a list of only those networks configured in the supplicant via means outside of this API, e.g. OMA_DM, etc. This allows for the display and potential user experience to select and connect to the default or other pre-configured networks. The networkId data of these preconfigured networks and the networkId of any API configured networks are all part of a single number space. Not all fields of FourGConfiguration are returned, Only the following fields are filled in: networked status

public List<FourGConfiguration> getConfiguredNetworks ()

Return a list of al the networks configured in the supplicant. Not all fields of FourGConfiguration are returned, Only the following fields are filled in: networked status

public FourGInfo getConnectionInfo ()

Get the information about the currently connected network and base station, if any.

public DeviceInfo getDeviceInformation ()

Get the information about the 4G radio device on the system.

public DhcpInfo getDhcpInfo ()

Return the DHCP-assigned addresses from the last successful DHCP request, if any.

public List<FourGBaseStationInfo> getScanResults ()

Return the list of base stations from either the latest API initiated network scan and as may have been gathered as the result of other implementation-interanl, network management operations.

public int getScanResultsAge ()

Returns number of milliseconds since the base station scan list available from getScanResults() was last compiled. In certain situations, e.g. where no List has yet been compiled at device power-on, the value Integer.MAX_VALUE is returned.

public boolean reassociate ()

Reconnect to the currently active network, even if we are already connected.

public boolean reconnect ()

Reconnect to the currently active network, even if we are currently disconnected.

public boolean removeNetwork (int netId)

Remove the specified network from the list of configured networks.

public boolean saveConfiguration ()

Tell the supplicant to persist the current list of configured networks, configured with this API.

public boolean set4GEnabled (boolean enabled)

Turns the 4G radio on or off.

public boolean updateNetwork (FourGConfiguration config)

Update the network description of an existing configured network. The parameter config is the set of variables that describe the configuration, contained in a FourGConfiguration object. config may be sparse, so that only the items that are being changed are non-null. The networkId field must be set to the ID of the existing network being updated.