Home
last modified time | relevance | path

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

/frameworks/native/include/android/
Dinput.h80 AKEY_STATE_DOWN = 1, enumerator
/frameworks/native/services/inputflinger/reader/include/
DInputDevice.h366 return mEventHub->getScanCodeState(mId, code) == AKEY_STATE_DOWN; in isKeyPressed()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1633 mapper.setKeyCodeState(AKEYCODE_A, AKEY_STATE_DOWN); in TEST_F()
1644 ASSERT_EQ(AKEY_STATE_DOWN, in TEST_F()
1654 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getKeyCodeState(-1, in TEST_F()
1666 mapper.setScanCodeState(KEY_A, AKEY_STATE_DOWN); in TEST_F()
1677 ASSERT_EQ(AKEY_STATE_DOWN, in TEST_F()
1687 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getScanCodeState(-1, in TEST_F()
1699 mapper.setSwitchState(SW_LID, AKEY_STATE_DOWN); in TEST_F()
1710 ASSERT_EQ(AKEY_STATE_DOWN, in TEST_F()
1720 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(-1, in TEST_F()
1950 mapperDevice1.setKeyCodeState(AKEYCODE_A, AKEY_STATE_DOWN); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp455 if (currentResult >= AKEY_STATE_DOWN) { in getState()
DEventHub.cpp828 return device->keyState.test(scanCode) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState()
847 return AKEY_STATE_DOWN; in getKeyCodeState()
864 return device->swState.test(sw) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getSwitchState()
DInputReader.cpp538 if (currentResult >= AKEY_STATE_DOWN) { in getStateLocked()