Searched defs:switchCode (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/services/core/java/com/android/server/input/
H A DInputManagerService.java410 * @param switchCode The switch code to check.
413 public int getSwitchState(int deviceId, int sourceMask, int switchCode) { argument
414 return nativeGetSwitchState(mPtr, deviceId, sourceMask, switchCode);
/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp405 void setSwitchState(int32_t deviceId, int32_t switchCode, int32_t state) { argument
407 device->switchStates.replaceValueFor(switchCode, state);
854 void setSwitchState(int32_t switchCode, int32_t state) { argument
855 mSwitchStates.replaceValueFor(switchCode, state);
898 virtual int32_t getSwitchState(uint32_t, int32_t switchCode) { argument
899 ssize_t index = mSwitchStates.indexOfKey(switchCode);
/frameworks/native/services/inputflinger/
H A DInputReader.cpp659 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { argument
662 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState);
1099 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { argument
1100 return getState(sourceMask, switchCode, & InputMapper::getSwitchState);
1855 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { argument
1936 void SwitchInputMapper::processSwitch(int32_t switchCode, int32_t switchValue) { argument
1937 if (switchCode >= 0 && switchCode < 32) {
1939 mSwitchValues |= 1 << switchCode;
1941 mSwitchValues &= ~(1 << switchCode);
1957 getSwitchState(uint32_t sourceMask, int32_t switchCode) argument
[all...]

Completed in 568 milliseconds