Searched refs:swState (Results 1 – 1 of 1) sorted by relevance
333 uint8_t swState[sizeofBitArray(SW_CNT)]; in getSwitchState() local334 memset(swState, 0, sizeof(swState)); in getSwitchState()335 if (TEMP_FAILURE_RETRY(ioctl(mFd, EVIOCGSW(sizeof(swState)), swState)) >= 0) { in getSwitchState()336 return testBit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getSwitchState()