OSDN Git Service

service/hal: Add per-client Scan interface
authorArman Uguray <armansito@google.com>
Mon, 30 Nov 2015 22:58:11 +0000 (14:58 -0800)
committerJakub Pawlowski <jpawlowski@google.com>
Wed, 13 Jan 2016 21:32:16 +0000 (13:32 -0800)
commit3f6aa07299fd9db634274fd22821b349f18b5e0f
treeb7fef073cae27b4e430b3e1c683ca8b461633276
parent6d596c072995a876414b55a0471ef13146053b9c
service/hal: Add per-client Scan interface

Added a new per-client scan function to hal::BluetoothGattInterface.
The intention here is to push most of the per-client reference counting,
scan settings and filter coalescence below the HAL. This CL does this
first inside the Bluetooth daemon's HAL wrappers in a way that
represents what the future HAL scan API might look like.

This implements a basic reference counting scheme to share the global
controller scan session among different clients.

Bug: 25744656
Change-Id: I20c5cfc291be70d72576ebee014cc13544d5a299
service/hal/bluetooth_gatt_interface.cpp
service/hal/bluetooth_gatt_interface.h
service/hal/fake_bluetooth_gatt_interface.cpp
service/hal/fake_bluetooth_gatt_interface.h
service/test/gatt_client_unittest.cpp
service/test/low_energy_client_unittest.cpp