Search in sources :

Example 1 with SelectUiccSub

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

the class RIL method setUiccSubscription.

@Override
public void setUiccSubscription(int appIndex, boolean activate, Message result) {
    IRadio radioProxy = getRadioProxy(result);
    if (radioProxy != null) {
        RILRequest rr = obtainRequest(RIL_REQUEST_SET_UICC_SUBSCRIPTION, result, mRILDefaultWorkSource);
        if (RILJ_LOGD) {
            riljLog(rr.serialString() + "> " + requestToString(rr.mRequest) + " appIndex: " + appIndex + " activate: " + activate);
        }
        SelectUiccSub info = new SelectUiccSub();
        info.slot = mPhoneId;
        info.appIndex = appIndex;
        info.subType = mPhoneId;
        info.actStatus = activate ? 1 : 0;
        try {
            radioProxy.setUiccSubscription(rr.mSerial, info);
        } catch (RemoteException | RuntimeException e) {
            handleRadioProxyExceptionForRR(rr, "setUiccSubscription", e);
        }
    }
}
Also used : IRadio(android.hardware.radio.V1_0.IRadio) SelectUiccSub(android.hardware.radio.V1_0.SelectUiccSub) RemoteException(android.os.RemoteException)

Aggregations

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