summaryrefslogtreecommitdiff
path: root/core/java/android/net/SocketLocalAddressChangedException.java
diff options
context:
space:
mode:
authorDaniel Bright <dbright@google.com>2020-06-15 16:10:01 -0700
committerDaniel Bright <dbright@google.com>2021-01-21 20:14:52 -0800
commit2cc8ead3d69c4ca396aea79511387eec09cc16cb (patch)
treea6edd2b4078512c957027fda699a0b8331f28caf /core/java/android/net/SocketLocalAddressChangedException.java
parent289920808b88609228437022ad1c755f06819d48 (diff)
Add Qos Callback support
* Provide App Developers Qos related info associated to a bound socket through ConnectivityManager * Qos sessions are generated and filtered by Network Agents and sent back through the Connectivity Service to the API consumer. * The structure of the code within com.android.server is designed to support different types of filters in the the future. * The first type of Qos Attributes are related to EPS Bearers in order support RCS. Bug: 155176305 Test: Added to cts/NetworkAgentTest Test: Added to ConnectivityServiceTest Change-Id: I145dd065d9deeee449eb9695ab3f6c8556ee7c09
Diffstat (limited to 'core/java/android/net/SocketLocalAddressChangedException.java')
-rw-r--r--core/java/android/net/SocketLocalAddressChangedException.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/core/java/android/net/SocketLocalAddressChangedException.java b/core/java/android/net/SocketLocalAddressChangedException.java
new file mode 100644
index 000000000000..9daad83fd13e
--- /dev/null
+++ b/core/java/android/net/SocketLocalAddressChangedException.java
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2021 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;
+
+/**
+ * Thrown when the local address of the socket has changed.
+ *
+ * @hide
+ */
+@SystemApi
+public class SocketLocalAddressChangedException extends Exception {
+ /** @hide */
+ public SocketLocalAddressChangedException() {
+ super("The local address of the socket changed");
+ }
+}