Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Unified Diff: device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java

Issue 1577623002: bluetooth: android: Implement Descriptor Write as needed for notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bta-descriptors-
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java
diff --git a/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java b/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java
index ea78782289a1b4175dd618246e4a5d075fe54241..d53e233a287494ab8e05cb6583106e8b51f2bd6e 100644
--- a/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java
+++ b/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java
@@ -330,6 +330,10 @@ class Wrappers {
boolean writeCharacteristic(BluetoothGattCharacteristicWrapper characteristic) {
return mGatt.writeCharacteristic(characteristic.mCharacteristic);
}
+
+ boolean writeDescriptor(BluetoothGattDescriptorWrapper descriptor) {
+ return mGatt.writeDescriptor(descriptor.mDescriptor);
+ }
}
/**
@@ -499,5 +503,13 @@ class Wrappers {
public UUID getUuid() {
return mDescriptor.getUuid();
}
+
+ public byte[] getValue() {
+ return mDescriptor.getValue();
+ }
+
+ public boolean setValue(byte[] value) {
+ return mDescriptor.setValue(value);
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698