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);
}
}
}
Aggregations