diff options
| author | 2017-12-27 16:44:42 -0800 | |
|---|---|---|
| committer | 2019-01-28 11:55:38 -0800 | |
| commit | 473174ea68fa5703ef162d85fe2805d7d313e41a (patch) | |
| tree | 5465308d144960995702d28259c2dd70efbd9189 /services/inputflinger/InputManager.cpp | |
| parent | 57ba2f1942f1fae1bd195b8c0f7fda8adbf9c41e (diff) | |
Add a new InputClassifier stage
The new InputClassifier stage could be used for additional processing
of input events prior to sending them to InputDispatcher. The new flow
of events will be InputReader -> InputClassifier -> InputDispatcher.
Here, we are calling the InputClassifier HAL and setting the MotionEvent
classification appropriately.
Bug: 62940136
Test: override notifyMotion to add extra flags to NotifyMotionArgs for
certain types of input events.
Test: atest inputflinger_tests
Change-Id: I2f390dc69f587ea25a3be8e4b8d5a207a5d529bf
Diffstat (limited to 'services/inputflinger/InputManager.cpp')
| -rw-r--r-- | services/inputflinger/InputManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/inputflinger/InputManager.cpp b/services/inputflinger/InputManager.cpp index 1d7ea00e0c..b3b9e3e101 100644 --- a/services/inputflinger/InputManager.cpp +++ b/services/inputflinger/InputManager.cpp @@ -34,7 +34,8 @@ InputManager::InputManager( const sp<InputReaderPolicyInterface>& readerPolicy, const sp<InputDispatcherPolicyInterface>& dispatcherPolicy) { mDispatcher = new InputDispatcher(dispatcherPolicy); - mReader = createInputReader(readerPolicy, mDispatcher); + mClassifier = new InputClassifier(mDispatcher); + mReader = createInputReader(readerPolicy, mClassifier); initialize(); } |