Searched refs:test_bit (Results 1 – 1 of 1) sorted by relevance
/frameworks/native/services/inputflinger/ |
D | EventHub.cpp | 58 #define test_bit(bit, array) ((array)[(bit)/8] & (1<<((bit)%8))) macro 309 if (device && device->hasValidFd() && test_bit(axis, device->absBitmask)) { in getAbsoluteAxisInfo() 337 return test_bit(axis, device->relBitmask); in hasRelativeAxis() 349 return test_bit(property, device->propBitmask); in hasInputProperty() 360 if (device && device->hasValidFd() && test_bit(scanCode, device->keyBitmask)) { in getScanCodeState() 364 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState() 384 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, keyState)) { in getKeyCodeState() 400 if (device && device->hasValidFd() && test_bit(sw, device->swBitmask)) { in getSwitchState() 404 return test_bit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getSwitchState() 418 if (device && device->hasValidFd() && test_bit(axis, device->absBitmask)) { in getAbsoluteAxisValue() [all …]
|