From 370dbc945d04cf3301562639833f3d425a9cde71 Mon Sep 17 00:00:00 2001 From: Prabir Pradhan Date: Thu, 6 Apr 2023 00:02:05 +0000 Subject: 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: I43ef5012d5767d211dfc9456cef34d538b9fcd91 --- services/inputflinger/InputManager.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'services/inputflinger/InputManager.cpp') diff --git a/services/inputflinger/InputManager.cpp b/services/inputflinger/InputManager.cpp index 9182503692..472d7a15b4 100644 --- a/services/inputflinger/InputManager.cpp +++ b/services/inputflinger/InputManager.cpp @@ -110,10 +110,6 @@ InputReaderInterface& InputManager::getReader() { return *mReader; } -UnwantedInteractionBlockerInterface& InputManager::getBlocker() { - return *mBlocker; -} - InputProcessorInterface& InputManager::getProcessor() { return *mProcessor; } @@ -129,6 +125,17 @@ void InputManager::monitor() { mDispatcher->monitor(); } +void InputManager::dump(std::string& dump) { + mReader->dump(dump); + dump += '\n'; + mBlocker->dump(dump); + dump += '\n'; + mProcessor->dump(dump); + dump += '\n'; + mDispatcher->dump(dump); + dump += '\n'; +} + // Used by tests only. binder::Status InputManager::createInputChannel(const std::string& name, InputChannel* outChannel) { IPCThreadState* ipc = IPCThreadState::self(); -- cgit v1.2.3-59-g8ed1b