OSDN Git Service
(root)
/
android-x86
/
system-bt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25a9fb4
)
Add tBTA_AG_SCB::ToString
author
Chris Manton
<cmanton@google.com>
Tue, 15 Dec 2020 00:16:04 +0000
(16:16 -0800)
committer
Chris Manton
<cmanton@google.com>
Tue, 22 Dec 2020 03:24:31 +0000
(19:24 -0800)
Monster structure needs visibility
Towards readability
Bug:
163134718
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I7d20e5d71f2108103bb878fb3774421e8df76a6e
bta/ag/bta_ag_int.h
patch
|
blob
|
history
diff --git
a/bta/ag/bta_ag_int.h
b/bta/ag/bta_ag_int.h
index
217d780
..
f911dc6
100644
(file)
--- a/
bta/ag/bta_ag_int.h
+++ b/
bta/ag/bta_ag_int.h
@@
-246,6
+246,14
@@
struct tBTA_AG_SCB {
tBTA_AG_HF_IND
local_hf_indicators[BTA_AG_MAX_NUM_LOCAL_HF_IND]; /* Local supported
HF indicators */
+
+ std::string ToString() const {
+ return base::StringPrintf(
+ "codec_updated=%d, codec_fallback=%d, "
+ "sco_codec=%d, peer_codec=%d, msbc_settings=%d, device=%s",
+ codec_updated, codec_fallback, sco_codec, peer_codecs,
+ codec_msbc_settings, peer_addr.ToString().c_str());
+ }
};
/* type for sco data */