diff options
author | 2022-08-23 21:56:43 +0000 | |
---|---|---|
committer | 2022-08-23 21:56:43 +0000 | |
commit | fc6c7f799acfdfa4ed52bc160351ac393d36a476 (patch) | |
tree | 8d008b1244886d152c4fce4f17b4b73985b2594e /libs/input/KeyLayoutMap.cpp | |
parent | 0435883aa8a75daab9c1e5ec7ca2f5e04b5d229b (diff) | |
parent | ae4ff289d1ac2ac4f5a5b5bac9c4eb3b837a464b (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.cpp | 3 |
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); |