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

Commit e2eb2064 authored by Xiangyu/Malcolm Chen's avatar Xiangyu/Malcolm Chen Committed by Automerger Merge Worker
Browse files

Merge "Add a @hide API to indicate 5G and DSDS conflict." into rvc-dev am:...

Merge "Add a @hide API to indicate 5G and DSDS conflict." into rvc-dev am: e9dc36d5 am: 23f35887 am: 9d27f4f3

Change-Id: I906797c1179150f4e0cad5d28bf38224494cfd47
parents ab19ddd2 9d27f4f3
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -13250,4 +13250,21 @@ public class TelephonyManager {
    public static void enableServiceHandleCaching() {
        sServiceHandleCacheEnabled = true;
    }
    /**
     * 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();
        if (telephony == null) return true;
        try {
            return telephony.canConnectTo5GInDsdsMode();
        } catch (RemoteException ex) {
            return true;
        } catch (NullPointerException ex) {
            return true;
        }
    }
}
+5 −0
Original line number Diff line number Diff line
@@ -2268,4 +2268,9 @@ interface ITelephony {
     * @return operatorinfo on success
     */
    String getManualNetworkSelectionPlmn(int subId);

    /**
     * Whether device can connect to 5G network when two SIMs are active.
     */
    boolean canConnectTo5GInDsdsMode();
}