Searched refs:test_bit (Results 1 – 1 of 1) sorted by relevance
/frameworks/native/services/inputflinger/ |
D | EventHub.cpp | 59 #define test_bit(bit, array) ((array)[(bit)/8] & (1<<((bit)%8))) macro 358 if (device && device->hasValidFd() && test_bit(axis, device->absBitmask)) { in getAbsoluteAxisInfo() 386 return test_bit(axis, device->relBitmask); in hasRelativeAxis() 398 return test_bit(property, device->propBitmask); in hasInputProperty() 409 if (device && device->hasValidFd() && test_bit(scanCode, device->keyBitmask)) { in getScanCodeState() 413 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState() 433 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, keyState)) { in getKeyCodeState() 449 if (device && device->hasValidFd() && test_bit(sw, device->swBitmask)) { in getSwitchState() 453 return test_bit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getSwitchState() 467 if (device && device->hasValidFd() && test_bit(axis, device->absBitmask)) { in getAbsoluteAxisValue() [all …]
|