Lines Matching refs:switchCode
672 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) {
675 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState);
1127 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) {
1128 return getState(sourceMask, switchCode, & InputMapper::getSwitchState);
1890 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) {
1974 void SwitchInputMapper::processSwitch(int32_t switchCode, int32_t switchValue) {
1975 if (switchCode >= 0 && switchCode < 32) {
1977 mSwitchValues |= 1 << switchCode;
1979 mSwitchValues &= ~(1 << switchCode);
1981 mUpdatedSwitchMask |= 1 << switchCode;
1995 int32_t SwitchInputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) {
1996 return getEventHub()->getSwitchState(getDeviceId(), switchCode);