Home
last modified time | relevance | path

Searched refs:mUiccCard (Results 1 – 8 of 8) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccCardTest.java42 private UiccCard mUiccCard; field in UiccCardTest
64 mUiccCard = new UiccCard(mContext, mSimulatedCommands, mIccCardStatus, 0 /* phoneId */, in setUp()
72 mUiccCard = null; in tearDown()
81 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mUiccCard.getCardState()); in testUiccCartdInfoCorrectness()
82 assertEquals(1, mUiccCard.getUiccPortList().length); in testUiccCartdInfoCorrectness()
91 mUiccCard.update(mContext, mSimulatedCommands, mIccCardStatus, 0); in testUpdateUiccCardState()
95 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mUiccCard.getCardState()); in testUpdateUiccCardState()
97 assertEquals(1, mUiccCard.getUiccPortList().length); in testUpdateUiccCardState()
98 assertNull(mUiccCard.getUiccPort(INVALID_PORT_ID)); in testUpdateUiccCardState()
99 assertNotNull(mUiccCard.getUiccPort(TelephonyManager.DEFAULT_PORT_INDEX)); in testUpdateUiccCardState()
[all …]
DUiccPortTest.java55 private UiccCard mUiccCard; field in UiccPortTest
71 mUiccCard = mock(UiccCard.class); in setUp()
85 mPhoneId /* phoneId */, new Object(), mUiccCard); in setUp()
DUiccProfileTest.java84 private UiccCard mUiccCard; field in UiccProfileTest
106 mUiccCard = mock(UiccCard.class); in setUp()
132 0 /* phoneId */, mUiccCard, new Object(), mFeatureFlags); in setUp()
521 doReturn(IccCardStatus.CardState.CARDSTATE_ERROR).when(mUiccCard).getCardState(); in testUpdateExternalState()
526 doReturn(IccCardStatus.CardState.CARDSTATE_RESTRICTED).when(mUiccCard).getCardState(); in testUpdateExternalState()
531 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccCard).getCardState(); in testUpdateExternalState()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccSlot.java87 private UiccCard mUiccCard; field in UiccSlot
144 || mUiccCard == null) && mCardState.get(ics.mSlotPortMapping.mPortIndex) in update()
156 if (mUiccCard != null && (!mIsEuicc in update()
157 || ArrayUtils.isEmpty(mUiccCard.getUiccPortList()))) { in update()
159 mUiccCard.dispose(); in update()
160 mUiccCard = null; in update()
165 mUiccCard = new UiccCard(mContext, ci, ics, phoneId, mLock, in update()
174 if (mUiccCard == null) { in update()
175 mUiccCard = new EuiccCard(mContext, ci, ics, phoneId, mLock, in update()
180 mUiccCard.update(mContext, ci, ics, phoneId); in update()
[all …]
DUiccProfile.java120 private final UiccCard mUiccCard; field in UiccProfile
336 mUiccCard = uiccCard; in UiccProfile()
345 if (mUiccCard instanceof EuiccCard) { in UiccProfile()
347 ((EuiccCard) mUiccCard).registerForEidReady(mHandler, EVENT_EID_READY, null); in UiccProfile()
369 if (mUiccCard instanceof EuiccCard) { in dispose()
370 ((EuiccCard) mUiccCard).unregisterForEidReady(mHandler); in dispose()
618 if (mUiccCard.getCardState() == IccCardStatus.CardState.CARDSTATE_ERROR) { in updateExternalState()
623 if (mUiccCard.getCardState() == IccCardStatus.CardState.CARDSTATE_RESTRICTED) { in updateExternalState()
628 if (mUiccCard instanceof EuiccCard && ((EuiccCard) mUiccCard).getEid() == null) { in updateExternalState()
1110 if (mUiccCard.getCardState() in hasIccCard()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cat/
DCATServiceTest.java135 mUiccCard = mock(UiccCard.class); in setUp()
147 0 /* phoneId */, mUiccCard, new Object(), mFeatureFlags); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyTest.java264 protected UiccCard mUiccCard; field in TelephonyTest
551 mUiccCard = Mockito.mock(UiccCard.class); in setUp()
614 doReturn(mUiccCard).when(mPhone).getUiccCard(); in setUp()
615 doReturn(mUiccCard).when(mUiccSlot).getUiccCard(); in setUp()
616 doReturn(mUiccCard).when(mUiccController).getUiccCardForPhone(anyInt()); in setUp()
755 doReturn(mUiccCard).when(mUiccController).getUiccCard(anyInt()); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/subscription/
DSubscriptionManagerServiceTest.java203 doReturn(FAKE_ICCID1).when(mUiccCard).getCardId(); in setUp()
2735 doReturn(FAKE_ICCID2).when(mUiccCard).getCardId(); in testEsimSwitch()