commit | 5e20f27d19c1f1a869d5ac11d5271394990fc59d | [log] [tgz] |
---|---|---|
author | Siarhei Vishniakou <svv@google.com> | Thu Jun 08 17:24:44 2023 -0700 |
committer | Siarhei Vishniakou <svv@google.com> | Fri Jul 07 22:11:09 2023 +0000 |
tree | 50e3e1d0b2a054ad2b220982749864d220519670 | |
parent | 489359cb7ba7e6ea4a026991fcea81dcdf9b1f5d [diff] [blame] |
Mark InputDispatcher::dump as const This helps debug InputDispatcher by dumping its state from other const functions. Bug: 281806933 Test: none Change-Id: Ic7f1cef7eeaa753115143756ce60f4167412ef24
diff --git a/services/inputflinger/dispatcher/InputDispatcher.cpp b/services/inputflinger/dispatcher/InputDispatcher.cpp index 65bd05b..df3f7d9 100644 --- a/services/inputflinger/dispatcher/InputDispatcher.cpp +++ b/services/inputflinger/dispatcher/InputDispatcher.cpp
@@ -6590,7 +6590,7 @@ } } -void InputDispatcher::dump(std::string& dump) { +void InputDispatcher::dump(std::string& dump) const { std::scoped_lock _l(mLock); dump += "Input Dispatcher State:\n";