Methods Summary |
---|
protected static java.lang.String | cmdToString(int cmd)
cmd -= BASE;
if ((cmd >= 0) && (cmd < sCmdToString.length)) {
return sCmdToString[cmd];
} else {
return AsyncChannel.cmdToString(cmd + BASE);
}
|
public int | connectSync(com.android.internal.telephony.dataconnection.DcSwitchAsyncChannel$RequestInfo apnRequest)
Message response = sendMessageSynchronously(REQ_CONNECT, apnRequest);
if ((response != null) && (response.what == RSP_CONNECT)) {
return rspConnect(response);
} else {
if (DBG) log("rspConnect error response=" + response);
return PhoneConstants.APN_REQUEST_FAILED;
}
|
public int | disconnectAllSync()
Message response = sendMessageSynchronously(REQ_DISCONNECT_ALL);
if ((response != null) && (response.what == RSP_DISCONNECT_ALL)) {
return rspDisconnectAll(response);
} else {
if (DBG) log("rspDisconnectAll error response=" + response);
return PhoneConstants.APN_REQUEST_FAILED;
}
|
public int | disconnectSync(com.android.internal.telephony.dataconnection.DcSwitchAsyncChannel$RequestInfo apnRequest)
Message response = sendMessageSynchronously(REQ_DISCONNECT, apnRequest);
if ((response != null) && (response.what == RSP_DISCONNECT)) {
return rspDisconnect(response);
} else {
if (DBG) log("rspDisconnect error response=" + response);
return PhoneConstants.APN_REQUEST_FAILED;
}
|
public boolean | isIdleOrDetachingSync()
Message response = sendMessageSynchronously(REQ_IS_IDLE_OR_DETACHING_STATE);
if ((response != null) && (response.what == RSP_IS_IDLE_OR_DETACHING_STATE)) {
return rspIsIdleOrDetaching(response);
} else {
if (DBG) log("rspIsIdleOrDetaching error response=" + response);
return false;
}
|
public boolean | isIdleSync()
Message response = sendMessageSynchronously(REQ_IS_IDLE_STATE);
if ((response != null) && (response.what == RSP_IS_IDLE_STATE)) {
return rspIsIdle(response);
} else {
if (DBG) log("rspIsIndle error response=" + response);
return false;
}
|
private void | log(java.lang.String s)
Rlog.d(LOG_TAG, "[DcSwitchAsyncChannel-" + tagId + "]: " + s);
|
public void | notifyDataAttached()
sendMessage(EVENT_DATA_ATTACHED);
if (DBG) log("notifyDataAttached");
|
public void | notifyDataDetached()
sendMessage(EVENT_DATA_DETACHED);
if (DBG) log("EVENT_DATA_DETACHED");
|
public void | reqIsIdleOrDetaching()
sendMessage(REQ_IS_IDLE_OR_DETACHING_STATE);
if (DBG) log("reqIsIdleOrDetaching");
|
private int | rspConnect(android.os.Message response)
int retVal = response.arg1;
if (DBG) log("rspConnect=" + retVal);
return retVal;
|
private int | rspDisconnect(android.os.Message response)
int retVal = response.arg1;
if (DBG) log("rspDisconnect=" + retVal);
return retVal;
|
private int | rspDisconnectAll(android.os.Message response)
int retVal = response.arg1;
if (DBG) log("rspDisconnectAll=" + retVal);
return retVal;
|
private boolean | rspIsIdle(android.os.Message response)
boolean retVal = response.arg1 == 1;
if (DBG) log("rspIsIdle=" + retVal);
return retVal;
|
public boolean | rspIsIdleOrDetaching(android.os.Message response)
boolean retVal = response.arg1 == 1;
if (DBG) log("rspIsIdleOrDetaching=" + retVal);
return retVal;
|
public java.lang.String | toString()
return mDcSwitchState.getName();
|