Lines Matching refs:sourceMask

547 int32_t InputReader::getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) {  in getKeyCodeState()  argument
550 return getStateLocked(deviceId, sourceMask, keyCode, &InputDevice::getKeyCodeState); in getKeyCodeState()
553 int32_t InputReader::getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
556 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState); in getScanCodeState()
559 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
562 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState()
565 int32_t InputReader::getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code, in getStateLocked() argument
570 if (device && !device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked()
571 result = (device->*getStateFunc)(sourceMask, code); in getStateLocked()
576 if (!device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked()
579 int32_t currentResult = (device.get()->*getStateFunc)(sourceMask, code); in getStateLocked()
607 bool InputReader::hasKeys(int32_t deviceId, uint32_t sourceMask, in hasKeys() argument
612 return markSupportedKeyCodesLocked(deviceId, sourceMask, keyCodes, outFlags); in hasKeys()
615 bool InputReader::markSupportedKeyCodesLocked(int32_t deviceId, uint32_t sourceMask, in markSupportedKeyCodesLocked() argument
621 if (device && !device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in markSupportedKeyCodesLocked()
622 result = device->markSupportedKeyCodes(sourceMask, keyCodes, outFlags); in markSupportedKeyCodesLocked()
627 if (!device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in markSupportedKeyCodesLocked()
628 result |= device->markSupportedKeyCodes(sourceMask, keyCodes, outFlags); in markSupportedKeyCodesLocked()