Search in sources :

Example 1 with IccRefreshResponse

use of com.android.internal.telephony.uicc.IccRefreshResponse in project android_device_mediatek_common by MediatekDevs.

the class MediaTekRIL method responseSimRefresh.

@Override
protected Object responseSimRefresh(Parcel p) {
    IccRefreshResponse response = new IccRefreshResponse();
    response.refreshResult = p.readInt();
    String rawefId = p.readString();
    response.efId = rawefId == null ? 0 : Integer.parseInt(rawefId);
    response.aid = p.readString();
    return response;
}
Also used : IccRefreshResponse(com.android.internal.telephony.uicc.IccRefreshResponse)

Example 2 with IccRefreshResponse

use of com.android.internal.telephony.uicc.IccRefreshResponse in project android_frameworks_opt_telephony by LineageOS.

the class RadioIndication method simRefresh.

public void simRefresh(int indicationType, SimRefreshResult refreshResult) {
    mRil.processIndication(indicationType);
    IccRefreshResponse response = new IccRefreshResponse();
    response.refreshResult = refreshResult.type;
    response.efId = refreshResult.efId;
    response.aid = refreshResult.aid;
    if (RIL.RILJ_LOGD)
        mRil.unsljLogRet(RIL_UNSOL_SIM_REFRESH, response);
    mRil.mIccRefreshRegistrants.notifyRegistrants(new AsyncResult(null, response, null));
}
Also used : IccRefreshResponse(com.android.internal.telephony.uicc.IccRefreshResponse) AsyncResult(android.os.AsyncResult)

Aggregations

IccRefreshResponse (com.android.internal.telephony.uicc.IccRefreshResponse)2 AsyncResult (android.os.AsyncResult)1