OSDN Git Service

AVRCP Controller manage active device
authorJoseph Pirozzo <pirozzoj@google.com>
Tue, 21 Jan 2020 21:48:30 +0000 (13:48 -0800)
committerJoseph Pirozzo <pirozzoj@google.com>
Wed, 22 Jan 2020 16:47:32 +0000 (08:47 -0800)
commitf1e6c7d95660c7e6e87351bbe910029bc93526cc
treec0c26e3a535ea26f66d68cc252ec0e8294f12306
parenta3002c1a4d1a9754f6cad2494762336b4d530eda
AVRCP Controller manage active device

Add function to allow the active A2DP sink's peer to be managed via
JNI.  The new logic only decodes A2DP audio packets from the active
device, rather than any device as long as the active device was in
streaming mode.  With this change an A2DP sink may connect up to
kDefaultMaxConnectedAudioDevices A2DP sources and have media browsing
and playback managed correctly.

Bug: 132642754
Test: change constant, connect two devices and play via browsing.
Change-Id: Ia4633aaf2f092a95bd816cf6ca7101210ebcf222
bta/av/bta_av_aact.cc
bta/include/bta_av_api.h
btif/src/btif_av.cc
include/hardware/bt_av.h