Home
last modified time | relevance | path

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

/hardware/libhardware/modules/input/evdev/
DInputHub.cpp347 uint8_t swState[sizeofBitArray(SW_CNT)]; in getSwitchState() local
348 memset(swState, 0, sizeof(swState)); in getSwitchState()
349 if (TEMP_FAILURE_RETRY(ioctl(mFd, EVIOCGSW(sizeof(swState)), swState)) >= 0) { in getSwitchState()
350 return testBit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getSwitchState()