OSDN Git Service

Use GATT_WRITE_NO_RSP for "state change" updates
authorweichinweng <weichinweng@google.com>
Wed, 17 Apr 2019 07:52:07 +0000 (15:52 +0800)
committerweichinweng <weichinweng@google.com>
Fri, 19 Apr 2019 00:46:22 +0000 (08:46 +0800)
commit3bf4b087a817976193852edcc501265ea8ec5afd
treec4b28b3869c54e78106e50477618d4c2e00bb890
parent4c0701f21b724225776617c8788ed5eb87b90044
Use GATT_WRITE_NO_RSP for "state change" updates

For Hearing Aid, replaces the GATT_WRITE with GATT_WRITE_NO_RSP for the
"state change" updates that are send to the devices. Using no response
write is faster and these informational updates does not need a
confirmation from the devices.

Bug: 130332748
Test: 1.run unit test
2.Forget/Repair HearingAid device from Bluetooth UI.
3.Disconnect/Reconnect HearingAid device from Bluetooth UI.
4.HearingAid device power off/on, check them can reconnect.
5.Multiple click connect/disconnect from Bluetooth UI within 1 sec,
check them can reconnect.
6.One side HearingAid device power off/on when playing music, check it
can reconnect and music is work fine.

Change-Id: I55e9b4b0b8c76412e5810e1cec5d96819527d099
bta/hearing_aid/hearing_aid.cc