OSDN Git Service

Separate LE scanner from GATT client (4/4)
authorJakub Pawlowski <jpawlowski@google.com>
Wed, 26 Oct 2016 22:31:24 +0000 (15:31 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Thu, 27 Oct 2016 23:10:44 +0000 (23:10 +0000)
commitf3246f1c563391b7415f0e2bf881c99bdc535df7
tree576ed9e4ee09ae0200f5628d0e93433560e20ee2
parentd7ffd64accbd50a27289a388856e56244ccbb5da
Separate LE scanner from GATT client (4/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
Bug: 30622771
Change-Id: I23b71255c459b185257654f68ea251b41ed2a14b
btif/src/btif_gatt_client.cc
service/gatt_server_old.cc
service/hal/bluetooth_gatt_interface.cc
service/hal/bluetooth_gatt_interface.h
service/hal/fake_bluetooth_gatt_interface.cc