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

Commit 17bd64d1 authored by Gil Cukierman's avatar Gil Cukierman Committed by Android (Google) Code Review
Browse files

Merge "Add Testing Hook For TelephonyManager ISub Member"

parents 0143b413 bc4474ee
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -16355,6 +16355,7 @@ public class TelephonyManager {
    /**
     * Setup sIPhoneSubInfo for testing.
     *
     * @hide
     */
    @VisibleForTesting
@@ -16365,9 +16366,21 @@ public class TelephonyManager {
    }
    /**
     * Whether device can connect to 5G network when two SIMs are active.
     * Setup sISub for testing.
     *
     * @hide
     * TODO b/153669716: remove or make system API.
     */
    @VisibleForTesting
    public static void setupISubForTest(ISub iSub) {
        synchronized (sCacheLock) {
            sISub = iSub;
        }
    }
    /**
     * Whether device can connect to 5G network when two SIMs are active.
     *
     * @hide TODO b/153669716: remove or make system API.
     */
    public boolean canConnectTo5GInDsdsMode() {
        ITelephony telephony = getITelephony();