GATT Server refactoring (2/4)
Bug: 27999121
Change-Id: Ia5f91298a4b01b62adebc8adc30f27f757259588
diff --git a/core/java/android/bluetooth/BluetoothGattCharacteristic.java b/core/java/android/bluetooth/BluetoothGattCharacteristic.java
index 01f82e6..1cc2270 100644
--- a/core/java/android/bluetooth/BluetoothGattCharacteristic.java
+++ b/core/java/android/bluetooth/BluetoothGattCharacteristic.java
@@ -321,10 +321,10 @@
}
/**
- * Returns the deisred key size.
+ * Returns the desired key size.
* @hide
*/
- /*package*/ int getKeySize() {
+ public int getKeySize() {
return mKeySize;
}
@@ -393,6 +393,14 @@
}
/**
+ * Force the instance ID.
+ * @hide
+ */
+ public void setInstanceId(int instanceId) {
+ mInstance = instanceId;
+ }
+
+ /**
* Returns the properties of this characteristic.
*
* <p>The properties contain a bit mask of property flags indicating