DO NOT MERGE: Add API to indicate carrier networks.
Bug: 31003437 Change-Id: I3e3989256588f509c45e50374b8b7168589d6c5d
This commit is contained in:
@@ -52,6 +52,8 @@ interface IWifiManager
|
||||
|
||||
List<WifiConfiguration> getConfiguredNetworks();
|
||||
|
||||
boolean hasCarrierConfiguredNetworks();
|
||||
|
||||
List<WifiConfiguration> getPrivilegedConfiguredNetworks();
|
||||
|
||||
WifiConfiguration getMatchingWifiConfig(in ScanResult scanResult);
|
||||
|
||||
@@ -746,6 +746,15 @@ public class WifiManager {
|
||||
}
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
public boolean hasCarrierConfiguredNetworks() {
|
||||
try {
|
||||
return mService.hasCarrierConfiguredNetworks();
|
||||
} catch (RemoteException e) {
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@SystemApi
|
||||
public List<WifiConfiguration> getPrivilegedConfiguredNetworks() {
|
||||
|
||||
Reference in New Issue
Block a user