Methods Summary |
---|
public void | cancelPostDial()
if (DBG) log("cancelPostDial: ignore");
|
public long | getConnectTime()
if (VDBG) log("getConnectTime: ret=" + mConnectTime);
return mConnectTime;
|
public long | getConnectTimeReal()
return mConnectTimeReal;
|
public long | getCreateTime()
if (VDBG) log("getCreateTime: ret=" + mCreateTime);
return mCreateTime;
|
public int | getDisconnectCause()
if (VDBG) log("getDisconnectCause: ret=" + mCause);
return mCause;
|
public long | getDisconnectTime()
if (VDBG) log("getDisconnectTime: ret=" + mDisconnectTime);
return mDisconnectTime;
|
public long | getDurationMillis()
long dur;
if (mConnectTimeReal == 0) {
dur = 0;
} else if (mDuration < 0) {
dur = SystemClock.elapsedRealtime() - mConnectTimeReal;
} else {
dur = mDuration;
}
if (VDBG) log("getDurationMillis: ret=" + dur);
return dur;
|
public long | getHoldDurationMillis()
long dur;
if (getState() != Call.State.HOLDING) {
// If not holding, return 0
dur = 0;
} else {
dur = SystemClock.elapsedRealtime() - mHoldingStartTime;
}
if (VDBG) log("getHoldDurationMillis: ret=" + dur);
return dur;
|
public long | getHoldingStartTime()
return mHoldingStartTime;
|
public int | getNumberPresentation()
// TODO: add PRESENTATION_URL
if (VDBG) log("getNumberPresentation: ret=PRESENTATION_ALLOWED");
return PhoneConstants.PRESENTATION_ALLOWED;
|
public com.android.internal.telephony.Connection | getOrigConnection()
return null;
|
protected abstract com.android.internal.telephony.Phone | getPhone()
|
public PostDialState | getPostDialState()
if (VDBG) log("getPostDialState: ret=" + mPostDialState);
return mPostDialState;
|
public int | getPreciseDisconnectCause()
return 0;
|
public java.lang.String | getRemainingPostDialString()
if (mPostDialState == PostDialState.CANCELLED
|| mPostDialState == PostDialState.COMPLETE
|| mPostDialString == null
|| mPostDialString.length() <= mNextPostDialChar) {
if (DBG) log("getRemaingPostDialString: ret empty string");
return "";
}
return mPostDialString.substring(mNextPostDialChar);
|
public com.android.internal.telephony.UUSInfo | getUUSInfo()
// FIXME: what's this for SIP?
if (VDBG) log("getUUSInfo: ? ret=null");
return null;
|
public boolean | isMultiparty()
return false;
|
private void | log(java.lang.String msg)
Rlog.d(LOG_TAG, msg);
|
public void | proceedAfterWaitChar()
if (DBG) log("proceedAfterWaitChar: ignore");
|
public void | proceedAfterWildChar(java.lang.String str)
if (DBG) log("proceedAfterWildChar: ignore");
|
void | setDisconnectCause(int cause)
if (DBG) log("setDisconnectCause: prev=" + mCause + " new=" + cause);
mCause = cause;
|
protected void | setState(Call.State state)
if (DBG) log("setState: state=" + state);
switch (state) {
case ACTIVE:
if (mConnectTime == 0) {
mConnectTimeReal = SystemClock.elapsedRealtime();
mConnectTime = System.currentTimeMillis();
}
break;
case DISCONNECTED:
mDuration = getDurationMillis();
mDisconnectTime = System.currentTimeMillis();
break;
case HOLDING:
mHoldingStartTime = SystemClock.elapsedRealtime();
break;
default:
// Ignore
break;
}
|