FileDocCategorySizeDatePackage
SimPhoneBookInterfaceManager.javaAPI DocAndroid 5.1 API2607Thu Mar 12 22:22:54 GMT 2015com.android.internal.telephony.gsm

SimPhoneBookInterfaceManager

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

Fields Summary
static final String
LOG_TAG
Constructors Summary
public SimPhoneBookInterfaceManager(GSMPhone 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, "SimPhoneBookInterfaceManager 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();
            if (fh != null) {
                fh.getEFLinearRecordSize(efid, response);
                waitForResult(status);
            }
        }

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

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

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