Rename enableAutoJoinWhenAssociated() to setEnableAutoJoinWhenAssociated()

This renaming better reflects how this method is a setter, and
supports variable renaming taking place in WifiConfigManager and
WifiStateMachine.

BUG: 28088867
Change-Id: Ic2f7a1f53ffec4072e556d2831bfdcff9fef1ad7
TEST: 'runtest frameworks-wifi' passes.
This commit is contained in:
Samuel Tan
2016-04-06 16:20:25 -07:00
parent 21cafcd662
commit 44a4668b45
2 changed files with 3 additions and 3 deletions

View File

@@ -149,7 +149,7 @@ interface IWifiManager
void setAllowScansWithTraffic(int enabled);
int getAllowScansWithTraffic();
boolean enableAutoJoinWhenAssociated(boolean enabled);
boolean setEnableAutoJoinWhenAssociated(boolean enabled);
boolean getEnableAutoJoinWhenAssociated();
void enableWifiConnectivityManager(boolean enabled);

View File

@@ -2700,9 +2700,9 @@ public class WifiManager {
* @return true -- if set successful false -- if set failed
* @hide
*/
public boolean enableAutoJoinWhenAssociated(boolean enabled) {
public boolean setEnableAutoJoinWhenAssociated(boolean enabled) {
try {
return mService.enableAutoJoinWhenAssociated(enabled);
return mService.setEnableAutoJoinWhenAssociated(enabled);
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}