Lines Matching refs:getKeyCodeState
686 virtual int32_t getKeyCodeState(int32_t deviceId, int32_t keyCode) const { in getKeyCodeState() function in android::FakeEventHub
994 virtual int32_t getKeyCodeState(uint32_t, int32_t keyCode) { in getKeyCodeState() function in android::FakeInputMapper
1215 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getKeyCodeState(0, in TEST_F()
1219 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getKeyCodeState(1, in TEST_F()
1223 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getKeyCodeState(1, in TEST_F()
1227 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getKeyCodeState(-1, in TEST_F()
1231 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getKeyCodeState(-1, in TEST_F()
1437 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getKeyCodeState(AINPUT_SOURCE_KEYBOARD, 0)) in TEST_F()
1508 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getKeyCodeState(AINPUT_SOURCE_TRACKBALL, AKEYCODE_A)) in TEST_F()
1515 ASSERT_EQ(AKEY_STATE_DOWN, mDevice->getKeyCodeState(AINPUT_SOURCE_KEYBOARD, AKEYCODE_A)) in TEST_F()
2005 ASSERT_EQ(1, mapper->getKeyCodeState(AINPUT_SOURCE_ANY, AKEYCODE_A)); in TEST_F()
2008 ASSERT_EQ(0, mapper->getKeyCodeState(AINPUT_SOURCE_ANY, AKEYCODE_A)); in TEST_F()
3187 ASSERT_EQ(AKEY_STATE_UNKNOWN, mapper->getKeyCodeState(AINPUT_SOURCE_ANY, AKEYCODE_A)); in TEST_F()
3196 ASSERT_EQ(AKEY_STATE_VIRTUAL, mapper->getKeyCodeState(AINPUT_SOURCE_ANY, AKEYCODE_HOME)); in TEST_F()
3203 ASSERT_EQ(AKEY_STATE_UP, mapper->getKeyCodeState(AINPUT_SOURCE_ANY, AKEYCODE_HOME)); in TEST_F()