Home
last modified time | relevance | path

Searched refs:ledCode (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/libs/input/
DKeyLayoutMap.cpp277 std::optional<int32_t> KeyLayoutMap::findScanCodeForLed(int32_t ledCode) const { in findScanCodeForLed()
279 if (led.ledCode == ledCode) { in findScanCodeForLed()
280 ALOGD_IF(DEBUG_MAPPING, "%s: ledCode=%d, scanCode=%d.", __func__, ledCode, scanCode); in findScanCodeForLed()
284 ALOGD_IF(DEBUG_MAPPING, "%s: ledCode=%d ~ Not found.", __func__, ledCode); in findScanCodeForLed()
288 std::optional<int32_t> KeyLayoutMap::findUsageCodeForLed(int32_t ledCode) const { in findUsageCodeForLed()
290 if (led.ledCode == ledCode) { in findUsageCodeForLed()
291 ALOGD_IF(DEBUG_MAPPING, "%s: ledCode=%d, usage=%x.", __func__, ledCode, usageCode); in findUsageCodeForLed()
295 ALOGD_IF(DEBUG_MAPPING, "%s: ledCode=%d ~ Not found.", __func__, ledCode); in findUsageCodeForLed()
547 std::optional<int> ledCode = InputEventLookup::getLedByLabel(ledCodeToken.c_str()); in parseLed() local
548 if (!ledCode) { in parseLed()
[all …]
/frameworks/native/include/input/
DKeyLayoutMap.h74 std::optional<int32_t> findScanCodeForLed(int32_t ledCode) const;
76 std::optional<int32_t> findUsageCodeForLed(int32_t ledCode) const;
94 int32_t ledCode; member