Loading src/java/com/android/internal/telephony/uicc/UiccController.java +15 −0 Original line number Diff line number Diff line Loading @@ -226,6 +226,21 @@ public class UiccController extends Handler { mDefaultEuiccCardId = UNINITIALIZED_CARD_ID; } /** * Given the slot index, return the phone ID, or -1 if no phone is associated with the given * slot. * @param slotId the slot index to check * @return the associated phone ID or -1 */ public int getPhoneIdFromSlotId(int slotId) { for (int i = 0; i < mPhoneIdToSlotId.length; i++) { if (mPhoneIdToSlotId[i] == slotId) { return i; } } return -1; } private int getSlotIdFromPhoneId(int phoneId) { return mPhoneIdToSlotId[phoneId]; } Loading Loading
src/java/com/android/internal/telephony/uicc/UiccController.java +15 −0 Original line number Diff line number Diff line Loading @@ -226,6 +226,21 @@ public class UiccController extends Handler { mDefaultEuiccCardId = UNINITIALIZED_CARD_ID; } /** * Given the slot index, return the phone ID, or -1 if no phone is associated with the given * slot. * @param slotId the slot index to check * @return the associated phone ID or -1 */ public int getPhoneIdFromSlotId(int slotId) { for (int i = 0; i < mPhoneIdToSlotId.length; i++) { if (mPhoneIdToSlotId[i] == slotId) { return i; } } return -1; } private int getSlotIdFromPhoneId(int phoneId) { return mPhoneIdToSlotId[phoneId]; } Loading