Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/network/
DSubscriptionUtil.java61 static boolean isInactiveInsertedPSim(UiccSlotInfo slotInfo) { in isInactiveInsertedPSim() argument
62 if (slotInfo == null) { in isInactiveInsertedPSim()
65 return !slotInfo.getIsEuicc() && !slotInfo.getIsActive() && in isInactiveInsertedPSim()
66 slotInfo.getCardStateInfo() == CARD_STATE_INFO_PRESENT; in isInactiveInsertedPSim()
83 final UiccSlotInfo slotInfo = slotsInfo[i]; in getAvailableSubscriptions() local
84 if (isInactiveInsertedPSim(slotInfo)) { in getAvailableSubscriptions()
85 final int index = slotInfo.getLogicalSlotIdx(); in getAvailableSubscriptions()
86 final String cardId = slotInfo.getCardId(); in getAvailableSubscriptions()
91 missing.add(slotInfo); in getAvailableSubscriptions()
97 for (UiccSlotInfo slotInfo : missing) { in getAvailableSubscriptions()
[all …]
/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.getIsEuicc() && !slotInfo.getIsActive() in isInactiveInsertedPSim()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DSubscriptionUtilsTest.java67 UiccSlotInfo slotInfo = createUuicSlotInfo(/* isActive= */ false, /* isEsim= */ false, in getAvailableSubscriptions_hasSimSlotNotInSubscriptionManager_valueReturned() local
71 when(telephonyManager.getUiccSlotsInfo()).thenReturn(new UiccSlotInfo[]{slotInfo}); in getAvailableSubscriptions_hasSimSlotNotInSubscriptionManager_valueReturned()