Merge "Enable/disable WifiConnectivityManager at runtime" into nyc-dev

am: 429b9fc

* commit '429b9fcb7b8d9f22ac70643d3423c01da1a76458':
  Enable/disable WifiConnectivityManager at runtime

Change-Id: I093d1c3c3fba444a1869e910ff04e453ebb56a6b
This commit is contained in:
Randy Pan
2016-04-07 17:26:06 +00:00
committed by android-build-merger
2 changed files with 14 additions and 0 deletions

View File

@@ -152,6 +152,8 @@ interface IWifiManager
boolean enableAutoJoinWhenAssociated(boolean enabled);
boolean getEnableAutoJoinWhenAssociated();
void enableWifiConnectivityManager(boolean enabled);
WifiConnectionStatistics getConnectionStatistics();
void disableEphemeralNetwork(String SSID);

View File

@@ -2719,4 +2719,16 @@ public class WifiManager {
throw e.rethrowFromSystemServer();
}
}
/**
* Enable/disable WifiConnectivityManager
* @hide
*/
public void enableWifiConnectivityManager(boolean enabled) {
try {
mService.enableWifiConnectivityManager(enabled);
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}
}
}