summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothStatusCodes.java
diff options
context:
space:
mode:
authorMd Shahriar Hossain Sajib <sajibonly@google.com>2022-01-19 15:37:26 +0800
committerMd Shahriar Hossain Sajib <sajibonly@google.com>2022-01-27 14:49:36 +0800
commitfc6239e5b57f981a8ca296a1556d53a55f7faaad (patch)
tree92ce922fac31dc14d5ed3c04fa791c55a57797a3 /framework/java/android/bluetooth/BluetoothStatusCodes.java
parent83b20416a53548b338ab7625afa979e62277c186 (diff)
[framework] Migration of hidden APIs to System APIs
Bug: 199827901 Tag: #compatibility Test: IOP, BCST, GTS Merged-In: Ib0a205bc575e4cc3cf97eac539cd303acd878134 Change-Id: Ib0a205bc575e4cc3cf97eac539cd303acd878134
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothStatusCodes.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothStatusCodes.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/BluetoothStatusCodes.java b/framework/java/android/bluetooth/BluetoothStatusCodes.java
index 9dafa073ab..c6f6cde44e 100644
--- a/framework/java/android/bluetooth/BluetoothStatusCodes.java
+++ b/framework/java/android/bluetooth/BluetoothStatusCodes.java
@@ -96,6 +96,14 @@ public final class BluetoothStatusCodes {
public static final int ERROR_FEATURE_NOT_SUPPORTED = 10;
/**
+ * Error code indicating that the requested operation timed out.
+ *
+ * @hide
+ */
+ @SystemApi
+ public static final int ERROR_TIMEOUT = 15;
+
+ /**
* A GATT writeCharacteristic request is not permitted on the remote device.
*/
public static final int ERROR_GATT_WRITE_NOT_ALLOWED = 101;
@@ -106,6 +114,22 @@ public final class BluetoothStatusCodes {
public static final int ERROR_GATT_WRITE_REQUEST_BUSY = 102;
/**
+ * Indicates that the operation is allowed.
+ *
+ * @hide
+ */
+ @SystemApi
+ public static final int ALLOWED = 400;
+
+ /**
+ * Indicates that the operation is not allowed.
+ *
+ * @hide
+ */
+ @SystemApi
+ public static final int NOT_ALLOWED = 401;
+
+ /**
* If another application has already requested {@link OobData} then another fetch will be
* disallowed until the callback is removed.
*