Lines Matching refs:sourceMask
210 static inline bool sourcesMatchMask(uint32_t sources, uint32_t sourceMask) { in sourcesMatchMask() argument
211 return (sources & sourceMask & ~ AINPUT_SOURCE_CLASS_MASK) != 0; in sourcesMatchMask()
666 int32_t InputReader::getKeyCodeState(int32_t deviceId, uint32_t sourceMask, in getKeyCodeState() argument
670 return getStateLocked(deviceId, sourceMask, keyCode, &InputDevice::getKeyCodeState); in getKeyCodeState()
673 int32_t InputReader::getScanCodeState(int32_t deviceId, uint32_t sourceMask, in getScanCodeState() argument
677 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState); in getScanCodeState()
680 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
683 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState()
686 int32_t InputReader::getStateLocked(int32_t deviceId, uint32_t sourceMask, int32_t code, in getStateLocked() argument
693 if (! device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked()
694 result = (device->*getStateFunc)(sourceMask, code); in getStateLocked()
701 if (! device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in getStateLocked()
704 int32_t currentResult = (device->*getStateFunc)(sourceMask, code); in getStateLocked()
731 bool InputReader::hasKeys(int32_t deviceId, uint32_t sourceMask, in hasKeys() argument
736 return markSupportedKeyCodesLocked(deviceId, sourceMask, numCodes, keyCodes, outFlags); in hasKeys()
739 bool InputReader::markSupportedKeyCodesLocked(int32_t deviceId, uint32_t sourceMask, in markSupportedKeyCodesLocked() argument
746 if (! device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in markSupportedKeyCodesLocked()
747 result = device->markSupportedKeyCodes(sourceMask, in markSupportedKeyCodesLocked()
755 if (! device->isIgnored() && sourcesMatchMask(device->getSources(), sourceMask)) { in markSupportedKeyCodesLocked()
756 result |= device->markSupportedKeyCodes(sourceMask, in markSupportedKeyCodesLocked()
1189 int32_t InputDevice::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
1190 return getState(sourceMask, keyCode, & InputMapper::getKeyCodeState); in getKeyCodeState()
1193 int32_t InputDevice::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
1194 return getState(sourceMask, scanCode, & InputMapper::getScanCodeState); in getScanCodeState()
1197 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
1198 return getState(sourceMask, switchCode, & InputMapper::getSwitchState); in getSwitchState()
1201 int32_t InputDevice::getState(uint32_t sourceMask, int32_t code, GetStateFunc getStateFunc) { in getState() argument
1204 if (sourcesMatchMask(mapper->getSources(), sourceMask)) { in getState()
1207 int32_t currentResult = (mapper->*getStateFunc)(sourceMask, code); in getState()
1218 bool InputDevice::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument
1222 if (sourcesMatchMask(mapper->getSources(), sourceMask)) { in markSupportedKeyCodes()
1223 result |= mapper->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
1950 int32_t InputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
1954 int32_t InputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
1958 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
1962 bool InputMapper::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument
2064 int32_t SwitchInputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() argument
2455 int32_t KeyboardInputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
2459 int32_t KeyboardInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
2463 bool KeyboardInputMapper::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument
2917 int32_t CursorInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
6802 int32_t TouchInputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
6816 int32_t TouchInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
6830 bool TouchInputMapper::markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, in markSupportedKeyCodes() argument