diff options
| author | 2023-04-06 00:02:05 +0000 | |
|---|---|---|
| committer | 2023-04-13 21:24:09 +0000 | |
| commit | 370dbc945d04cf3301562639833f3d425a9cde71 (patch) | |
| tree | d51294307ab2d6e95e89be284effa2dbf301e881 /services/inputflinger/InputManager.cpp | |
| parent | e3da4bbc9c7e0f07a7241ee937c39f1007a9a449 (diff) | |
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
Diffstat (limited to 'services/inputflinger/InputManager.cpp')
| -rw-r--r-- | services/inputflinger/InputManager.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
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(); |