Loading src/java/com/android/internal/telephony/SubscriptionInfoUpdater.java +10 −3 Original line number Original line Diff line number Diff line Loading @@ -208,8 +208,15 @@ public class SubscriptionInfoUpdater extends Handler { @UnsupportedAppUsage @UnsupportedAppUsage private boolean isAllIccIdQueryDone() { private boolean isAllIccIdQueryDone() { for (int i = 0; i < PROJECT_SIM_NUM; i++) { for (int i = 0; i < PROJECT_SIM_NUM; i++) { UiccSlot slot = UiccController.getInstance().getUiccSlotForPhone(i); int slotId = UiccController.getInstance().getSlotIdFromPhoneId(i); if (mIccId[i] == null || slot == null || !slot.isActive()) { if (mIccId[i] == null) { if (mIccId[i] == null) { logd("Wait for SIM" + (i + 1) + " IccId"); logd("Wait for SIM " + i + " Iccid"); } else { logd(String.format("Wait for slot corresponding to phone %d to be active, " + "slotId is %d", i, slotId)); } return false; return false; } } } } Loading Loading @@ -617,7 +624,7 @@ public class SubscriptionInfoUpdater extends Handler { UiccSlot[] uiccSlots = uiccController.getUiccSlots(); UiccSlot[] uiccSlots = uiccController.getUiccSlots(); if (uiccSlots != null) { if (uiccSlots != null) { Arrays.stream(uiccSlots) Arrays.stream(uiccSlots) .filter(uiccSlot -> uiccSlot.getUiccCard() != null) .filter(uiccSlot -> uiccSlot != null && uiccSlot.getUiccCard() != null) .map(uiccSlot -> uiccController.convertToPublicCardId( .map(uiccSlot -> uiccController.convertToPublicCardId( uiccSlot.getUiccCard().getCardId())) uiccSlot.getUiccCard().getCardId())) .forEach(cardId -> updateEmbeddedSubscriptions(cardId)); .forEach(cardId -> updateEmbeddedSubscriptions(cardId)); Loading src/java/com/android/internal/telephony/euicc/EuiccCardController.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -158,7 +158,7 @@ public class EuiccCardController extends IEuiccCardController.Stub { } } for (int i = 0; i < slots.length; ++i) { for (int i = 0; i < slots.length; ++i) { UiccSlot slotInfo = slots[i]; UiccSlot slotInfo = slots[i]; if (!slotInfo.isRemovable() && slotInfo.isActive()) { if (slotInfo != null && !slotInfo.isRemovable() && slotInfo.isActive()) { return true; return true; } } } } Loading Loading
src/java/com/android/internal/telephony/SubscriptionInfoUpdater.java +10 −3 Original line number Original line Diff line number Diff line Loading @@ -208,8 +208,15 @@ public class SubscriptionInfoUpdater extends Handler { @UnsupportedAppUsage @UnsupportedAppUsage private boolean isAllIccIdQueryDone() { private boolean isAllIccIdQueryDone() { for (int i = 0; i < PROJECT_SIM_NUM; i++) { for (int i = 0; i < PROJECT_SIM_NUM; i++) { UiccSlot slot = UiccController.getInstance().getUiccSlotForPhone(i); int slotId = UiccController.getInstance().getSlotIdFromPhoneId(i); if (mIccId[i] == null || slot == null || !slot.isActive()) { if (mIccId[i] == null) { if (mIccId[i] == null) { logd("Wait for SIM" + (i + 1) + " IccId"); logd("Wait for SIM " + i + " Iccid"); } else { logd(String.format("Wait for slot corresponding to phone %d to be active, " + "slotId is %d", i, slotId)); } return false; return false; } } } } Loading Loading @@ -617,7 +624,7 @@ public class SubscriptionInfoUpdater extends Handler { UiccSlot[] uiccSlots = uiccController.getUiccSlots(); UiccSlot[] uiccSlots = uiccController.getUiccSlots(); if (uiccSlots != null) { if (uiccSlots != null) { Arrays.stream(uiccSlots) Arrays.stream(uiccSlots) .filter(uiccSlot -> uiccSlot.getUiccCard() != null) .filter(uiccSlot -> uiccSlot != null && uiccSlot.getUiccCard() != null) .map(uiccSlot -> uiccController.convertToPublicCardId( .map(uiccSlot -> uiccController.convertToPublicCardId( uiccSlot.getUiccCard().getCardId())) uiccSlot.getUiccCard().getCardId())) .forEach(cardId -> updateEmbeddedSubscriptions(cardId)); .forEach(cardId -> updateEmbeddedSubscriptions(cardId)); Loading
src/java/com/android/internal/telephony/euicc/EuiccCardController.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -158,7 +158,7 @@ public class EuiccCardController extends IEuiccCardController.Stub { } } for (int i = 0; i < slots.length; ++i) { for (int i = 0; i < slots.length; ++i) { UiccSlot slotInfo = slots[i]; UiccSlot slotInfo = slots[i]; if (!slotInfo.isRemovable() && slotInfo.isActive()) { if (slotInfo != null && !slotInfo.isRemovable() && slotInfo.isActive()) { return true; return true; } } } } Loading