Files
android_packages_modules_Co…/framework/src/android/net/SocketNotConnectedException.java
sewookseo 4d371bc6c4 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
2022-09-29 08:54:08 +00:00

35 lines
1011 B
Java

/*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
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 {
@VisibleForTesting
public SocketNotConnectedException() {
super("The socket is not connected");
}
}