Lines Matching refs:scanCode
335 int32_t EventHub::getScanCodeState(int32_t deviceId, int32_t scanCode) const { in getScanCodeState()
336 if (scanCode >= 0 && scanCode <= KEY_MAX) { in getScanCodeState()
340 if (device && !device->isVirtual() && test_bit(scanCode, device->keyBitmask)) { in getScanCodeState()
344 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState()
442 int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument
452 if (!kcm->mapKey(scanCode, usageCode, outKeycode)) { in mapKey()
461 scanCode, usageCode, outKeycode, outFlags)) { in mapKey()
484 status_t EventHub::mapAxis(int32_t deviceId, int32_t scanCode, AxisInfo* outAxisInfo) const { in mapAxis() argument
489 status_t err = device->keyMap.keyLayoutMap->mapAxis(scanCode, outAxisInfo); in mapAxis()
504 bool EventHub::hasScanCode(int32_t deviceId, int32_t scanCode) const { in hasScanCode()
507 if (device && scanCode >= 0 && scanCode <= KEY_MAX) { in hasScanCode()
508 if (test_bit(scanCode, device->keyBitmask)) { in hasScanCode()
1522 int32_t scanCode; in mapLed() local
1523 if(device->keyMap.keyLayoutMap->findScanCodeForLed(led, &scanCode) != NAME_NOT_FOUND) { in mapLed()
1524 if(scanCode >= 0 && scanCode <= LED_MAX && test_bit(scanCode, device->ledBitmask)) { in mapLed()
1525 *outScanCode = scanCode; in mapLed()