aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothStatusCodes.java
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2022-01-27 10:51:42 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2022-01-27 10:51:42 +0000
commit7e8af675ebfc6169d00911e44ef12dc683de7417 (patch)
tree2e4b35e2a2caf2c54a0d0691cfe34766a5afec30 /framework/java/android/bluetooth/BluetoothStatusCodes.java
parent3bbfe7aa659f798684a95e5510a9aaf5970d385c (diff)
parentfc6239e5b57f981a8ca296a1556d53a55f7faaad (diff)
Merge changes from topic "mig"
* changes: [framework] Migration of hidden APIs to System APIs [service] Migration of APIs permission changes
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.
*