Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b3ff3f1 authored by Hunter Knepshield's avatar Hunter Knepshield
Browse files

Dump UiccController's physical <-> logical slot mapping.

This can usually be deduced from mUiccSlots[*].mUiccCard.mPhoneId, but
things aren't always clear when nulls are present. Dumping the mapping
explicitly also cleans things up slightly for interested parsing tools.

Test: make, dumpsys TelephonyDebugService
Bug: 174493665
Change-Id: I2f083a9b37181d212186653461fa5616e8df9fae
parent 8c0f64d6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1285,9 +1285,10 @@ public class UiccController extends Handler {
        pw.println(" mIsCdmaSupported=" + isCdmaSupported(mContext));
        pw.println(" mHasBuiltInEuicc=" + mHasBuiltInEuicc);
        pw.println(" mHasActiveBuiltInEuicc=" + mHasActiveBuiltInEuicc);
        pw.println(" mUiccSlots: size=" + mUiccSlots.length);
        pw.println(" mCardStrings=" + mCardStrings);
        pw.println(" mDefaultEuiccCardId=" + mDefaultEuiccCardId);
        pw.println(" mPhoneIdToSlotId=" + Arrays.toString(mPhoneIdToSlotId));
        pw.println(" mUiccSlots: size=" + mUiccSlots.length);
        for (int i = 0; i < mUiccSlots.length; i++) {
            if (mUiccSlots[i] == null) {
                pw.println("  mUiccSlots[" + i + "]=null");