Add a @hide API to indicate 5G and DSDS conflict.

Bug: 152786064
Test: build and manual
Change-Id: I79a8fda5b70a31acc365ebcbb03b73b20d2443fd
Merged-In: I79a8fda5b70a31acc365ebcbb03b73b20d2443fd
This commit is contained in:
Malcolm Chen
2020-04-14 11:19:48 -07:00
parent 642b44077b
commit edaa0b780f
2 changed files with 22 additions and 0 deletions

View File

@@ -12977,4 +12977,21 @@ public class TelephonyManager {
}
return 0;
}
/**
* 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;
}
}
}

View File

@@ -2248,4 +2248,9 @@ interface ITelephony {
int setIccLockEnabled(int subId, boolean enabled, String password);
int changeIccLockPassword(int subId, String oldPassword, String newPassword);
/**
* Whether device can connect to 5G network when two SIMs are active.
*/
boolean canConnectTo5GInDsdsMode();
}