Merge "export API to disable autojoin scan initial implementation" into lmp-mr1-wfc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7c39808331
@@ -153,6 +153,10 @@ interface IWifiManager
|
||||
|
||||
void setAllowScansWithTraffic(int enabled);
|
||||
|
||||
boolean getAllowScansWhileAssociated();
|
||||
|
||||
void setAllowScansWhileAssociated(boolean enabled);
|
||||
|
||||
WifiConnectionStatistics getConnectionStatistics();
|
||||
|
||||
void disableEphemeralNetwork(String SSID);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user