Home
last modified time | relevance | path

Searched refs:oldMetaState (Results 1 – 3 of 3) sorted by relevance

/frameworks/native/libs/input/
DKeyboard.cpp170 static int32_t setEphemeralMetaState(int32_t mask, bool down, int32_t oldMetaState) { in setEphemeralMetaState() argument
173 newMetaState = oldMetaState | mask; in setEphemeralMetaState()
175 newMetaState = oldMetaState & in setEphemeralMetaState()
182 int32_t normalizeMetaState(int32_t oldMetaState) { in normalizeMetaState() argument
183 int32_t newMetaState = oldMetaState; in normalizeMetaState()
202 static int32_t toggleLockedMetaState(int32_t mask, bool down, int32_t oldMetaState) { in toggleLockedMetaState() argument
204 return oldMetaState; in toggleLockedMetaState()
206 return oldMetaState ^ mask; in toggleLockedMetaState()
210 int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState) { in updateMetaState() argument
213 return setEphemeralMetaState(AMETA_ALT_LEFT_ON, down, oldMetaState); in updateMetaState()
[all …]
/frameworks/native/include/input/
DKeyboard.h88 extern int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState);
95 extern int32_t normalizeMetaState(int32_t oldMetaState);
/frameworks/native/services/inputflinger/
DInputReader.cpp2413 int32_t oldMetaState = mMetaState; in updateMetaStateIfNeeded() local
2414 int32_t newMetaState = android::updateMetaState(keyCode, down, oldMetaState); in updateMetaStateIfNeeded()
2415 bool metaStateChanged = oldMetaState != newMetaState; in updateMetaStateIfNeeded()