Merge "Making EthernetNetworkSpecifier public" am: d13094cef4

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1971181

Change-Id: Ifce3d11a0e0e997924bd431c9208bf8c6a95cba8
This commit is contained in:
James Mattis
2022-02-10 22:38:36 +00:00
committed by Automerger Merge Worker
3 changed files with 9 additions and 11 deletions

View File

@@ -25199,6 +25199,14 @@ package android.net {
method public int getUid(); method public int getUid();
} }
public final class EthernetNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable {
ctor public EthernetNetworkSpecifier(@NonNull String);
method public int describeContents();
method @Nullable public String getInterfaceName();
method public void writeToParcel(@NonNull android.os.Parcel, int);
field @NonNull public static final android.os.Parcelable.Creator<android.net.EthernetNetworkSpecifier> CREATOR;
}
public final class Ikev2VpnProfile extends android.net.PlatformVpnProfile { public final class Ikev2VpnProfile extends android.net.PlatformVpnProfile {
method @NonNull public java.util.List<java.lang.String> getAllowedAlgorithms(); method @NonNull public java.util.List<java.lang.String> getAllowedAlgorithms();
method public int getMaxMtu(); method public int getMaxMtu();

View File

@@ -218,14 +218,6 @@ package android.media.session {
package android.net { package android.net {
public final class EthernetNetworkSpecifier extends android.net.NetworkSpecifier implements android.os.Parcelable {
ctor public EthernetNetworkSpecifier(@NonNull String);
method public int describeContents();
method @Nullable public String getInterfaceName();
method public void writeToParcel(@NonNull android.os.Parcel, int);
field @NonNull public static final android.os.Parcelable.Creator<android.net.EthernetNetworkSpecifier> CREATOR;
}
public class LocalSocket implements java.io.Closeable { public class LocalSocket implements java.io.Closeable {
ctor public LocalSocket(@NonNull java.io.FileDescriptor); ctor public LocalSocket(@NonNull java.io.FileDescriptor);
} }

View File

@@ -18,7 +18,6 @@ package android.net;
import android.annotation.NonNull; import android.annotation.NonNull;
import android.annotation.Nullable; import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.os.Parcel; import android.os.Parcel;
import android.os.Parcelable; import android.os.Parcelable;
import android.text.TextUtils; import android.text.TextUtils;
@@ -29,9 +28,7 @@ import java.util.Objects;
* A {@link NetworkSpecifier} used to identify ethernet interfaces. * A {@link NetworkSpecifier} used to identify ethernet interfaces.
* *
* @see EthernetManager * @see EthernetManager
* @hide
*/ */
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
public final class EthernetNetworkSpecifier extends NetworkSpecifier implements Parcelable { public final class EthernetNetworkSpecifier extends NetworkSpecifier implements Parcelable {
/** /**
@@ -61,6 +58,7 @@ public final class EthernetNetworkSpecifier extends NetworkSpecifier implements
return mInterfaceName; return mInterfaceName;
} }
/** @hide */
@Override @Override
public boolean canBeSatisfiedBy(@Nullable NetworkSpecifier other) { public boolean canBeSatisfiedBy(@Nullable NetworkSpecifier other) {
return equals(other); return equals(other);