Home
last modified time | relevance | path

Searched refs:slotInfo (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/network/
DSubscriptionUtils.java52 UiccSlotInfo slotInfo = slotsInfo[i]; in getAvailableSubscriptions() local
53 if (isInactiveInsertedPSim(slotInfo)) { in getAvailableSubscriptions()
54 int index = slotInfo.getLogicalSlotIdx(); in getAvailableSubscriptions()
55 String cardId = slotInfo.getCardId(); in getAvailableSubscriptions()
61 missing.add(slotInfo); in getAvailableSubscriptions()
67 for (UiccSlotInfo slotInfo : missing) { in getAvailableSubscriptions()
68 if (info.getSimSlotIndex() == slotInfo.getLogicalSlotIdx() in getAvailableSubscriptions()
69 && info.getCardString().equals(slotInfo.getCardId())) { in getAvailableSubscriptions()
89 private static boolean isInactiveInsertedPSim(UiccSlotInfo slotInfo) { in isInactiveInsertedPSim() argument
90 return slotInfo != null && !slotInfo.getIsEuicc() && !slotInfo.getIsActive() in isInactiveInsertedPSim()
[all …]
/packages/apps/Settings/src/com/android/settings/network/helper/
DQuerySimSlotIndex.java56 UiccSlotInfo [] slotInfo = mTelephonyManager.getUiccSlotsInfo(); in call() local
57 if (slotInfo == null) { in call()
61 return new AtomicIntegerArray(Arrays.stream(slotInfo) in call()
68 protected boolean filterSlot(UiccSlotInfo slotInfo) { in filterSlot() argument
72 if (slotInfo == null) { in filterSlot()
75 return slotInfo.getIsActive(); in filterSlot()
78 protected int mapToSlotIndex(UiccSlotInfo slotInfo) { in mapToSlotIndex() argument
79 if (slotInfo == null) { in mapToSlotIndex()
82 if (slotInfo.getCardStateInfo() == UiccSlotInfo.CARD_STATE_INFO_ABSENT) { in mapToSlotIndex()
85 return slotInfo.getLogicalSlotIdx(); in mapToSlotIndex()
/packages/apps/Settings/src/com/android/settings/sim/receivers/
DSimSlotChangeReceiver.java100 UiccSlotInfo slotInfo = slotInfos[i]; in isSimSlotStateValid() local
102 if (slotInfo == null) { in isSimSlotStateValid()
109 if (slotInfo.getCardStateInfo() == UiccSlotInfo.CARD_STATE_INFO_ERROR in isSimSlotStateValid()
110 || slotInfo.getCardStateInfo() == UiccSlotInfo.CARD_STATE_INFO_RESTRICTED) { in isSimSlotStateValid()
111 Log.i(TAG, "The SIM state is in an error. Drop the event. SIM info: " + slotInfo); in isSimSlotStateValid()
119 if (!TextUtils.isEmpty(slotInfo.getCardId()) in isSimSlotStateValid()
DSimSlotChangeHandler.java262 for (UiccSlotInfo slotInfo : slotInfos) { in getRemovableUiccSlotInfo()
263 if (slotInfo != null && slotInfo.isRemovable()) { in getRemovableUiccSlotInfo()
265 return slotInfo; in getRemovableUiccSlotInfo()
/packages/apps/Settings/src/com/android/settings/network/
DSubscriptionUtil.java86 static boolean isInactiveInsertedPSim(UiccSlotInfo slotInfo) { in isInactiveInsertedPSim() argument
87 if (slotInfo == null) { in isInactiveInsertedPSim()
90 return !slotInfo.getIsEuicc() && !slotInfo.getIsActive() && in isInactiveInsertedPSim()
91 slotInfo.getCardStateInfo() == CARD_STATE_INFO_PRESENT; in isInactiveInsertedPSim()
180 for (UiccSlotInfo slotInfo : slotsInfo) { in isPrimarySubscriptionWithinSameUuid()
181 if ((slotInfo != null) && (!slotInfo.getIsEuicc()) in isPrimarySubscriptionWithinSameUuid()
182 && (slotInfo.getLogicalSlotIdx() == subInfo.getSimSlotIndex())) { in isPrimarySubscriptionWithinSameUuid()
DEnableMultiSimSidecar.java172 for (UiccSlotInfo slotInfo : slotsInfo) { in getActiveSlotsCount()
173 if (slotInfo != null && slotInfo.getIsActive()) { in getActiveSlotsCount()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DSubscriptionUtilsTest.java66 UiccSlotInfo slotInfo = createUuicSlotInfo(/* isActive= */ false, /* isEsim= */ false, in getAvailableSubscriptions_hasSimSlotNotInSubscriptionManager_valueReturned() local
70 when(telephonyManager.getUiccSlotsInfo()).thenReturn(new UiccSlotInfo[]{slotInfo}); in getAvailableSubscriptions_hasSimSlotNotInSubscriptionManager_valueReturned()