Lines Matching refs:testBit
53 static constexpr bool testBit(int bit, const uint8_t arr[]) { in testBit() function
240 if (testBit(axis, mAbsBitmask)) { in queryAxisInfo()
261 return testBit(key, mKeyBitmask); in hasKey()
272 return testBit(axis, mRelBitmask); in hasRelativeAxis()
298 return testBit(sw, mSwBitmask); in hasSwitch()
305 return testBit(ff, mFfBitmask); in hasForceFeedback()
312 return testBit(property, mPropBitmask); in hasInputProperty()
319 if (testBit(key, mKeyBitmask)) { in getKeyState()
323 return testBit(key, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getKeyState()
332 if (testBit(sw, mSwBitmask)) { in getSwitchState()
336 return testBit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getSwitchState()
347 if (testBit(axis, mAbsBitmask)) { in getAbsoluteAxisValue()