Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/
DWiredAccessoryManager.java110 if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_HEADPHONE_INSERT) in onSystemReady()
114 if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_MICROPHONE_INSERT) in onSystemReady()
118 if (mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, SW_LINEOUT_INSERT) == 1) { in onSystemReady()
/frameworks/native/services/inputflinger/
DEventHub.h214 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const = 0;
293 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const;
DInputReader.h135 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask,
285 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
769 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
807 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
DInputReader.cpp680 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::InputReader
683 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState()
1197 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::InputDevice
1198 return getState(sourceMask, switchCode, & InputMapper::getSwitchState); in getSwitchState()
1958 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::InputMapper
2064 int32_t SwitchInputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::SwitchInputMapper
2065 return getEventHub()->getSwitchState(getDeviceId(), switchCode); in getSwitchState()
DEventHub.cpp444 int32_t EventHub::getSwitchState(int32_t deviceId, int32_t sw) const { in getSwitchState() function in android::EventHub
/frameworks/native/services/inputflinger/include/
DInputReaderBase.h84 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask,
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp654 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const { in getSwitchState() function in android::FakeEventHub
973 virtual int32_t getSwitchState(uint32_t, int32_t switchCode) { in getSwitchState() function in android::FakeInputMapper
1432 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(0, in TEST_F()
1436 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(1, in TEST_F()
1440 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(1, in TEST_F()
1444 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(-1, in TEST_F()
1448 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(-1, in TEST_F()
1668 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getSwitchState(AINPUT_SOURCE_KEYBOARD, 0)) in TEST_F()
1739 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getSwitchState(AINPUT_SOURCE_TRACKBALL, AKEYCODE_A)) in TEST_F()
1746 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.java452 public int getSwitchState(int deviceId, int sourceMask, int switchCode) { in getSwitchState() method in InputManagerService
969 return getSwitchState(-1, InputDevice.SOURCE_ANY, SW_TABLET_MODE); in isInTabletMode()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp1366 return (jint) im->getInputManager()->getReader()->getSwitchState( in nativeGetSwitchState()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java3077 int sw = mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, in getLidState()
3100 int sw = mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, in getCameraLensCoverState()
/frameworks/base/services/
Dart-profile7192 HSPLcom/android/server/input/InputManagerService;->getSwitchState(III)I