Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c55e2d6d authored by Aaron Huang's avatar Aaron Huang Committed by android-build-merger
Browse files

Merge "Expose MacAddress methods to public API" am: 7b981305

am: 0688f9b6

Change-Id: I1baaf191006cf6fb9fb1e718a755bb829f1cc899
parents 5c318485 0688f9b6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -28766,7 +28766,9 @@ package android.net {
    method @NonNull public static android.net.MacAddress fromBytes(@NonNull byte[]);
    method @NonNull public static android.net.MacAddress fromString(@NonNull String);
    method public int getAddressType();
    method @Nullable public java.net.Inet6Address getLinkLocalIpv6FromEui48Mac();
    method public boolean isLocallyAssigned();
    method public boolean matches(@NonNull android.net.MacAddress, @NonNull android.net.MacAddress);
    method @NonNull public byte[] toByteArray();
    method @NonNull public String toOuiString();
    method public void writeToParcel(android.os.Parcel, int);
+0 −2
Original line number Diff line number Diff line
@@ -416,7 +416,6 @@ public final class MacAddress implements Parcelable {
     * @param mask MacAddress representing the mask to use during comparison.
     * @return true if this MAC Address matches the given range.
     *
     * @hide
     */
    public boolean matches(@NonNull MacAddress baseAddress, @NonNull MacAddress mask) {
        Preconditions.checkNotNull(baseAddress);
@@ -430,7 +429,6 @@ public final class MacAddress implements Parcelable {
     * IPv6 address per RFC 4862.
     *
     * @return A link-local Inet6Address constructed from the MAC address.
     * @hide
     */
    public @Nullable Inet6Address getLinkLocalIpv6FromEui48Mac() {
        byte[] macEui48Bytes = toByteArray();