OSDN Git Service

Improve A2DP codec run-time debug-abilitity
authorPavlin Radoslavov <pavlin@google.com>
Sat, 7 Apr 2018 00:05:47 +0000 (17:05 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Wed, 11 Apr 2018 18:19:32 +0000 (18:19 +0000)
commit3e01e01305f0adfd49571499d884514d966a9049
tree48bd42779a49ab68563a37826b3cc68d317908a9
parent37ddd18526addeabd72ce0a2007caeab3e880aae
Improve A2DP codec run-time debug-abilitity

Rename A2DP_DumpCodecInfo() to A2DP_CodecInfoString() and change
the usage. Previously, A2DP_DumpCodecInfo() would print the
the codec information only if LOG_VERBOSE() was enabled in compile time.
The new A2DP_CodecInfoString() now returns human-readable std::string
with the codec information.
That string can be used in debug log messages that can be enabled
in run-time.

Bug: 77525584
Test: Manual - Examine log messages when A2DP streaming with and
      without debug log messages enabled.

Change-Id: Idd440d6c9e908520132feeeb5388d3e6aefa26db
Merged-In: Idd440d6c9e908520132feeeb5388d3e6aefa26db
(cherry picked from commit 25cd05412d18c67b1f0e1f4e07a8178029c0ff0c)
19 files changed:
bta/av/bta_av_aact.cc
btif/co/bta_av_co.cc
internal_include/bt_trace.h
stack/a2dp/a2dp_aac.cc
stack/a2dp/a2dp_codec_config.cc
stack/a2dp/a2dp_sbc.cc
stack/a2dp/a2dp_vendor.cc
stack/a2dp/a2dp_vendor_aptx.cc
stack/a2dp/a2dp_vendor_aptx_hd.cc
stack/a2dp/a2dp_vendor_ldac.cc
stack/avdt/avdt_api.cc
stack/avdt/avdt_scb_act.cc
stack/include/a2dp_aac.h
stack/include/a2dp_codec_api.h
stack/include/a2dp_sbc.h
stack/include/a2dp_vendor.h
stack/include/a2dp_vendor_aptx.h
stack/include/a2dp_vendor_aptx_hd.h
stack/include/a2dp_vendor_ldac.h