Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/
DWiredAccessoryManager.java478 public int computeNewHeadsetState(int headsetState, int switchState) { in computeNewHeadsetState() argument
480 int setBits = ((switchState == 1) ? mState1Bits : in computeNewHeadsetState()
481 ((switchState == 2) ? mState2Bits : in computeNewHeadsetState()
482 ((switchState == mStateNbits) ? mStateNbits : 0))); in computeNewHeadsetState()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java539 int switchState = getSwitchState(-1 /* deviceId */, InputDevice.SOURCE_ANY, SW_LID); in systemRunning() local
542 callback.notifyLidSwitchChanged(0 /* whenNanos */, switchState == KEY_STATE_UP); in systemRunning()