diff options
| author | 2019-05-01 11:30:46 -0700 | |
|---|---|---|
| committer | 2019-05-01 11:30:46 -0700 | |
| commit | 043a3ec0f5bbe3fa4136c9f56e4200e4b3fabcd5 (patch) | |
| tree | 94f17c2e10e4e148959a74c0f1e3de858d35634a | |
| parent | 8b30c364ebff1b467c288b5fd3451401b6cc12d1 (diff) | |
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
| -rw-r--r-- | services/inputflinger/InputDispatcher.cpp | 5 |
1 files 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()) { |