Merge "Merge "Add a @hide API to indicate 5G and DSDS conflict." into rvc-dev am: e9dc36d551 am: 23f35887a9" into rvc-d1-dev-plus-aosp
This commit is contained in:
committed by
Android (Google) Code Review
commit
f2f31ed45e
@@ -13250,4 +13250,21 @@ public class TelephonyManager {
|
|||||||
public static void enableServiceHandleCaching() {
|
public static void enableServiceHandleCaching() {
|
||||||
sServiceHandleCacheEnabled = true;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2268,4 +2268,9 @@ interface ITelephony {
|
|||||||
* @return operatorinfo on success
|
* @return operatorinfo on success
|
||||||
*/
|
*/
|
||||||
String getManualNetworkSelectionPlmn(int subId);
|
String getManualNetworkSelectionPlmn(int subId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether device can connect to 5G network when two SIMs are active.
|
||||||
|
*/
|
||||||
|
boolean canConnectTo5GInDsdsMode();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user