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.cpp266 int32_t lastButtonState = mButtonState; in sync() local
270 bool wasDown = isPointerDown(lastButtonState); in sync()
282 bool buttonsChanged = currentButtonState != lastButtonState; in sync()
283 int32_t buttonsPressed = currentButtonState & ~lastButtonState; in sync()
284 int32_t buttonsReleased = lastButtonState & ~currentButtonState; in sync()
357 displayId, policyFlags, lastButtonState, currentButtonState); in sync()
362 int32_t buttonState = lastButtonState; in sync()
444 displayId, policyFlags, lastButtonState, currentButtonState); in sync()