From 575a8e2a6c7185e1e4606192610b7025844c9ea2 Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Fri, 1 Feb 2019 19:01:48 -0800 Subject: [PATCH] Dump classifier in InputManager Since we recently added a third input stage, we also need to learn about its state in bugreports. Dump the state in InputManager. Test: adb shell dumpsys input Bug: 117935272 Change-Id: I2de908fe82005eae6d5cdff3f809bb5d87af82ec --- .../core/jni/com_android_server_input_InputManagerService.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/core/jni/com_android_server_input_InputManagerService.cpp b/services/core/jni/com_android_server_input_InputManagerService.cpp index 33317b554988f..c18e98bab9c47 100644 --- a/services/core/jni/com_android_server_input_InputManagerService.cpp +++ b/services/core/jni/com_android_server_input_InputManagerService.cpp @@ -373,6 +373,9 @@ void NativeInputManager::dump(std::string& dump) { mInputManager->getReader()->dump(dump); dump += "\n"; + mInputManager->getClassifier()->dump(dump); + dump += "\n"; + mInputManager->getDispatcher()->dump(dump); dump += "\n"; }