Searched refs:swState (Results 1 – 1 of 1) sorted by relevance
347 uint8_t swState[sizeofBitArray(SW_CNT)]; in getSwitchState() local348 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()