Home | History | Annotate | Download | only in input

Lines Matching refs:sw

383 int32_t EventHub::getSwitchState(int32_t deviceId, int32_t sw) const {
384 if (sw >= 0 && sw <= SW_MAX) {
388 if (device && !device->isVirtual() && test_bit(sw, device->swBitmask)) {
392 return test_bit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP;