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:
@@ -155,6 +155,10 @@ interface IWifiManager
|
||||
|
||||
void setAllowScansWithTraffic(int enabled);
|
||||
|
||||
boolean getAllowScansWhileAssociated();
|
||||
|
||||
void setAllowScansWhileAssociated(boolean enabled);
|
||||
|
||||
WifiConnectionStatistics getConnectionStatistics();
|
||||
|
||||
void disableEphemeralNetwork(String SSID);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user