commit | f90eca34df4a5fb45bf4a073d21a02e7b3e616b8 | [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 09:06:37 2017 -0700 |
tree | 3a0404376e89bf42a247c6d766787bbf3183b2d8 | |
parent | b4650c79c67ba13773724ef4af9a82c1bb7c808c [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 (cherry picked from commit 273651938dbc9bab838945f1524fb588699419c7)