Home
last modified time | relevance | path

Searched refs:oldMetaState (Results 1 – 2 of 2) 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.h88 extern int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState);
95 extern int32_t normalizeMetaState(int32_t oldMetaState);