diff options
| author | Rahul Sabnis <rahulsabnis@google.com> | 2021-10-13 10:56:50 -0700 |
|---|---|---|
| committer | Rahul Sabnis <rahulsabnis@google.com> | 2021-11-04 17:26:10 -0700 |
| commit | 3901dc6bf36c1d48ef147564c1af52e697e3d2bb (patch) | |
| tree | 7d3d755215391bf46f9895526c8673fce6d52bb6 /core/java/android/bluetooth/BluetoothStatusCodes.java | |
| parent | 13b1cbf5532925e6b5427159aa6d72168db0bc91 (diff) | |
Deprecate GATT callbacks and methods that were not memory safe and
replace with memory safe versions.
Tag: #feature
Bug: 195157393
Test: Manual
CTS-Coverage-Bug: 205190062
Change-Id: I5ae604ec20febcf646bfe6a8f866b218448349c1
Diffstat (limited to 'core/java/android/bluetooth/BluetoothStatusCodes.java')
| -rw-r--r-- | core/java/android/bluetooth/BluetoothStatusCodes.java | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/core/java/android/bluetooth/BluetoothStatusCodes.java b/core/java/android/bluetooth/BluetoothStatusCodes.java index 63e84eddc73f..ca01784efd88 100644 --- a/core/java/android/bluetooth/BluetoothStatusCodes.java +++ b/core/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 |
