Home
last modified time | relevance | path

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

/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 tesUiccCartdInfoSanity()
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.java189 mIccCardStatus.mCardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in testUpdateUiccProfile()
503 doReturn(IccCardStatus.CardState.CARDSTATE_ERROR).when(mUiccCard).getCardState(); in testUpdateExternalState()
508 doReturn(IccCardStatus.CardState.CARDSTATE_RESTRICTED).when(mUiccCard).getCardState(); in testUpdateExternalState()
513 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccCard).getCardState(); in testUpdateExternalState()
DUiccControllerTest.java242 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mMockCard).getCardState(); in testCardIdFromIccStatus()
334 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mMockCard).getCardState(); in testGetAllUiccCardInfos()
371 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.java30 public enum CardState { enum in IccCardStatus
71 public CardState mCardState;
91 mCardState = CardState.CARDSTATE_ABSENT; in setCardState()
94 mCardState = CardState.CARDSTATE_PRESENT; in setCardState()
97 mCardState = CardState.CARDSTATE_ERROR; in setCardState()
100 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.java33 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
56 private CardState mCardState;
93 if (mCardState != CardState.CARDSTATE_ABSENT) { in update()
171 public CardState getCardState() { in getCardState()
DUiccProfile.java62 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
511 if (mUiccCard.getCardState() == IccCardStatus.CardState.CARDSTATE_ERROR) { in updateExternalState()
516 if (mUiccCard.getCardState() == IccCardStatus.CardState.CARDSTATE_RESTRICTED) { in updateExternalState()
986 != IccCardStatus.CardState.CARDSTATE_ABSENT) { in hasIccCard()
1033 if (mCarrierPrivilegeRules == null && ics.mCardState == CardState.CARDSTATE_PRESENT) { in update()
1037 && ics.mCardState != CardState.CARDSTATE_PRESENT) { in update()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DSimSlotStateTest.java26 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
51 doReturn(CardState.CARDSTATE_ABSENT).when(mEmptySlot).getCardState(); in setUp()
54 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot).getCardState(); in setUp()
58 doReturn(CardState.CARDSTATE_PRESENT).when(mEsimSlot).getCardState(); in setUp()
134 doReturn(CardState.CARDSTATE_ERROR).when(mPhysicalSlot).getCardState(); in testSingleSim_physicalSimCardInErrorState()
147 doReturn(CardState.CARDSTATE_RESTRICTED).when(mPhysicalSlot).getCardState(); in testSingleSim_physicalSimCardInRestrictedState()
DMetricsCollectorTest.java43 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
104 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot).getCardState(); in onPullAtom_simSlotState_bothSimPresent()
107 doReturn(CardState.CARDSTATE_PRESENT).when(mEsimSlot).getCardState(); in onPullAtom_simSlotState_bothSimPresent()
DVoiceCallSessionStatsTest.java65 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
154 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot).getCardState(); in setUp()
157 doReturn(CardState.CARDSTATE_ABSENT).when(mEmptySlot).getCardState(); in setUp()
159 doReturn(CardState.CARDSTATE_PRESENT).when(mEsimSlot).getCardState(); in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DSimSlotState.java19 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
42 if (slot.getCardState() == CardState.CARDSTATE_PRESENT) { in getCurrentState()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DCatService.java41 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
110 private CardState mCardState = CardState.CARDSTATE_ABSENT;
256 broadcastCardStateAndIccRefreshResp(CardState.CARDSTATE_ABSENT, null); in dispose()
868 broadcastCardStateAndIccRefreshResp(CardState.CARDSTATE_PRESENT, in handleMessage()
901 private void broadcastCardStateAndIccRefreshResp(CardState cardState, in broadcastCardStateAndIccRefreshResp()
904 boolean cardPresent = (cardState == CardState.CARDSTATE_PRESENT); in broadcastCardStateAndIccRefreshResp()
1155 CardState newState = CardState.CARDSTATE_ABSENT; in updateIccAvailability()
1160 CardState oldState = mCardState; in updateIccAvailability()
1163 if (oldState == CardState.CARDSTATE_PRESENT && in updateIccAvailability()
1164 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.java1192 doReturn(IccCardStatus.CardState.CARDSTATE_ABSENT).when(mUiccSlot).getCardState(); in testEnableUiccApplications()
1196 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccSlot).getCardState(); in testEnableUiccApplications()
1211 doReturn(IccCardStatus.CardState.CARDSTATE_ABSENT).when(mUiccSlot).getCardState(); in testReapplyUiccApplicationEnablementNotNeeded()
1214 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccSlot).getCardState(); in testReapplyUiccApplicationEnablementNotNeeded()
1237 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccSlot).getCardState(); in testReapplyUiccApplicationEnablementSuccess()
1275 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccSlot).getCardState(); in testReapplyUiccApplicationEnablementRetry()
DSubscriptionControllerTest.java20 import static com.android.internal.telephony.uicc.IccCardStatus.CardState.CARDSTATE_PRESENT;
1562 IccCardStatus.CardState cardState = CARDSTATE_PRESENT; in testGetAvailableSubscriptionList()
1591 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.java102 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
1681 simAbsent = (uiccCard.getCardState() == CardState.CARDSTATE_ABSENT); in isSimAbsent()
4412 if (uiccCard == null || uiccCard.getCardState() == CardState.CARDSTATE_ABSENT) { in queueNextSignalStrengthPoll()
DGsmCdmaPhone.java4361 if (slot == null || slot.getCardState() != IccCardStatus.CardState.CARDSTATE_PRESENT in reapplyUiccAppsEnablementIfNeeded()
4390 if (slot == null || slot.getCardState() != IccCardStatus.CardState.CARDSTATE_PRESENT) { in enableUiccApplications()
/frameworks/base/config/
Dpreloaded-classes9173 com.android.internal.telephony.uicc.IccCardStatus$CardState
Dboot-image-profile.txt50182 Lcom/android/internal/telephony/uicc/IccCardStatus$CardState;