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:
@@ -152,6 +152,8 @@ interface IWifiManager
|
||||
boolean enableAutoJoinWhenAssociated(boolean enabled);
|
||||
boolean getEnableAutoJoinWhenAssociated();
|
||||
|
||||
void enableWifiConnectivityManager(boolean enabled);
|
||||
|
||||
WifiConnectionStatistics getConnectionStatistics();
|
||||
|
||||
void disableEphemeralNetwork(String SSID);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user