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:
6c2f306
)
Add main/shim/dumpsys::supervision_timeout_to_seconds
author
Chris Manton
<cmanton@google.com>
Thu, 7 Jan 2021 22:50:02 +0000
(14:50 -0800)
committer
Chris Manton
<cmanton@google.com>
Tue, 12 Jan 2021 16:43:17 +0000
(08:43 -0800)
Towards loggable code
Bug:
163134718
Tag: #refactor
Test: gd/cert/run
Change-Id: Icd73d874a7143efdf33383ad3b096305c21d98b8
main/shim/dumpsys.h
patch
|
blob
|
history
diff --git
a/main/shim/dumpsys.h
b/main/shim/dumpsys.h
index
26e3f21
..
c2788f2
100644
(file)
--- a/
main/shim/dumpsys.h
+++ b/
main/shim/dumpsys.h
@@
-40,6
+40,10
@@
inline double ticks_to_seconds(uint16_t ticks) {
return (static_cast<double>(ticks) * 0.625 * 0.001);
}
+inline double supervision_timeout_to_seconds(uint16_t timeout) {
+ return (static_cast<double>(timeout) * 0.01);
+}
+
namespace bluetooth {
namespace shim {