Move QoS API classes to Connectivity
The classes were added in S and are used to back ConnectivityManager APIs. Add them to the connectivity boundary as they belong together with ConnectivityManager. Bug: 181512874 Test: m Change-Id: I03b5978949b200a72813d1ebc4812d851fe3df37
This commit is contained in:
@@ -308,6 +308,9 @@ package android.net {
|
||||
field public static final int ID_NONE = -1; // 0xffffffff
|
||||
}
|
||||
|
||||
public class NetworkReleasedException extends java.lang.Exception {
|
||||
}
|
||||
|
||||
public class NetworkRequest implements android.os.Parcelable {
|
||||
method @Nullable public String getRequestorPackageName();
|
||||
method public int getRequestorUid();
|
||||
@@ -317,6 +320,47 @@ package android.net {
|
||||
method @NonNull @RequiresPermission(android.Manifest.permission.NETWORK_SIGNAL_STRENGTH_WAKEUP) public android.net.NetworkRequest.Builder setSignalStrength(int);
|
||||
}
|
||||
|
||||
public abstract class QosCallback {
|
||||
ctor public QosCallback();
|
||||
method public void onError(@NonNull android.net.QosCallbackException);
|
||||
method public void onQosSessionAvailable(@NonNull android.net.QosSession, @NonNull android.net.QosSessionAttributes);
|
||||
method public void onQosSessionLost(@NonNull android.net.QosSession);
|
||||
}
|
||||
|
||||
public static class QosCallback.QosCallbackRegistrationException extends java.lang.RuntimeException {
|
||||
}
|
||||
|
||||
public final class QosCallbackException extends java.lang.Exception {
|
||||
}
|
||||
|
||||
public abstract class QosFilter {
|
||||
method @NonNull public abstract android.net.Network getNetwork();
|
||||
method public abstract boolean matchesLocalAddress(@NonNull java.net.InetAddress, int, int);
|
||||
}
|
||||
|
||||
public final class QosSession implements android.os.Parcelable {
|
||||
ctor public QosSession(int, int);
|
||||
method public int describeContents();
|
||||
method public int getSessionId();
|
||||
method public int getSessionType();
|
||||
method public long getUniqueId();
|
||||
method public void writeToParcel(@NonNull android.os.Parcel, int);
|
||||
field @NonNull public static final android.os.Parcelable.Creator<android.net.QosSession> CREATOR;
|
||||
field public static final int TYPE_EPS_BEARER = 1; // 0x1
|
||||
}
|
||||
|
||||
public interface QosSessionAttributes {
|
||||
}
|
||||
|
||||
public final class QosSocketInfo implements android.os.Parcelable {
|
||||
ctor public QosSocketInfo(@NonNull android.net.Network, @NonNull java.net.Socket) throws java.io.IOException;
|
||||
method public int describeContents();
|
||||
method @NonNull public java.net.InetSocketAddress getLocalSocketAddress();
|
||||
method @NonNull public android.net.Network getNetwork();
|
||||
method public void writeToParcel(@NonNull android.os.Parcel, int);
|
||||
field @NonNull public static final android.os.Parcelable.Creator<android.net.QosSocketInfo> CREATOR;
|
||||
}
|
||||
|
||||
public final class RouteInfo implements android.os.Parcelable {
|
||||
ctor public RouteInfo(@Nullable android.net.IpPrefix, @Nullable java.net.InetAddress, @Nullable String, int);
|
||||
ctor public RouteInfo(@Nullable android.net.IpPrefix, @Nullable java.net.InetAddress, @Nullable String, int, int);
|
||||
@@ -331,6 +375,12 @@ package android.net {
|
||||
field public static final int SUCCESS = 0; // 0x0
|
||||
}
|
||||
|
||||
public class SocketLocalAddressChangedException extends java.lang.Exception {
|
||||
}
|
||||
|
||||
public class SocketNotBoundException extends java.lang.Exception {
|
||||
}
|
||||
|
||||
public final class StaticIpConfiguration implements android.os.Parcelable {
|
||||
ctor public StaticIpConfiguration();
|
||||
ctor public StaticIpConfiguration(@Nullable android.net.StaticIpConfiguration);
|
||||
|
||||
Reference in New Issue
Block a user