Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/reader/
DEventHub.cpp464 uint8_t swState[sizeof_bit_array(SW_MAX + 1)]; in getSwitchState() local
465 memset(swState, 0, sizeof(swState)); in getSwitchState()
466 if (ioctl(device->fd, EVIOCGSW(sizeof(swState)), swState) >= 0) { in getSwitchState()
467 return test_bit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getSwitchState()