Lines Matching refs:scanCode
418 int32_t EventHub::getScanCodeState(int32_t deviceId, int32_t scanCode) const { in getScanCodeState()
419 if (scanCode >= 0 && scanCode <= KEY_MAX) { in getScanCodeState()
423 if (device && device->hasValidFd() && test_bit(scanCode, device->keyBitmask)) { in getScanCodeState()
427 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState()
524 status_t EventHub::mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument
534 if (!kcm->mapKey(scanCode, usageCode, outKeycode)) { in mapKey()
542 if (!device->keyMap.keyLayoutMap->mapKey(scanCode, usageCode, outKeycode, outFlags)) { in mapKey()
565 status_t EventHub::mapAxis(int32_t deviceId, int32_t scanCode, AxisInfo* outAxisInfo) const { in mapAxis() argument
570 status_t err = device->keyMap.keyLayoutMap->mapAxis(scanCode, outAxisInfo); in mapAxis()
585 bool EventHub::hasScanCode(int32_t deviceId, int32_t scanCode) const { in hasScanCode()
588 if (device && scanCode >= 0 && scanCode <= KEY_MAX) { in hasScanCode()
589 if (test_bit(scanCode, device->keyBitmask)) { in hasScanCode()
1711 int32_t scanCode; in mapLed() local
1712 if (device->keyMap.keyLayoutMap->findScanCodeForLed(led, &scanCode) != NAME_NOT_FOUND) { in mapLed()
1713 if (scanCode >= 0 && scanCode <= LED_MAX && test_bit(scanCode, device->ledBitmask)) { in mapLed()
1714 *outScanCode = scanCode; in mapLed()