diff options
author | Rahul Sabnis <rahulsabnis@google.com> | 2021-11-05 19:00:17 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-11-05 19:00:17 +0000 |
commit | 1fee1ad006ae6044c5929229ea836bee26ea796d (patch) | |
tree | d8fa636b79b431f0c72dbf0b6ef1e3cf144bbc54 /framework/java/android/bluetooth/BluetoothStatusCodes.java | |
parent | c9366d50737fbeb9e6e73ce8a8985a5f7eeea316 (diff) | |
parent | d4dc9fe4223a1f6bac2b74442031bfc0b623d8f7 (diff) |
Merge "Deprecate GATT callbacks and methods that were not memory safe and replace with memory safe versions." am: 0556c167ab am: 073b42f3b1 am: 5a6d3d6a80 am: d4dc9fe422
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1858070
Change-Id: I5ae27882a985d71ef694739993e29605235a6197
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothStatusCodes.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothStatusCodes.java | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/framework/java/android/bluetooth/BluetoothStatusCodes.java b/framework/java/android/bluetooth/BluetoothStatusCodes.java index 63e84eddc7..ca01784efd 100644 --- a/framework/java/android/bluetooth/BluetoothStatusCodes.java +++ b/framework/java/android/bluetooth/BluetoothStatusCodes.java @@ -79,9 +79,31 @@ public final class BluetoothStatusCodes { public static final int ERROR_MISSING_BLUETOOTH_SCAN_PERMISSION = 7; /** + * Error code indicating that the caller does not have the + * {@link android.Manifest.permission#BLUETOOTH_PRIVILEGED} permission + */ + public static final int ERROR_MISSING_BLUETOOTH_PRIVILEGED_PERMISSION = 8; + + /** + * Error code indicating that the profile service is not bound. You can bind a profile service + * by calling {@link BluetoothAdapter#getProfileProxy} + */ + public static final int ERROR_PROFILE_SERVICE_NOT_BOUND = 9; + + /** * Error code indicating that the feature is not supported. */ - public static final int ERROR_FEATURE_NOT_SUPPORTED = 8; + public static final int ERROR_FEATURE_NOT_SUPPORTED = 10; + + /** + * A GATT writeCharacteristic request is not permitted on the remote device. + */ + public static final int ERROR_GATT_WRITE_NOT_ALLOWED = 101; + + /** + * A GATT writeCharacteristic request is issued to a busy remote device. + */ + public static final int ERROR_GATT_WRITE_REQUEST_BUSY = 102; /** * If another application has already requested {@link OobData} then another fetch will be |