Home
last modified time | relevance | path

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

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccSlotTest.java38 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
119 iss.cardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in testUpdateInactiveSlotStatus()
124 assertEquals(IccCardStatus.CardState.CARDSTATE_ABSENT, mUiccSlot.getCardState()); in testUpdateInactiveSlotStatus()
132 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mUiccSlot.getCardState()); in testUpdateInactiveSlotStatus()
141 assertEquals(IccCardStatus.CardState.CARDSTATE_ABSENT, mUiccSlot.getCardState()); in testUpdateActiveSlotStatus()
151 iss.cardState = IccCardStatus.CardState.CARDSTATE_ABSENT; in testUpdateActiveSlotStatus()
159 assertEquals(IccCardStatus.CardState.CARDSTATE_ABSENT, mUiccSlot.getCardState()); in testUpdateActiveSlotStatus()
172 iss.cardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in testUpdateSlotStatusEuiccIsSupported()
178 assertEquals(IccCardStatus.CardState.CARDSTATE_ABSENT, mUiccSlot.getCardState()); in testUpdateSlotStatusEuiccIsSupported()
186 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mUiccSlot.getCardState()); in testUpdateSlotStatusEuiccIsSupported()
[all …]
DIccCardStatusTest.java57 mIccCardStatus.setCardState(IccCardStatus.CardState.CARDSTATE_ABSENT.ordinal()); in testSetCardState()
58 assertEquals(IccCardStatus.CardState.CARDSTATE_ABSENT, mIccCardStatus.mCardState); in testSetCardState()
61 mIccCardStatus.setCardState(IccCardStatus.CardState.CARDSTATE_PRESENT.ordinal()); in testSetCardState()
62 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mIccCardStatus.mCardState); in testSetCardState()
65 mIccCardStatus.setCardState(IccCardStatus.CardState.CARDSTATE_ERROR.ordinal()); in testSetCardState()
66 assertEquals(IccCardStatus.CardState.CARDSTATE_ERROR, mIccCardStatus.mCardState); in testSetCardState()
DPortUtilsTest.java60 IccCardStatus.CardState.CARDSTATE_PRESENT, in testConvertFromHalPortIndex()
63 IccCardStatus.CardState.CARDSTATE_PRESENT, in testConvertFromHalPortIndex()
66 IccCardStatus.CardState.CARDSTATE_ABSENT, in testConvertFromHalPortIndex()
71 IccCardStatus.CardState.CARDSTATE_ABSENT, in testConvertFromHalPortIndex()
DUiccCardTest.java58 mIccCardStatus.mCardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in setUp()
81 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mUiccCard.getCardState()); in testUiccCartdInfoCorrectness()
89 mIccCardStatus.mCardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in testUpdateUiccCardState()
95 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mUiccCard.getCardState()); in testUpdateUiccCardState()
DUiccStateChangedLauncherTest.java42 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
56 private IccCardStatus makeCardStatus(CardState state) { in makeCardStatus()
102 makeCardStatus(CardState.CARDSTATE_PRESENT), 0 /* phoneId */, new Object(), in testProvisioningPackageSet()
118 makeCardStatus(CardState.CARDSTATE_RESTRICTED), 0); in testProvisioningPackageSet()
133 makeCardStatus(CardState.CARDSTATE_PRESENT), 0); in testProvisioningPackageSet()
DUiccProfileTest.java220 mIccCardStatus.mCardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in testUpdateUiccProfile()
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()
DUiccControllerTest.java119 mIccCardStatus.mCardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in setUp()
259 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mMockCard).getCardState(); in testCardIdFromIccStatus()
360 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mMockCard).getCardState(); in testGetAllUiccCardInfos()
411 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mMockCard).getCardState(); in testIccidWithTrailingF()
DUiccPortTest.java78 mIccCardStatus.mCardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccSlotStatus.java67 public IccCardStatus.CardState cardState;
80 cardState = IccCardStatus.CardState.CARDSTATE_ABSENT; in setCardState()
83 cardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in setCardState()
86 cardState = IccCardStatus.CardState.CARDSTATE_ERROR; in setCardState()
89 cardState = IccCardStatus.CardState.CARDSTATE_RESTRICTED; in setCardState()
DIccCardStatus.java35 public enum CardState { enum in IccCardStatus
76 public CardState mCardState;
121 mCardState = CardState.CARDSTATE_ABSENT; in setCardState()
124 mCardState = CardState.CARDSTATE_PRESENT; in setCardState()
127 mCardState = CardState.CARDSTATE_ERROR; in setCardState()
130 mCardState = CardState.CARDSTATE_RESTRICTED; in setCardState()
DUiccSlot.java45 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
103 private HashMap<Integer, CardState> mCardState = new HashMap<>();
121 CardState oldState = mCardState.get(ics.mSlotPortMapping.mPortIndex); in update()
143 } else if ((oldState == null || oldState == CardState.CARDSTATE_ABSENT in update()
145 != CardState.CARDSTATE_ABSENT) { in update()
204 CardState oldState = mCardState.get(i); in update()
346 private boolean absentStateUpdateNeeded(CardState oldState, int portIndex) { in absentStateUpdateNeeded()
347 return (oldState != CardState.CARDSTATE_ABSENT || mUiccCard != null) in absentStateUpdateNeeded()
348 && mCardState.get(portIndex) == CardState.CARDSTATE_ABSENT; in absentStateUpdateNeeded()
396 CardState cardState = mCardState.get(TelephonyManager.DEFAULT_PORT_INDEX); in isStateUnknown()
[all …]
DUiccCard.java27 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
54 private CardState mCardState;
110 if (mCardState != CardState.CARDSTATE_ABSENT) { in update()
160 public CardState getCardState() { in getCardState()
DUiccStateChangedLauncher.java28 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
73 || uiccCard.getCardState() != CardState.CARDSTATE_RESTRICTED) in handleMessage()
DPortUtils.java65 IccCardStatus.CardState cardState, MultipleEnabledProfilesMode supportedMepMode) { in convertFromHalPortIndex()
DUiccProfile.java74 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
618 if (mUiccCard.getCardState() == IccCardStatus.CardState.CARDSTATE_ERROR) { in updateExternalState()
623 if (mUiccCard.getCardState() == IccCardStatus.CardState.CARDSTATE_RESTRICTED) { in updateExternalState()
1111 != IccCardStatus.CardState.CARDSTATE_ABSENT) { in hasIccCard()
1158 if (mCarrierPrivilegeRules == null && ics.mCardState == CardState.CARDSTATE_PRESENT) { in update()
1162 && 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;
56 if (slot.getCardState() == CardState.CARDSTATE_PRESENT) { in getCurrentState()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DCatService.java55 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
126 private CardState mCardState = CardState.CARDSTATE_ABSENT;
296 broadcastCardStateAndIccRefreshResp(CardState.CARDSTATE_ABSENT, null); in dispose()
1042 broadcastCardStateAndIccRefreshResp(CardState.CARDSTATE_PRESENT, in handleMessage()
1075 private void broadcastCardStateAndIccRefreshResp(CardState cardState, in broadcastCardStateAndIccRefreshResp()
1078 boolean cardPresent = (cardState == CardState.CARDSTATE_PRESENT); in broadcastCardStateAndIccRefreshResp()
1329 CardState newState = CardState.CARDSTATE_ABSENT; in updateIccAvailability()
1334 CardState oldState = mCardState; in updateIccAvailability()
1337 if (oldState == CardState.CARDSTATE_PRESENT && in updateIccAvailability()
1338 newState != CardState.CARDSTATE_PRESENT) { in updateIccAvailability()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DSimSlotStateTest.java29 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
65 doReturn(CardState.CARDSTATE_ABSENT).when(mEmptySlot).getCardState(); in setUp()
68 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot).getCardState(); in setUp()
72 doReturn(CardState.CARDSTATE_PRESENT).when(mEsimSlot).getCardState(); in setUp()
175 doReturn(CardState.CARDSTATE_ERROR).when(mPhysicalSlot).getCardState(); in testSingleSim_physicalSimCardInErrorState()
192 doReturn(CardState.CARDSTATE_RESTRICTED).when(mPhysicalSlot).getCardState(); in testSingleSim_physicalSimCardInRestrictedState()
DMetricsCollectorTest.java61 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
145 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot).getCardState(); in onPullAtom_simSlotState_bothSimPresent()
148 doReturn(CardState.CARDSTATE_PRESENT).when(mEsimSlot).getCardState(); in onPullAtom_simSlotState_bothSimPresent()
DServiceStateStatsTest.java61 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
123 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot0).getCardState(); in setUp()
250 doReturn(CardState.CARDSTATE_ABSENT).when(mPhysicalSlot0).getCardState(); in conclude_noSimCardEmergencyOnly()
282 doReturn(CardState.CARDSTATE_ABSENT).when(mPhysicalSlot0).getCardState(); in conclude_noSimCardOutOfService()
739 doReturn(CardState.CARDSTATE_ABSENT).when(mPhysicalSlot0).getCardState(); in onServiceStateChanged_simSwapSameRat()
745 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot0).getCardState(); in onServiceStateChanged_simSwapSameRat()
1419 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot1).getCardState(); in mockDualSim()
DImsStatsTest.java56 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
142 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot0).getCardState(); in setUp()
1064 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot1).getCardState(); in secondSimMockSetup()
DVoiceCallSessionStatsTest.java86 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
188 doReturn(CardState.CARDSTATE_PRESENT).when(mPhysicalSlot).getCardState(); in setUp()
191 doReturn(CardState.CARDSTATE_ABSENT).when(mEmptySlot).getCardState(); in setUp()
193 doReturn(CardState.CARDSTATE_PRESENT).when(mEsimSlot).getCardState(); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/
DEuiccCardTest.java92 mMockIccCardStatus.mCardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in setUp()
119 assertEquals(IccCardStatus.CardState.CARDSTATE_PRESENT, mEuiccCard.getCardState()); in testEuiccCardInfoCorrectness()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccCardControllerTest.java38 import com.android.internal.telephony.uicc.IccCardStatus.CardState;
101 when(mActivatedEsimSlot.getCardState()).thenReturn(CardState.CARDSTATE_PRESENT); in setUp()
104 when(mNotPresentEsimSlot.getCardState()).thenReturn(CardState.CARDSTATE_ERROR); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaPhoneTest.java1294 doReturn(IccCardStatus.CardState.CARDSTATE_ABSENT).when(mUiccSlot).getCardState(); in testEnableUiccApplications()
1298 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccSlot).getCardState(); in testEnableUiccApplications()
1313 doReturn(IccCardStatus.CardState.CARDSTATE_ABSENT).when(mUiccSlot).getCardState(); in testReapplyUiccApplicationEnablementNotNeeded()
1316 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccSlot).getCardState(); in testReapplyUiccApplicationEnablementNotNeeded()
1341 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccSlot).getCardState(); in testReapplyUiccApplicationEnablementSuccess()
1394 doReturn(IccCardStatus.CardState.CARDSTATE_PRESENT).when(mUiccSlot).getCardState(); in testReapplyUiccApplicationEnablementRetry()

12