summaryrefslogtreecommitdiff
path: root/libs/input/KeyLayoutMap.cpp
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2022-08-23 21:56:43 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2022-08-23 21:56:43 +0000
commitfc6c7f799acfdfa4ed52bc160351ac393d36a476 (patch)
tree8d008b1244886d152c4fce4f17b4b73985b2594e /libs/input/KeyLayoutMap.cpp
parent0435883aa8a75daab9c1e5ec7ca2f5e04b5d229b (diff)
parentae4ff289d1ac2ac4f5a5b5bac9c4eb3b837a464b (diff)
Merge changes I086b5045,I753fb07a,Iea2bb7fd
* changes: Improve EventHub const-correctness Refactor AssociatedDevice initialization in EventHub EventHub: Associate AsociatedDevice using sysfs path, not descriptor
Diffstat (limited to 'libs/input/KeyLayoutMap.cpp')
-rw-r--r--libs/input/KeyLayoutMap.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/input/KeyLayoutMap.cpp b/libs/input/KeyLayoutMap.cpp
index d6b4579a94..73710330d0 100644
--- a/libs/input/KeyLayoutMap.cpp
+++ b/libs/input/KeyLayoutMap.cpp
@@ -192,7 +192,8 @@ status_t KeyLayoutMap::mapKey(int32_t scanCode, int32_t usageCode,
}
// Return pair of sensor type and sensor data index, for the input device abs code
-base::Result<std::pair<InputDeviceSensorType, int32_t>> KeyLayoutMap::mapSensor(int32_t absCode) {
+base::Result<std::pair<InputDeviceSensorType, int32_t>> KeyLayoutMap::mapSensor(
+ int32_t absCode) const {
auto it = mSensorsByAbsCode.find(absCode);
if (it == mSensorsByAbsCode.end()) {
ALOGD_IF(DEBUG_MAPPING, "mapSensor: absCode=%d, ~ Failed.", absCode);