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

automerge: 7c39808

* commit '7c398083319bbd1ad51d23cb307cfc3ac9091c3a':
  export API to disable autojoin scan initial implementation
This commit is contained in:
Pierre Vandwalle
2015-03-19 02:58:01 +00:00
committed by android-build-merger
2 changed files with 25 additions and 0 deletions

View File

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

View File

@@ -2576,6 +2576,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;
}
}