Search in sources :

Example 1 with IccIo

use of android.hardware.radio.V1_0.IccIo in project android_frameworks_opt_telephony by LineageOS.

the class RIL method iccIOForApp.

@Override
public void iccIOForApp(int command, int fileId, String path, int p1, int p2, int p3, String data, String pin2, String aid, Message result) {
    IRadio radioProxy = getRadioProxy(result);
    if (radioProxy != null) {
        RILRequest rr = obtainRequest(RIL_REQUEST_SIM_IO, result, mRILDefaultWorkSource);
        if (RILJ_LOGD) {
            if (TelephonyUtils.IS_DEBUGGABLE) {
                riljLog(rr.serialString() + "> iccIO: " + requestToString(rr.mRequest) + " command = 0x" + Integer.toHexString(command) + " fileId = 0x" + Integer.toHexString(fileId) + " path = " + path + " p1 = " + p1 + " p2 = " + p2 + " p3 = " + " data = " + data + " aid = " + aid);
            } else {
                riljLog(rr.serialString() + "> iccIO: " + requestToString(rr.mRequest));
            }
        }
        IccIo iccIo = new IccIo();
        iccIo.command = command;
        iccIo.fileId = fileId;
        iccIo.path = convertNullToEmptyString(path);
        iccIo.p1 = p1;
        iccIo.p2 = p2;
        iccIo.p3 = p3;
        iccIo.data = convertNullToEmptyString(data);
        iccIo.pin2 = convertNullToEmptyString(pin2);
        iccIo.aid = convertNullToEmptyString(aid);
        try {
            radioProxy.iccIOForApp(rr.mSerial, iccIo);
        } catch (RemoteException | RuntimeException e) {
            handleRadioProxyExceptionForRR(rr, "iccIOForApp", e);
        }
    }
}
Also used : IRadio(android.hardware.radio.V1_0.IRadio) IccIo(android.hardware.radio.V1_0.IccIo) RemoteException(android.os.RemoteException)

Aggregations

IRadio (android.hardware.radio.V1_0.IRadio)1 IccIo (android.hardware.radio.V1_0.IccIo)1 RemoteException (android.os.RemoteException)1