summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothStatusCodes.java
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2022-01-28 01:44:00 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-01-28 01:44:00 +0000
commita4195e47e41972a8308a66abb8b9995daf6edbcc (patch)
treefed65680473b8e007e981805b18ea0ea073e02e7 /framework/java/android/bluetooth/BluetoothStatusCodes.java
parent6ca88d122bd794a1e432f2dc1ae4b785dd4eaa63 (diff)
parentd6f8dbbcfe6fe54c90d9deabe60b1644698f9cd0 (diff)
Merge "Introduces mechanism for background rfcomm servers" am: 0662f5b93c am: d6f8dbbcfe
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1885648 Change-Id: Iee0e7a37f422586e200c151655c4c3a552afdada
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothStatusCodes.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothStatusCodes.java51
1 files changed, 51 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/BluetoothStatusCodes.java b/framework/java/android/bluetooth/BluetoothStatusCodes.java
index c6f6cde44e..0425220c8d 100644
--- a/framework/java/android/bluetooth/BluetoothStatusCodes.java
+++ b/framework/java/android/bluetooth/BluetoothStatusCodes.java
@@ -310,6 +310,57 @@ public final class BluetoothStatusCodes {
public static final int ERROR_LE_AUDIO_BROADCAST_SOURCE_DISABLE_ENCRYPTION_FAILED = 1115;
/**
+ * Indicates that the RFCOMM listener could not be started due to the requested UUID already
+ * being in use.
+ *
+ * @hide
+ */
+ @SystemApi
+ public static final int RFCOMM_LISTENER_START_FAILED_UUID_IN_USE = 2000;
+
+ /**
+ * Indicates that the operation could not be competed because the service record on which the
+ * operation was requested on does not exist.
+ *
+ * @hide
+ */
+ @SystemApi
+ public static final int RFCOMM_LISTENER_OPERATION_FAILED_NO_MATCHING_SERVICE_RECORD = 2001;
+
+ /**
+ * Indicates that the operation could not be completed because the application requesting the
+ * operation on the RFCOMM listener was not the one which registered it.
+ *
+ * @hide
+ */
+ @SystemApi
+ public static final int RFCOMM_LISTENER_OPERATION_FAILED_DIFFERENT_APP = 2002;
+
+ /**
+ * Indicates that the creation of the underlying BluetoothServerSocket failed.
+ *
+ * @hide
+ */
+ @SystemApi
+ public static final int RFCOMM_LISTENER_FAILED_TO_CREATE_SERVER_SOCKET = 2003;
+
+ /**
+ * Indicates that closing the underlying BluetoothServerSocket failed.
+ *
+ * @hide
+ */
+ @SystemApi
+ public static final int RFCOMM_LISTENER_FAILED_TO_CLOSE_SERVER_SOCKET = 2004;
+
+ /**
+ * Indicates that there is no socket available to retrieve from the given listener.
+ *
+ * @hide
+ */
+ @SystemApi
+ public static final int RFCOMM_LISTENER_NO_SOCKET_AVAILABLE = 2005;
+
+ /**
* Indicates that an unknown error has occurred has occurred.
*/
public static final int ERROR_UNKNOWN = Integer.MAX_VALUE;