Merge "Reduce blocking time when waiting for CharacteristicWrite queue to clear up." am: d5bd847275 am: c460086312
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1932845 Change-Id: I9be07e4dd2ed8dfe44d29c399696c4f3a9c1dde7
This commit is contained in:
@@ -87,7 +87,7 @@ public final class BluetoothGatt implements BluetoothProfile {
|
|||||||
private static final int CONN_STATE_CLOSED = 4;
|
private static final int CONN_STATE_CLOSED = 4;
|
||||||
|
|
||||||
private static final int WRITE_CHARACTERISTIC_MAX_RETRIES = 5;
|
private static final int WRITE_CHARACTERISTIC_MAX_RETRIES = 5;
|
||||||
private static final int WRITE_CHARACTERISTIC_TIME_TO_WAIT = 1000; // milliseconds
|
private static final int WRITE_CHARACTERISTIC_TIME_TO_WAIT = 10; // milliseconds
|
||||||
|
|
||||||
private List<BluetoothGattService> mServices;
|
private List<BluetoothGattService> mServices;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user