OSDN Git Service

Add explicit init/cleanup steps for A2DP Source and Sink
authorPavlin Radoslavov <pavlin@google.com>
Fri, 23 Feb 2018 17:04:57 +0000 (09:04 -0800)
committerPavlin Radoslavov <pavlin@google.com>
Sat, 24 Feb 2018 02:27:32 +0000 (18:27 -0800)
commitee164d2de5c9d0f68ba834dfc9d4d61c65ee6c55
tree0de481c08e2b14190d44374834a554e9c861dc91
parentef673c546cf802602ce1582aebef4f0d83622961
Add explicit init/cleanup steps for A2DP Source and Sink

The startup/shutdown steps for A2DP Source and Sink
are done when setting/resetting the Active device, and this
implies the device has been connected.

The operations that must be done before the remote device
is connected are moved to init (and cleanup for the reverse operations)

Bug: 73832547
Test: Manual - Connect/disconnect/play A2DP to Headset
Change-Id: Iaa55c2d27443646111f07a53d2c5163bca9e256d
btif/include/btif_a2dp_sink.h
btif/include/btif_a2dp_source.h
btif/src/btif_a2dp_sink.cc
btif/src/btif_a2dp_source.cc
btif/src/btif_av.cc