diff options
| author | 2019-08-12 16:41:06 -0700 | |
|---|---|---|
| committer | 2019-08-16 10:05:21 -0700 | |
| commit | 478c8aa0accfc34e36935c51a95d111d38e08ffb (patch) | |
| tree | 7ebe7c6f20482c5d3263f30e95e55d2c57232645 | |
| parent | cc540adc9d4268cb25d7136e92a89cb2ba626d43 (diff) | |
IFACE_IP_MODE_*: add IntDef and clean up JavaDocs
Add IntDef and clean up JavaDocs
Bug: 139157226
Test: compiles
Change-Id: I7858cfa59b0fac9cf48b925ba5b1767d883e6a55
| -rw-r--r-- | wifi/java/android/net/wifi/WifiManager.java | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index ca65736d8ec2..107edb0665c3 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -635,10 +635,19 @@ public class WifiManager { */ public static final int SAP_START_FAILURE_NO_CHANNEL = 1; + /** @hide */ + @Retention(RetentionPolicy.SOURCE) + @IntDef(prefix = {"IFACE_IP_MODE_"}, value = { + IFACE_IP_MODE_UNSPECIFIED, + IFACE_IP_MODE_CONFIGURATION_ERROR, + IFACE_IP_MODE_TETHERED, + IFACE_IP_MODE_LOCAL_ONLY}) + public @interface IfaceIpMode {} + /** * Interface IP mode unspecified. * - * @see updateInterfaceIpState(String, int) + * @see #updateInterfaceIpState(String, int) * * @hide */ @@ -647,7 +656,7 @@ public class WifiManager { /** * Interface IP mode for configuration error. * - * @see updateInterfaceIpState(String, int) + * @see #updateInterfaceIpState(String, int) * * @hide */ @@ -656,7 +665,7 @@ public class WifiManager { /** * Interface IP mode for tethering. * - * @see updateInterfaceIpState(String, int) + * @see #updateInterfaceIpState(String, int) * * @hide */ @@ -665,7 +674,7 @@ public class WifiManager { /** * Interface IP mode for Local Only Hotspot. * - * @see updateInterfaceIpState(String, int) + * @see #updateInterfaceIpState(String, int) * * @hide */ @@ -2584,9 +2593,9 @@ public class WifiManager { /** * Call allowing ConnectivityService to update WifiService with interface mode changes. * - * The possible modes include: {@link IFACE_IP_MODE_TETHERED}, - * {@link IFACE_IP_MODE_LOCAL_ONLY}, - * {@link IFACE_IP_MODE_CONFIGURATION_ERROR} + * The possible modes include: {@link #IFACE_IP_MODE_TETHERED}, + * {@link #IFACE_IP_MODE_LOCAL_ONLY}, + * {@link #IFACE_IP_MODE_CONFIGURATION_ERROR} * * @param ifaceName String name of the updated interface * @param mode int representing the new mode |