diff options
| author | 2018-03-09 12:42:55 +0000 | |
|---|---|---|
| committer | 2018-03-09 12:42:55 +0000 | |
| commit | 21e331ed2d2d192d66c1141cca7a21e13019ec27 (patch) | |
| tree | f3dec5c517f7625f9117500415299b2422ba6c12 | |
| parent | 802bf3966429a1193c6c65c00e7833c86d84a149 (diff) | |
| parent | df2ec09a9ca74556ab8140a1cc5450b755f21dd4 (diff) | |
Merge "Update javadoc for WifiConfiguration.setHttpProxy" into pi-dev
| -rw-r--r-- | wifi/java/android/net/wifi/WifiConfiguration.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java index ddcf327b9dd1..93fa5987aa9c 100644 --- a/wifi/java/android/net/wifi/WifiConfiguration.java +++ b/wifi/java/android/net/wifi/WifiConfiguration.java @@ -2076,11 +2076,15 @@ public class WifiConfiguration implements Parcelable { } /** - * Set the {@link ProxyInfo} for this WifiConfiguration. + * Set the {@link ProxyInfo} for this WifiConfiguration. This method should only be used by a + * device owner or profile owner. When other apps attempt to save a {@link WifiConfiguration} + * with modified proxy settings, the methods {@link WifiManager#addNetwork} and + * {@link WifiManager#updateNetwork} fail and return {@code -1}. + * * @param httpProxy {@link ProxyInfo} representing the httpProxy to be used by this - * WifiConfiguration. Setting this {@code null} will explicitly set no proxy, - * removing any proxy that was previously set. - * @exception throw IllegalArgumentException for invalid httpProxy + * WifiConfiguration. Setting this to {@code null} will explicitly set no + * proxy, removing any proxy that was previously set. + * @exception IllegalArgumentException for invalid httpProxy */ public void setHttpProxy(ProxyInfo httpProxy) { if (httpProxy == null) { |