OSDN Git Service

Wait for Notifications before sending audio data
authorStanley Tng <stng@google.com>
Wed, 26 Dec 2018 02:12:51 +0000 (18:12 -0800)
committerStanley Tng <stng@google.com>
Thu, 17 Jan 2019 03:11:41 +0000 (19:11 -0800)
commit8b9f17bc7cd90514b946bb4b21af87b894005fc3
tree134f8c3ed36374f83aa72dee0d61d917e13f668f
parent6ab305324de92794207c98553aa1debc8a2172ca
Wait for Notifications before sending audio data

For the Hearing Aids Profile, wait for the notification status from the
devices after sending the Start command. The reason is that the devices
may be in low power mode and the phone should not start streaming audio
data to these devices until it is fully awake.

Test: Manual testing with Hearing Aids devices
Bug: 117778955
Bug: 120921220
Change-Id: I28b79e7e284d5e75864c0b12315fbb8bd47acf74
bta/gatt/bta_gattc_api.cc
bta/hearing_aid/hearing_aid.cc
bta/include/bta_hearing_aid_api.h
btif/src/btif_storage.cc
stack/include/gattdefs.h