Searched refs:test_bit (Results 1 – 1 of 1) sorted by relevance
/frameworks/native/services/inputflinger/reader/ |
D | EventHub.cpp | 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() [all …]
|