Methods Summary |
---|
static com.android.internal.telephony.test.CallInfo | createIncomingCall(java.lang.String number)
return new CallInfo (true, State.INCOMING, false, number);
|
static com.android.internal.telephony.test.CallInfo | createOutgoingCall(java.lang.String number)
return new CallInfo (false, State.DIALING, false, number);
|
boolean | isActiveOrHeld()
return mState == State.ACTIVE || mState == State.HOLDING;
|
boolean | isConnecting()
return mState == State.DIALING || mState == State.ALERTING;
|
boolean | isRinging()
return mState == State.INCOMING || mState == State.WAITING;
|
java.lang.String | toCLCCLine(int index)
return
"+CLCC: "
+ index + "," + (mIsMT ? "1" : "0") +","
+ mState.value() + ",0," + (mIsMpty ? "1" : "0")
+ ",\"" + mNumber + "\"," + mTOA;
|
com.android.internal.telephony.DriverCall | toDriverCall(int index)
DriverCall ret;
ret = new DriverCall();
ret.index = index;
ret.isMT = mIsMT;
try {
ret.state = DriverCall.stateFromCLCC(mState.value());
} catch (ATParseEx ex) {
throw new RuntimeException("should never happen", ex);
}
ret.isMpty = mIsMpty;
ret.number = mNumber;
ret.TOA = mTOA;
ret.isVoice = true;
ret.als = 0;
return ret;
|