Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/connectivity/
DDataConnectionStats.java32 import com.android.internal.telephony.IccCardConstants;
43 private IccCardConstants.State mSimState = IccCardConstants.State.READY;
85 boolean simReadyOrUnknown = mSimState == IccCardConstants.State.READY in notePhoneDataConnectionState()
86 || mSimState == IccCardConstants.State.UNKNOWN; in notePhoneDataConnectionState()
101 String stateExtra = intent.getStringExtra(IccCardConstants.INTENT_KEY_ICC_STATE); in updateSimState()
102 if (IccCardConstants.INTENT_VALUE_ICC_ABSENT.equals(stateExtra)) { in updateSimState()
103 mSimState = IccCardConstants.State.ABSENT; in updateSimState()
104 } else if (IccCardConstants.INTENT_VALUE_ICC_READY.equals(stateExtra)) { in updateSimState()
105 mSimState = IccCardConstants.State.READY; in updateSimState()
106 } else if (IccCardConstants.INTENT_VALUE_ICC_LOCKED.equals(stateExtra)) { in updateSimState()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionInfoUpdater.java207 case IccCardConstants.INTENT_VALUE_ICC_ABSENT: return EVENT_SIM_ABSENT; in internalIccStateToMessage()
208 case IccCardConstants.INTENT_VALUE_ICC_UNKNOWN: return EVENT_SIM_UNKNOWN; in internalIccStateToMessage()
209 case IccCardConstants.INTENT_VALUE_ICC_CARD_IO_ERROR: return EVENT_SIM_IO_ERROR; in internalIccStateToMessage()
210 case IccCardConstants.INTENT_VALUE_ICC_CARD_RESTRICTED: return EVENT_SIM_RESTRICTED; in internalIccStateToMessage()
211 case IccCardConstants.INTENT_VALUE_ICC_NOT_READY: return EVENT_SIM_NOT_READY; in internalIccStateToMessage()
212 case IccCardConstants.INTENT_VALUE_ICC_LOCKED: return EVENT_SIM_LOCKED; in internalIccStateToMessage()
213 case IccCardConstants.INTENT_VALUE_ICC_LOADED: return EVENT_SIM_LOADED; in internalIccStateToMessage()
214 case IccCardConstants.INTENT_VALUE_ICC_READY: return EVENT_SIM_READY; in internalIccStateToMessage()
215 case IccCardConstants.INTENT_VALUE_ICC_IMSI: return EVENT_SIM_IMSI; in internalIccStateToMessage()
273 broadcastSimStateChanged(msg.arg1, IccCardConstants.INTENT_VALUE_ICC_UNKNOWN, null); in handleMessage()
[all …]
DIntentBroadcaster.java57 + i.getStringExtra(IccCardConstants.INTENT_KEY_ICC_STATE)
91 + intent.getStringExtra(IccCardConstants.INTENT_KEY_ICC_STATE) in broadcastStickyIntent()
DSimActivationTracker.java83 if (IccCardConstants.INTENT_VALUE_ICC_ABSENT.equals( in SimActivationTracker()
84 intent.getStringExtra(IccCardConstants.INTENT_KEY_ICC_STATE))) { in SimActivationTracker()
DCarrierActionAgent.java90 final String iccState = intent.getStringExtra(IccCardConstants.INTENT_KEY_ICC_STATE);
166 if (IccCardConstants.INTENT_VALUE_ICC_LOADED.equals(iccState)) { in handleMessage()
184 } else if (IccCardConstants.INTENT_VALUE_ICC_ABSENT.equals(iccState)) { in handleMessage()
DIccCard.java24 import com.android.internal.telephony.IccCardConstants.State;
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DCarrierTextControllerTest.java46 import com.android.internal.telephony.IccCardConstants;
130 IccCardConstants.State.CARD_IO_ERROR); in testWrongSlots()
133 IccCardConstants.State.CARD_IO_ERROR); in testWrongSlots()
134 mCarrierTextController.mCallback.onSimStateChanged(0, 3, IccCardConstants.State.READY); in testWrongSlots()
150 IccCardConstants.State.CARD_IO_ERROR); in testMoreSlotsThanSubs()
153 IccCardConstants.State.CARD_IO_ERROR); in testMoreSlotsThanSubs()
190 when(mKeyguardUpdateMonitor.getSimState(anyInt())).thenReturn(IccCardConstants.State.READY); in testCreateInfo_OneValidSubscription()
214 when(mKeyguardUpdateMonitor.getSimState(anyInt())).thenReturn(IccCardConstants.State.READY); in testCreateInfo_OneValidSubscriptionWithRoaming()
259 when(mKeyguardUpdateMonitor.getSimState(anyInt())).thenReturn(IccCardConstants.State.READY); in testCarrierText_twoValidSubscriptions()
283 .thenReturn(IccCardConstants.State.READY) in testCarrierText_oneDisabledSub()
[all …]
DKeyguardUpdateMonitorTest.java51 import com.android.internal.telephony.IccCardConstants;
146 intent.putExtra(IccCardConstants.INTENT_KEY_ICC_STATE, in testTelephonyCapable_SimState_Absent()
147 IccCardConstants.INTENT_VALUE_ICC_ABSENT); in testTelephonyCapable_SimState_Absent()
157 intent.putExtra(IccCardConstants.INTENT_KEY_ICC_STATE, in testTelephonyCapable_SimState_CardIOError()
158 IccCardConstants.INTENT_VALUE_ICC_CARD_IO_ERROR); in testTelephonyCapable_SimState_CardIOError()
184 intent.putExtra(IccCardConstants.INTENT_KEY_ICC_STATE in testTelephonyCapable_SimValid_ServiceState_PowerOff()
185 , IccCardConstants.INTENT_VALUE_ICC_LOADED); in testTelephonyCapable_SimValid_ServiceState_PowerOff()
224 intent.putExtra(IccCardConstants.INTENT_KEY_ICC_STATE in testTelephonyCapable_BootInitState_SimState_NotReady()
225 , IccCardConstants.INTENT_VALUE_ICC_NOT_READY); in testTelephonyCapable_BootInitState_SimState_NotReady()
239 intent.putExtra(IccCardConstants.INTENT_KEY_ICC_STATE in testTelephonyCapable_BootInitState_SimState_Ready()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java39 import com.android.internal.telephony.IccCardConstants;
120 IccCardConstants.State mSimState = IccCardConstants.State.READY;
286 String stateExtra = intent.getStringExtra(IccCardConstants.INTENT_KEY_ICC_STATE); in updateSimState()
287 if (IccCardConstants.INTENT_VALUE_ICC_ABSENT.equals(stateExtra)) { in updateSimState()
288 mSimState = IccCardConstants.State.ABSENT; in updateSimState()
289 } else if (IccCardConstants.INTENT_VALUE_ICC_CARD_IO_ERROR.equals(stateExtra)) { in updateSimState()
290 mSimState = IccCardConstants.State.CARD_IO_ERROR; in updateSimState()
291 } else if (IccCardConstants.INTENT_VALUE_ICC_CARD_RESTRICTED.equals(stateExtra)) { in updateSimState()
292 mSimState = IccCardConstants.State.CARD_RESTRICTED; in updateSimState()
293 } else if (IccCardConstants.INTENT_VALUE_ICC_READY.equals(stateExtra)) { in updateSimState()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionInfoUpdaterTest.java188 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, FAKE_SUB_ID_1, false); in testSimAbsent()
197 eq(IccCardConstants.INTENT_VALUE_ICC_ABSENT)); in testSimAbsent()
209 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, FAKE_SUB_ID_1, true); in testSimAbsentAndInactive()
220 eq(IccCardConstants.INTENT_VALUE_ICC_ABSENT)); in testSimAbsentAndInactive()
229 IccCardConstants.INTENT_VALUE_ICC_UNKNOWN, null, FAKE_SUB_ID_1, false); in testSimUnknown()
237 eq(IccCardConstants.INTENT_VALUE_ICC_UNKNOWN)); in testSimUnknown()
246 IccCardConstants.INTENT_VALUE_ICC_CARD_IO_ERROR, null, FAKE_SUB_ID_1, false); in testSimError()
254 eq(IccCardConstants.INTENT_VALUE_ICC_CARD_IO_ERROR)); in testSimError()
263 IccCardConstants.INTENT_VALUE_ICC_IMSI, null, 2, false); in testWrongSimState()
271 eq(IccCardConstants.INTENT_VALUE_ICC_IMSI)); in testWrongSimState()
[all …]
DCarrierActionAgentTest.java103 intent.putExtra(IccCardConstants.INTENT_KEY_ICC_STATE, in testCarrierActionResetOnAPM()
104 IccCardConstants.INTENT_VALUE_ICC_LOADED); in testCarrierActionResetOnAPM()
148 intent.putExtra(IccCardConstants.INTENT_KEY_ICC_STATE, in testCarrierActionResetOnAPNChange()
149 IccCardConstants.INTENT_VALUE_ICC_LOADED); in testCarrierActionResetOnAPNChange()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccProfile.java53 import com.android.internal.telephony.IccCardConstants;
137 private IccCardConstants.State mExternalState = IccCardConstants.State.UNKNOWN;
465 setExternalState(IccCardConstants.State.CARD_IO_ERROR); in updateExternalState()
470 setExternalState(IccCardConstants.State.CARD_RESTRICTED); in updateExternalState()
485 setExternalState(IccCardConstants.State.NOT_READY); in updateExternalState()
491 IccCardConstants.State lockedState = null; in updateExternalState()
498 lockedState = IccCardConstants.State.PERM_DISABLED; in updateExternalState()
503 lockedState = IccCardConstants.State.PIN_REQUIRED; in updateExternalState()
507 lockedState = IccCardConstants.State.PUK_REQUIRED; in updateExternalState()
513 lockedState = IccCardConstants.State.NETWORK_LOCKED; in updateExternalState()
[all …]
DUiccController.java45 import com.android.internal.telephony.IccCardConstants;
549 static String getIccStateIntentString(IccCardConstants.State state) { in getIccStateIntentString()
551 case ABSENT: return IccCardConstants.INTENT_VALUE_ICC_ABSENT; in getIccStateIntentString()
552 case PIN_REQUIRED: return IccCardConstants.INTENT_VALUE_ICC_LOCKED; in getIccStateIntentString()
553 case PUK_REQUIRED: return IccCardConstants.INTENT_VALUE_ICC_LOCKED; in getIccStateIntentString()
554 case NETWORK_LOCKED: return IccCardConstants.INTENT_VALUE_ICC_LOCKED; in getIccStateIntentString()
555 case READY: return IccCardConstants.INTENT_VALUE_ICC_READY; in getIccStateIntentString()
556 case NOT_READY: return IccCardConstants.INTENT_VALUE_ICC_NOT_READY; in getIccStateIntentString()
557 case PERM_DISABLED: return IccCardConstants.INTENT_VALUE_ICC_LOCKED; in getIccStateIntentString()
558 case CARD_IO_ERROR: return IccCardConstants.INTENT_VALUE_ICC_CARD_IO_ERROR; in getIccStateIntentString()
[all …]
DUiccSlot.java36 import com.android.internal.telephony.IccCardConstants;
156 mContext, IccCardConstants.State.ABSENT, null, mPhoneId, in update()
190 mContext, IccCardConstants.State.ABSENT, null, mPhoneId); in updateCardStateAbsent()
402 mContext, IccCardConstants.State.UNKNOWN, null, mPhoneId); in onRadioStateUnavailable()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSecurityModel.java22 import com.android.internal.telephony.IccCardConstants;
61 monitor.getNextSubIdForState(IccCardConstants.State.PUK_REQUIRED))) { in getSecurityMode()
66 monitor.getNextSubIdForState(IccCardConstants.State.PIN_REQUIRED))) { in getSecurityMode()
DCarrierTextController.java42 import com.android.internal.telephony.IccCardConstants;
111 public void onSimStateChanged(int subId, int slotId, IccCardConstants.State simState) {
195 IccCardConstants.State.CARD_IO_ERROR, carrier); in updateCarrierTextWithSimIoError()
332 IccCardConstants.State simState = mKeyguardUpdateMonitor.getSimState(subId); in updateCarrierText()
342 if (simState == IccCardConstants.State.READY) { in updateCarrierText()
449 private CharSequence getCarrierTextForSimState(IccCardConstants.State simState, in getCarrierTextForSimState()
541 private CarrierTextController.StatusMode getStatusForIccState(IccCardConstants.State simState) { in getStatusForIccState()
549 && (simState == IccCardConstants.State.ABSENT in getStatusForIccState()
550 || simState == IccCardConstants.State.PERM_DISABLED); in getStatusForIccState()
553 simState = missingAndNotProvisioned ? IccCardConstants.State.NETWORK_LOCKED : simState; in getStatusForIccState()
[all …]
DKeyguardUpdateMonitor.java82 import com.android.internal.telephony.IccCardConstants;
83 import com.android.internal.telephony.IccCardConstants.State;
1022 + " state: " + intent.getStringExtra(IccCardConstants.INTENT_KEY_ICC_STATE)
1189 String stateExtra = intent.getStringExtra(IccCardConstants.INTENT_KEY_ICC_STATE); in fromIntent()
1193 if (IccCardConstants.INTENT_VALUE_ICC_ABSENT.equals(stateExtra)) { in fromIntent()
1195 .getStringExtra(IccCardConstants.INTENT_KEY_LOCKED_REASON); in fromIntent()
1197 if (IccCardConstants.INTENT_VALUE_ABSENT_ON_PERM_DISABLED.equals( in fromIntent()
1199 state = IccCardConstants.State.PERM_DISABLED; in fromIntent()
1201 state = IccCardConstants.State.ABSENT; in fromIntent()
1203 } else if (IccCardConstants.INTENT_VALUE_ICC_READY.equals(stateExtra)) { in fromIntent()
[all …]
DKeyguardUpdateMonitorCallback.java26 import com.android.internal.telephony.IccCardConstants;
139 public void onSimStateChanged(int subId, int slotId, IccCardConstants.State simState) { } in onSimStateChanged()
DKeyguardSimPinView.java41 import com.android.internal.telephony.IccCardConstants;
42 import com.android.internal.telephony.IccCardConstants.State;
153 int subId = monitor.getNextSubIdForState(IccCardConstants.State.PIN_REQUIRED); in handleSubInfoChangeIfNeeded()
DKeyguardSimPukView.java40 import com.android.internal.telephony.IccCardConstants;
41 import com.android.internal.telephony.IccCardConstants.State;
206 int subId = monitor.getNextSubIdForState(IccCardConstants.State.PUK_REQUIRED); in handleSubInfoChangeIfNeeded()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccSlotTest.java34 import com.android.internal.telephony.IccCardConstants;
157 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, phoneId, false); in testUpdateActiveSlotStatus()
245 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, phoneId, false); in testUpdateAbsentState()
275 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, activeIss.logicalSlotIndex, true); in testUpdateAbsentStateInactiveSlotStatus()
298 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, phoneId, false); in testUiccSlotCreateAndDispose()
323 IccCardConstants.INTENT_VALUE_ICC_UNKNOWN, null, phoneId, false); in testUiccSlotBroadcastAbsent()
333 IccCardConstants.INTENT_VALUE_ICC_ABSENT, null, phoneId, false); in testUiccSlotBroadcastAbsent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DEmergencyCryptkeeperText.java31 import com.android.internal.telephony.IccCardConstants;
104 IccCardConstants.State simState = mKeyguardUpdateMonitor.getSimState(subId); in update()
/frameworks/base/telephony/java/com/android/internal/telephony/
DIccCardConstants.java23 public class IccCardConstants { class
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardViewMediator.java21 import static com.android.internal.telephony.IccCardConstants.State.ABSENT;
22 import static com.android.internal.telephony.IccCardConstants.State.PIN_REQUIRED;
23 import static com.android.internal.telephony.IccCardConstants.State.PUK_REQUIRED;
73 import com.android.internal.telephony.IccCardConstants;
280 private final SparseArray<IccCardConstants.State> mLastSimStates = new SparseArray<>();
419 public void onSimStateChanged(int subId, int slotId, IccCardConstants.State simState) {
441 IccCardConstants.State lastState = mLastSimStates.get(slotId);
1307 mUpdateMonitor.getNextSubIdForState(IccCardConstants.State.PERM_DISABLED)); in doKeyguardLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DOperatorNameView.java27 import com.android.internal.telephony.IccCardConstants.State;

12