OSDN Git Service

Separate LE scanner from GATT client (1/4)
authorJakub Pawlowski <jpawlowski@google.com>
Wed, 26 Oct 2016 20:05:30 +0000 (13:05 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 27 Oct 2016 23:09:35 +0000 (23:09 +0000)
commit1b49e6eb04f2eef4d8056e7447d8e0789c291847
tree466a6255fcd3e3cf1aa6dc415a2ab0785df51487
parenta062ce698b56eeee427652ab5b227afe61bae31e
Separate LE scanner from GATT client (1/4)

Right now, LE scanning functionality is combined with the GATT client.
This is the source of various bugs, like scans suddenly stoppinging when
a GATT client is killed. It also increases memory consumption, because
we associate many structures with a GATT client, which are not necessary
when just scanning.

Test: sl4a BleScanApiTest ConcurrentBleScanTest
Change-Id: I0c25bd4a58bb430eb0ee4100d5f2bbab194f9621
Android.mk
core/java/android/bluetooth/BluetoothGatt.java
core/java/android/bluetooth/BluetoothGattCallbackWrapper.java [deleted file]
core/java/android/bluetooth/IBluetoothGatt.aidl
core/java/android/bluetooth/IBluetoothGattCallback.aidl
core/java/android/bluetooth/IBluetoothGattServerCallback.aidl
core/java/android/bluetooth/le/BluetoothLeAdvertiser.java
core/java/android/bluetooth/le/BluetoothLeScanner.java
core/java/android/bluetooth/le/IScannerCallback.aidl [new file with mode: 0644]