Home
last modified time | relevance | path

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

/frameworks/native/libs/input/
DKeyboard.cpp180 static int32_t setEphemeralMetaState(int32_t mask, bool down, int32_t oldMetaState) { in setEphemeralMetaState() argument
183 newMetaState = oldMetaState | mask; in setEphemeralMetaState()
185 newMetaState = oldMetaState & in setEphemeralMetaState()
192 int32_t normalizeMetaState(int32_t oldMetaState) { in normalizeMetaState() argument
193 int32_t newMetaState = oldMetaState; in normalizeMetaState()
212 static int32_t toggleLockedMetaState(int32_t mask, bool down, int32_t oldMetaState) { in toggleLockedMetaState() argument
214 return oldMetaState; in toggleLockedMetaState()
216 return oldMetaState ^ mask; in toggleLockedMetaState()
220 int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState) { in updateMetaState() argument
223 return setEphemeralMetaState(AMETA_ALT_LEFT_ON, down, oldMetaState); in updateMetaState()
[all …]
/frameworks/native/include/input/
DKeyboard.h78 extern int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState);
85 extern int32_t normalizeMetaState(int32_t oldMetaState);
/frameworks/native/services/inputflinger/
DInputReader.cpp2477 int32_t oldMetaState = mMetaState; in updateMetaStateIfNeeded() local
2478 int32_t newMetaState = android::updateMetaState(keyCode, down, oldMetaState); in updateMetaStateIfNeeded()
2479 bool metaStateChanged = oldMetaState != newMetaState; in updateMetaStateIfNeeded()