Convert WifiInfo to TransportInfo
Also, deprecate WifiManager.getConnectionInfo() and add a note to
help apps to migrate. The deprecation is purely cosmetic, no plans to
remove any existing functionality from the WifiManager API.
(cherry-picked from aosp/1508600)
Bug: 162602799
Test: Compiles
Change-Id: I12c473185dc5518f5684e83c2f49e07271738cb5
diff --git a/framework/api/current.txt b/framework/api/current.txt
index 1ece79a..c6be9bf 100644
--- a/framework/api/current.txt
+++ b/framework/api/current.txt
@@ -270,7 +270,7 @@
field public static final int SIM = 5; // 0x5
}
- public class WifiInfo implements android.os.Parcelable {
+ public class WifiInfo implements android.os.Parcelable android.net.TransportInfo {
method public int describeContents();
method public String getBSSID();
method public static android.net.NetworkInfo.DetailedState getDetailedStateOf(android.net.wifi.SupplicantState);
@@ -322,7 +322,7 @@
method @Deprecated public boolean disconnect();
method @Deprecated public boolean enableNetwork(int, boolean);
method @Deprecated @RequiresPermission(allOf={android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_WIFI_STATE}) public java.util.List<android.net.wifi.WifiConfiguration> getConfiguredNetworks();
- method public android.net.wifi.WifiInfo getConnectionInfo();
+ method @Deprecated public android.net.wifi.WifiInfo getConnectionInfo();
method public android.net.DhcpInfo getDhcpInfo();
method public int getMaxNumberOfNetworkSuggestionsPerApp();
method @IntRange(from=0) public int getMaxSignalLevel();