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

Commit 4ace7481 authored by Holly Jiuyu Sun's avatar Holly Jiuyu Sun Committed by android-build-merger
Browse files

Merge "Revert "Revert "Add getUiccSlots() and switchSlots() in TelephonyManager."""

am: 0b485b9d

Change-Id: I5ae4cfae49cbd588655b0ede9f1c0cbfa6203b4a
parents a4d6e2b2 0b485b9d
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -218,6 +218,21 @@ public class UiccController extends Handler {
        }
    }

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

    /** Map logicalSlot to physicalSlot, and activate the physicalSlot if it is inactive. */
    public void switchSlots(int[] physicalSlots, Message response) {
        // TODO(amitmahajan): Method implementation.
    }

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