OSDN Git Service

service: Add connection state tracking to Adapter
authorArman Uguray <armansito@google.com>
Fri, 13 Nov 2015 23:05:48 +0000 (15:05 -0800)
committerArman Uguray <armansito@google.com>
Sat, 12 Dec 2015 00:17:30 +0000 (16:17 -0800)
commit0f29c005ee0a1a5c68c9b8e33f099fffefb5bab8
treea4602ef83998d429867824f5c2ff92a116fe1b8e
parent6e7f114917c3cf6b2c801afcf599c2c962bca019
service: Add connection state tracking to Adapter

Added the IsDeviceConnected method to Adapter and also an
Observer method that other components can use to track the ACL
state between the local adapter and a remote device.

Bug: 25157450
Change-Id: If9bc25ab58b4a9b5430753405fb64834c0946050
service/adapter.cpp
service/adapter.h
service/hal/bluetooth_gatt_interface.cpp
service/hal/bluetooth_interface.cpp
service/hal/bluetooth_interface.h
service/hal/fake_bluetooth_interface.cpp
service/hal/fake_bluetooth_interface.h
service/test/adapter_unittest.cpp