/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | UiccSlotTest.java | 38 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 …]
|
D | IccCardStatusTest.java | 57 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()
|
D | PortUtilsTest.java | 60 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()
|
D | UiccCardTest.java | 58 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()
|
D | UiccStateChangedLauncherTest.java | 42 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()
|
D | UiccProfileTest.java | 220 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()
|
D | UiccControllerTest.java | 119 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()
|
D | UiccPortTest.java | 78 mIccCardStatus.mCardState = IccCardStatus.CardState.CARDSTATE_PRESENT; in setUp()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | IccSlotStatus.java | 67 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()
|
D | IccCardStatus.java | 35 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()
|
D | UiccSlot.java | 45 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 …]
|
D | UiccCard.java | 27 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()
|
D | UiccStateChangedLauncher.java | 28 import com.android.internal.telephony.uicc.IccCardStatus.CardState; 73 || uiccCard.getCardState() != CardState.CARDSTATE_RESTRICTED) in handleMessage()
|
D | PortUtils.java | 65 IccCardStatus.CardState cardState, MultipleEnabledProfilesMode supportedMepMode) { in convertFromHalPortIndex()
|
D | UiccProfile.java | 74 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/ |
D | SimSlotState.java | 19 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/ |
D | CatService.java | 55 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/ |
D | SimSlotStateTest.java | 29 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()
|
D | MetricsCollectorTest.java | 61 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()
|
D | ServiceStateStatsTest.java | 61 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()
|
D | ImsStatsTest.java | 56 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()
|
D | VoiceCallSessionStatsTest.java | 86 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/ |
D | EuiccCardTest.java | 92 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/ |
D | EuiccCardControllerTest.java | 38 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/ |
D | GsmCdmaPhoneTest.java | 1294 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()
|