Search in sources :

Example 6 with AdnRecordLoader

use of com.android.internal.telephony.AdnRecordLoader in project XobotOS by xamarin.

the class SIMRecords method handleFileUpdate.

private void handleFileUpdate(int efid) {
    switch(efid) {
        case EF_MBDN:
            recordsToLoad++;
            new AdnRecordLoader(phone).loadFromEF(EF_MBDN, EF_EXT6, mailboxIndex, obtainMessage(EVENT_GET_MBDN_DONE));
            break;
        case EF_MAILBOX_CPHS:
            recordsToLoad++;
            new AdnRecordLoader(phone).loadFromEF(EF_MAILBOX_CPHS, EF_EXT1, 1, obtainMessage(EVENT_GET_CPHS_MAILBOX_DONE));
            break;
        case EF_CSP_CPHS:
            recordsToLoad++;
            Log.i(LOG_TAG, "[CSP] SIM Refresh for EF_CSP_CPHS");
            phone.getIccFileHandler().loadEFTransparent(EF_CSP_CPHS, obtainMessage(EVENT_GET_CSP_CPHS_DONE));
            break;
        default:
            // For now, fetch all records if this is not a
            // voicemail number.
            // TODO: Handle other cases, instead of fetching all.
            adnCache.reset();
            fetchSimRecords();
            break;
    }
}
Also used : AdnRecordLoader(com.android.internal.telephony.AdnRecordLoader)

Aggregations

AdnRecordLoader (com.android.internal.telephony.AdnRecordLoader)6 AdnRecord (com.android.internal.telephony.AdnRecord)3 IccFileHandler (com.android.internal.telephony.IccFileHandler)2 AsyncResult (android.os.AsyncResult)1 Message (android.os.Message)1 IccVmFixedException (com.android.internal.telephony.IccVmFixedException)1 IccVmNotSupportedException (com.android.internal.telephony.IccVmNotSupportedException)1