diff options
| author | 2018-02-14 15:10:24 -0800 | |
|---|---|---|
| committer | 2018-02-14 16:15:53 -0800 | |
| commit | 7bccf2f997688a64a0147a23f9e833eda4b6db02 (patch) | |
| tree | 82690430900c8e34cee06baf7f88dd429b9c56cc | |
| parent | e8cf6110aed233019a41fddd4fdca0cc93bb8433 (diff) | |
Deprecate WpsInfo
Bug: 73023945
Test: compile, run ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Ib108ba98d743dbcd3887446aae23fe848ffe75cd
| -rw-r--r-- | api/current.txt | 29 | ||||
| -rw-r--r-- | wifi/java/android/net/wifi/WpsInfo.java | 59 |
2 files changed, 61 insertions, 27 deletions
diff --git a/api/current.txt b/api/current.txt index 3a82ed2afaf7..882ba06f0154 100644 --- a/api/current.txt +++ b/api/current.txt @@ -28062,20 +28062,21 @@ package android.net.wifi { method public abstract deprecated void onSucceeded(); } - public class WpsInfo implements android.os.Parcelable { - ctor public WpsInfo(); - ctor public WpsInfo(android.net.wifi.WpsInfo); - method public int describeContents(); - method public void writeToParcel(android.os.Parcel, int); - field public java.lang.String BSSID; - field public static final android.os.Parcelable.Creator<android.net.wifi.WpsInfo> CREATOR; - field public static final int DISPLAY = 1; // 0x1 - field public static final int INVALID = 4; // 0x4 - field public static final int KEYPAD = 2; // 0x2 - field public static final int LABEL = 3; // 0x3 - field public static final int PBC = 0; // 0x0 - field public java.lang.String pin; - field public int setup; + public deprecated class WpsInfo implements android.os.Parcelable { + ctor public deprecated WpsInfo(); + ctor public deprecated WpsInfo(android.net.wifi.WpsInfo); + method public deprecated int describeContents(); + method public deprecated java.lang.String toString(); + method public deprecated void writeToParcel(android.os.Parcel, int); + field public deprecated java.lang.String BSSID; + field public static final deprecated android.os.Parcelable.Creator<android.net.wifi.WpsInfo> CREATOR; + field public static final deprecated int DISPLAY = 1; // 0x1 + field public static final deprecated int INVALID = 4; // 0x4 + field public static final deprecated int KEYPAD = 2; // 0x2 + field public static final deprecated int LABEL = 3; // 0x3 + field public static final deprecated int PBC = 0; // 0x0 + field public deprecated java.lang.String pin; + field public deprecated int setup; } } diff --git a/wifi/java/android/net/wifi/WpsInfo.java b/wifi/java/android/net/wifi/WpsInfo.java index ae2e77171367..d12cce174192 100644 --- a/wifi/java/android/net/wifi/WpsInfo.java +++ b/wifi/java/android/net/wifi/WpsInfo.java @@ -21,37 +21,58 @@ import android.os.Parcel; /** * A class representing Wi-Fi Protected Setup - * + * @deprecated This class is no longer supported. * {@see WifiP2pConfig} */ +@Deprecated public class WpsInfo implements Parcelable { - /** Push button configuration */ + /** Push button configuration + * @deprecated This is no longer supported.*/ + @Deprecated public static final int PBC = 0; - /** Display pin method configuration - pin is generated and displayed on device */ + /** Display pin method configuration - pin is generated and displayed on device + * @deprecated This is no longer supported.*/ + @Deprecated public static final int DISPLAY = 1; - /** Keypad pin method configuration - pin is entered on device */ + /** Keypad pin method configuration - pin is entered on device + * @deprecated This is no longer supported.*/ + @Deprecated public static final int KEYPAD = 2; - /** Label pin method configuration - pin is labelled on device */ + /** Label pin method configuration - pin is labelled on device + * @deprecated This is no longer supported.*/ + @Deprecated public static final int LABEL = 3; - /** Invalid configuration */ + /** Invalid configuration + * @deprecated This is no longer supported.*/ + @Deprecated public static final int INVALID = 4; - /** Wi-Fi Protected Setup. www.wi-fi.org/wifi-protected-setup has details */ + /** Wi-Fi Protected Setup. www.wi-fi.org/wifi-protected-setup has details + * @deprecated This is no longer supported.*/ + @Deprecated public int setup; - /** Passed with pin method KEYPAD */ + /** Passed with pin method KEYPAD + * @deprecated This is no longer supported.*/ + @Deprecated public String BSSID; - /** Passed with pin method configuration */ + /** Passed with pin method configuration + * @deprecated This is no longer supported.*/ + @Deprecated public String pin; + /** @deprecated This API is no longer supported.*/ + @Deprecated public WpsInfo() { setup = INVALID; BSSID = null; pin = null; } + /** @deprecated This API is no longer supported.*/ + @Deprecated public String toString() { StringBuffer sbuf = new StringBuffer(); sbuf.append(" setup: ").append(setup); @@ -63,12 +84,16 @@ public class WpsInfo implements Parcelable { return sbuf.toString(); } - /** Implement the Parcelable interface */ + /** Implement the Parcelable interface + * @deprecated This API is no longer supported.*/ + @Deprecated public int describeContents() { return 0; } - /* Copy constructor */ + /* Copy constructor + * @deprecated This API is no longer supported.*/ + @Deprecated public WpsInfo(WpsInfo source) { if (source != null) { setup = source.setup; @@ -77,16 +102,22 @@ public class WpsInfo implements Parcelable { } } - /** Implement the Parcelable interface */ + /** Implement the Parcelable interface + * @deprecated This API is no longer supported. */ + @Deprecated public void writeToParcel(Parcel dest, int flags) { dest.writeInt(setup); dest.writeString(BSSID); dest.writeString(pin); } - /** Implement the Parcelable interface */ + /** Implement the Parcelable interface + * @deprecated This API is no longer supported.*/ + @Deprecated public static final Creator<WpsInfo> CREATOR = new Creator<WpsInfo>() { + /** @deprecated This API is nolonger supported.*/ + @Deprecated public WpsInfo createFromParcel(Parcel in) { WpsInfo config = new WpsInfo(); config.setup = in.readInt(); @@ -95,6 +126,8 @@ public class WpsInfo implements Parcelable { return config; } + /** @deprecated This API is nolonger supported.*/ + @Deprecated public WpsInfo[] newArray(int size) { return new WpsInfo[size]; } |