Searched refs:switchState (Results 1 – 2 of 2) sorted by relevance
478 public int computeNewHeadsetState(int headsetState, int switchState) { in computeNewHeadsetState() argument480 int setBits = ((switchState == 1) ? mState1Bits : in computeNewHeadsetState()481 ((switchState == 2) ? mState2Bits : in computeNewHeadsetState()482 ((switchState == mStateNbits) ? mStateNbits : 0))); in computeNewHeadsetState()
539 int switchState = getSwitchState(-1 /* deviceId */, InputDevice.SOURCE_ANY, SW_LID); in systemRunning() local542 callback.notifyLidSwitchChanged(0 /* whenNanos */, switchState == KEY_STATE_UP); in systemRunning()