Adding validate before switch feature.
In CBRS DSDS mode, switching data to CBRS network will require validation first. Adding a component of CellularNetworkValidator to trigger the validation and pass the result back to PhoneSwitcher. Bug: 118348832 Test: manual Change-Id: I689aa494f031834b5cee76906922ebdafa9c77ed
This commit is contained in:
committed by
Xiangyu/Malcolm Chen
parent
4625b2e489
commit
8d04800b7f
@@ -2577,8 +2577,14 @@ public class SubscriptionManager {
|
||||
@RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
|
||||
public void setPreferredDataSubscriptionId(int subId) {
|
||||
if (VDBG) logd("[setPreferredDataSubscriptionId]+ subId:" + subId);
|
||||
setSubscriptionPropertyHelper(DEFAULT_SUBSCRIPTION_ID, "setPreferredDataSubscriptionId",
|
||||
(iSub)-> iSub.setPreferredDataSubscriptionId(subId));
|
||||
try {
|
||||
ISub iSub = ISub.Stub.asInterface(ServiceManager.getService("isub"));
|
||||
if (iSub != null) {
|
||||
iSub.setPreferredDataSubscriptionId(subId);
|
||||
}
|
||||
} catch (RemoteException ex) {
|
||||
// ignore it
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -220,7 +220,7 @@ interface ISub {
|
||||
* @hide
|
||||
*
|
||||
*/
|
||||
int setPreferredDataSubscriptionId(int subId);
|
||||
void setPreferredDataSubscriptionId(int subId);
|
||||
|
||||
/**
|
||||
* Get which subscription is preferred for cellular data.
|
||||
|
||||
Reference in New Issue
Block a user