Loading src/java/com/android/internal/telephony/uicc/IccRecords.java +13 −0 Original line number Original line Diff line number Diff line Loading @@ -24,6 +24,7 @@ import android.os.Registrant; import android.os.RegistrantList; import android.os.RegistrantList; import com.android.internal.telephony.CommandsInterface; import com.android.internal.telephony.CommandsInterface; import com.android.internal.telephony.uicc.IccCardApplicationStatus.AppState; import java.io.FileDescriptor; import java.io.FileDescriptor; import java.io.PrintWriter; import java.io.PrintWriter; Loading Loading @@ -91,6 +92,7 @@ public abstract class IccRecords extends Handler implements IccConstants { public static final int EVENT_SPN = 2; // Service Provider Name public static final int EVENT_SPN = 2; // Service Provider Name public static final int EVENT_GET_ICC_RECORD_DONE = 100; public static final int EVENT_GET_ICC_RECORD_DONE = 100; protected static final int EVENT_APP_READY = 1; /** /** * Generic ICC record loaded callback. Subclasses can call EF load methods on * Generic ICC record loaded callback. Subclasses can call EF load methods on Loading Loading @@ -330,6 +332,17 @@ public abstract class IccRecords extends Handler implements IccConstants { */ */ public abstract void onRefresh(boolean fileChanged, int[] fileList); public abstract void onRefresh(boolean fileChanged, int[] fileList); /** * Called by subclasses (SimRecords and RuimRecords) whenever * IccRefreshResponse.REFRESH_RESULT_INIT event received */ protected void onIccRefreshInit() { adnCache.reset(); if (mParentApp.getState() == AppState.APPSTATE_READY) { // This will cause files to be reread sendMessage(obtainMessage(EVENT_APP_READY)); } } public boolean getRecordsLoaded() { public boolean getRecordsLoaded() { if (recordsToLoad == 0 && recordsRequested == true) { if (recordsToLoad == 0 && recordsRequested == true) { Loading src/java/com/android/internal/telephony/uicc/RuimRecords.java +1 −2 Original line number Original line Diff line number Diff line Loading @@ -75,7 +75,6 @@ public final class RuimRecords extends IccRecords { private String mHomeNetworkId; private String mHomeNetworkId; // ***** Event Constants // ***** Event Constants private static final int EVENT_APP_READY = 1; private static final int EVENT_GET_IMSI_DONE = 3; private static final int EVENT_GET_IMSI_DONE = 3; private static final int EVENT_GET_DEVICE_IDENTITY_DONE = 4; private static final int EVENT_GET_DEVICE_IDENTITY_DONE = 4; private static final int EVENT_GET_ICCID_DONE = 5; private static final int EVENT_GET_ICCID_DONE = 5; Loading Loading @@ -752,7 +751,7 @@ public final class RuimRecords extends IccRecords { case IccRefreshResponse.REFRESH_RESULT_INIT: case IccRefreshResponse.REFRESH_RESULT_INIT: if (DBG) log("handleRuimRefresh with SIM_REFRESH_INIT"); if (DBG) log("handleRuimRefresh with SIM_REFRESH_INIT"); // need to reload all files (that we care about) // need to reload all files (that we care about) fetchRuimRecords(); onIccRefreshInit(); break; break; case IccRefreshResponse.REFRESH_RESULT_RESET: case IccRefreshResponse.REFRESH_RESULT_RESET: if (DBG) log("handleRuimRefresh with SIM_REFRESH_RESET"); if (DBG) log("handleRuimRefresh with SIM_REFRESH_RESET"); Loading src/java/com/android/internal/telephony/uicc/SIMRecords.java +1 −4 Original line number Original line Diff line number Diff line Loading @@ -119,8 +119,6 @@ public class SIMRecords extends IccRecords { private static final int CPHS_SST_MBN_ENABLED = 0x30; private static final int CPHS_SST_MBN_ENABLED = 0x30; // ***** Event Constants // ***** Event Constants private static final int EVENT_APP_READY = 1; private static final int EVENT_GET_IMSI_DONE = 3; private static final int EVENT_GET_IMSI_DONE = 3; private static final int EVENT_GET_ICCID_DONE = 4; private static final int EVENT_GET_ICCID_DONE = 4; private static final int EVENT_GET_MBI_DONE = 5; private static final int EVENT_GET_MBI_DONE = 5; Loading Loading @@ -1190,8 +1188,7 @@ public class SIMRecords extends IccRecords { case IccRefreshResponse.REFRESH_RESULT_INIT: case IccRefreshResponse.REFRESH_RESULT_INIT: if (DBG) log("handleSimRefresh with SIM_REFRESH_INIT"); if (DBG) log("handleSimRefresh with SIM_REFRESH_INIT"); // need to reload all files (that we care about) // need to reload all files (that we care about) adnCache.reset(); onIccRefreshInit(); fetchSimRecords(); break; break; case IccRefreshResponse.REFRESH_RESULT_RESET: case IccRefreshResponse.REFRESH_RESULT_RESET: if (DBG) log("handleSimRefresh with SIM_REFRESH_RESET"); if (DBG) log("handleSimRefresh with SIM_REFRESH_RESET"); Loading Loading
src/java/com/android/internal/telephony/uicc/IccRecords.java +13 −0 Original line number Original line Diff line number Diff line Loading @@ -24,6 +24,7 @@ import android.os.Registrant; import android.os.RegistrantList; import android.os.RegistrantList; import com.android.internal.telephony.CommandsInterface; import com.android.internal.telephony.CommandsInterface; import com.android.internal.telephony.uicc.IccCardApplicationStatus.AppState; import java.io.FileDescriptor; import java.io.FileDescriptor; import java.io.PrintWriter; import java.io.PrintWriter; Loading Loading @@ -91,6 +92,7 @@ public abstract class IccRecords extends Handler implements IccConstants { public static final int EVENT_SPN = 2; // Service Provider Name public static final int EVENT_SPN = 2; // Service Provider Name public static final int EVENT_GET_ICC_RECORD_DONE = 100; public static final int EVENT_GET_ICC_RECORD_DONE = 100; protected static final int EVENT_APP_READY = 1; /** /** * Generic ICC record loaded callback. Subclasses can call EF load methods on * Generic ICC record loaded callback. Subclasses can call EF load methods on Loading Loading @@ -330,6 +332,17 @@ public abstract class IccRecords extends Handler implements IccConstants { */ */ public abstract void onRefresh(boolean fileChanged, int[] fileList); public abstract void onRefresh(boolean fileChanged, int[] fileList); /** * Called by subclasses (SimRecords and RuimRecords) whenever * IccRefreshResponse.REFRESH_RESULT_INIT event received */ protected void onIccRefreshInit() { adnCache.reset(); if (mParentApp.getState() == AppState.APPSTATE_READY) { // This will cause files to be reread sendMessage(obtainMessage(EVENT_APP_READY)); } } public boolean getRecordsLoaded() { public boolean getRecordsLoaded() { if (recordsToLoad == 0 && recordsRequested == true) { if (recordsToLoad == 0 && recordsRequested == true) { Loading
src/java/com/android/internal/telephony/uicc/RuimRecords.java +1 −2 Original line number Original line Diff line number Diff line Loading @@ -75,7 +75,6 @@ public final class RuimRecords extends IccRecords { private String mHomeNetworkId; private String mHomeNetworkId; // ***** Event Constants // ***** Event Constants private static final int EVENT_APP_READY = 1; private static final int EVENT_GET_IMSI_DONE = 3; private static final int EVENT_GET_IMSI_DONE = 3; private static final int EVENT_GET_DEVICE_IDENTITY_DONE = 4; private static final int EVENT_GET_DEVICE_IDENTITY_DONE = 4; private static final int EVENT_GET_ICCID_DONE = 5; private static final int EVENT_GET_ICCID_DONE = 5; Loading Loading @@ -752,7 +751,7 @@ public final class RuimRecords extends IccRecords { case IccRefreshResponse.REFRESH_RESULT_INIT: case IccRefreshResponse.REFRESH_RESULT_INIT: if (DBG) log("handleRuimRefresh with SIM_REFRESH_INIT"); if (DBG) log("handleRuimRefresh with SIM_REFRESH_INIT"); // need to reload all files (that we care about) // need to reload all files (that we care about) fetchRuimRecords(); onIccRefreshInit(); break; break; case IccRefreshResponse.REFRESH_RESULT_RESET: case IccRefreshResponse.REFRESH_RESULT_RESET: if (DBG) log("handleRuimRefresh with SIM_REFRESH_RESET"); if (DBG) log("handleRuimRefresh with SIM_REFRESH_RESET"); Loading
src/java/com/android/internal/telephony/uicc/SIMRecords.java +1 −4 Original line number Original line Diff line number Diff line Loading @@ -119,8 +119,6 @@ public class SIMRecords extends IccRecords { private static final int CPHS_SST_MBN_ENABLED = 0x30; private static final int CPHS_SST_MBN_ENABLED = 0x30; // ***** Event Constants // ***** Event Constants private static final int EVENT_APP_READY = 1; private static final int EVENT_GET_IMSI_DONE = 3; private static final int EVENT_GET_IMSI_DONE = 3; private static final int EVENT_GET_ICCID_DONE = 4; private static final int EVENT_GET_ICCID_DONE = 4; private static final int EVENT_GET_MBI_DONE = 5; private static final int EVENT_GET_MBI_DONE = 5; Loading Loading @@ -1190,8 +1188,7 @@ public class SIMRecords extends IccRecords { case IccRefreshResponse.REFRESH_RESULT_INIT: case IccRefreshResponse.REFRESH_RESULT_INIT: if (DBG) log("handleSimRefresh with SIM_REFRESH_INIT"); if (DBG) log("handleSimRefresh with SIM_REFRESH_INIT"); // need to reload all files (that we care about) // need to reload all files (that we care about) adnCache.reset(); onIccRefreshInit(); fetchSimRecords(); break; break; case IccRefreshResponse.REFRESH_RESULT_RESET: case IccRefreshResponse.REFRESH_RESULT_RESET: if (DBG) log("handleSimRefresh with SIM_REFRESH_RESET"); if (DBG) log("handleSimRefresh with SIM_REFRESH_RESET"); Loading