Lines Matching refs:getSwitchState
697 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const { in getSwitchState() function in android::FakeEventHub
1004 virtual int32_t getSwitchState(uint32_t, int32_t switchCode) { in getSwitchState() function in android::FakeInputMapper
1269 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(0, in TEST_F()
1273 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(1, in TEST_F()
1277 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(1, in TEST_F()
1281 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(-1, in TEST_F()
1285 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(-1, in TEST_F()
1441 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getSwitchState(AINPUT_SOURCE_KEYBOARD, 0)) in TEST_F()
1512 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getSwitchState(AINPUT_SOURCE_TRACKBALL, AKEYCODE_A)) in TEST_F()
1519 ASSERT_EQ(AKEY_STATE_DOWN, mDevice->getSwitchState(AINPUT_SOURCE_KEYBOARD, 4)) in TEST_F()
1682 ASSERT_EQ(1, mapper->getSwitchState(AINPUT_SOURCE_ANY, SW_LID)); in TEST_F()
1685 ASSERT_EQ(0, mapper->getSwitchState(AINPUT_SOURCE_ANY, SW_LID)); in TEST_F()