Making EthernetNetworkSpecifier public

Bug: 210485380
Test: atest EthernetServiceTests
atest CtsNetTestCasesLatestSdk

cherry pick of aosp/1971181

Change-Id: Ic0b7a3360745632eb024a97692e49f6c8dafa3ee
This commit is contained in:
James Mattis
2022-02-03 19:09:36 -08:00
parent 2527ac8daf
commit 4c958ed596
3 changed files with 9 additions and 11 deletions

View File

@@ -26395,6 +26395,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

@@ -250,14 +250,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);