public class DcAsyncChannel extends AsyncChannel
Modifier and Type | Class and Description |
---|---|
static class |
DcAsyncChannel.LinkPropertyChangeAction
enum used to notify action taken or necessary to be
taken after the link property is changed.
|
Modifier and Type | Field and Description |
---|---|
static int |
BASE |
static int |
REQ_GET_APNSETTING |
static int |
REQ_GET_CID |
static int |
REQ_GET_LINK_PROPERTIES |
static int |
REQ_GET_NETWORK_CAPABILITIES |
static int |
REQ_IS_INACTIVE |
static int |
REQ_RESET |
static int |
REQ_SET_LINK_PROPERTIES_HTTP_PROXY |
static int |
RSP_GET_APNSETTING |
static int |
RSP_GET_CID |
static int |
RSP_GET_LINK_PROPERTIES |
static int |
RSP_GET_NETWORK_CAPABILITIES |
static int |
RSP_IS_INACTIVE |
static int |
RSP_RESET |
static int |
RSP_SET_LINK_PROPERTIES_HTTP_PROXY |
CMD_CHANNEL_DISCONNECT, CMD_CHANNEL_DISCONNECTED, CMD_CHANNEL_FULL_CONNECTION, CMD_CHANNEL_FULLY_CONNECTED, CMD_CHANNEL_HALF_CONNECTED, STATUS_BINDING_UNSUCCESSFUL, STATUS_FULL_CONNECTION_REFUSED_ALREADY_CONNECTED, STATUS_REMOTE_DISCONNECTION, STATUS_SEND_UNSUCCESSFUL, STATUS_SUCCESSFUL
Constructor and Description |
---|
DcAsyncChannel(DataConnection dc,
String logTag) |
Modifier and Type | Method and Description |
---|---|
void |
bringUp(ApnContext apnContext,
int profileId,
int rilRadioTechnology,
Message onCompletedMsg,
int connectionGeneration)
Bring up a connection to the apn and return an AsyncResult in onCompletedMsg.
|
protected static String |
cmdToString(int cmd) |
ApnSetting |
getApnSettingSync()
Get the connections ApnSetting.
|
int |
getCidSync() |
int |
getDataConnectionIdSync() |
LinkProperties |
getLinkPropertiesSync()
Get the connections LinkProperties.
|
NetworkCapabilities |
getNetworkCapabilitiesSync()
Get the connections NetworkCapabilities.
|
String[] |
getPcscfAddr() |
boolean |
isInactiveSync() |
void |
reqApnSetting()
Request the connections ApnSetting.
|
void |
reqCid()
Request the Connection ID.
|
void |
reqIsInactive()
Request if the state machine is in the inactive state.
|
void |
reqLinkProperties()
Request the connections LinkProperties.
|
void |
reqNetworkCapabilities()
Request the connections NetworkCapabilities.
|
void |
reqReset()
Response RSP_RESET when complete
|
void |
reqSetLinkPropertiesHttpProxy(ProxyInfo proxy)
Request setting the connections LinkProperties.HttpProxy.
|
ApnSetting |
rspApnSetting(Message response)
Evaluate a RSP_APN_SETTING message and return the ApnSetting.
|
int |
rspCid(Message response)
Evaluate a RSP_GET_CID message and return the cid.
|
boolean |
rspIsInactive(Message response)
Evaluate RSP_IS_INACTIVE.
|
LinkProperties |
rspLinkProperties(Message response)
Evaluate RSP_GET_LINK_PROPERTIES
|
NetworkCapabilities |
rspNetworkCapabilities(Message response)
Evaluate RSP_GET_NETWORK_CAPABILITIES
|
void |
setLinkPropertiesHttpProxySync(ProxyInfo proxy)
Set the connections LinkProperties.HttpProxy
|
void |
tearDown(ApnContext apnContext,
String reason,
Message onCompletedMsg)
Tear down the connection through the apn on the network.
|
void |
tearDownAll(String reason,
Message onCompletedMsg)
Tear down the connection through the apn on the network.
|
String |
toString()
Returns a string representation of the object.
|
connect, connect, connect, connect, connect, connected, connectSrcHandlerToPackageSync, connectSync, connectSync, disconnect, disconnected, fullyConnectSync, replyToMessage, replyToMessage, replyToMessage, replyToMessage, replyToMessage, replyToMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessageSynchronously, sendMessageSynchronously, sendMessageSynchronously, sendMessageSynchronously, sendMessageSynchronously, sendMessageSynchronously
public static final int BASE
public static final int REQ_IS_INACTIVE
public static final int RSP_IS_INACTIVE
public static final int REQ_GET_CID
public static final int RSP_GET_CID
public static final int REQ_GET_APNSETTING
public static final int RSP_GET_APNSETTING
public static final int REQ_GET_LINK_PROPERTIES
public static final int RSP_GET_LINK_PROPERTIES
public static final int REQ_SET_LINK_PROPERTIES_HTTP_PROXY
public static final int RSP_SET_LINK_PROPERTIES_HTTP_PROXY
public static final int REQ_GET_NETWORK_CAPABILITIES
public static final int RSP_GET_NETWORK_CAPABILITIES
public static final int REQ_RESET
public static final int RSP_RESET
public DcAsyncChannel(DataConnection dc, String logTag)
protected static String cmdToString(int cmd)
public void reqIsInactive()
rspIsInactive(android.os.Message)
public boolean rspIsInactive(Message response)
public boolean isInactiveSync()
public void reqCid()
rspCid(android.os.Message)
public int rspCid(Message response)
response
- Messagepublic int getCidSync()
public void reqApnSetting()
rspApnSetting(android.os.Message)
public ApnSetting rspApnSetting(Message response)
response
- Messagepublic ApnSetting getApnSettingSync()
public void reqLinkProperties()
rspLinkProperties(android.os.Message)
public LinkProperties rspLinkProperties(Message response)
response
- public LinkProperties getLinkPropertiesSync()
public void reqSetLinkPropertiesHttpProxy(ProxyInfo proxy)
public void setLinkPropertiesHttpProxySync(ProxyInfo proxy)
public void reqNetworkCapabilities()
rspNetworkCapabilities(android.os.Message)
public NetworkCapabilities rspNetworkCapabilities(Message response)
response
- public NetworkCapabilities getNetworkCapabilitiesSync()
public void reqReset()
public void bringUp(ApnContext apnContext, int profileId, int rilRadioTechnology, Message onCompletedMsg, int connectionGeneration)
apnContext
- is the Access Point Name to bring up a connection toprofileId
- for the connecitononCompletedMsg
- is sent with its msg.obj as an AsyncResult object.
With AsyncResult.userObj set to the original msg.obj,
AsyncResult.result = FailCause and AsyncResult.exception = Exception().public void tearDown(ApnContext apnContext, String reason, Message onCompletedMsg)
onCompletedMsg
- is sent with its msg.obj as an AsyncResult object.
With AsyncResult.userObj set to the original msg.obj.public void tearDownAll(String reason, Message onCompletedMsg)
onCompletedMsg
- is sent with its msg.obj as an AsyncResult object.
With AsyncResult.userObj set to the original msg.obj.public int getDataConnectionIdSync()
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public String[] getPcscfAddr()