commit | 4ddb6035d42bfe96ed7d646dbbab769f9abe98ac | [log] [tgz] |
---|---|---|
author | Chienyuan <chienyuanhuang@google.com> | Wed Dec 18 17:36:10 2019 +0800 |
committer | Chienyuan <chienyuanhuang@google.com> | Wed Dec 18 17:36:10 2019 +0800 |
tree | 1b2d994fab3ab96836e65f18b673654352a6a285 | |
parent | 94dd6410f9b16640bf87b7331bb5d51163558015 [diff] |
HFP: synchronize sendDeviceStateChanged() onSignalStrengthsChanged and ACTION_SIM_STATE_CHANGED trigger sendDeviceStateChanged() from different threads. It may cause race condition and send old device state to the headset. Use "synchronize" to make sure device state changed event sent in the right order. Bug: 146400643 Test: manual, on/off airplane mode, connect headset Change-Id: Ia02b6c2a96b19ab53322e237de458811e070f9a2