Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/reader/include/
DInputDevice.h106 return getEventHub()->getScanCodeState(mId, code) == AKEY_STATE_DOWN; in isKeyPressed()
/frameworks/native/include/android/
Dinput.h79 AKEY_STATE_DOWN = 1, enumerator
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp258 if (currentResult >= AKEY_STATE_DOWN) { in getState()
DEventHub.cpp427 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState()
448 return AKEY_STATE_DOWN; in getKeyCodeState()
467 return test_bit(sw, swState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getSwitchState()
DInputReader.cpp496 if (currentResult >= AKEY_STATE_DOWN) { in getStateLocked()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1388 mapper->setKeyCodeState(AKEYCODE_A, AKEY_STATE_DOWN); in TEST_F()
1398 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getKeyCodeState(1, in TEST_F()
1406 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getKeyCodeState(-1, in TEST_F()
1415 mapper->setScanCodeState(KEY_A, AKEY_STATE_DOWN); in TEST_F()
1425 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getScanCodeState(1, in TEST_F()
1433 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getScanCodeState(-1, in TEST_F()
1442 mapper->setSwitchState(SW_LID, AKEY_STATE_DOWN); in TEST_F()
1452 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(1, in TEST_F()
1460 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(-1, in TEST_F()
1700 mapper1->setKeyCodeState(AKEYCODE_A, AKEY_STATE_DOWN); in TEST_F()
[all …]