From 3b10e91991e85516201b14d845032adcad5adaeb Mon Sep 17 00:00:00 2001 From: xshu Date: Wed, 20 Dec 2017 16:24:12 -0800 Subject: [PATCH] WifiManager API documentation update Bug: 67052587 Test: compile, run ./frameworks/base/wifi/tests/runtests.sh Change-Id: I02af76cf30f0c7ba4b4d3e9c73c3b8d81598a5a5 --- wifi/java/android/net/wifi/WifiManager.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index a158d94b646e9..ea9be2900712a 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -2846,8 +2846,7 @@ public class WifiManager { * gets added to the list of configured networks for the foreground user. * * For a new network, this function is used instead of a - * sequence of addNetwork(), enableNetwork(), saveConfiguration() and - * reconnect() + * sequence of addNetwork(), enableNetwork(), and reconnect() * * @param config the set of variables that describe the configuration, * contained in a {@link WifiConfiguration} object. @@ -2869,8 +2868,7 @@ public class WifiManager { /** * Connect to a network with the given networkId. * - * This function is used instead of a enableNetwork(), saveConfiguration() and - * reconnect() + * This function is used instead of a enableNetwork() and reconnect() * * @param networkId the ID of the network as returned by {@link #addNetwork} or {@link * getConfiguredNetworks}. @@ -2890,10 +2888,12 @@ public class WifiManager { * is updated. Any new network is enabled by default. * * For a new network, this function is used instead of a - * sequence of addNetwork(), enableNetwork() and saveConfiguration(). + * sequence of addNetwork() and enableNetwork(). * * For an existing network, it accomplishes the task of updateNetwork() - * and saveConfiguration() + * + * This API will cause reconnect if the crecdentials of the current active + * connection has been changed. * * @param config the set of variables that describe the configuration, * contained in a {@link WifiConfiguration} object. @@ -2912,7 +2912,6 @@ public class WifiManager { * foreground user. * * This function is used instead of a sequence of removeNetwork() - * and saveConfiguration(). * * @param config the set of variables that describe the configuration, * contained in a {@link WifiConfiguration} object.