Lines Matching refs:getSwitchState
597 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const { in getSwitchState() function in android::FakeEventHub
894 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode) { in getSwitchState() function in android::FakeInputMapper
1105 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(0, in TEST_F()
1109 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(1, in TEST_F()
1113 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(1, in TEST_F()
1117 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(-1, in TEST_F()
1121 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(-1, in TEST_F()
1273 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getSwitchState(AINPUT_SOURCE_KEYBOARD, 0)) in TEST_F()
1344 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getSwitchState(AINPUT_SOURCE_TRACKBALL, AKEYCODE_A)) in TEST_F()
1351 ASSERT_EQ(AKEY_STATE_DOWN, mDevice->getSwitchState(AINPUT_SOURCE_KEYBOARD, 4)) in TEST_F()
1505 ASSERT_EQ(1, mapper->getSwitchState(AINPUT_SOURCE_ANY, SW_LID)); in TEST_F()
1508 ASSERT_EQ(0, mapper->getSwitchState(AINPUT_SOURCE_ANY, SW_LID)); in TEST_F()