Loading src/java/com/android/internal/telephony/RadioResponse.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -1297,6 +1297,7 @@ public class RadioResponse extends IRadioResponse.Stub { appStatus.pin1 = appStatus.PinStateFromRILInt(rilAppStatus.pin1); appStatus.pin1 = appStatus.PinStateFromRILInt(rilAppStatus.pin1); appStatus.pin2 = appStatus.PinStateFromRILInt(rilAppStatus.pin2); appStatus.pin2 = appStatus.PinStateFromRILInt(rilAppStatus.pin2); iccCardStatus.mApplications[i] = appStatus; iccCardStatus.mApplications[i] = appStatus; mRil.riljLog("IccCardApplicationStatus " + i + ":" + appStatus.toString()); } } return iccCardStatus; return iccCardStatus; } } Loading src/java/com/android/internal/telephony/uicc/IccRecords.java +11 −0 Original line number Original line Diff line number Diff line Loading @@ -47,6 +47,7 @@ public abstract class IccRecords extends Handler implements IccConstants { // ***** Instance Variables // ***** Instance Variables protected AtomicBoolean mDestroyed = new AtomicBoolean(false); protected AtomicBoolean mDestroyed = new AtomicBoolean(false); protected AtomicBoolean mLoaded = new AtomicBoolean(false); protected Context mContext; protected Context mContext; protected CommandsInterface mCi; protected CommandsInterface mCi; protected IccFileHandler mFh; protected IccFileHandler mFh; Loading Loading @@ -255,6 +256,7 @@ public abstract class IccRecords extends Handler implements IccConstants { if (mAdnCache != null) { if (mAdnCache != null) { mAdnCache.reset(); mAdnCache.reset(); } } mLoaded.set(false); } } public abstract void onReady(); public abstract void onReady(); Loading Loading @@ -817,6 +819,15 @@ public abstract class IccRecords extends Handler implements IccConstants { public void setVoiceCallForwardingFlag(int line, boolean enable, String number) { public void setVoiceCallForwardingFlag(int line, boolean enable, String number) { } } /** * Indicates wether the ICC records have been loaded or not * * @return true if the records have been loaded, false otherwise. */ public boolean isLoaded() { return mLoaded.get(); } /** /** * Indicates wether SIM is in provisioned state or not. * Indicates wether SIM is in provisioned state or not. * Overridden only if SIM can be dynamically provisioned via OTA. * Overridden only if SIM can be dynamically provisioned via OTA. Loading src/java/com/android/internal/telephony/uicc/IsimUiccRecords.java +2 −0 Original line number Original line Diff line number Diff line Loading @@ -185,6 +185,7 @@ public class IsimUiccRecords extends IccRecords implements IsimRecords { mRecordsRequested = false; mRecordsRequested = false; mLockedRecordsReqReason = LOCKED_RECORDS_REQ_REASON_NONE; mLockedRecordsReqReason = LOCKED_RECORDS_REQ_REASON_NONE; mLoaded.set(false); } } private class EfIsimImpiLoaded implements IccRecords.IccRecordLoaded { private class EfIsimImpiLoaded implements IccRecords.IccRecordLoaded { Loading Loading @@ -306,6 +307,7 @@ public class IsimUiccRecords extends IccRecords implements IsimRecords { @Override @Override protected void onAllRecordsLoaded() { protected void onAllRecordsLoaded() { if (DBG) log("record load complete"); if (DBG) log("record load complete"); mLoaded.set(true); mRecordsLoadedRegistrants.notifyRegistrants(new AsyncResult(null, null, null)); mRecordsLoadedRegistrants.notifyRegistrants(new AsyncResult(null, null, null)); } } Loading src/java/com/android/internal/telephony/uicc/RuimRecords.java +2 −0 Original line number Original line Diff line number Diff line Loading @@ -157,6 +157,7 @@ public class RuimRecords extends IccRecords { // true only when fresh set of read requests are made. // true only when fresh set of read requests are made. mRecordsRequested = false; mRecordsRequested = false; mLockedRecordsReqReason = LOCKED_RECORDS_REQ_REASON_NONE; mLockedRecordsReqReason = LOCKED_RECORDS_REQ_REASON_NONE; mLoaded.set(false); } } public String getMdnNumber() { public String getMdnNumber() { Loading Loading @@ -807,6 +808,7 @@ public class RuimRecords extends IccRecords { setSimLanguage(mEFli, mEFpl); setSimLanguage(mEFli, mEFpl); } } mLoaded.set(true); mRecordsLoadedRegistrants.notifyRegistrants(new AsyncResult(null, null, null)); mRecordsLoadedRegistrants.notifyRegistrants(new AsyncResult(null, null, null)); // TODO: The below is hacky since the SubscriptionController may not be ready at this time. // TODO: The below is hacky since the SubscriptionController may not be ready at this time. Loading src/java/com/android/internal/telephony/uicc/SIMRecords.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -293,6 +293,7 @@ public class SIMRecords extends IccRecords { // true only when fresh set of read requests are made. // true only when fresh set of read requests are made. mRecordsRequested = false; mRecordsRequested = false; mLockedRecordsReqReason = LOCKED_RECORDS_REQ_REASON_NONE; mLockedRecordsReqReason = LOCKED_RECORDS_REQ_REASON_NONE; mLoaded.set(false); } } //***** Public Methods //***** Public Methods Loading Loading @@ -1600,7 +1601,7 @@ public class SIMRecords extends IccRecords { } } setVoiceMailByCountry(operator); setVoiceMailByCountry(operator); mLoaded.set(true); mRecordsLoadedRegistrants.notifyRegistrants(new AsyncResult(null, null, null)); mRecordsLoadedRegistrants.notifyRegistrants(new AsyncResult(null, null, null)); } } Loading Loading
src/java/com/android/internal/telephony/RadioResponse.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -1297,6 +1297,7 @@ public class RadioResponse extends IRadioResponse.Stub { appStatus.pin1 = appStatus.PinStateFromRILInt(rilAppStatus.pin1); appStatus.pin1 = appStatus.PinStateFromRILInt(rilAppStatus.pin1); appStatus.pin2 = appStatus.PinStateFromRILInt(rilAppStatus.pin2); appStatus.pin2 = appStatus.PinStateFromRILInt(rilAppStatus.pin2); iccCardStatus.mApplications[i] = appStatus; iccCardStatus.mApplications[i] = appStatus; mRil.riljLog("IccCardApplicationStatus " + i + ":" + appStatus.toString()); } } return iccCardStatus; return iccCardStatus; } } Loading
src/java/com/android/internal/telephony/uicc/IccRecords.java +11 −0 Original line number Original line Diff line number Diff line Loading @@ -47,6 +47,7 @@ public abstract class IccRecords extends Handler implements IccConstants { // ***** Instance Variables // ***** Instance Variables protected AtomicBoolean mDestroyed = new AtomicBoolean(false); protected AtomicBoolean mDestroyed = new AtomicBoolean(false); protected AtomicBoolean mLoaded = new AtomicBoolean(false); protected Context mContext; protected Context mContext; protected CommandsInterface mCi; protected CommandsInterface mCi; protected IccFileHandler mFh; protected IccFileHandler mFh; Loading Loading @@ -255,6 +256,7 @@ public abstract class IccRecords extends Handler implements IccConstants { if (mAdnCache != null) { if (mAdnCache != null) { mAdnCache.reset(); mAdnCache.reset(); } } mLoaded.set(false); } } public abstract void onReady(); public abstract void onReady(); Loading Loading @@ -817,6 +819,15 @@ public abstract class IccRecords extends Handler implements IccConstants { public void setVoiceCallForwardingFlag(int line, boolean enable, String number) { public void setVoiceCallForwardingFlag(int line, boolean enable, String number) { } } /** * Indicates wether the ICC records have been loaded or not * * @return true if the records have been loaded, false otherwise. */ public boolean isLoaded() { return mLoaded.get(); } /** /** * Indicates wether SIM is in provisioned state or not. * Indicates wether SIM is in provisioned state or not. * Overridden only if SIM can be dynamically provisioned via OTA. * Overridden only if SIM can be dynamically provisioned via OTA. Loading
src/java/com/android/internal/telephony/uicc/IsimUiccRecords.java +2 −0 Original line number Original line Diff line number Diff line Loading @@ -185,6 +185,7 @@ public class IsimUiccRecords extends IccRecords implements IsimRecords { mRecordsRequested = false; mRecordsRequested = false; mLockedRecordsReqReason = LOCKED_RECORDS_REQ_REASON_NONE; mLockedRecordsReqReason = LOCKED_RECORDS_REQ_REASON_NONE; mLoaded.set(false); } } private class EfIsimImpiLoaded implements IccRecords.IccRecordLoaded { private class EfIsimImpiLoaded implements IccRecords.IccRecordLoaded { Loading Loading @@ -306,6 +307,7 @@ public class IsimUiccRecords extends IccRecords implements IsimRecords { @Override @Override protected void onAllRecordsLoaded() { protected void onAllRecordsLoaded() { if (DBG) log("record load complete"); if (DBG) log("record load complete"); mLoaded.set(true); mRecordsLoadedRegistrants.notifyRegistrants(new AsyncResult(null, null, null)); mRecordsLoadedRegistrants.notifyRegistrants(new AsyncResult(null, null, null)); } } Loading
src/java/com/android/internal/telephony/uicc/RuimRecords.java +2 −0 Original line number Original line Diff line number Diff line Loading @@ -157,6 +157,7 @@ public class RuimRecords extends IccRecords { // true only when fresh set of read requests are made. // true only when fresh set of read requests are made. mRecordsRequested = false; mRecordsRequested = false; mLockedRecordsReqReason = LOCKED_RECORDS_REQ_REASON_NONE; mLockedRecordsReqReason = LOCKED_RECORDS_REQ_REASON_NONE; mLoaded.set(false); } } public String getMdnNumber() { public String getMdnNumber() { Loading Loading @@ -807,6 +808,7 @@ public class RuimRecords extends IccRecords { setSimLanguage(mEFli, mEFpl); setSimLanguage(mEFli, mEFpl); } } mLoaded.set(true); mRecordsLoadedRegistrants.notifyRegistrants(new AsyncResult(null, null, null)); mRecordsLoadedRegistrants.notifyRegistrants(new AsyncResult(null, null, null)); // TODO: The below is hacky since the SubscriptionController may not be ready at this time. // TODO: The below is hacky since the SubscriptionController may not be ready at this time. Loading
src/java/com/android/internal/telephony/uicc/SIMRecords.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -293,6 +293,7 @@ public class SIMRecords extends IccRecords { // true only when fresh set of read requests are made. // true only when fresh set of read requests are made. mRecordsRequested = false; mRecordsRequested = false; mLockedRecordsReqReason = LOCKED_RECORDS_REQ_REASON_NONE; mLockedRecordsReqReason = LOCKED_RECORDS_REQ_REASON_NONE; mLoaded.set(false); } } //***** Public Methods //***** Public Methods Loading Loading @@ -1600,7 +1601,7 @@ public class SIMRecords extends IccRecords { } } setVoiceMailByCountry(operator); setVoiceMailByCountry(operator); mLoaded.set(true); mRecordsLoadedRegistrants.notifyRegistrants(new AsyncResult(null, null, null)); mRecordsLoadedRegistrants.notifyRegistrants(new AsyncResult(null, null, null)); } } Loading