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

Commit c8342864 authored by Holly Jiuyu Sun's avatar Holly Jiuyu Sun
Browse files

Add getUiccSlots() and switchSlots() in TelephonyManager.

Bug: 71914112
Test: test on phone
Change-Id: I5b113ee99fefa65f9eeed70f2e2f04ed7aeaf43b
parent a66d30a2
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -218,6 +218,16 @@ public class UiccController extends Handler {
        }
    }

    /**
     * API to get all the UICC slots.
     * @return UiccSlots array.
     */
    public UiccSlot[] getUiccSlots() {
        synchronized (mLock) {
            return mUiccSlots;
        }
    }

    /**
     * API to get UiccSlot object for a specific physical slot index on the device
     * @return UiccSlot object for the given physical slot index