Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/
DWiredAccessoryManager.java105 … if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_HEADPHONE_INSERT) == 1) { in onSystemReady()
108 … if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_MICROPHONE_INSERT) == 1) { in onSystemReady()
111 if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_LINEOUT_INSERT) == 1) { in onSystemReady()
/frameworks/native/services/inputflinger/
DEventHub.h229 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const = 0;
298 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const;
DInputReader.h359 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask,
461 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask,
611 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
1025 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
1060 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
DInputReader.cpp659 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::InputReader
662 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState()
1099 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::InputDevice
1100 return getState(sourceMask, switchCode, & InputMapper::getSwitchState); in getSwitchState()
1855 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::InputMapper
1957 int32_t SwitchInputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::SwitchInputMapper
1958 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/native/services/inputflinger/tests/
DInputReader_test.cpp595 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const { in getSwitchState() function in android::FakeEventHub
898 virtual int32_t getSwitchState(uint32_t, int32_t switchCode) { in getSwitchState() function in android::FakeInputMapper
1109 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(0, in TEST_F()
1113 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(1, in TEST_F()
1117 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(1, in TEST_F()
1121 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(-1, in TEST_F()
1125 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(-1, in TEST_F()
1277 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getSwitchState(AINPUT_SOURCE_KEYBOARD, 0)) in TEST_F()
1348 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getSwitchState(AINPUT_SOURCE_TRACKBALL, AKEYCODE_A)) in TEST_F()
1355 ASSERT_EQ(AKEY_STATE_DOWN, mDevice->getSwitchState(AINPUT_SOURCE_KEYBOARD, 4)) in TEST_F()
[all …]
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java413 public int getSwitchState(int deviceId, int sourceMask, int switchCode) { in getSwitchState() method in InputManagerService
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp1101 return (jint) im->getInputManager()->getReader()->getSwitchState( in nativeGetSwitchState()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java5626 int sw = mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, in getLidState()
5643 int sw = mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, in getCameraLensCoverState()