Merge "Add getAvoidBadWifi system API"
This commit is contained in:
commit
eafed7dcba
2 changed files with 23 additions and 0 deletions
|
|
@ -3698,6 +3698,19 @@ public class ConnectivityManager {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the device is configured to avoid bad wifi.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public boolean getAvoidBadWifi() {
|
||||
try {
|
||||
return mService.getAvoidBadWifi();
|
||||
} catch (RemoteException e) {
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* It is acceptable to briefly use multipath data to provide seamless connectivity for
|
||||
* time-sensitive user-facing operations when the system default network is temporarily
|
||||
|
|
|
|||
|
|
@ -165,6 +165,7 @@ interface IConnectivityManager
|
|||
void setAvoidUnvalidated(in Network network);
|
||||
void startCaptivePortalApp(in Network network);
|
||||
|
||||
boolean getAvoidBadWifi();
|
||||
int getMultipathPreference(in Network Network);
|
||||
|
||||
NetworkRequest getDefaultRequest();
|
||||
|
|
|
|||
Loading…
Reference in a new issue