OSDN Git Service

Expose service changed event to application (1/3)
authorHsingYuan Lo <hylo@google.com>
Wed, 23 Sep 2020 09:26:01 +0000 (17:26 +0800)
committerHsingYuan Lo <hylo@google.com>
Wed, 23 Sep 2020 14:26:29 +0000 (22:26 +0800)
commit48309774a8fbab9279a78bcd39a0e6fede6e1525
treec9efd6a612ae978bca1f25c008c2f2bb04d6b7eb
parent305d1c935bf63f9dd980a949c41472783bb38bff
Expose service changed event to application (1/3)

1. Add onServiceChanged() into IBluetoothGattCallback (AIDL)
2. Define tBTA_GATTC_SERVICE_CHANGED data type
3. Modify the event caller in bta_gatt_act.cc by using new data type
4. Modify the related usages for BTA_GATTC_SRVC_CHG_EVT
5. Handle BTA_GATTC_SRVC_CHG_EVT in btif_gatt_client.cc
6. Add service_change_cb into btgatt_client_callbacks_t
7. Modify the related usages for btgatt_client_callbacks_t

Bug: 154056389
Tag: #feature
Test: test service changed scenario
Change-Id: Ib5f5dac52973e39b22c9e66ee08030d8db768624
binder/android/bluetooth/IBluetoothGattCallback.aidl
bta/gatt/bta_gattc_act.cc
bta/hearing_aid/hearing_aid.cc
bta/include/bta_gatt_api.h
btif/src/btif_gatt_client.cc
include/hardware/bt_gatt_client.h
service/gatt_server_old.cc
service/hal/bluetooth_gatt_interface.cc