Lines Matching refs:getSwitchState
587 virtual int32_t getSwitchState(int32_t deviceId, int32_t sw) const {
884 virtual int32_t getSwitchState(uint32_t sourceMask, int32_t switchCode) {
1095 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(0,
1099 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(1,
1103 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(1,
1107 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getSwitchState(-1,
1111 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(-1,
1263 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getSwitchState(AINPUT_SOURCE_KEYBOARD, 0))
1334 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getSwitchState(AINPUT_SOURCE_TRACKBALL, AKEYCODE_A))
1341 ASSERT_EQ(AKEY_STATE_DOWN, mDevice->getSwitchState(AINPUT_SOURCE_KEYBOARD, 4))
1490 TEST_F(SwitchInputMapperTest, GetSwitchState) {
1495 ASSERT_EQ(1, mapper->getSwitchState(AINPUT_SOURCE_ANY, SW_LID));
1498 ASSERT_EQ(0, mapper->getSwitchState(AINPUT_SOURCE_ANY, SW_LID));