Search in sources :

Example 1 with DataCallResponse

use of com.android.internal.telephony.dataconnection.DataCallResponse in project android_frameworks_opt_telephony by LineageOS.

the class RadioResponse method responseSetupDataCall.

private void responseSetupDataCall(RadioResponseInfo responseInfo, SetupDataCallResult setupDataCallResult) {
    RILRequest rr = mRil.processResponse(responseInfo);
    if (rr != null) {
        DataCallResponse ret = RIL.convertDataCallResult(setupDataCallResult);
        if (responseInfo.error == RadioError.NONE) {
            sendMessageResponse(rr.mResult, ret);
        }
        mRil.processResponseDone(rr, responseInfo, ret);
    }
}
Also used : DataCallResponse(com.android.internal.telephony.dataconnection.DataCallResponse)

Example 2 with DataCallResponse

use of com.android.internal.telephony.dataconnection.DataCallResponse in project android_frameworks_opt_telephony by LineageOS.

the class RadioIndication method dataCallListChanged.

public void dataCallListChanged(int indicationType, ArrayList<SetupDataCallResult> dcList) {
    mRil.processIndication(indicationType);
    ArrayList<DataCallResponse> response = new ArrayList<>();
    for (SetupDataCallResult dcResult : dcList) {
        response.add(RIL.convertDataCallResult(dcResult));
    }
    if (RIL.RILJ_LOGD)
        mRil.unsljLogRet(RIL_UNSOL_DATA_CALL_LIST_CHANGED, response);
    mRil.mDataCallListChangedRegistrants.notifyRegistrants(new AsyncResult(null, response, null));
}
Also used : DataCallResponse(com.android.internal.telephony.dataconnection.DataCallResponse) ArrayList(java.util.ArrayList) AsyncResult(android.os.AsyncResult) SetupDataCallResult(android.hardware.radio.V1_0.SetupDataCallResult)

Example 3 with DataCallResponse

use of com.android.internal.telephony.dataconnection.DataCallResponse in project android_frameworks_opt_telephony by LineageOS.

the class RadioResponse method responseDataCallList.

private void responseDataCallList(RadioResponseInfo responseInfo, ArrayList<SetupDataCallResult> dataCallResultList) {
    RILRequest rr = mRil.processResponse(responseInfo);
    if (rr != null) {
        ArrayList<DataCallResponse> dcResponseList = new ArrayList<>();
        for (SetupDataCallResult dcResult : dataCallResultList) {
            dcResponseList.add(RIL.convertDataCallResult(dcResult));
        }
        if (responseInfo.error == RadioError.NONE) {
            sendMessageResponse(rr.mResult, dcResponseList);
        }
        mRil.processResponseDone(rr, responseInfo, dcResponseList);
    }
}
Also used : DataCallResponse(com.android.internal.telephony.dataconnection.DataCallResponse) ArrayList(java.util.ArrayList) SetupDataCallResult(android.hardware.radio.V1_0.SetupDataCallResult)

Aggregations

DataCallResponse (com.android.internal.telephony.dataconnection.DataCallResponse)3 SetupDataCallResult (android.hardware.radio.V1_0.SetupDataCallResult)2 ArrayList (java.util.ArrayList)2 AsyncResult (android.os.AsyncResult)1