Home
last modified time | relevance | path

Searched refs:test_bit (Results 1 – 1 of 1) sorted by relevance

/frameworks/native/services/inputflinger/
DEventHub.cpp58 #define test_bit(bit, array) (array[bit/8] & (1<<(bit%8))) macro
282 if (device && !device->isVirtual() && test_bit(axis, device->absBitmask)) { in getAbsoluteAxisInfo()
310 return test_bit(axis, device->relBitmask); in hasRelativeAxis()
322 return test_bit(property, device->propBitmask); in hasInputProperty()
333 if (device && !device->isVirtual() && test_bit(scanCode, device->keyBitmask)) { in getScanCodeState()
337 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState()
357 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, keyState)) { in getKeyCodeState()
373 if (device && !device->isVirtual() && test_bit(sw, device->swBitmask)) { in getSwitchState()
377 return test_bit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getSwitchState()
391 if (device && !device->isVirtual() && test_bit(axis, device->absBitmask)) { in getAbsoluteAxisValue()
[all …]