Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/
DEventHub.cpp59 #define test_bit(bit, array) ((array)[(bit)/8] & (1<<((bit)%8))) macro
306 if (device && device->hasValidFd() && test_bit(axis, device->absBitmask)) { in getAbsoluteAxisInfo()
334 return test_bit(axis, device->relBitmask); in hasRelativeAxis()
346 return test_bit(property, device->propBitmask); in hasInputProperty()
357 if (device && device->hasValidFd() && test_bit(scanCode, device->keyBitmask)) { in getScanCodeState()
361 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState()
381 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, keyState)) { in getKeyCodeState()
397 if (device && device->hasValidFd() && test_bit(sw, device->swBitmask)) { in getSwitchState()
401 return test_bit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getSwitchState()
415 if (device && device->hasValidFd() && test_bit(axis, device->absBitmask)) { in getAbsoluteAxisValue()
[all …]