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 state == State.ACTIVE || state == State.HOLDING;
|
boolean | isConnecting()
return state == State.DIALING || state == State.ALERTING;
|
boolean | isRinging()
return state == State.INCOMING || state == State.WAITING;
|
java.lang.String | toCLCCLine(int index)
return
"+CLCC: "
+ index + "," + (isMT ? "1" : "0") +","
+ state.value() + ",0," + (isMpty ? "1" : "0")
+ ",\"" + number + "\"," + TOA;
|
com.android.internal.telephony.gsm.DriverCall | toDriverCall(int index)
DriverCall ret;
ret = new DriverCall();
ret.index = index;
ret.isMT = isMT;
try {
ret.state = DriverCall.stateFromCLCC(state.value());
} catch (ATParseEx ex) {
throw new RuntimeException("should never happen", ex);
}
ret.isMpty = isMpty;
ret.number = number;
ret.TOA = TOA;
ret.isVoice = true;
ret.als = 0;
return ret;
|