Make libbt-vendor thread-safe

The APIs provided to our clients can be called simultaneously resulting in
various race conditions. Make them thread-safe.

In addition, remove various global various and encapsulate them in a
context.

CRs-Fixed: 1010477
Change-Id: I8f145e3b2927ea75a0b65e0aa46b68d1b673d84e
4 files changed
tree: edc7643427193b95255a7a259a210e1ee7ac1b59
  1. libbt-vendor/
  2. Android.mk
  3. CleanSpec.mk