Home
last modified time | relevance | path

Searched refs:getSwitchState (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/input/
DEventHub.h206 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const = 0;
271 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const;
DInputReader.h275 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask,
349 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask,
487 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
882 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
913 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
DInputReader.cpp609 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::InputReader
612 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState()
1029 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::InputDevice
1030 return getState(sourceMask, switchCode, & InputMapper::getSwitchState); in getSwitchState()
1774 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::InputMapper
1842 int32_t SwitchInputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::SwitchInputMapper
1843 return getEventHub()->getSwitchState(getDeviceId(), switchCode); in getSwitchState()
DEventHub.cpp375 int32_t EventHub::getSwitchState(int32_t deviceId, int32_t sw) const { in getSwitchState() function in android::EventHub
/frameworks/base/services/input/tests/
DInputReader_test.cpp567 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const { in getSwitchState() function in android::FakeEventHub
864 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::FakeInputMapper
1073 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(0, in TEST_F()
1077 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(1, in TEST_F()
1081 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(1, in TEST_F()
1085 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(-1, in TEST_F()
1089 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(-1, in TEST_F()
1239 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getSwitchState(AINPUT_SOURCE_KEYBOARD, 0)) in TEST_F()
1310 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getSwitchState(AINPUT_SOURCE_TRACKBALL, AKEYCODE_A)) in TEST_F()
1317 ASSERT_EQ(AKEY_STATE_DOWN, mDevice->getSwitchState(AINPUT_SOURCE_KEYBOARD, 4)) in TEST_F()
[all …]
/frameworks/base/services/java/com/android/server/input/
DInputManagerService.java345 public int getSwitchState(int deviceId, int sourceMask, int switchCode) { in getSwitchState() method in InputManagerService
/frameworks/base/services/jni/
Dcom_android_server_input_InputManagerService.cpp1078 return im->getInputManager()->getReader()->getSwitchState( in nativeGetSwitchState()
/frameworks/base/services/java/com/android/server/wm/
DWindowManagerService.java5123 int sw = mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, in getLidState()