/frameworks/base/services/core/java/com/android/server/ |
D | WiredAccessoryManager.java | 105 … 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/ |
D | EventHub.h | 233 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const = 0; 303 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const;
|
D | InputReader.h | 309 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, 414 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, 566 int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode); 981 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode); 1017 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode);
|
D | InputReader.cpp | 720 int32_t InputReader::getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::InputReader 723 return getStateLocked(deviceId, sourceMask, switchCode, &InputDevice::getSwitchState); in getSwitchState() 1178 int32_t InputDevice::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::InputDevice 1179 return getState(sourceMask, switchCode, & InputMapper::getSwitchState); in getSwitchState() 1941 int32_t InputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::InputMapper 2046 int32_t SwitchInputMapper::getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::SwitchInputMapper 2047 return getEventHub()->getSwitchState(getDeviceId(), switchCode); in getSwitchState()
|
D | EventHub.cpp | 375 int32_t EventHub::getSwitchState(int32_t deviceId, int32_t sw) const { in getSwitchState() function in android::EventHub
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 622 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const { in getSwitchState() function in android::FakeEventHub 929 virtual int32_t getSwitchState(uint32_t, int32_t switchCode) { in getSwitchState() function in android::FakeInputMapper 1140 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(0, in TEST_F() 1144 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(1, in TEST_F() 1148 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(1, in TEST_F() 1152 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(-1, in TEST_F() 1156 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(-1, in TEST_F() 1308 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getSwitchState(AINPUT_SOURCE_KEYBOARD, 0)) in TEST_F() 1379 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getSwitchState(AINPUT_SOURCE_TRACKBALL, AKEYCODE_A)) in TEST_F() 1386 ASSERT_EQ(AKEY_STATE_DOWN, mDevice->getSwitchState(AINPUT_SOURCE_KEYBOARD, 4)) in TEST_F() [all …]
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 477 public int getSwitchState(int deviceId, int sourceMask, int switchCode) { in getSwitchState() method in InputManagerService 922 return getSwitchState(-1, InputDevice.SOURCE_ANY, SW_TABLET_MODE); in isInTabletMode()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 1251 return (jint) im->getInputManager()->getReader()->getSwitchState( in nativeGetSwitchState()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowManagerService.java | 3234 int sw = mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, in getLidState() 3257 int sw = mInputManager.getSwitchState(-1, InputDevice.SOURCE_ANY, in getCameraLensCoverState()
|