Support QosCallback for UDP socket: Expose API&CTS
Expose API to use QoSCallback for UDP socket. - Constructor of QosSocketInfo with DatagramSocket - matchesProtocol(int protocol) in QosFilter - Constructor of SocketNotConnectedException & SocketRemoteAddressChangedException Add CTS test cases for exposed API. Bug: 233292861 Test: atest CtsNetTestCases Change-Id: I52ff881b71b31c0f97c08200cd811205c25fcb44
This commit is contained in:
@@ -16,13 +16,18 @@
|
||||
|
||||
package android.net;
|
||||
|
||||
import android.annotation.SystemApi;
|
||||
|
||||
import com.android.internal.annotations.VisibleForTesting;
|
||||
|
||||
/**
|
||||
* Thrown when a previously bound socket becomes unbound.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public class SocketNotConnectedException extends Exception {
|
||||
/** @hide */
|
||||
@VisibleForTesting
|
||||
public SocketNotConnectedException() {
|
||||
super("The socket is not connected");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user