Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/
DEventHub.cpp62 #define sizeof_bit_array(bits) (((bits) + 7) / 8) macro
358 uint8_t keyState[sizeof_bit_array(KEY_MAX + 1)]; in getScanCodeState()
376 uint8_t keyState[sizeof_bit_array(KEY_MAX + 1)]; in getKeyCodeState()
398 uint8_t swState[sizeof_bit_array(SW_MAX + 1)]; in getSwitchState()
1211 bool haveKeyboardKeys = containsNonZeroByte(device->keyBitmask, 0, sizeof_bit_array(BTN_MISC)) in openDeviceLocked()
1212 || containsNonZeroByte(device->keyBitmask, sizeof_bit_array(KEY_OK), in openDeviceLocked()
1213 sizeof_bit_array(KEY_MAX + 1)); in openDeviceLocked()
1214 bool haveGamepadButtons = containsNonZeroByte(device->keyBitmask, sizeof_bit_array(BTN_MISC), in openDeviceLocked()
1215 sizeof_bit_array(BTN_MOUSE)) in openDeviceLocked()
1216 || containsNonZeroByte(device->keyBitmask, sizeof_bit_array(BTN_JOYSTICK), in openDeviceLocked()
[all …]