From 043a3ec0f5bbe3fa4136c9f56e4200e4b3fabcd5 Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Wed, 1 May 2019 11:30:46 -0700 Subject: Add mInputFilterEnabled to dump The variable mInputFilterEnabled determines whether the input events will first go to an input filter before being sent to the application. Add a dump of this variable to InputDispatcher state in order to make it easier to debug input-related issues. Bug: 130886239 Test: dumpsys input Change-Id: I30fe2ceea6c659edb5fad0da81400c8ce9674d99 --- services/inputflinger/InputDispatcher.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/inputflinger/InputDispatcher.cpp b/services/inputflinger/InputDispatcher.cpp index b874411d91..31a2dab6c5 100644 --- a/services/inputflinger/InputDispatcher.cpp +++ b/services/inputflinger/InputDispatcher.cpp @@ -3611,8 +3611,9 @@ void InputDispatcher::logDispatchStateLocked() { } void InputDispatcher::dumpDispatchStateLocked(std::string& dump) { - dump += StringPrintf(INDENT "DispatchEnabled: %d\n", mDispatchEnabled); - dump += StringPrintf(INDENT "DispatchFrozen: %d\n", mDispatchFrozen); + dump += StringPrintf(INDENT "DispatchEnabled: %s\n", toString(mDispatchEnabled)); + dump += StringPrintf(INDENT "DispatchFrozen: %s\n", toString(mDispatchFrozen)); + dump += StringPrintf(INDENT "InputFilterEnabled: %s\n", toString(mInputFilterEnabled)); dump += StringPrintf(INDENT "FocusedDisplayId: %" PRId32 "\n", mFocusedDisplayId); if (!mFocusedApplicationHandlesByDisplay.empty()) { -- cgit v1.2.3-59-g8ed1b