OSDN Git Service

service: Move client registration into base class
authorArman Uguray <armansito@google.com>
Mon, 21 Sep 2015 18:17:07 +0000 (11:17 -0700)
committerArman Uguray <armansito@google.com>
Thu, 24 Sep 2015 06:54:09 +0000 (23:54 -0700)
commit08f80ebd5c714364cb76cc4e4a93454b42ed5669
treefc2c280ca579574f8208702901b99b6153e66e97
parent2fea18e501ab98df3254a08fca981513bf098274
service: Move client registration into base class

This CL introduces InterfaceWithClientsBase, which is an abstract class
that implements common client registration logic, which will be reused
for Binder interfaces such as IBluetoothGattClient and
IBluetoothGattServer. This also introduces BluetoothClientInstance, so
that per-application API client instances (and their factories) conform
to a common interface.

Bug: 24245347
Change-Id: Ia4b464fa85f7a33c631bf63342631fce8d155b4a
service/Android.mk
service/bluetooth_client_instance.h [new file with mode: 0644]
service/ipc/binder/bluetooth_low_energy_binder_server.cpp
service/ipc/binder/bluetooth_low_energy_binder_server.h
service/ipc/binder/interface_with_clients_base.cpp [new file with mode: 0644]
service/ipc/binder/interface_with_clients_base.h [new file with mode: 0644]
service/low_energy_client.cpp
service/low_energy_client.h
service/test/low_energy_client_unittest.cpp