Hide IpConfiguration
Bug: 7606609, Bug: 8687763 Change-Id: I2970bf79ef14cb993878c1dc10c7022a716f46c5
This commit is contained in:
@@ -23,13 +23,11 @@ import android.util.Log;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A class representing a configured network.
|
* A class representing a configured network.
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public class IpConfiguration implements Parcelable {
|
public class IpConfiguration implements Parcelable {
|
||||||
private static final String TAG = "IpConfiguration";
|
private static final String TAG = "IpConfiguration";
|
||||||
|
|
||||||
/**
|
|
||||||
* @hide
|
|
||||||
*/
|
|
||||||
public enum IpAssignment {
|
public enum IpAssignment {
|
||||||
/* Use statically configured IP settings. Configuration can be accessed
|
/* Use statically configured IP settings. Configuration can be accessed
|
||||||
* with linkProperties */
|
* with linkProperties */
|
||||||
@@ -41,14 +39,8 @@ public class IpConfiguration implements Parcelable {
|
|||||||
UNASSIGNED
|
UNASSIGNED
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @hide
|
|
||||||
*/
|
|
||||||
public IpAssignment ipAssignment;
|
public IpAssignment ipAssignment;
|
||||||
|
|
||||||
/**
|
|
||||||
* @hide
|
|
||||||
*/
|
|
||||||
public enum ProxySettings {
|
public enum ProxySettings {
|
||||||
/* No proxy is to be used. Any existing proxy settings
|
/* No proxy is to be used. Any existing proxy settings
|
||||||
* should be cleared. */
|
* should be cleared. */
|
||||||
@@ -64,14 +56,8 @@ public class IpConfiguration implements Parcelable {
|
|||||||
PAC
|
PAC
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @hide
|
|
||||||
*/
|
|
||||||
public ProxySettings proxySettings;
|
public ProxySettings proxySettings;
|
||||||
|
|
||||||
/**
|
|
||||||
* @hide
|
|
||||||
*/
|
|
||||||
public LinkProperties linkProperties;
|
public LinkProperties linkProperties;
|
||||||
|
|
||||||
public IpConfiguration() {
|
public IpConfiguration() {
|
||||||
@@ -80,7 +66,7 @@ public class IpConfiguration implements Parcelable {
|
|||||||
linkProperties = new LinkProperties();
|
linkProperties = new LinkProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** copy constructor {@hide} */
|
/** copy constructor */
|
||||||
public IpConfiguration(IpConfiguration source) {
|
public IpConfiguration(IpConfiguration source) {
|
||||||
if (source != null) {
|
if (source != null) {
|
||||||
ipAssignment = source.ipAssignment;
|
ipAssignment = source.ipAssignment;
|
||||||
@@ -124,19 +110,19 @@ public class IpConfiguration implements Parcelable {
|
|||||||
return sbuf.toString();
|
return sbuf.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Implement the Parcelable interface {@hide} */
|
/** Implement the Parcelable interface */
|
||||||
public int describeContents() {
|
public int describeContents() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Implement the Parcelable interface {@hide} */
|
/** Implement the Parcelable interface */
|
||||||
public void writeToParcel(Parcel dest, int flags) {
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
dest.writeString(ipAssignment.name());
|
dest.writeString(ipAssignment.name());
|
||||||
dest.writeString(proxySettings.name());
|
dest.writeString(proxySettings.name());
|
||||||
dest.writeParcelable(linkProperties, flags);
|
dest.writeParcelable(linkProperties, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Implement the Parcelable interface {@hide} */
|
/** Implement the Parcelable interface */
|
||||||
public static final Creator<IpConfiguration> CREATOR =
|
public static final Creator<IpConfiguration> CREATOR =
|
||||||
new Creator<IpConfiguration>() {
|
new Creator<IpConfiguration>() {
|
||||||
public IpConfiguration createFromParcel(Parcel in) {
|
public IpConfiguration createFromParcel(Parcel in) {
|
||||||
|
|||||||
Reference in New Issue
Block a user