diff options
| author | 2021-06-07 16:00:06 -0500 | |
|---|---|---|
| committer | 2021-08-02 14:18:58 -0500 | |
| commit | bf023a62aab21b80fb16cf6394fb6a2cbdfdb796 (patch) | |
| tree | 4ad657894f8be566c4e3574c6cff3801ed100686 /services/inputflinger/InputManager.cpp | |
| parent | ad494f0ac5c6413131ef09691ad4e2aebda06a20 (diff) | |
Use WindowInfosListener instead of SF reporting to IF
1. Moved ISetInputWindowsListener and renamed to
IWindowInfosReportedListener to be more generic
2. Updated SurfaceFlinger so it reports window infos changed instead of
directly reporting window info to InputManager
Test: Existing tests pass
Test: WindowInfosListenerTest
Bug: 188792659
Change-Id: Ia8e688652663734aa01d008c2f524c6cf4971e17
Diffstat (limited to 'services/inputflinger/InputManager.cpp')
| -rw-r--r-- | services/inputflinger/InputManager.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/services/inputflinger/InputManager.cpp b/services/inputflinger/InputManager.cpp index 693b1f977f..7b3658dfde 100644 --- a/services/inputflinger/InputManager.cpp +++ b/services/inputflinger/InputManager.cpp @@ -114,24 +114,6 @@ sp<InputDispatcherInterface> InputManager::getDispatcher() { return mDispatcher; } -binder::Status InputManager::setInputWindows( - const std::vector<WindowInfo>& infos, - const sp<ISetInputWindowsListener>& setInputWindowsListener) { - std::unordered_map<int32_t, std::vector<sp<WindowInfoHandle>>> handlesPerDisplay; - - std::vector<sp<WindowInfoHandle>> handles; - for (const auto& info : infos) { - handlesPerDisplay.emplace(info.displayId, std::vector<sp<WindowInfoHandle>>()); - handlesPerDisplay[info.displayId].push_back(new WindowInfoHandle(info)); - } - mDispatcher->setInputWindows(handlesPerDisplay); - - if (setInputWindowsListener) { - setInputWindowsListener->onSetInputWindowsFinished(); - } - return binder::Status::ok(); -} - // Used by tests only. binder::Status InputManager::createInputChannel(const std::string& name, InputChannel* outChannel) { IPCThreadState* ipc = IPCThreadState::self(); |