OSDN Git Service

Add new internal API: enableOptionalCodecs()/disableOptionalCodecs()
authorPavlin Radoslavov <pavlin@google.com>
Fri, 24 Feb 2017 18:25:09 +0000 (10:25 -0800)
committerPavlin Radoslavov <pavlin@google.com>
Wed, 29 Mar 2017 17:59:56 +0000 (10:59 -0700)
commitb0d8cdf8f81070dd2384f7ab756d0afdc1384107
tree58a67434d0a1a5df19a0b7b1d0aee5e9492d3959
parentec6da6672800b9313f752711a87a084f2127add8
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: I6e3144ff93bfc289fb25f4961fc00f39e8222290
src/com/android/settings/DevelopmentSettings.java