FileDocCategorySizeDatePackage
RuimPhoneBookInterfaceManager.javaAPI DocAndroid 5.1 API2690Thu Mar 12 22:22:54 GMT 2015com.android.internal.telephony.cdma

RuimPhoneBookInterfaceManager

public class RuimPhoneBookInterfaceManager extends com.android.internal.telephony.IccPhoneBookInterfaceManager
RuimPhoneBookInterfaceManager to provide an inter-process communication to access ADN-like SIM records.

Fields Summary
static final String
LOG_TAG
Constructors Summary
public RuimPhoneBookInterfaceManager(CDMAPhone phone)


       
        super(phone);
        //NOTE service "simphonebook" added by IccSmsInterfaceManagerProxy
    
Methods Summary
public voiddispose()

        super.dispose();
    
protected voidfinalize()

        try {
            super.finalize();
        } catch (Throwable throwable) {
            Rlog.e(LOG_TAG, "Error while finalizing:", throwable);
        }
        if(DBG) Rlog.d(LOG_TAG, "RuimPhoneBookInterfaceManager finalized");
    
public int[]getAdnRecordsSize(int efid)

        if (DBG) logd("getAdnRecordsSize: efid=" + efid);
        synchronized(mLock) {
            checkThread();
            mRecordSize = new int[3];

            //Using mBaseHandler, no difference in EVENT_GET_SIZE_DONE handling
            AtomicBoolean status = new AtomicBoolean(false);
            Message response = mBaseHandler.obtainMessage(EVENT_GET_SIZE_DONE, status);

            IccFileHandler fh = mPhone.getIccFileHandler();
            //IccFileHandler can be null if there is no icc card present.
            if (fh != null) {
                fh.getEFLinearRecordSize(efid, response);
                waitForResult(status);
            }
        }

        return mRecordSize;
    
protected voidlogd(java.lang.String msg)

        Rlog.d(LOG_TAG, "[RuimPbInterfaceManager] " + msg);
    
protected voidloge(java.lang.String msg)

        Rlog.e(LOG_TAG, "[RuimPbInterfaceManager] " + msg);