public class AdnRecordCache extends Handler implements IccConstants
Handler.Callback
CDMA_SMS_RECORD_LENGTH, DF_ADF, DF_CDMA, DF_GRAPHICS, DF_GSM, DF_PHONEBOOK, DF_TELECOM, EF_AD, EF_ADN, EF_CFF_CPHS, EF_CFIS, EF_CSIM_CDMAHOME, EF_CSIM_EPRL, EF_CSIM_IMSIM, EF_CSIM_LI, EF_CSIM_MDN, EF_CSIM_MIPUPP, EF_CSIM_SPN, EF_CSP_CPHS, EF_CST, EF_DOMAIN, EF_EXT1, EF_EXT2, EF_EXT3, EF_EXT5, EF_EXT6, EF_FDN, EF_GID1, EF_GID2, EF_ICCID, EF_IMG, EF_IMPI, EF_IMPU, EF_INFO_CPHS, EF_IST, EF_LI, EF_MAILBOX_CPHS, EF_MBDN, EF_MBI, EF_MSISDN, EF_MWIS, EF_OPL, EF_PBR, EF_PCSCF, EF_PL, EF_PNN, EF_PSI, EF_RUIM_SPN, EF_SDN, EF_SMS, EF_SPDI, EF_SPN, EF_SPN_CPHS, EF_SPN_SHORT_CPHS, EF_SST, EF_VOICE_MAIL_INDICATOR_CPHS, MF_SIM, SMS_RECORD_LENGTH
Modifier and Type | Method and Description |
---|---|
int |
extensionEfForEf(int efid)
Returns extension ef associated with ADN-like EF or -1 if
we don't know.
|
ArrayList<AdnRecord> |
getRecordsIfLoaded(int efid) |
void |
handleMessage(Message msg)
Subclasses must implement this to receive messages.
|
void |
requestLoadAllAdnLike(int efid,
int extensionEf,
Message response)
Responds with exception (in response) if efid is not a known ADN-like
record
|
void |
reset()
Called from SIMRecords.onRadioNotAvailable and SIMRecords.handleSimRefresh.
|
void |
updateAdnByIndex(int efid,
AdnRecord adn,
int recordIndex,
String pin2,
Message response)
Update an ADN-like record in EF by record index
|
void |
updateAdnBySearch(int efid,
AdnRecord oldAdn,
AdnRecord newAdn,
String pin2,
Message response)
Replace oldAdn with newAdn in ADN-like record in EF
The ADN-like records must be read through requestLoadAllAdnLike() before
|
dispatchMessage, dump, getLooper, getMessageName, getTraceName, hasCallbacks, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, runWithScissors, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toString
public void reset()
public ArrayList<AdnRecord> getRecordsIfLoaded(int efid)
public int extensionEfForEf(int efid)
public void updateAdnByIndex(int efid, AdnRecord adn, int recordIndex, String pin2, Message response)
efid
- must be one among EF_ADN, EF_FDN, and EF_SDNadn
- is the new adn to be storedrecordIndex
- is the 1-based adn record indexpin2
- is required to update EF_FDN, otherwise must be nullresponse
- message to be posted when done
response.exception hold the exception in errorpublic void updateAdnBySearch(int efid, AdnRecord oldAdn, AdnRecord newAdn, String pin2, Message response)
efid
- must be one of EF_ADN, EF_FDN, and EF_SDNoldAdn
- is the adn to be replaced
If oldAdn.isEmpty() is ture, it insert the newAdnnewAdn
- is the adn to be stored
If newAdn.isEmpty() is true, it delete the oldAdnpin2
- is required to update EF_FDN, otherwise must be nullresponse
- message to be posted when done
response.exception hold the exception in errorpublic void requestLoadAllAdnLike(int efid, int extensionEf, Message response)
public void handleMessage(Message msg)
Handler
handleMessage
in class Handler