Loading src/java/com/android/internal/telephony/uicc/UiccController.java +12 −6 Original line number Diff line number Diff line Loading @@ -699,11 +699,13 @@ public class UiccController extends Handler { // sanity check: logicalSlotIndex should be valid for an active slot if (!isValidPhoneIndex(iss.logicalSlotIndex)) { throw new RuntimeException("Logical slot index " + iss.logicalSlotIndex + " invalid for physical slot " + i); } Rlog.e(LOG_TAG, "Skipping slot " + i + " as phone " + iss.logicalSlotIndex + " is not available to communicate with this slot"); } else { mPhoneIdToSlotId[iss.logicalSlotIndex] = i; } } if (mUiccSlots[i] == null) { if (VDBG) { Loading @@ -712,7 +714,11 @@ public class UiccController extends Handler { mUiccSlots[i] = new UiccSlot(mContext, isActive); } if (!isValidPhoneIndex(iss.logicalSlotIndex)) { mUiccSlots[i].update(null, iss); } else { mUiccSlots[i].update(isActive ? mCis[iss.logicalSlotIndex] : null, iss); } if (mUiccSlots[i].isEuicc()) { String eid = iss.eid; Loading @@ -730,8 +736,8 @@ public class UiccController extends Handler { // sanity check: number of active slots should be valid if (numActiveSlots != mPhoneIdToSlotId.length) { throw new RuntimeException("Number of active slots " + numActiveSlots + " does not match the expected value " + mPhoneIdToSlotId.length); Rlog.e(LOG_TAG, "Number of active slots " + numActiveSlots + " does not match the number of Phones" + mPhoneIdToSlotId.length); } // sanity check: slotIds should be unique in mPhoneIdToSlotId Loading Loading
src/java/com/android/internal/telephony/uicc/UiccController.java +12 −6 Original line number Diff line number Diff line Loading @@ -699,11 +699,13 @@ public class UiccController extends Handler { // sanity check: logicalSlotIndex should be valid for an active slot if (!isValidPhoneIndex(iss.logicalSlotIndex)) { throw new RuntimeException("Logical slot index " + iss.logicalSlotIndex + " invalid for physical slot " + i); } Rlog.e(LOG_TAG, "Skipping slot " + i + " as phone " + iss.logicalSlotIndex + " is not available to communicate with this slot"); } else { mPhoneIdToSlotId[iss.logicalSlotIndex] = i; } } if (mUiccSlots[i] == null) { if (VDBG) { Loading @@ -712,7 +714,11 @@ public class UiccController extends Handler { mUiccSlots[i] = new UiccSlot(mContext, isActive); } if (!isValidPhoneIndex(iss.logicalSlotIndex)) { mUiccSlots[i].update(null, iss); } else { mUiccSlots[i].update(isActive ? mCis[iss.logicalSlotIndex] : null, iss); } if (mUiccSlots[i].isEuicc()) { String eid = iss.eid; Loading @@ -730,8 +736,8 @@ public class UiccController extends Handler { // sanity check: number of active slots should be valid if (numActiveSlots != mPhoneIdToSlotId.length) { throw new RuntimeException("Number of active slots " + numActiveSlots + " does not match the expected value " + mPhoneIdToSlotId.length); Rlog.e(LOG_TAG, "Number of active slots " + numActiveSlots + " does not match the number of Phones" + mPhoneIdToSlotId.length); } // sanity check: slotIds should be unique in mPhoneIdToSlotId Loading