From 7a82f9ab2c566fef65bab717f558b633a7715a79 Mon Sep 17 00:00:00 2001 From: Prabir Pradhan Date: Thu, 6 Apr 2023 00:04:15 +0000 Subject: [PATCH] Dump all native input components from InputManager This makes it so that we don't have to expose all native components to NativeInputManager just to dump them. This also means we no longer have to expose the UnwantedInteractionBlocker to NativeInputManager. Bug: 275726706 Test: build Change-Id: Ibf12b6774e3f8e2bc9cbcb54706030aa70ad4e59 --- .../com_android_server_input_InputManagerService.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/services/core/jni/com_android_server_input_InputManagerService.cpp b/services/core/jni/com_android_server_input_InputManagerService.cpp index 553ea0d87c8e7..1510bd037a548 100644 --- a/services/core/jni/com_android_server_input_InputManagerService.cpp +++ b/services/core/jni/com_android_server_input_InputManagerService.cpp @@ -485,17 +485,7 @@ void NativeInputManager::dump(std::string& dump) { } dump += "\n"; - mInputManager->getReader().dump(dump); - dump += "\n"; - - mInputManager->getBlocker().dump(dump); - dump += "\n"; - - mInputManager->getProcessor().dump(dump); - dump += "\n"; - - mInputManager->getDispatcher().dump(dump); - dump += "\n"; + mInputManager->dump(dump); } bool NativeInputManager::checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) {