Lines Matching refs:sourceMask
459 int32_t InputReader::getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
462 return getStateLocked(deviceId, sourceMask, keyCode, &InputDevice::getKeyCodeState); in getKeyCodeState()
465 int32_t InputReader::getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
468 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState); in getScanCodeState()
471 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
474 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState()
477 int32_t InputReader::getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code, in getStateLocked() argument
484 if (!device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked()
485 result = (device->*getStateFunc)(sourceMask, code); in getStateLocked()
492 if (!device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked()
495 int32_t currentResult = (device->*getStateFunc)(sourceMask, code); in getStateLocked()
522 bool InputReader::hasKeys(int32_t deviceId, uint32_t sourceMask, size_t numCodes, in hasKeys() argument
527 return markSupportedKeyCodesLocked(deviceId, sourceMask, numCodes, keyCodes, outFlags); in hasKeys()
530 bool InputReader::markSupportedKeyCodesLocked(int32_t deviceId, uint32_t sourceMask, in markSupportedKeyCodesLocked() argument
538 if (!device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in markSupportedKeyCodesLocked()
539 result = device->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodesLocked()
546 if (!device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in markSupportedKeyCodesLocked()
547 result |= device->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodesLocked()