Lines Matching refs:test_bit

57 #define test_bit(bit, array) ((array)[(bit) / 8] & (1 << ((bit) % 8)))  macro
394 if (device && device->hasValidFd() && test_bit(axis, device->absBitmask)) { in getAbsoluteAxisInfo()
422 return test_bit(axis, device->relBitmask); in hasRelativeAxis()
434 return test_bit(property, device->propBitmask); in hasInputProperty()
445 if (device && device->hasValidFd() && test_bit(scanCode, device->keyBitmask)) { in getScanCodeState()
449 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState()
469 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, keyState)) { in getKeyCodeState()
485 if (device && device->hasValidFd() && test_bit(sw, device->swBitmask)) { in getSwitchState()
489 return test_bit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getSwitchState()
503 if (device && device->hasValidFd() && test_bit(axis, device->absBitmask)) { in getAbsoluteAxisValue()
534 if (test_bit(scanCodes[sc], device->keyBitmask)) { in markSupportedKeyCodes()
611 if (test_bit(scanCode, device->keyBitmask)) { in hasScanCode()
623 if (test_bit(sc, device->ledBitmask)) { in hasLed()
1332 if (test_bit(BTN_MOUSE, device->keyBitmask) && test_bit(REL_X, device->relBitmask) && in openDeviceLocked()
1333 test_bit(REL_Y, device->relBitmask)) { in openDeviceLocked()
1348 if (test_bit(ABS_MT_POSITION_X, device->absBitmask) && in openDeviceLocked()
1349 test_bit(ABS_MT_POSITION_Y, device->absBitmask)) { in openDeviceLocked()
1353 if (test_bit(BTN_TOUCH, device->keyBitmask) || !haveGamepadButtons) { in openDeviceLocked()
1357 } else if (test_bit(BTN_TOUCH, device->keyBitmask) && test_bit(ABS_X, device->absBitmask) && in openDeviceLocked()
1358 test_bit(ABS_Y, device->absBitmask)) { in openDeviceLocked()
1361 } else if ((test_bit(ABS_PRESSURE, device->absBitmask) || in openDeviceLocked()
1362 test_bit(BTN_TOUCH, device->keyBitmask)) && in openDeviceLocked()
1363 !test_bit(ABS_X, device->absBitmask) && !test_bit(ABS_Y, device->absBitmask)) { in openDeviceLocked()
1377 if (test_bit(i, device->absBitmask) && in openDeviceLocked()
1387 if (test_bit(i, device->swBitmask)) { in openDeviceLocked()
1394 if (test_bit(FF_RUMBLE, device->ffBitmask)) { in openDeviceLocked()
1704 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, device->keyBitmask)) { in hasKeycodeLocked()
1719 if (scanCode >= 0 && scanCode <= LED_MAX && test_bit(scanCode, device->ledBitmask)) { in mapLed()