From 98996036ef9f229ef25e7dac660c3a2bc392cadb Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Wed, 3 Aug 2022 11:54:47 -0700 Subject: Rename InputClassifier to InputProcessor The InputClassifier stage now calls a HAL that was renamed to IInputProcessor. Let's rename the input stage accordingly. Bug: 210158587 Test: atest inputflinger_tests Change-Id: Id1a4f01b07b404064917acd0beb04b839abb2929 --- services/inputflinger/InputManager.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'services/inputflinger/InputManager.cpp') diff --git a/services/inputflinger/InputManager.cpp b/services/inputflinger/InputManager.cpp index 9767cd9b71..9182503692 100644 --- a/services/inputflinger/InputManager.cpp +++ b/services/inputflinger/InputManager.cpp @@ -55,14 +55,14 @@ static int32_t exceptionCodeFromStatusT(status_t status) { /** * The event flow is via the "InputListener" interface, as follows: - * InputReader -> UnwantedInteractionBlocker -> InputClassifier -> InputDispatcher + * InputReader -> UnwantedInteractionBlocker -> InputProcessor -> InputDispatcher */ InputManager::InputManager( const sp& readerPolicy, const sp& dispatcherPolicy) { mDispatcher = createInputDispatcher(dispatcherPolicy); - mClassifier = std::make_unique(*mDispatcher); - mBlocker = std::make_unique(*mClassifier); + mProcessor = std::make_unique(*mDispatcher); + mBlocker = std::make_unique(*mProcessor); mReader = createInputReader(readerPolicy, *mBlocker); } @@ -110,12 +110,12 @@ InputReaderInterface& InputManager::getReader() { return *mReader; } -UnwantedInteractionBlockerInterface& InputManager::getUnwantedInteractionBlocker() { +UnwantedInteractionBlockerInterface& InputManager::getBlocker() { return *mBlocker; } -InputClassifierInterface& InputManager::getClassifier() { - return *mClassifier; +InputProcessorInterface& InputManager::getProcessor() { + return *mProcessor; } InputDispatcherInterface& InputManager::getDispatcher() { @@ -125,7 +125,7 @@ InputDispatcherInterface& InputManager::getDispatcher() { void InputManager::monitor() { mReader->monitor(); mBlocker->monitor(); - mClassifier->monitor(); + mProcessor->monitor(); mDispatcher->monitor(); } -- cgit v1.2.3-59-g8ed1b