commit | 8b683ddb8ff86882ba18e05246d1b5b4fdb44b29 | [log] [tgz] |
---|---|---|
author | Hansong Zhang <hsz@google.com> | Mon Apr 23 15:21:40 2018 -0700 |
committer | Hansong Zhang <hsz@google.com> | Mon Apr 23 18:39:30 2018 -0700 |
tree | 105b2243e29e0bc301ab42661fef16c398efcc2f | |
parent | dddfc485e9199e652a86c78d17fe96afb4011391 [diff] |
Hearing Aid: fix logic in connect and disconnect * Hearing Aid Service reads the HiSyncId map and connect to the given device and also the other side device (if any) at the same time. Before connecting, the Hearing Aid Service disconnects devices from other pair. * Simplify the logic in connect and disconnect to handle devices with same HiSyncId. Bug: 69623109 Test: unit test Change-Id: Ib6e966e2aa51c991d89c9993f685aa15c039b89b