summaryrefslogtreecommitdiff
path: root/services/inputflinger/InputManager.cpp
diff options
context:
space:
mode:
author Arthur Hung <arthurhung@google.com> 2019-03-11 11:23:03 +0800
committer Arthur Hung <arthurhung@google.com> 2019-03-21 16:03:14 +0000
commit7c3ae9c745ec325690cd60d791bde7ec1183da42 (patch)
tree7cf26e19242068225ce9772e03ea1488a85c8fcc /services/inputflinger/InputManager.cpp
parent106155a2395c539762fb37e5d045fd021352f499 (diff)
Use std::vector over Vector for InputFlinger (1/3)
Replace Vector<T> with std::vector<T>. Bug: 112399697 Test: atest inputflinger_tests Change-Id: I8baec68f7a684d97210077f3e387ca1096586a25
Diffstat (limited to 'services/inputflinger/InputManager.cpp')
-rw-r--r--services/inputflinger/InputManager.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/services/inputflinger/InputManager.cpp b/services/inputflinger/InputManager.cpp
index b0157a166f..3996cca646 100644
--- a/services/inputflinger/InputManager.cpp
+++ b/services/inputflinger/InputManager.cpp
@@ -103,14 +103,14 @@ public:
}
};
-void InputManager::setInputWindows(const Vector<InputWindowInfo>& infos,
+void InputManager::setInputWindows(const std::vector<InputWindowInfo>& infos,
const sp<ISetInputWindowsListener>& setInputWindowsListener) {
- std::unordered_map<int32_t, Vector<sp<InputWindowHandle>>> handlesPerDisplay;
+ std::unordered_map<int32_t, std::vector<sp<InputWindowHandle>>> handlesPerDisplay;
- Vector<sp<InputWindowHandle>> handles;
+ std::vector<sp<InputWindowHandle>> handles;
for (const auto& info : infos) {
- handlesPerDisplay.emplace(info.displayId, Vector<sp<InputWindowHandle>>());
- handlesPerDisplay[info.displayId].add(new BinderWindowHandle(info));
+ handlesPerDisplay.emplace(info.displayId, std::vector<sp<InputWindowHandle>>());
+ handlesPerDisplay[info.displayId].push_back(new BinderWindowHandle(info));
}
for (auto const& i : handlesPerDisplay) {
mDispatcher->setInputWindows(i.second, i.first, setInputWindowsListener);