Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/reader/include/
DInputDevice.h403 return mEventHub->getScanCodeState(mId, scanCode) == AKEY_STATE_DOWN; in isKeyPressed()
406 return mEventHub->getKeyCodeState(mId, keyCode) == AKEY_STATE_DOWN; in isKeyCodePressed()
/frameworks/native/include/android/
Dinput.h87 AKEY_STATE_DOWN = 1, enumerator
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp774 mapper.setKeyCodeState(AKEYCODE_A, AKEY_STATE_DOWN); in TEST_F()
785 ASSERT_EQ(AKEY_STATE_DOWN, in TEST_F()
795 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getKeyCodeState(-1, in TEST_F()
838 mapper.setScanCodeState(KEY_A, AKEY_STATE_DOWN); in TEST_F()
849 ASSERT_EQ(AKEY_STATE_DOWN, in TEST_F()
859 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getScanCodeState(-1, in TEST_F()
871 mapper.setSwitchState(SW_LID, AKEY_STATE_DOWN); in TEST_F()
882 ASSERT_EQ(AKEY_STATE_DOWN, in TEST_F()
892 ASSERT_EQ(AKEY_STATE_DOWN, mReader->getSwitchState(-1, in TEST_F()
1133 mapperDevice1.setKeyCodeState(AKEYCODE_A, AKEY_STATE_DOWN); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp431 if (currentResult >= AKEY_STATE_DOWN) { in getState()
DEventHub.cpp971 return device->keyState.test(scanCode) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState()
989 return AKEY_STATE_DOWN; in getKeyCodeState()
1046 return device->swState.test(sw) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getSwitchState()
DInputReader.cpp593 if (currentResult >= AKEY_STATE_DOWN) { in getStateLocked()
/frameworks/native/include/input/
DInput.h252 DOWN = AKEY_STATE_DOWN,