OSDN Git Service

Hearing Aid: Keep configuration after disconnect()
authorHansong Zhang <hsz@google.com>
Mon, 23 Apr 2018 19:26:52 +0000 (12:26 -0700)
committerHansong Zhang <hsz@google.com>
Mon, 23 Apr 2018 19:57:50 +0000 (19:57 +0000)
commit5abb3b90f8490b1acaa8a1b634508fe61448e692
tree8d7fabaac9ad1f1bfc1dc8c9015bc3f1a009c528
parent93011f0038824ce23800cb1439c325ce854ee1dc
Hearing Aid: Keep configuration after disconnect()

After disconnect(), the Hearing Aid service removes the device from the
white list, but retains the configuration. The Java Hearing Aid service
still knows the hiSyncId and capabilities, so it can connect() to
multiple devices at the same time

Bug: 69623109
Test: manual and unit test for Java service
Change-Id: Ic17b9be7e6a0577baecd520680abffbaf0a0dc47
bta/hearing_aid/hearing_aid.cc
bta/include/bta_hearing_aid_api.h
btif/include/btif_storage.h
btif/src/btif_hearing_aid.cc
btif/src/btif_storage.cc