summaryrefslogtreecommitdiff
path: root/chromium/device/bluetooth/android
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/device/bluetooth/android
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-85-based.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/device/bluetooth/android')
-rw-r--r--chromium/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothRemoteGattCharacteristic.java5
-rw-r--r--chromium/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java4
2 files changed, 8 insertions, 1 deletions
diff --git a/chromium/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothRemoteGattCharacteristic.java b/chromium/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothRemoteGattCharacteristic.java
index 41344a1b708..39156474261 100644
--- a/chromium/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothRemoteGattCharacteristic.java
+++ b/chromium/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothRemoteGattCharacteristic.java
@@ -130,11 +130,14 @@ final class ChromeBluetoothRemoteGattCharacteristic {
// Implements BluetoothRemoteGattCharacteristicAndroid::WriteRemoteCharacteristic.
@CalledByNative
- private boolean writeRemoteCharacteristic(byte[] value) {
+ private boolean writeRemoteCharacteristic(byte[] value, int writeType) {
if (!mCharacteristic.setValue(value)) {
Log.i(TAG, "writeRemoteCharacteristic setValue failed.");
return false;
}
+ if (writeType != 0) {
+ mCharacteristic.setWriteType(writeType);
+ }
if (!mChromeDevice.mBluetoothGatt.writeCharacteristic(mCharacteristic)) {
Log.i(TAG, "writeRemoteCharacteristic writeCharacteristic failed.");
return false;
diff --git a/chromium/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java b/chromium/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java
index 14984469ca1..3829a8ff345 100644
--- a/chromium/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java
+++ b/chromium/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java
@@ -605,6 +605,10 @@ class Wrappers {
public boolean setValue(byte[] value) {
return mCharacteristic.setValue(value);
}
+
+ public void setWriteType(int writeType) {
+ mCharacteristic.setWriteType(writeType);
+ }
}
/**