public final class RuimRecords extends IccRecords {
static final String LOG_TAG = "RuimRecords";
- private boolean m_ota_commited=false;
+ private boolean mOtaCommited=false;
// ***** Instance Variables
@Override
public String toString() {
return "RuimRecords: " + super.toString()
- + " m_ota_commited" + m_ota_commited
+ + " m_ota_commited" + mOtaCommited
+ " mMyMobileNumber=" + "xxxx"
+ " mMin2Min1=" + mMin2Min1
+ " mPrlVersion=" + mPrlVersion
public RuimRecords(UiccCardApplication app, Context c, CommandsInterface ci) {
super(app, c, ci);
- adnCache = new AdnRecordCache(mFh);
+ mAdnCache = new AdnRecordCache(mFh);
- recordsRequested = false; // No load request is made till SIM ready
+ mRecordsRequested = false; // No load request is made till SIM ready
// recordsToLoad is set to 0 because no requests are made yet
- recordsToLoad = 0;
+ mRecordsToLoad = 0;
// NOTE the EVENT_SMS_ON_RUIM is not registered
mCi.registerForIccRefresh(this, EVENT_RUIM_REFRESH, null);
}
protected void resetRecords() {
- countVoiceMessages = 0;
- mncLength = UNINITIALIZED;
- iccid = null;
+ mCountVoiceMessages = 0;
+ mMncLength = UNINITIALIZED;
+ iccId = null;
- adnCache.reset();
+ mAdnCache.reset();
// Don't clean up PROPERTY_ICC_OPERATOR_ISO_COUNTRY and
// PROPERTY_ICC_OPERATOR_NUMERIC here. Since not all CDMA
// recordsRequested is set to false indicating that the SIM
// read requests made so far are not valid. This is set to
// true only when fresh set of read requests are made.
- recordsRequested = false;
+ mRecordsRequested = false;
}
@Override
return null;
}
- if (mncLength != UNINITIALIZED && mncLength != UNKNOWN) {
+ if (mMncLength != UNINITIALIZED && mMncLength != UNKNOWN) {
// Length = length of MCC + length of MNC
// length of mcc = 3 (3GPP2 C.S0005 - Section 2.3)
- return mImsi.substring(0, 3 + mncLength);
+ return mImsi.substring(0, 3 + mMncLength);
}
// Guess the MNC length based on the MCC if we don't
}
if (numBytes == 0) {
- spn = "";
+ mSpn = "";
return;
}
try {
switch (encoding) {
case UserData.ENCODING_OCTET:
case UserData.ENCODING_LATIN:
- spn = new String(spnData, 0, numBytes, "ISO-8859-1");
+ mSpn = new String(spnData, 0, numBytes, "ISO-8859-1");
break;
case UserData.ENCODING_IA5:
case UserData.ENCODING_GSM_7BIT_ALPHABET:
case UserData.ENCODING_7BIT_ASCII:
- spn = GsmAlphabet.gsm7BitPackedToString(spnData, 0, (numBytes*8)/7);
+ mSpn = GsmAlphabet.gsm7BitPackedToString(spnData, 0, (numBytes*8)/7);
break;
case UserData.ENCODING_UNICODE_16:
- spn = new String(spnData, 0, numBytes, "utf-16");
+ mSpn = new String(spnData, 0, numBytes, "utf-16");
break;
default:
log("SPN encoding not supported");
} catch(Exception e) {
log("spn decode error: " + e);
}
- if (DBG) log("spn=" + spn);
+ if (DBG) log("spn=" + mSpn);
if (DBG) log("spnCondition=" + mCsimSpnDisplayCondition);
- SystemProperties.set(PROPERTY_ICC_OPERATOR_ALPHA, spn);
+ SystemProperties.set(PROPERTY_ICC_OPERATOR_ALPHA, mSpn);
}
}
break;
}
- iccid = IccUtils.bcdToString(data, 0, data.length);
+ iccId = IccUtils.bcdToString(data, 0, data.length);
- log("iccid: " + iccid);
+ log("iccid: " + iccId);
break;
protected void onRecordLoaded() {
// One record loaded successfully or failed, In either case
// we need to update the recordsToLoad count
- recordsToLoad -= 1;
- if (DBG) log("onRecordLoaded " + recordsToLoad + " requested: " + recordsRequested);
+ mRecordsToLoad -= 1;
+ if (DBG) log("onRecordLoaded " + mRecordsToLoad + " requested: " + mRecordsRequested);
- if (recordsToLoad == 0 && recordsRequested == true) {
+ if (mRecordsToLoad == 0 && mRecordsRequested == true) {
onAllRecordsLoaded();
- } else if (recordsToLoad < 0) {
+ } else if (mRecordsToLoad < 0) {
loge("recordsToLoad <0, programmer error suspected");
- recordsToLoad = 0;
+ mRecordsToLoad = 0;
}
}
private void fetchRuimRecords() {
- recordsRequested = true;
+ mRecordsRequested = true;
- if (DBG) log("fetchRuimRecords " + recordsToLoad);
+ if (DBG) log("fetchRuimRecords " + mRecordsToLoad);
mCi.getIMSIForApp(mParentApp.getAid(), obtainMessage(EVENT_GET_IMSI_DONE));
- recordsToLoad++;
+ mRecordsToLoad++;
mFh.loadEFTransparent(EF_ICCID,
obtainMessage(EVENT_GET_ICCID_DONE));
- recordsToLoad++;
+ mRecordsToLoad++;
mFh.loadEFTransparent(EF_PL,
obtainMessage(EVENT_GET_ICC_RECORD_DONE, new EfPlLoaded()));
- recordsToLoad++;
+ mRecordsToLoad++;
mFh.loadEFTransparent(EF_CSIM_LI,
obtainMessage(EVENT_GET_ICC_RECORD_DONE, new EfCsimLiLoaded()));
- recordsToLoad++;
+ mRecordsToLoad++;
mFh.loadEFTransparent(EF_CSIM_SPN,
obtainMessage(EVENT_GET_ICC_RECORD_DONE, new EfCsimSpnLoaded()));
- recordsToLoad++;
+ mRecordsToLoad++;
mFh.loadEFLinearFixed(EF_CSIM_MDN, 1,
obtainMessage(EVENT_GET_ICC_RECORD_DONE, new EfCsimMdnLoaded()));
- recordsToLoad++;
+ mRecordsToLoad++;
mFh.loadEFTransparent(EF_CSIM_IMSIM,
obtainMessage(EVENT_GET_ICC_RECORD_DONE, new EfCsimImsimLoaded()));
- recordsToLoad++;
+ mRecordsToLoad++;
mFh.loadEFLinearFixedAll(EF_CSIM_CDMAHOME,
obtainMessage(EVENT_GET_ICC_RECORD_DONE, new EfCsimCdmaHomeLoaded()));
- recordsToLoad++;
+ mRecordsToLoad++;
// Entire PRL could be huge. We are only interested in
// the first 4 bytes of the record.
mFh.loadEFTransparent(EF_CSIM_EPRL, 4,
obtainMessage(EVENT_GET_ICC_RECORD_DONE, new EfCsimEprlLoaded()));
- recordsToLoad++;
+ mRecordsToLoad++;
- if (DBG) log("fetchRuimRecords " + recordsToLoad + " requested: " + recordsRequested);
+ if (DBG) log("fetchRuimRecords " + mRecordsToLoad + " requested: " + mRecordsRequested);
// Further records that can be inserted are Operator/OEM dependent
}
// range: 0-99
countWaiting = 0xff;
}
- countVoiceMessages = countWaiting;
+ mCountVoiceMessages = countWaiting;
mRecordsEventsRegistrants.notifyResult(EVENT_MWI);
}
switch (refreshResponse.refreshResult) {
case IccRefreshResponse.REFRESH_RESULT_FILE_UPDATE:
if (DBG) log("handleRuimRefresh with SIM_REFRESH_FILE_UPDATED");
- adnCache.reset();
+ mAdnCache.reset();
fetchRuimRecords();
break;
case IccRefreshResponse.REFRESH_RESULT_INIT:
pw.println("RuimRecords: " + this);
pw.println(" extends:");
super.dump(fd, pw, args);
- pw.println(" m_ota_commited=" + m_ota_commited);
+ pw.println(" mOtaCommited=" + mOtaCommited);
pw.println(" mMyMobileNumber=" + mMyMobileNumber);
pw.println(" mMin2Min1=" + mMin2Min1);
pw.println(" mPrlVersion=" + mPrlVersion);