diff options
author | Matthew Xie <mattx@google.com> | 2013-05-23 17:39:35 -0700 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2013-05-23 17:39:35 -0700 |
commit | 8310e6196ffeb6d0dce33fc1a528113b04f304d6 (patch) | |
tree | 0a1c5faaea53beb263f4e4076629cb4e1e87dbfd /core/java/android/bluetooth | |
parent | 83d6df27d40aed18a7dc42c9320f83656cc81ea0 (diff) | |
download | frameworks_base-8310e6196ffeb6d0dce33fc1a528113b04f304d6.zip frameworks_base-8310e6196ffeb6d0dce33fc1a528113b04f304d6.tar.gz frameworks_base-8310e6196ffeb6d0dce33fc1a528113b04f304d6.tar.bz2 |
Change GATT_FAILURE from 0 to 0x101
GATT_FAILURE 0 clashes with GATT_SUCCESS. For now, they represent different
kind of faiure. One for Gatt operation, one for Gatt registration. But we
should separate them as good practice.
bug 9109238
Change-Id: I686bb6004bc8831aa3e3bbffe2f7c8e24412e3c3
Diffstat (limited to 'core/java/android/bluetooth')
-rw-r--r-- | core/java/android/bluetooth/BluetoothGatt.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/bluetooth/BluetoothGatt.java b/core/java/android/bluetooth/BluetoothGatt.java index bffe64b..f303206 100644 --- a/core/java/android/bluetooth/BluetoothGatt.java +++ b/core/java/android/bluetooth/BluetoothGatt.java @@ -70,9 +70,6 @@ public final class BluetoothGatt implements BluetoothProfile { private List<BluetoothGattService> mServices; - /** A GATT operation failed */ - public static final int GATT_FAILURE = 0; - /** A GATT operation completed successfully */ public static final int GATT_SUCCESS = 0; @@ -97,6 +94,9 @@ public final class BluetoothGatt implements BluetoothProfile { /** A write operation exceeds the maximum length of the attribute */ public static final int GATT_INVALID_ATTRIBUTE_LENGTH = 0xd; + /** A GATT operation failed, errors other than the above */ + public static final int GATT_FAILURE = 0x101; + /** * No authentication required. * @hide |