Merge "Expose DhcpInfo parcelable interface implementation methods" am: 617e9bd709 am: 6817693ef3
Change-Id: I6bf8b0646d2a9c9df8451feb51b05bf00739c4c3
This commit is contained in:
commit
badb0c36b6
1 changed files with 4 additions and 4 deletions
|
|
@ -16,8 +16,8 @@
|
|||
|
||||
package android.net;
|
||||
|
||||
import android.os.Parcelable;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
/**
|
||||
* A simple object for retrieving the results of a DHCP request.
|
||||
|
|
@ -67,12 +67,12 @@ public class DhcpInfo implements Parcelable {
|
|||
buf.append(NetworkUtils.intToInetAddress(addr).getHostAddress());
|
||||
}
|
||||
|
||||
/** 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.writeInt(ipAddress);
|
||||
dest.writeInt(gateway);
|
||||
|
|
@ -83,7 +83,7 @@ public class DhcpInfo implements Parcelable {
|
|||
dest.writeInt(leaseDuration);
|
||||
}
|
||||
|
||||
/** Implement the Parcelable interface {@hide} */
|
||||
/** Implement the Parcelable interface */
|
||||
public static final @android.annotation.NonNull Creator<DhcpInfo> CREATOR =
|
||||
new Creator<DhcpInfo>() {
|
||||
public DhcpInfo createFromParcel(Parcel in) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue