Home
last modified time | relevance | path

Searched refs:mUiccSlot (Results 1 – 5 of 5) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccSlotTest.java61 mUiccSlot = new UiccSlot(mContext, true /* isActive */); in onLooperPrepared()
67 mUiccSlot.update(mSimulatedCommands, mIccCardStatus, 0 /* phoneId */, in onLooperPrepared()
106 mUiccSlot = null; in tearDown()
122 assertTrue(mUiccSlot.isActive()); in testUpdateInactiveSlotStatus()
123 assertNull(mUiccSlot.getUiccCard()); in testUpdateInactiveSlotStatus()
124 assertEquals(IccCardStatus.CardState.CARDSTATE_ABSENT, mUiccSlot.getCardState()); in testUpdateInactiveSlotStatus()
127 mUiccSlot.update(null, iss, 0 /* slotIndex */); in testUpdateInactiveSlotStatus()
130 assertFalse(mUiccSlot.isActive()); in testUpdateInactiveSlotStatus()
131 assertNull(mUiccSlot.getUiccCard()); in testUpdateInactiveSlotStatus()
132 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mUiccSlot.getCardState()); in testUpdateInactiveSlotStatus()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccControllerTest.java149 private UiccSlot mUiccSlot; field in EuiccControllerTest
222 mUiccSlot = Mockito.mock(UiccSlot.class); in setUp()
1188 when(mUiccSlot.getPortList()).thenReturn(new int[]{0, 1}); in testGetResolvedPortIndexForSubscriptionSwitchWithMEP()
1189 when(mUiccSlot.isPortActive(TelephonyManager.DEFAULT_PORT_INDEX)).thenReturn(false); in testGetResolvedPortIndexForSubscriptionSwitchWithMEP()
1190 when(mUiccSlot.isPortActive(1)).thenReturn(true); in testGetResolvedPortIndexForSubscriptionSwitchWithMEP()
1204 when(mUiccController.getUiccSlot(anyInt())).thenReturn(mUiccSlot); in testGetResolvedPortIndexForSubscriptionSwitchWithPsimActiveAndSS()
1205 when(mUiccSlot.isRemovable()).thenReturn(true); in testGetResolvedPortIndexForSubscriptionSwitchWithPsimActiveAndSS()
1206 when(mUiccSlot.isEuicc()).thenReturn(false); in testGetResolvedPortIndexForSubscriptionSwitchWithPsimActiveAndSS()
1207 when(mUiccSlot.isActive()).thenReturn(true); in testGetResolvedPortIndexForSubscriptionSwitchWithPsimActiveAndSS()
1217 when(mUiccSlot.getPortList()).thenReturn(new int[]{0}); in testGetResolvedPortIndexForSubscriptionSwitchWithPsimInActiveAndSS()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/subscription/
DSubscriptionManagerServiceTest.java186 doReturn(new UiccSlot[]{mUiccSlot}).when(mUiccController).getUiccSlots(); in setUp()
205 doReturn(true).when(mUiccSlot).isActive(); in setUp()
956 doReturn(TelephonyManager.INVALID_PORT_INDEX).when(mUiccSlot) in testUpdateEmbeddedSubscriptions()
2399 doReturn(true).when(mUiccSlot).isEuicc(); in testUserUnlockUpdateEmbeddedSubscriptions()
2401 doReturn(TelephonyManager.INVALID_PORT_INDEX).when(mUiccSlot) in testUserUnlockUpdateEmbeddedSubscriptions()
2450 doReturn(0).when(mUiccSlot).getPortIndexFromIccId(anyString()); in testInsertNewSim()
2451 doReturn(false).when(mUiccSlot).isEuicc(); in testInsertNewSim()
2618 doReturn(0).when(mUiccSlot).getPortIndexFromIccId(anyString()); in testEsimActivation()
2619 doReturn(true).when(mUiccSlot).isEuicc(); in testEsimActivation()
2700 .when(mUiccSlot).getPortIndexFromIccId(anyString()); in testDeleteEsim()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaPhoneTest.java136 private UiccSlot mUiccSlot; field in GsmCdmaPhoneTest
175 mUiccSlot = Mockito.mock(UiccSlot.class); in setUp()
1293 doReturn(mUiccSlot).when(mUiccController).getUiccSlotForPhone(anyInt()); in testEnableUiccApplications()
1294 doReturn(IccCardStatus.CardState.CARDSTATE_ABSENT).when(mUiccSlot).getCardState(); in testEnableUiccApplications()
1298 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccSlot).getCardState(); in testEnableUiccApplications()
1310 doReturn(mUiccSlot).when(mUiccController).getUiccSlotForPhone(anyInt()); in testReapplyUiccApplicationEnablementNotNeeded()
1313 doReturn(IccCardStatus.CardState.CARDSTATE_ABSENT).when(mUiccSlot).getCardState(); in testReapplyUiccApplicationEnablementNotNeeded()
1316 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccSlot).getCardState(); in testReapplyUiccApplicationEnablementNotNeeded()
1327 doReturn(iccId).when(mUiccSlot).getIccId(anyInt()); in testReapplyUiccApplicationEnablementNotNeeded()
1340 doReturn(mUiccSlot).when(mUiccController).getUiccSlotForPhone(anyInt()); in testReapplyUiccApplicationEnablementSuccess()
[all …]
DTelephonyTest.java204 protected UiccSlot mUiccSlot; field in TelephonyTest
491 mUiccSlot = Mockito.mock(UiccSlot.class); in setUp()
615 doReturn(mUiccCard).when(mUiccSlot).getUiccCard(); in setUp()
773 doReturn(new UiccSlot[] {mUiccSlot}).when(mUiccController).getUiccSlots(); in setUp()
774 doReturn(mUiccSlot).when(mUiccController).getUiccSlotForPhone(anyInt()); in setUp()