commit | 273651938dbc9bab838945f1524fb588699419c7 | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@google.com> | Sun May 28 12:39:08 2017 -0700 |
committer | Pavlin Radoslavov <pavlin@google.com> | Thu Jun 01 11:15:38 2017 +0000 |
tree | b83270b0fab0f7c65878e3881dbb7c07ce63b2b2 | |
parent | 1de504036f4a12f227d7b3ca6c4e429917bd9ddc [diff] |
Add mutex-based protection mechanism to the HFP JNI layer The protection mechanism is needed to avoid a race condition during graceful cleaning up of the Bluetooth Handsfree Interface when Bluetooth is disabled, and native upcalls like connection_state_callback() Bug: 62116636 Test: manual Change-Id: I6be4c0bd996beca5252e881c55279ea4f7503e7b