Search in sources :

Example 1 with CdmaCallWaitingNotification

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

the class RIL method responseCdmaCallWaiting.

private Object responseCdmaCallWaiting(Parcel p) {
    CdmaCallWaitingNotification notification = new CdmaCallWaitingNotification();
    notification.number = p.readString();
    notification.numberPresentation = notification.presentationFromCLIP(p.readInt());
    notification.name = p.readString();
    notification.namePresentation = notification.numberPresentation;
    notification.isPresent = p.readInt();
    notification.signalType = p.readInt();
    notification.alertPitch = p.readInt();
    notification.signal = p.readInt();
    notification.numberType = p.readInt();
    notification.numberPlan = p.readInt();
    return notification;
}
Also used : CdmaCallWaitingNotification(com.android.internal.telephony.cdma.CdmaCallWaitingNotification)

Example 2 with CdmaCallWaitingNotification

use of com.android.internal.telephony.cdma.CdmaCallWaitingNotification in project android_frameworks_opt_telephony by LineageOS.

the class RadioIndication method cdmaCallWaiting.

public void cdmaCallWaiting(int indicationType, CdmaCallWaiting callWaitingRecord) {
    mRil.processIndication(indicationType);
    // todo: create a CdmaCallWaitingNotification constructor that takes in these fields to make
    // sure no fields are missing
    CdmaCallWaitingNotification notification = new CdmaCallWaitingNotification();
    notification.number = callWaitingRecord.number;
    notification.numberPresentation = CdmaCallWaitingNotification.presentationFromCLIP(callWaitingRecord.numberPresentation);
    notification.name = callWaitingRecord.name;
    notification.namePresentation = notification.numberPresentation;
    notification.isPresent = callWaitingRecord.signalInfoRecord.isPresent ? 1 : 0;
    notification.signalType = callWaitingRecord.signalInfoRecord.signalType;
    notification.alertPitch = callWaitingRecord.signalInfoRecord.alertPitch;
    notification.signal = callWaitingRecord.signalInfoRecord.signal;
    notification.numberType = callWaitingRecord.numberType;
    notification.numberPlan = callWaitingRecord.numberPlan;
    if (RIL.RILJ_LOGD)
        mRil.unsljLogRet(RIL_UNSOL_CDMA_CALL_WAITING, notification);
    mRil.mCallWaitingInfoRegistrants.notifyRegistrants(new AsyncResult(null, notification, null));
}
Also used : CdmaCallWaitingNotification(com.android.internal.telephony.cdma.CdmaCallWaitingNotification) AsyncResult(android.os.AsyncResult)

Aggregations

CdmaCallWaitingNotification (com.android.internal.telephony.cdma.CdmaCallWaitingNotification)2 AsyncResult (android.os.AsyncResult)1