Loading core/java/android/net/IpConfiguration.java +5 −19 Original line number Diff line number Diff line Loading @@ -23,13 +23,11 @@ import android.util.Log; /** * A class representing a configured network. * @hide */ public class IpConfiguration implements Parcelable { private static final String TAG = "IpConfiguration"; /** * @hide */ public enum IpAssignment { /* Use statically configured IP settings. Configuration can be accessed * with linkProperties */ Loading @@ -41,14 +39,8 @@ public class IpConfiguration implements Parcelable { UNASSIGNED } /** * @hide */ public IpAssignment ipAssignment; /** * @hide */ public enum ProxySettings { /* No proxy is to be used. Any existing proxy settings * should be cleared. */ Loading @@ -64,14 +56,8 @@ public class IpConfiguration implements Parcelable { PAC } /** * @hide */ public ProxySettings proxySettings; /** * @hide */ public LinkProperties linkProperties; public IpConfiguration() { Loading @@ -80,7 +66,7 @@ public class IpConfiguration implements Parcelable { linkProperties = new LinkProperties(); } /** copy constructor {@hide} */ /** copy constructor */ public IpConfiguration(IpConfiguration source) { if (source != null) { ipAssignment = source.ipAssignment; Loading Loading @@ -124,19 +110,19 @@ public class IpConfiguration implements Parcelable { return sbuf.toString(); } /** Implement the Parcelable interface {@hide} */ /** Implement the Parcelable interface */ public int describeContents() { return 0; } /** Implement the Parcelable interface {@hide} */ /** Implement the Parcelable interface */ public void writeToParcel(Parcel dest, int flags) { dest.writeString(ipAssignment.name()); dest.writeString(proxySettings.name()); dest.writeParcelable(linkProperties, flags); } /** Implement the Parcelable interface {@hide} */ /** Implement the Parcelable interface */ public static final Creator<IpConfiguration> CREATOR = new Creator<IpConfiguration>() { public IpConfiguration createFromParcel(Parcel in) { Loading Loading
core/java/android/net/IpConfiguration.java +5 −19 Original line number Diff line number Diff line Loading @@ -23,13 +23,11 @@ import android.util.Log; /** * A class representing a configured network. * @hide */ public class IpConfiguration implements Parcelable { private static final String TAG = "IpConfiguration"; /** * @hide */ public enum IpAssignment { /* Use statically configured IP settings. Configuration can be accessed * with linkProperties */ Loading @@ -41,14 +39,8 @@ public class IpConfiguration implements Parcelable { UNASSIGNED } /** * @hide */ public IpAssignment ipAssignment; /** * @hide */ public enum ProxySettings { /* No proxy is to be used. Any existing proxy settings * should be cleared. */ Loading @@ -64,14 +56,8 @@ public class IpConfiguration implements Parcelable { PAC } /** * @hide */ public ProxySettings proxySettings; /** * @hide */ public LinkProperties linkProperties; public IpConfiguration() { Loading @@ -80,7 +66,7 @@ public class IpConfiguration implements Parcelable { linkProperties = new LinkProperties(); } /** copy constructor {@hide} */ /** copy constructor */ public IpConfiguration(IpConfiguration source) { if (source != null) { ipAssignment = source.ipAssignment; Loading Loading @@ -124,19 +110,19 @@ public class IpConfiguration implements Parcelable { return sbuf.toString(); } /** Implement the Parcelable interface {@hide} */ /** Implement the Parcelable interface */ public int describeContents() { return 0; } /** Implement the Parcelable interface {@hide} */ /** Implement the Parcelable interface */ public void writeToParcel(Parcel dest, int flags) { dest.writeString(ipAssignment.name()); dest.writeString(proxySettings.name()); dest.writeParcelable(linkProperties, flags); } /** Implement the Parcelable interface {@hide} */ /** Implement the Parcelable interface */ public static final Creator<IpConfiguration> CREATOR = new Creator<IpConfiguration>() { public IpConfiguration createFromParcel(Parcel in) { Loading