OSDN Git Service

GATT: Expose opportunistic client API to Java
authorJack He <siyuanh@google.com>
Wed, 5 Jul 2017 21:55:35 +0000 (14:55 -0700)
committerJack He <siyuanh@google.com>
Wed, 12 Jul 2017 00:35:54 +0000 (00:35 +0000)
commit79bf7d755f6ed896902130849344f134b44aeb13
tree5c18ef26d85a7f2285e062ad7b916938a897a117
parent8d10791f5b979a5343f462d1b0e9ab1cbbfe8346
GATT: Expose opportunistic client API to Java

* Allow Java based programs to create an opportunistic GATT client
* Such client does not hold a GATT connection. It automatically
  disconnects when no other GATT connections are active for the
  remote device.

Bug: 63347806
Test: make, run battery service
Change-Id: Ib9333817d7f17a1fa3ddacfa51c680890bac19ec
Merged-In: Ib9333817d7f17a1fa3ddacfa51c680890bac19ec
(cherry picked from commit 13f52c8118c09ffc57b581a7d44b08e5e66d62fe)
core/java/android/bluetooth/BluetoothDevice.java
core/java/android/bluetooth/BluetoothGatt.java
core/java/android/bluetooth/IBluetoothGatt.aidl