From bf023a62aab21b80fb16cf6394fb6a2cbdfdb796 Mon Sep 17 00:00:00 2001 From: chaviw Date: Mon, 7 Jun 2021 16:00:06 -0500 Subject: 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 --- services/inputflinger/InputManager.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'services/inputflinger/InputManager.cpp') 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 InputManager::getDispatcher() { return mDispatcher; } -binder::Status InputManager::setInputWindows( - const std::vector& infos, - const sp& setInputWindowsListener) { - std::unordered_map>> handlesPerDisplay; - - std::vector> handles; - for (const auto& info : infos) { - handlesPerDisplay.emplace(info.displayId, std::vector>()); - 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(); -- cgit v1.2.3-59-g8ed1b