Lines Matching refs:getScanCodeState
700 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const { in getScanCodeState() function in android::FakeEventHub
1089 virtual int32_t getScanCodeState(uint32_t, int32_t scanCode) { in getScanCodeState() function in android::FakeInputMapper
1515 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getScanCodeState(0, in TEST_F()
1520 mReader->getScanCodeState(deviceId, AINPUT_SOURCE_TRACKBALL, KEY_A)) in TEST_F()
1525 mReader->getScanCodeState(deviceId, AINPUT_SOURCE_KEYBOARD | AINPUT_SOURCE_TRACKBALL, in TEST_F()
1530 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getScanCodeState(-1, in TEST_F()
1534 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getScanCodeState(-1, in TEST_F()
2090 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getScanCodeState(AINPUT_SOURCE_KEYBOARD, 0)) in TEST_F()
2161 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getScanCodeState(AINPUT_SOURCE_TRACKBALL, AKEYCODE_A)) in TEST_F()
2168 ASSERT_EQ(AKEY_STATE_UP, mDevice->getScanCodeState(AINPUT_SOURCE_KEYBOARD, 3)) in TEST_F()
2766 ASSERT_EQ(1, mapper.getScanCodeState(AINPUT_SOURCE_ANY, KEY_A)); in TEST_F()
2769 ASSERT_EQ(0, mapper.getScanCodeState(AINPUT_SOURCE_ANY, KEY_A)); in TEST_F()
4133 ASSERT_EQ(AKEY_STATE_UNKNOWN, mapper.getScanCodeState(AINPUT_SOURCE_ANY, KEY_A)); in TEST_F()
4142 ASSERT_EQ(AKEY_STATE_VIRTUAL, mapper.getScanCodeState(AINPUT_SOURCE_ANY, KEY_HOME)); in TEST_F()
4149 ASSERT_EQ(AKEY_STATE_UP, mapper.getScanCodeState(AINPUT_SOURCE_ANY, KEY_HOME)); in TEST_F()