Search in sources :

Example 1 with ATParseEx

use of com.android.internal.telephony.ATParseEx in project XobotOS by xamarin.

the class SimulatedGsmCallState method toDriverCall.

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;
}
Also used : DriverCall(com.android.internal.telephony.DriverCall) ATParseEx(com.android.internal.telephony.ATParseEx)

Aggregations

ATParseEx (com.android.internal.telephony.ATParseEx)1 DriverCall (com.android.internal.telephony.DriverCall)1