OSDN Git Service

Add new internal API: enableOptionalCodecs()/disableOptionalCodecs()
authorPavlin Radoslavov <pavlin@google.com>
Fri, 24 Feb 2017 18:19:14 +0000 (10:19 -0800)
committerPavlin Radoslavov <pavlin@google.com>
Wed, 29 Mar 2017 17:58:48 +0000 (10:58 -0700)
commit61075105ca95a2389c23733bf72b5d49b0da4b28
treec06ee915ca975de98cd7fb411a068192d797a9cd
parent5d81b9d67d73be37f51900dde72041e4eb230263
Add new internal API: enableOptionalCodecs()/disableOptionalCodecs()

This API can be used to enable the optional codecs, or disable them
and use only the mandatory SBC.
Internally, it is implemented by raising the SBC priority to
highest (so SBC will be used/selected), or reducing the SBC priority
to its default value (lowest).

Test: A2DP streaming and enabling/disabling/selecting optional codecs
Bug: 35873828
Change-Id: Ia82036ac33590a3a402b1f5a36102264d47a9029
core/java/android/bluetooth/BluetoothA2dp.java
core/java/android/bluetooth/BluetoothCodecConfig.java
core/java/android/bluetooth/IBluetoothA2dp.aidl
packages/SettingsLib/res/values/arrays.xml