Loading src/java/com/android/internal/telephony/uicc/UiccController.java +24 −0 Original line number Original line Diff line number Diff line Loading @@ -686,6 +686,13 @@ public class UiccController extends Handler { Rlog.e(LOG_TAG,"onGetIccCardStatusDone: invalid index : " + index); Rlog.e(LOG_TAG,"onGetIccCardStatusDone: invalid index : " + index); return; return; } } if (isShuttingDown()) { // Do not process the SIM/SLOT events during device shutdown, // as it may unnecessarily modify the persistent information // like, SubscriptionManager.UICC_APPLICATIONS_ENABLED. log("onGetIccCardStatusDone: shudown in progress ignore event"); return; } IccCardStatus status = (IccCardStatus)ar.result; IccCardStatus status = (IccCardStatus)ar.result; Loading Loading @@ -914,6 +921,13 @@ public class UiccController extends Handler { } } return; return; } } if (isShuttingDown()) { // Do not process the SIM/SLOT events during device shutdown, // as it may unnecessarily modify the persistent information // like, SubscriptionManager.UICC_APPLICATIONS_ENABLED. log("onGetSlotStatusDone: shudown in progress ignore event"); return; } ArrayList<IccSlotStatus> status = (ArrayList<IccSlotStatus>) ar.result; ArrayList<IccSlotStatus> status = (ArrayList<IccSlotStatus>) ar.result; Loading Loading @@ -1230,6 +1244,16 @@ public class UiccController extends Handler { return (index >= 0 && index < mUiccSlots.length); return (index >= 0 && index < mUiccSlots.length); } } private boolean isShuttingDown() { for (int i = 0; i < TelephonyManager.getDefault().getActiveModemCount(); i++) { if (PhoneFactory.getPhone(i) != null && PhoneFactory.getPhone(i).isShuttingDown()) { return true; } } return false; } @UnsupportedAppUsage @UnsupportedAppUsage private void log(String string) { private void log(String string) { Rlog.d(LOG_TAG, string); Rlog.d(LOG_TAG, string); Loading Loading
src/java/com/android/internal/telephony/uicc/UiccController.java +24 −0 Original line number Original line Diff line number Diff line Loading @@ -686,6 +686,13 @@ public class UiccController extends Handler { Rlog.e(LOG_TAG,"onGetIccCardStatusDone: invalid index : " + index); Rlog.e(LOG_TAG,"onGetIccCardStatusDone: invalid index : " + index); return; return; } } if (isShuttingDown()) { // Do not process the SIM/SLOT events during device shutdown, // as it may unnecessarily modify the persistent information // like, SubscriptionManager.UICC_APPLICATIONS_ENABLED. log("onGetIccCardStatusDone: shudown in progress ignore event"); return; } IccCardStatus status = (IccCardStatus)ar.result; IccCardStatus status = (IccCardStatus)ar.result; Loading Loading @@ -914,6 +921,13 @@ public class UiccController extends Handler { } } return; return; } } if (isShuttingDown()) { // Do not process the SIM/SLOT events during device shutdown, // as it may unnecessarily modify the persistent information // like, SubscriptionManager.UICC_APPLICATIONS_ENABLED. log("onGetSlotStatusDone: shudown in progress ignore event"); return; } ArrayList<IccSlotStatus> status = (ArrayList<IccSlotStatus>) ar.result; ArrayList<IccSlotStatus> status = (ArrayList<IccSlotStatus>) ar.result; Loading Loading @@ -1230,6 +1244,16 @@ public class UiccController extends Handler { return (index >= 0 && index < mUiccSlots.length); return (index >= 0 && index < mUiccSlots.length); } } private boolean isShuttingDown() { for (int i = 0; i < TelephonyManager.getDefault().getActiveModemCount(); i++) { if (PhoneFactory.getPhone(i) != null && PhoneFactory.getPhone(i).isShuttingDown()) { return true; } } return false; } @UnsupportedAppUsage @UnsupportedAppUsage private void log(String string) { private void log(String string) { Rlog.d(LOG_TAG, string); Rlog.d(LOG_TAG, string); Loading