OSDN Git Service

Add persistent state for Bluetooth high quality audio support
authorAntony Sargent <asargent@google.com>
Thu, 27 Apr 2017 00:18:23 +0000 (17:18 -0700)
committerAntony Sargent <asargent@google.com>
Tue, 2 May 2017 21:37:18 +0000 (14:37 -0700)
commit20155af8008337cb70ea0556472854abf46ca1eb
tree64dd2c86d0abd467187854caff70d608e12b88bb
parentdc31f7c99168664c96395d0cc49789652cbec34a
Add persistent state for Bluetooth high quality audio support

This CL implements the storage/retrieval of flags for whether Bluetooth
A2DP sink devices support optional codecs and if they should be turned
on when that device is connected. It also contains code to listen for
device connections and do two things: (1) save whether that device
supports optional codecs, and (2) either enable or disable those codecs
for playback if we had a stored preference for the device.

Bug=37441685
Test: manually

Change-Id: I5f3113342d53aeeb9ede68602da8c7ff8c853457
src/com/android/bluetooth/a2dp/A2dpService.java