Home
last modified time | relevance | path

Searched refs:lastButtonState (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/services/inputflinger/reader/mapper/
DTouchCursorInputMapperCommon.h62 uint32_t policyFlags, int32_t lastButtonState, in synthesizeButtonKey() argument
64 if ((action == AKEY_EVENT_ACTION_DOWN && !(lastButtonState & buttonState) && in synthesizeButtonKey()
66 (action == AKEY_EVENT_ACTION_UP && (lastButtonState & buttonState) && in synthesizeButtonKey()
76 uint32_t policyFlags, int32_t lastButtonState, in synthesizeButtonKeys() argument
79 lastButtonState, currentButtonState, AMOTION_EVENT_BUTTON_BACK, in synthesizeButtonKeys()
82 lastButtonState, currentButtonState, AMOTION_EVENT_BUTTON_FORWARD, in synthesizeButtonKeys()
DCursorInputMapper.cpp288 int32_t lastButtonState = mButtonState; in sync() local
292 bool wasDown = isPointerDown(lastButtonState); in sync()
304 bool buttonsChanged = currentButtonState != lastButtonState; in sync()
305 int32_t buttonsPressed = currentButtonState & ~lastButtonState; in sync()
306 int32_t buttonsReleased = lastButtonState & ~currentButtonState; in sync()
378 displayId, policyFlags, lastButtonState, currentButtonState); in sync()
383 int32_t buttonState = lastButtonState; in sync()
468 displayId, policyFlags, lastButtonState, currentButtonState); in sync()