Home
last modified time | relevance | path

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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccSlotTest.java109 iss.cardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in testUpdateInactiveSlotStatus()
115 assertEquals(IccCardStatus.CardState.CARDSTATE_ABSENT, mUiccSlot.getCardState()); in testUpdateInactiveSlotStatus()
124 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mUiccSlot.getCardState()); in testUpdateInactiveSlotStatus()
134 assertEquals(IccCardStatus.CardState.CARDSTATE_ABSENT, mUiccSlot.getCardState()); in testUpdateActiveSlotStatus()
142 iss.cardState = IccCardStatus.CardState.CARDSTATE_ABSENT; in testUpdateActiveSlotStatus()
151 assertEquals(IccCardStatus.CardState.CARDSTATE_ABSENT, mUiccSlot.getCardState()); in testUpdateActiveSlotStatus()
169 iss.cardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in testUpdateSlotStatusEuiccIsSupported()
176 assertEquals(IccCardStatus.CardState.CARDSTATE_ABSENT, mUiccSlot.getCardState()); in testUpdateSlotStatusEuiccIsSupported()
185 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mUiccSlot.getCardState()); in testUpdateSlotStatusEuiccIsSupported()
204 iss.cardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in testUpdateSlotStatusEuiccIsNotSupported()
[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()
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()
DUiccCardTest.java119 mIccCardStatus.mCardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in setUp()
141 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mUicccard.getCardState()); in tesUiccCartdInfoSanity()
156 mIccCardStatus.mCardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in testUpdateUiccCardState()
166 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mUicccard.getCardState()); in testUpdateUiccCardState()
DUiccProfileTest.java238 mIccCardStatus.mCardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in testUpdateUiccProfile()
484 doReturn(IccCardStatus.CardState.CARDSTATE_ERROR).when(mUiccCard).getCardState(); in testUpdateExternalState()
489 doReturn(IccCardStatus.CardState.CARDSTATE_RESTRICTED).when(mUiccCard).getCardState(); in testUpdateExternalState()
494 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccCard).getCardState(); in testUpdateExternalState()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccSlot.java36 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
56 private CardState mCardState;
82 CardState oldState = mCardState; in update()
100 } else if ((oldState == null || oldState == CardState.CARDSTATE_ABSENT in update()
101 || mUiccCard == null) && mCardState != CardState.CARDSTATE_ABSENT) { in update()
134 CardState oldState = mCardState; in update()
162 private boolean absentStateUpdateNeeded(CardState oldState) { in absentStateUpdateNeeded()
163 return (oldState != CardState.CARDSTATE_ABSENT || mUiccCard != null) in absentStateUpdateNeeded()
164 && mCardState == CardState.CARDSTATE_ABSENT; in absentStateUpdateNeeded()
196 return (mCardState == null || mCardState == CardState.CARDSTATE_ABSENT) && mStateIsUnknown; in isStateUnknown()
[all …]
DIccCardStatus.java29 public enum CardState { enum in IccCardStatus
62 public CardState mCardState;
76 mCardState = CardState.CARDSTATE_ABSENT; in setCardState()
79 mCardState = CardState.CARDSTATE_PRESENT; in setCardState()
82 mCardState = CardState.CARDSTATE_ERROR; in setCardState()
85 mCardState = CardState.CARDSTATE_RESTRICTED; in setCardState()
DIccSlotStatus.java32 public IccCardStatus.CardState cardState;
44 cardState = IccCardStatus.CardState.CARDSTATE_ABSENT; in setCardState()
47 cardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in setCardState()
50 cardState = IccCardStatus.CardState.CARDSTATE_ERROR; in setCardState()
53 cardState = IccCardStatus.CardState.CARDSTATE_RESTRICTED; in setCardState()
DUiccStateChangedLauncher.java28 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
73 || uiccCard.getCardState() != CardState.CARDSTATE_RESTRICTED) in handleMessage()
DUiccCard.java32 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
52 private CardState mCardState;
86 if (mCardState != CardState.CARDSTATE_ABSENT) { in update()
161 public CardState getCardState() { in getCardState()
DUiccProfile.java61 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
416 if (mUiccCard.getCardState() == IccCardStatus.CardState.CARDSTATE_ERROR) { in updateExternalState()
421 if (mUiccCard.getCardState() == IccCardStatus.CardState.CARDSTATE_RESTRICTED) { in updateExternalState()
869 != IccCardStatus.CardState.CARDSTATE_ABSENT) { in hasIccCard()
914 if (mCarrierPrivilegeRules == null && ics.mCardState == CardState.CARDSTATE_PRESENT) { in update()
918 && ics.mCardState != CardState.CARDSTATE_PRESENT) { in update()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DCatService.java47 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
104 private CardState mCardState = CardState.CARDSTATE_ABSENT;
250 broadcastCardStateAndIccRefreshResp(CardState.CARDSTATE_ABSENT, null); in dispose()
861 broadcastCardStateAndIccRefreshResp(CardState.CARDSTATE_PRESENT, in handleMessage()
894 private void broadcastCardStateAndIccRefreshResp(CardState cardState, in broadcastCardStateAndIccRefreshResp()
897 boolean cardPresent = (cardState == CardState.CARDSTATE_PRESENT); in broadcastCardStateAndIccRefreshResp()
1147 CardState newState = CardState.CARDSTATE_ABSENT; in updateIccAvailability()
1152 CardState oldState = mCardState; in updateIccAvailability()
1155 if (oldState == CardState.CARDSTATE_PRESENT && in updateIccAvailability()
1156 newState != CardState.CARDSTATE_PRESENT) { in updateIccAvailability()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/
DEuiccCardTest.java147 mMockIccCardStatus.mCardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in setUp()
/frameworks/base/config/
Dboot-image-profile.txt41604 HSPLcom/android/internal/telephony/uicc/IccCardStatus$CardState;-><init>(Ljava/lang/String;I)V
41723 …lephony/uicc/UiccCard;->getCardState()Lcom/android/internal/telephony/uicc/IccCardStatus$CardState;
60587 Lcom/android/internal/telephony/uicc/IccCardStatus$CardState;