Lines Matching refs:keyCode
84 static int32_t rotateKeyCode(int32_t keyCode, int32_t orientation) { in rotateKeyCode() argument
85 keyCode = rotateStemKey(keyCode, orientation, stemKeyRotationMap, stemKeyRotationMapSize); in rotateKeyCode()
86 return rotateValueUsingRotationMap(keyCode, orientation, keyCodeRotationMap, in rotateKeyCode()
161 static void mapStemKey(int32_t keyCode, const PropertyMap& config, char const* property) { in mapStemKey() argument
165 if (stemKeyRotationMap[i][0] == keyCode) { in mapStemKey()
242 bool KeyboardInputMapper::isMediaKey(int32_t keyCode) { in isMediaKey() argument
243 switch (keyCode) { in isMediaKey()
273 int32_t keyCode; in processKey() local
277 if (getDeviceContext().mapKey(scanCode, usageCode, mMetaState, &keyCode, &keyMetaState, in processKey()
279 keyCode = AKEYCODE_UNKNOWN; in processKey()
287 keyCode = rotateKeyCode(keyCode, getOrientation()); in processKey()
294 keyCode = mKeyDowns[keyDownIndex].keyCode; in processKey()
298 getContext()->shouldDropVirtualKey(when, keyCode, scanCode)) { in processKey()
306 keyDown.keyCode = keyCode; in processKey()
317 keyCode = mKeyDowns[keyDownIndex].keyCode; in processKey()
323 getDeviceName().c_str(), keyCode, scanCode); in processKey()
328 if (updateMetaStateIfNeeded(keyCode, down)) { in processKey()
345 !isMediaKey(keyCode)) { in processKey()
356 AKEY_EVENT_FLAG_FROM_SYSTEM, keyCode, scanCode, keyMetaState, downTime); in processKey()
370 int32_t KeyboardInputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
371 return getDeviceContext().getKeyCodeState(keyCode); in getKeyCodeState()
387 void KeyboardInputMapper::updateMetaState(int32_t keyCode) { in updateMetaState() argument
388 updateMetaStateIfNeeded(keyCode, false); in updateMetaState()
391 bool KeyboardInputMapper::updateMetaStateIfNeeded(int32_t keyCode, bool down) { in updateMetaStateIfNeeded() argument
393 int32_t newMetaState = android::updateMetaState(keyCode, down, oldMetaState); in updateMetaStateIfNeeded()