Loading src/java/com/android/internal/telephony/euicc/EuiccCardController.java +1 −1 Original line number Diff line number Diff line Loading @@ -158,7 +158,7 @@ public class EuiccCardController extends IEuiccCardController.Stub { } for (int i = 0; i < slots.length; ++i) { UiccSlot slotInfo = slots[i]; if (slotInfo.isEuicc() && slotInfo.isActive()) { if (!slotInfo.isRemovable() && slotInfo.isActive()) { return true; } } Loading tests/telephonytests/src/com/android/internal/telephony/euicc/EuiccCardControllerTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -105,8 +105,10 @@ public class EuiccCardControllerTest extends TelephonyTest { when(mNotPresentEsimSlot.getCardState()).thenReturn(CardState.CARDSTATE_ERROR); when(mInactivatedEsimSlot.isEuicc()).thenReturn(true); when(mInactivatedEsimSlot.isActive()).thenReturn(false); when(mInactivatedEsimSlot.isRemovable()).thenReturn(false); when(mActivatedRemovableSlot.isEuicc()).thenReturn(false); when(mActivatedRemovableSlot.isActive()).thenReturn(true); when(mActivatedRemovableSlot.isRemovable()).thenReturn(true); } @After Loading Loading
src/java/com/android/internal/telephony/euicc/EuiccCardController.java +1 −1 Original line number Diff line number Diff line Loading @@ -158,7 +158,7 @@ public class EuiccCardController extends IEuiccCardController.Stub { } for (int i = 0; i < slots.length; ++i) { UiccSlot slotInfo = slots[i]; if (slotInfo.isEuicc() && slotInfo.isActive()) { if (!slotInfo.isRemovable() && slotInfo.isActive()) { return true; } } Loading
tests/telephonytests/src/com/android/internal/telephony/euicc/EuiccCardControllerTest.java +2 −0 Original line number Diff line number Diff line Loading @@ -105,8 +105,10 @@ public class EuiccCardControllerTest extends TelephonyTest { when(mNotPresentEsimSlot.getCardState()).thenReturn(CardState.CARDSTATE_ERROR); when(mInactivatedEsimSlot.isEuicc()).thenReturn(true); when(mInactivatedEsimSlot.isActive()).thenReturn(false); when(mInactivatedEsimSlot.isRemovable()).thenReturn(false); when(mActivatedRemovableSlot.isEuicc()).thenReturn(false); when(mActivatedRemovableSlot.isActive()).thenReturn(true); when(mActivatedRemovableSlot.isRemovable()).thenReturn(true); } @After Loading