Home
last modified time | relevance | path

Searched refs:CardState (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccSlotTest.java36 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
113 iss.cardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in testUpdateInactiveSlotStatus()
119 assertEquals(IccCardStatus.CardState.CARDSTATE_ABSENT, mUiccSlot.getCardState()); in testUpdateInactiveSlotStatus()
128 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mUiccSlot.getCardState()); in testUpdateInactiveSlotStatus()
138 assertEquals(IccCardStatus.CardState.CARDSTATE_ABSENT, mUiccSlot.getCardState()); in testUpdateActiveSlotStatus()
146 iss.cardState = IccCardStatus.CardState.CARDSTATE_ABSENT; in testUpdateActiveSlotStatus()
155 assertEquals(IccCardStatus.CardState.CARDSTATE_ABSENT, mUiccSlot.getCardState()); in testUpdateActiveSlotStatus()
173 iss.cardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in testUpdateSlotStatusEuiccIsSupported()
180 assertEquals(IccCardStatus.CardState.CARDSTATE_ABSENT, mUiccSlot.getCardState()); in testUpdateSlotStatusEuiccIsSupported()
189 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mUiccSlot.getCardState()); in testUpdateSlotStatusEuiccIsSupported()
[all …]
DIccCardStatusTest.java56 mIccCardStatus.setCardState(IccCardStatus.CardState.CARDSTATE_ABSENT.ordinal()); in testSetCardState()
57 assertEquals(IccCardStatus.CardState.CARDSTATE_ABSENT, mIccCardStatus.mCardState); in testSetCardState()
60 mIccCardStatus.setCardState(IccCardStatus.CardState.CARDSTATE_PRESENT.ordinal()); in testSetCardState()
61 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mIccCardStatus.mCardState); in testSetCardState()
64 mIccCardStatus.setCardState(IccCardStatus.CardState.CARDSTATE_ERROR.ordinal()); in testSetCardState()
65 assertEquals(IccCardStatus.CardState.CARDSTATE_ERROR, mIccCardStatus.mCardState); in testSetCardState()
DUiccCardTest.java64 mIccCardStatus.mCardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in setUp()
84 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mUiccCard.getCardState()); in testUiccCartdInfoCorrectness()
100 mIccCardStatus.mCardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in testUpdateUiccCardState()
108 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mUiccCard.getCardState()); in testUpdateUiccCardState()
DUiccStateChangedLauncherTest.java40 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
59 private IccCardStatus makeCardStatus(CardState state) { in makeCardStatus()
104 makeCardStatus(CardState.CARDSTATE_PRESENT), 0 /* phoneId */, new Object()); in testProvisioningPackageSet()
119 makeCardStatus(CardState.CARDSTATE_RESTRICTED)); in testProvisioningPackageSet()
134 makeCardStatus(CardState.CARDSTATE_PRESENT)); in testProvisioningPackageSet()
DUiccProfileTest.java191 mIccCardStatus.mCardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in testUpdateUiccProfile()
505 doReturn(IccCardStatus.CardState.CARDSTATE_ERROR).when(mUiccCard).getCardState(); in testUpdateExternalState()
510 doReturn(IccCardStatus.CardState.CARDSTATE_RESTRICTED).when(mUiccCard).getCardState(); in testUpdateExternalState()
515 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccCard).getCardState(); in testUpdateExternalState()
DUiccControllerTest.java245 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mMockCard).getCardState(); in testCardIdFromIccStatus()
337 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mMockCard).getCardState(); in testGetAllUiccCardInfos()
374 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mMockCard).getCardState(); in testIccidWithTrailingF()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccSlotStatus.java32 public IccCardStatus.CardState cardState;
45 cardState = IccCardStatus.CardState.CARDSTATE_ABSENT; in setCardState()
48 cardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in setCardState()
51 cardState = IccCardStatus.CardState.CARDSTATE_ERROR; in setCardState()
54 cardState = IccCardStatus.CardState.CARDSTATE_RESTRICTED; in setCardState()
DIccCardStatus.java31 public enum CardState { enum in IccCardStatus
72 public CardState mCardState;
92 mCardState = CardState.CARDSTATE_ABSENT; in setCardState()
95 mCardState = CardState.CARDSTATE_PRESENT; in setCardState()
98 mCardState = CardState.CARDSTATE_ERROR; in setCardState()
101 mCardState = CardState.CARDSTATE_RESTRICTED; in setCardState()
DUiccSlot.java39 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
60 private CardState mCardState;
88 CardState oldState = mCardState; in update()
107 } else if ((oldState == null || oldState == CardState.CARDSTATE_ABSENT in update()
108 || mUiccCard == null) && mCardState != CardState.CARDSTATE_ABSENT) { in update()
147 CardState oldState = mCardState; in update()
177 private boolean absentStateUpdateNeeded(CardState oldState) { in absentStateUpdateNeeded()
178 return (oldState != CardState.CARDSTATE_ABSENT || mUiccCard != null) in absentStateUpdateNeeded()
179 && mCardState == CardState.CARDSTATE_ABSENT; in absentStateUpdateNeeded()
212 if (mCardState == null || mCardState == CardState.CARDSTATE_ABSENT) { in isStateUnknown()
[all …]
DUiccStateChangedLauncher.java28 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
73 || uiccCard.getCardState() != CardState.CARDSTATE_RESTRICTED) in handleMessage()
DUiccCard.java34 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
57 private CardState mCardState;
94 if (mCardState != CardState.CARDSTATE_ABSENT) { in update()
172 public CardState getCardState() { in getCardState()
DUiccProfile.java70 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
569 if (mUiccCard.getCardState() == IccCardStatus.CardState.CARDSTATE_ERROR) { in updateExternalState()
574 if (mUiccCard.getCardState() == IccCardStatus.CardState.CARDSTATE_RESTRICTED) { in updateExternalState()
1062 != IccCardStatus.CardState.CARDSTATE_ABSENT) { in hasIccCard()
1109 if (mCarrierPrivilegeRules == null && ics.mCardState == CardState.CARDSTATE_PRESENT) { in update()
1113 && ics.mCardState != CardState.CARDSTATE_PRESENT) { in update()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DSimSlotState.java19 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
45 if (slot.getCardState() == CardState.CARDSTATE_PRESENT) { in getCurrentState()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DSimSlotStateTest.java28 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
53 doReturn(CardState.CARDSTATE_ABSENT).when(mEmptySlot).getCardState(); in setUp()
56 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot).getCardState(); in setUp()
60 doReturn(CardState.CARDSTATE_PRESENT).when(mEsimSlot).getCardState(); in setUp()
146 doReturn(CardState.CARDSTATE_ERROR).when(mPhysicalSlot).getCardState(); in testSingleSim_physicalSimCardInErrorState()
161 doReturn(CardState.CARDSTATE_RESTRICTED).when(mPhysicalSlot).getCardState(); in testSingleSim_physicalSimCardInRestrictedState()
DMetricsCollectorTest.java47 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
112 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot).getCardState(); in onPullAtom_simSlotState_bothSimPresent()
115 doReturn(CardState.CARDSTATE_PRESENT).when(mEsimSlot).getCardState(); in onPullAtom_simSlotState_bothSimPresent()
DServiceStateStatsTest.java41 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
93 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot0).getCardState(); in setUp()
209 doReturn(CardState.CARDSTATE_ABSENT).when(mPhysicalSlot0).getCardState(); in conclude_noSimCardEmergencyOnly()
239 doReturn(CardState.CARDSTATE_ABSENT).when(mPhysicalSlot0).getCardState(); in conclude_noSimCardOutOfService()
536 doReturn(CardState.CARDSTATE_ABSENT).when(mPhysicalSlot0).getCardState(); in update_simSwapSameRat()
544 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot0).getCardState(); in update_simSwapSameRat()
818 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot1).getCardState(); in mockDualSim()
DImsStatsTest.java50 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
123 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot0).getCardState(); in setUp()
679 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot1).getCardState(); in onImsUnregistered_multiSim()
DVoiceCallSessionStatsTest.java65 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
153 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot).getCardState(); in setUp()
156 doReturn(CardState.CARDSTATE_ABSENT).when(mEmptySlot).getCardState(); in setUp()
158 doReturn(CardState.CARDSTATE_PRESENT).when(mEsimSlot).getCardState(); in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DCatService.java42 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
111 private CardState mCardState = CardState.CARDSTATE_ABSENT;
257 broadcastCardStateAndIccRefreshResp(CardState.CARDSTATE_ABSENT, null); in dispose()
869 broadcastCardStateAndIccRefreshResp(CardState.CARDSTATE_PRESENT, in handleMessage()
902 private void broadcastCardStateAndIccRefreshResp(CardState cardState, in broadcastCardStateAndIccRefreshResp()
905 boolean cardPresent = (cardState == CardState.CARDSTATE_PRESENT); in broadcastCardStateAndIccRefreshResp()
1156 CardState newState = CardState.CARDSTATE_ABSENT; in updateIccAvailability()
1161 CardState oldState = mCardState; in updateIccAvailability()
1164 if (oldState == CardState.CARDSTATE_PRESENT && in updateIccAvailability()
1165 newState != CardState.CARDSTATE_PRESENT) { in updateIccAvailability()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccCardControllerTest.java37 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
102 when(mActivatedEsimSlot.getCardState()).thenReturn(CardState.CARDSTATE_PRESENT); in setUp()
105 when(mNotPresentEsimSlot.getCardState()).thenReturn(CardState.CARDSTATE_ERROR); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaPhoneTest.java1359 doReturn(IccCardStatus.CardState.CARDSTATE_ABSENT).when(mUiccSlot).getCardState(); in testEnableUiccApplications()
1363 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccSlot).getCardState(); in testEnableUiccApplications()
1378 doReturn(IccCardStatus.CardState.CARDSTATE_ABSENT).when(mUiccSlot).getCardState(); in testReapplyUiccApplicationEnablementNotNeeded()
1381 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccSlot).getCardState(); in testReapplyUiccApplicationEnablementNotNeeded()
1404 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccSlot).getCardState(); in testReapplyUiccApplicationEnablementSuccess()
1456 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccSlot).getCardState(); in testReapplyUiccApplicationEnablementRetry()
DSubscriptionControllerTest.java20 import static com.android.internal.telephony.uicc.IccCardStatus.CardState.CARDSTATE_PRESENT;
1844 IccCardStatus.CardState cardState = CARDSTATE_PRESENT; in testGetAvailableSubscriptionList()
1873 IccCardStatus.CardState cardState = CARDSTATE_PRESENT; in testGetAvailableSubscriptionList_withTrailingF()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/
DEuiccCardTest.java115 mMockIccCardStatus.mCardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DServiceStateTracker.java109 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
1854 simAbsent = (uiccCard.getCardState() == CardState.CARDSTATE_ABSENT); in isSimAbsent()
4754 if (uiccCard == null || uiccCard.getCardState() == CardState.CARDSTATE_ABSENT) { in queueNextSignalStrengthPoll()
DGsmCdmaPhone.java4590 if (slot == null || slot.getCardState() != IccCardStatus.CardState.CARDSTATE_PRESENT in reapplyUiccAppsEnablementIfNeeded()
4619 if (slot == null || slot.getCardState() != IccCardStatus.CardState.CARDSTATE_PRESENT) { in enableUiccApplications()

12