• Home
  • Raw
  • Download

Lines Matching refs:sourceMask

153 static inline bool sourcesMatchMask(uint32_t sources, uint32_t sourceMask) {  in sourcesMatchMask()  argument
154 return (sources & sourceMask & ~ AINPUT_SOURCE_CLASS_MASK) != 0; in sourcesMatchMask()
579 int32_t InputReader::getKeyCodeState(int32_t deviceId, uint32_t sourceMask, in getKeyCodeState() argument
583 return getStateLocked(deviceId, sourceMask, keyCode, &InputDevice::getKeyCodeState); in getKeyCodeState()
586 int32_t InputReader::getScanCodeState(int32_t deviceId, uint32_t sourceMask, in getScanCodeState() argument
590 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState); in getScanCodeState()
593 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
596 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState()
599 int32_t InputReader::getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code, in getStateLocked() argument
606 if (! device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked()
607 result = (device->*getStateFunc)(sourceMask, code); in getStateLocked()
614 if (! device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked()
617 int32_t currentResult = (device->*getStateFunc)(sourceMask, code); in getStateLocked()
629 bool InputReader::hasKeys(int32_t deviceId, uint32_t sourceMask, in hasKeys() argument
634 return markSupportedKeyCodesLocked(deviceId, sourceMask, numCodes, keyCodes, outFlags); in hasKeys()
637 bool InputReader::markSupportedKeyCodesLocked(int32_t deviceId, uint32_t sourceMask, in markSupportedKeyCodesLocked() argument
644 if (! device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in markSupportedKeyCodesLocked()
645 result = device->markSupportedKeyCodes(sourceMask, in markSupportedKeyCodesLocked()
653 if (! device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in markSupportedKeyCodesLocked()
654 result |= device->markSupportedKeyCodes(sourceMask, in markSupportedKeyCodesLocked()
1006 int32_t InputDevice::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
1007 return getState(sourceMask, keyCode, & InputMapper::getKeyCodeState); in getKeyCodeState()
1010 int32_t InputDevice::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
1011 return getState(sourceMask, scanCode, & InputMapper::getScanCodeState); in getScanCodeState()
1014 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
1015 return getState(sourceMask, switchCode, & InputMapper::getSwitchState); in getSwitchState()
1018 int32_t InputDevice::getState(uint32_t sourceMask, int32_t code, GetStateFunc getStateFunc) { in getState() argument
1023 if (sourcesMatchMask(mapper->getSources(), sourceMask)) { in getState()
1026 int32_t currentResult = (mapper->*getStateFunc)(sourceMask, code); in getState()
1037 bool InputDevice::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument
1043 if (sourcesMatchMask(mapper->getSources(), sourceMask)) { in markSupportedKeyCodes()
1044 result |= mapper->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
1751 int32_t InputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
1755 int32_t InputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
1759 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
1763 bool InputMapper::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument
1846 int32_t SwitchInputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
2180 int32_t KeyboardInputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
2184 int32_t KeyboardInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
2188 bool KeyboardInputMapper::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument
2548 int32_t CursorInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
5755 int32_t TouchInputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
5771 int32_t TouchInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
5787 bool TouchInputMapper::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument