/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | DataConnectionStats.java | 32 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/ |
D | SubscriptionInfoUpdater.java | 207 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 …]
|
D | IntentBroadcaster.java | 57 + i.getStringExtra(IccCardConstants.INTENT_KEY_ICC_STATE) 91 + intent.getStringExtra(IccCardConstants.INTENT_KEY_ICC_STATE) in broadcastStickyIntent()
|
D | SimActivationTracker.java | 83 if (IccCardConstants.INTENT_VALUE_ICC_ABSENT.equals( in SimActivationTracker() 84 intent.getStringExtra(IccCardConstants.INTENT_KEY_ICC_STATE))) { in SimActivationTracker()
|
D | CarrierActionAgent.java | 90 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()
|
D | IccCard.java | 24 import com.android.internal.telephony.IccCardConstants.State;
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | CarrierTextControllerTest.java | 46 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 …]
|
D | KeyguardUpdateMonitorTest.java | 51 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/ |
D | PhoneStatusBarPolicy.java | 39 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/ |
D | SubscriptionInfoUpdaterTest.java | 188 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 …]
|
D | CarrierActionAgentTest.java | 103 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/ |
D | UiccProfile.java | 53 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 …]
|
D | UiccController.java | 45 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 …]
|
D | UiccSlot.java | 36 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/ |
D | KeyguardSecurityModel.java | 22 import com.android.internal.telephony.IccCardConstants; 61 monitor.getNextSubIdForState(IccCardConstants.State.PUK_REQUIRED))) { in getSecurityMode() 66 monitor.getNextSubIdForState(IccCardConstants.State.PIN_REQUIRED))) { in getSecurityMode()
|
D | CarrierTextController.java | 42 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 …]
|
D | KeyguardUpdateMonitor.java | 82 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 …]
|
D | KeyguardUpdateMonitorCallback.java | 26 import com.android.internal.telephony.IccCardConstants; 139 public void onSimStateChanged(int subId, int slotId, IccCardConstants.State simState) { } in onSimStateChanged()
|
D | KeyguardSimPinView.java | 41 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()
|
D | KeyguardSimPukView.java | 40 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/ |
D | UiccSlotTest.java | 34 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/ |
D | EmergencyCryptkeeperText.java | 31 import com.android.internal.telephony.IccCardConstants; 104 IccCardConstants.State simState = mKeyguardUpdateMonitor.getSimState(subId); in update()
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | IccCardConstants.java | 23 public class IccCardConstants { class
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardViewMediator.java | 21 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/ |
D | OperatorNameView.java | 27 import com.android.internal.telephony.IccCardConstants.State;
|