public class IsimUiccRecords extends IccRecords implements IsimRecords
IccRecords.IccRecordLoaded
Handler.Callback
Modifier and Type | Field and Description |
---|---|
static String |
INTENT_ISIM_REFRESH |
protected static String |
LOG_TAG |
CALL_FORWARDING_STATUS_DISABLED, CALL_FORWARDING_STATUS_ENABLED, CALL_FORWARDING_STATUS_UNKNOWN, EVENT_CFI, EVENT_GET_ICC_RECORD_DONE, EVENT_MWI, EVENT_SET_MSISDN_DONE, EVENT_SPN, mAdnCache, mCi, mContext, mDestroyed, mFh, mFullIccId, mGid1, mGid2, mIccId, mImsi, mImsiReadyRegistrants, mIsVoiceMailFixed, mMailboxIndex, mMncLength, mMsisdn, mMsisdnTag, mNetworkSelectionModeAutomaticRegistrants, mNewMsisdn, mNewMsisdnTag, mNewSmsRegistrants, mNewVoiceMailNum, mNewVoiceMailTag, mParentApp, mPrefLang, mRecordsEventsRegistrants, mRecordsLoadedRegistrants, mRecordsRequested, mRecordsToLoad, mTelephonyManager, mVoiceMailNum, mVoiceMailTag, SPN_RULE_SHOW_PLMN, SPN_RULE_SHOW_SPN, UNINITIALIZED, UNKNOWN
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
Constructor and Description |
---|
IsimUiccRecords(UiccCardApplication app,
Context c,
CommandsInterface ci) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Call when the IccRecords object is no longer going to be used.
|
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
protected void |
fetchIsimRecords() |
int |
getDisplayRule(String plmn)
Returns the SpnDisplayRule based on settings on the SIM and the
specified plmn (currently-registered PLMN).
|
String |
getIsimChallengeResponse(String nonce)
Returns the response of ISIM Authetification through RIL.
|
String |
getIsimDomain()
Return the IMS home network domain name.
|
String |
getIsimImpi()
Return the IMS private user identity (IMPI).
|
String[] |
getIsimImpu()
Return an array of IMS public user identities (IMPU).
|
String |
getIsimIst()
Returns the IMS Service Table (IST) that was loaded from the ISIM.
|
String[] |
getIsimPcscf()
Returns the IMS Proxy Call Session Control Function(PCSCF) that were loaded from the ISIM.
|
int |
getVoiceMessageCount()
Called by GsmCdmaPhone to update VoiceMail count
|
void |
handleMessage(Message msg)
Subclasses must implement this to receive messages.
|
protected void |
log(String s)
Write string to log file
|
protected void |
loge(String s)
Write error string to log file.
|
protected void |
onAllRecordsLoaded() |
void |
onReady() |
protected void |
onRecordLoaded() |
void |
onRefresh(boolean fileChanged,
int[] fileList)
Called by STK Service when REFRESH is received.
|
protected void |
resetRecords() |
void |
setVoiceMailNumber(String alphaTag,
String voiceNumber,
Message onComplete)
Set voice mail number to SIM record
The voice mail number can be stored either in EF_MBDN (TS 51.011) or
EF_MAILBOX_CPHS (CPHS 4.2)
If EF_MBDN is available, store the voice mail number to EF_MBDN
If EF_MAILBOX_CPHS is enabled, store the voice mail number to EF_CHPS
So the voice mail number will be stored in both EFs if both are available
Return error only if both EF_MBDN and EF_MAILBOX_CPHS fail.
|
void |
setVoiceMessageWaiting(int line,
int countWaiting)
Sets the SIM voice message waiting indicator records
|
String |
toString()
Returns a string representation of the object.
|
findBestLanguage, getAdnCache, getFullIccId, getGid1, getGid2, getIccId, getIccSimChallengeResponse, getIMSI, getIsimRecords, getMsisdnAlphaTag, getMsisdnNumber, getNAI, getOperatorNumeric, getRecordsLoaded, getServiceProviderName, getSimLanguage, getUsimServiceTable, getVoiceCallForwardingFlag, getVoiceMailAlphaTag, getVoiceMailNumber, isCspPlmnEnabled, isProvisioned, onIccRefreshInit, registerForImsiReady, registerForNetworkSelectionModeAutomatic, registerForNewSms, registerForRecordsEvents, registerForRecordsLoaded, setImsi, setMsisdnNumber, setServiceProviderName, setSimLanguage, setSystemProperty, setVoiceCallForwardingFlag, unregisterForImsiReady, unregisterForNetworkSelectionModeAutomatic, unregisterForNewSms, unregisterForRecordsEvents, unregisterForRecordsLoaded
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
protected static final String LOG_TAG
public static final String INTENT_ISIM_REFRESH
public IsimUiccRecords(UiccCardApplication app, Context c, CommandsInterface ci)
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
in class IccRecords
public void dispose()
IccRecords
dispose
in class IccRecords
public void handleMessage(Message msg)
Handler
handleMessage
in class IccRecords
protected void fetchIsimRecords()
protected void resetRecords()
protected void onRecordLoaded()
onRecordLoaded
in class IccRecords
protected void onAllRecordsLoaded()
onAllRecordsLoaded
in class IccRecords
public String getIsimImpi()
getIsimImpi
in interface IsimRecords
public String getIsimDomain()
getIsimDomain
in interface IsimRecords
public String[] getIsimImpu()
getIsimImpu
in interface IsimRecords
public String getIsimIst()
getIsimIst
in interface IsimRecords
public String[] getIsimPcscf()
getIsimPcscf
in interface IsimRecords
public String getIsimChallengeResponse(String nonce)
getIsimChallengeResponse
in interface IsimRecords
public int getDisplayRule(String plmn)
IccRecords
getDisplayRule
in class IccRecords
public void onReady()
onReady
in class IccRecords
public void onRefresh(boolean fileChanged, int[] fileList)
IccRecords
onRefresh
in class IccRecords
fileChanged
- indicates whether any files changedfileList
- if non-null, a list of EF files that changedpublic void setVoiceMailNumber(String alphaTag, String voiceNumber, Message onComplete)
IccRecords
setVoiceMailNumber
in class IccRecords
alphaTag
- alpha-tagging of the dailing nubmer (upto 10 characters)voiceNumber
- dailing nubmer (upto 20 digits)
if the number is start with '+', then set to international TOAonComplete
- onComplete.obj will be an AsyncResult
((AsyncResult)onComplete.obj).exception == null on success
((AsyncResult)onComplete.obj).exception != null on failpublic void setVoiceMessageWaiting(int line, int countWaiting)
IccRecords
setVoiceMessageWaiting
in class IccRecords
line
- GSM Subscriber Profile Number, one-based. Only '1' is supportedcountWaiting
- The number of messages waiting, if known. Use
-1 to indicate that an unknown number of
messages are waitingprotected void log(String s)
IccRecords
log
in class IccRecords
s
- is the string to writeprotected void loge(String s)
IccRecords
loge
in class IccRecords
s
- is the string to writepublic void dump(FileDescriptor fd, PrintWriter pw, String[] args)
dump
in class IccRecords
public int getVoiceMessageCount()
IccRecords
getVoiceMessageCount
in class IccRecords