Lines Matching refs:getScanCodeState
575 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const { in getScanCodeState() function in android::FakeEventHub
889 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() function in android::FakeInputMapper
1078 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getScanCodeState(0, in TEST_F()
1082 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getScanCodeState(1, in TEST_F()
1086 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getScanCodeState(1, in TEST_F()
1090 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getScanCodeState(-1, in TEST_F()
1094 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getScanCodeState(-1, in TEST_F()
1271 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getScanCodeState(AINPUT_SOURCE_KEYBOARD, 0)) in TEST_F()
1342 ASSERT_EQ(AKEY_STATE_UNKNOWN, mDevice->getScanCodeState(AINPUT_SOURCE_TRACKBALL, AKEYCODE_A)) in TEST_F()
1349 ASSERT_EQ(AKEY_STATE_UP, mDevice->getScanCodeState(AINPUT_SOURCE_KEYBOARD, 3)) in TEST_F()
1840 ASSERT_EQ(1, mapper->getScanCodeState(AINPUT_SOURCE_ANY, KEY_A)); in TEST_F()
1843 ASSERT_EQ(0, mapper->getScanCodeState(AINPUT_SOURCE_ANY, KEY_A)); in TEST_F()
2755 ASSERT_EQ(AKEY_STATE_UNKNOWN, mapper->getScanCodeState(AINPUT_SOURCE_ANY, KEY_A)); in TEST_F()
2764 ASSERT_EQ(AKEY_STATE_VIRTUAL, mapper->getScanCodeState(AINPUT_SOURCE_ANY, KEY_HOME)); in TEST_F()
2771 ASSERT_EQ(AKEY_STATE_UP, mapper->getScanCodeState(AINPUT_SOURCE_ANY, KEY_HOME)); in TEST_F()