Home
last modified time | relevance | path

Searched refs:AKEY_STATE_DOWN (Results 1 – 5 of 5) sorted by relevance

/frameworks/native/include/android/
Dinput.h75 AKEY_STATE_DOWN = 1, enumerator
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1213 mapper->setKeyCodeState(AKEYCODE_A, AKEY_STATE_DOWN); in TEST_F()
1223 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getKeyCodeState(1, in TEST_F()
1231 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getKeyCodeState(-1, in TEST_F()
1240 mapper->setScanCodeState(KEY_A, AKEY_STATE_DOWN); in TEST_F()
1250 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getScanCodeState(1, in TEST_F()
1258 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getScanCodeState(-1, in TEST_F()
1267 mapper->setSwitchState(SW_LID, AKEY_STATE_DOWN); in TEST_F()
1277 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(1, in TEST_F()
1285 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(-1, in TEST_F()
1461 mapper1->setKeyCodeState(AKEYCODE_A, AKEY_STATE_DOWN); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/
DEventHub.cpp364 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState()
385 return AKEY_STATE_DOWN; in getKeyCodeState()
404 return test_bit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getSwitchState()
DInputReader.h613 return getEventHub()->getScanCodeState(mId, code) == AKEY_STATE_DOWN; in isKeyPressed()
DInputReader.cpp771 if (currentResult >= AKEY_STATE_DOWN) { in getStateLocked()
1255 if (currentResult >= AKEY_STATE_DOWN) { in getState()