public class DataConnection extends StateMachine
DataConnectionTracker
.
NOTE: All DataConnection objects must be running on the same looper, which is the default
as the coordinator has members which are used without synchronization.Modifier and Type | Class and Description |
---|---|
static class |
DataConnection.ConnectionParams
Used internally for saving connecting parameters.
|
static class |
DataConnection.DisconnectParams
Used internally for saving disconnecting parameters.
|
static class |
DataConnection.UpdateLinkPropertyResult |
StateMachine.LogRec
Modifier and Type | Field and Description |
---|---|
HashMap<ApnContext,DataConnection.ConnectionParams> |
mApnContexts |
int |
mCid |
protected String[] |
mPcscfAddr |
HANDLED, NOT_HANDLED
Modifier and Type | Method and Description |
---|---|
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args)
Dump the current state.
|
int |
getDataConnectionId()
Get the DataConnection ID
|
protected String |
getWhatToString(int what) |
boolean |
isIpv4Connected() |
boolean |
isIpv6Connected() |
protected void |
log(String s)
Log with debug
|
protected void |
logd(String s)
Log with debug attribute
|
protected void |
loge(String s)
Log with error attribute
|
protected void |
loge(String s,
Throwable e)
Log with error attribute
|
protected void |
logi(String s)
Log with info attribute
|
protected void |
logv(String s)
Log with verbose attribute
|
protected void |
logw(String s)
Log with warning attribute
|
static DataConnection |
makeDataConnection(Phone phone,
int id,
DcTracker dct,
DcTesterFailBringUpAll failBringUpAll,
DcController dcc)
Create the connection object
|
String |
toString()
Returns a string representation of the object.
|
String |
toStringSimple()
Doesn't print mApnList of ApnContext's which would be recursive
|
DataConnection.UpdateLinkPropertyResult |
updateLinkProperty(DataCallResponse newState) |
addLogRec, addState, addState, copyLogRecs, deferMessage, getCurrentMessage, getCurrentState, getHandler, getLogRec, getLogRecCount, getLogRecSize, getLogRecString, getName, haltedProcessMessage, hasDeferredMessages, hasMessages, isDbg, isQuit, logAndAddLogRec, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, onHalting, onPostHandleMessage, onPreHandleMessage, onQuitting, quit, quitNow, recordLogRec, removeDeferredMessages, removeMessages, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtFrontOfQueue, sendMessageAtFrontOfQueue, sendMessageAtFrontOfQueue, sendMessageAtFrontOfQueue, sendMessageAtFrontOfQueue, sendMessageDelayed, sendMessageDelayed, sendMessageDelayed, sendMessageDelayed, sendMessageDelayed, sendMessageDelayed, setDbg, setInitialState, setLogOnlyTransitions, setLogRecSize, start, transitionTo, transitionToHaltingState, unhandledMessage
protected String[] mPcscfAddr
public int mCid
public HashMap<ApnContext,DataConnection.ConnectionParams> mApnContexts
public static DataConnection makeDataConnection(Phone phone, int id, DcTracker dct, DcTesterFailBringUpAll failBringUpAll, DcController dcc)
phone
- the Phoneid
- the connection idpublic boolean isIpv4Connected()
public boolean isIpv6Connected()
public DataConnection.UpdateLinkPropertyResult updateLinkProperty(DataCallResponse newState)
public int getDataConnectionId()
protected String getWhatToString(int what)
getWhatToString
in class StateMachine
protected void log(String s)
log
in class StateMachine
s
- is string logprotected void logd(String s)
logd
in class StateMachine
s
- is string logprotected void logv(String s)
logv
in class StateMachine
s
- is string logprotected void logi(String s)
logi
in class StateMachine
s
- is string logprotected void logw(String s)
logw
in class StateMachine
s
- is string logprotected void loge(String s)
loge
in class StateMachine
s
- is string logprotected void loge(String s, Throwable e)
loge
in class StateMachine
s
- is string loge
- is a Throwable which logs additional information.public String toStringSimple()
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())
toString
in class StateMachine
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)
dump
in class StateMachine
fd
- pw
- args
-