Merge "export API to disable autojoin scan initial implementation" into lmp-mr1-wfc-dev

This commit is contained in:
Pierre Vandwalle
2015-03-17 22:29:30 +00:00
committed by Android (Google) Code Review
2 changed files with 25 additions and 0 deletions

View File

@@ -153,6 +153,10 @@ interface IWifiManager
void setAllowScansWithTraffic(int enabled);
boolean getAllowScansWhileAssociated();
void setAllowScansWhileAssociated(boolean enabled);
WifiConnectionStatistics getConnectionStatistics();
void disableEphemeralNetwork(String SSID);

View File

@@ -2561,6 +2561,27 @@ public class WifiManager {
}
}
/**
* Set setting for allowing Scans when infrastructure is associated
* @hide
*/
public void setAllowScansWhileAssociated(boolean enabled) {
try {
mService.setAllowScansWhileAssociated(enabled);
} catch (RemoteException e) {
}
}
/**
* Get setting for allowing Scans when infrastructure is associated
* @hide
*/
public boolean getAllowScansWhileAssociated() {
try {
return mService.getAllowScansWhileAssociated();
} catch (RemoteException e) {
}
return false;
}
}