Expose the MacAddress class in the api

Test: built,  flashed, $ runtest frameworks-net
Bug: 69390696
Change-Id: Ica5efdf5ffe8ad2500a87f574508a2bcd074b33d
This commit is contained in:
Hugo Benichi
2017-12-05 10:30:31 +09:00
parent 36f46a8731
commit 12981ff2d8
2 changed files with 17 additions and 2 deletions

View File

@@ -25975,6 +25975,23 @@ package android.net {
enum_constant public static final android.net.LocalSocketAddress.Namespace RESERVED;
}
public final class MacAddress implements android.os.Parcelable {
method public int addressType();
method public int describeContents();
method public static android.net.MacAddress fromBytes(byte[]);
method public static android.net.MacAddress fromString(java.lang.String);
method public boolean isLocallyAssigned();
method public byte[] toByteArray();
method public java.lang.String toSafeString();
method public void writeToParcel(android.os.Parcel, int);
field public static final android.net.MacAddress BROADCAST_ADDRESS;
field public static final android.os.Parcelable.Creator<android.net.MacAddress> CREATOR;
field public static final int TYPE_BROADCAST = 3; // 0x3
field public static final int TYPE_MULTICAST = 2; // 0x2
field public static final int TYPE_UNICAST = 1; // 0x1
field public static final int TYPE_UNKNOWN = 0; // 0x0
}
public class MailTo {
method public java.lang.String getBody();
method public java.lang.String getCc();

View File

@@ -33,8 +33,6 @@ import java.util.Random;
*
* This class only supports 48 bits long addresses and does not support 64 bits long addresses.
* Instances of this class are immutable.
*
* @hide
*/
public final class MacAddress implements Parcelable {