Accept any kind of A2DP device for using the BT preferences, not only
headsets.

Change-Id: I30c7ae24943f57e0dc6691ffc0652eeb2f11a83e
We build against the SDK, no need for using reflection.

Change-Id: Ia98e2dd291c30effe0c11cc7939430476ebd46e0
Listen to A2DP profile connection instead of device connection.

Change-Id: I583de3b615c2b6d3b9cc72fbbec52ceead1e07bf
dsp: don't read off the end of the data array

* EQ_PARAM_CUR_PRESET will attempt to read a 32-bit value from a 16-bit
  location, resulting in an extra 16 garbage bits being read.

Change-Id: Ie6aa89c5a2d2853170cbd06343cee853a903745c
Support for digital dock path

Change-Id: Iab2c2bf3e07e2ac1ad773d793a1061f00303d3fa
dspmanager: Catch ALL the exceptions!

 * There are very few times where catching Exception is appropriate, but
   in this case it's appropriate to do four times in a row. Due to
   various issues with device switching and other weirdness, an effect
   might fail to set. Let's just hide it instead of crashing the app.

Change-Id: Icedc3493e88a23189c62f560a72f4fb7b2eb462b
Actually add digital dock intent to the filter.

 * Also make updateDsp synchronized to avoid badness.

Change-Id: I81ffc9e18e2a9f10c476b578b84af1a55d08c49b
Add an explicit license

Since not all the headers have a clear license in them, explicitly
default to Apache 2.0

Change-Id: I2c49321c158dbed5eb60e23dc1b61c7ca20b9d83
code fixes