summaryrefslogtreecommitdiff
path: root/system/common/metrics.cc
diff options
context:
space:
mode:
Diffstat (limited to 'system/common/metrics.cc')
-rw-r--r--system/common/metrics.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/system/common/metrics.cc b/system/common/metrics.cc
index 976b5cfa5d..40606d32d9 100644
--- a/system/common/metrics.cc
+++ b/system/common/metrics.cc
@@ -597,6 +597,16 @@ void LogLinkLayerConnectionEvent(const RawAddress* address,
}
}
+void LogHciTimeoutEvent(uint32_t hci_cmd) {
+ int ret =
+ android::util::stats_write(android::util::BLUETOOTH_HCI_TIMEOUT_REPORTED,
+ static_cast<int64_t>(hci_cmd));
+ if (ret < 0) {
+ LOG(WARNING) << __func__ << ": failed for opcode " << loghex(hci_cmd)
+ << ", error " << ret;
+ }
+}
+
} // namespace common
} // namespace bluetooth