commit | fd9f7cfb81d9b478e710807b4fc9bf1d1e5fd409 | [log] [tgz] |
---|---|---|
author | Cheney Ni <cheneyni@google.com> | Tue May 07 22:37:52 2019 +0800 |
committer | Cheney Ni <cheneyni@google.com> | Fri Dec 06 21:18:24 2019 +0800 |
tree | e68c689f4932e5a0e97165fe758d3afaa8a90e6f | |
parent | 0e0247b53c1e442eb2e2436978be311c1e85a486 [diff] |
Reduced the audio effort while changing the A2DP active device * Functions to change the active device must be exclusive of each other, and is separated from the mStateMachine synchronized. * Move the mAudioManager calls out of the mStateMachine synchronized, and it breaks the deadlock even if the AudioManager invokes A2DP APIs in the same time. Bug: 132035154 Bug: 128962562 Test: TH and switch A2DP device manually Change-Id: Ib55f5dc51dfe0354b106bdd5bb7cee59c9e149e1