Home | History | Annotate | Download | only in ui

Lines Matching refs:keyCode

74 int32_t updateMetaState(int32_t keyCode, bool down, int32_t oldMetaState) {
76 switch (keyCode) {
121 int32_t rotateKeyCode(int32_t keyCode, int32_t orientation) {
124 if (keyCode == keyCodeRotationMap[i][0]) {
129 return keyCode;
218 LOGD("Input event: device=0x%x type=0x%x scancode=%d keycode=%d value=%d",
219 rawEvent.deviceId, rawEvent.type, rawEvent.scanCode, rawEvent.keyCode,
500 int32_t keyCode) {
501 return getState(deviceId, sourceMask, keyCode, & InputDevice::getKeyCodeState);
704 int32_t InputDevice::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) {
705 return getState(sourceMask, keyCode, & InputMapper::getKeyCodeState);
777 int32_t InputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) {
870 int32_t keyCode, scanCode;
881 keyCode = keyDown.keyCode;
886 processKey(when, false, keyCode, scanCode, 0);
898 processKey(rawEvent->when, rawEvent->value != 0, rawEvent->keyCode, scanCode,
912 void KeyboardInputMapper::processKey(nsecs_t when, bool down, int32_t keyCode,
930 keyCode = rotateKeyCode(keyCode, orientation);
936 // key repeat, be sure to use same keycode as before in case of rotation
937 keyCode = mLocked.keyDowns.itemAt(keyDownIndex).keyCode;
942 keyDown.keyCode = keyCode;
951 // key up, be sure to use same keycode as before in case of rotation
952 keyCode = mLocked.keyDowns.itemAt(keyDownIndex).keyCode;
957 "keyCode=%d, scanCode=%d",
958 getDeviceName().string(), keyCode, scanCode);
964 newMetaState = updateMetaState(keyCode, down, oldMetaState);
979 AKEY_EVENT_FLAG_FROM_SYSTEM, keyCode, scanCode, newMetaState, downTime);
992 int32_t KeyboardInputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) {
993 return getEventHub()->getKeyCodeState(getDeviceId(), keyCode);
1637 int32_t keyCode;
1640 & keyCode, & flags)) {
1647 virtualKey.keyCode = keyCode;
1672 dump.appendFormat(INDENT4 "%d: scanCode=%d, keyCode=%d, "
1674 i, virtualKey.scanCode, virtualKey.keyCode,
2078 int32_t keyCode, scanCode, downTime;
2095 LOGD("VirtualKeys: Generating key up: keyCode=%d, scanCode=%d",
2096 mLocked.currentVirtualKey.keyCode, mLocked.currentVirtualKey.scanCode);
2108 if (virtualKey && virtualKey->keyCode == mLocked.currentVirtualKey.keyCode) {
2120 LOGD("VirtualKeys: Canceling key: keyCode=%d, scanCode=%d",
2121 mLocked.currentVirtualKey.keyCode, mLocked.currentVirtualKey.scanCode);
2150 mLocked.currentVirtualKey.keyCode = virtualKey->keyCode;
2153 LOGD("VirtualKeys: Generating key down: keyCode=%d, scanCode=%d",
2154 mLocked.currentVirtualKey.keyCode,
2172 keyCode = mLocked.currentVirtualKey.keyCode;
2181 keyEventAction, keyEventFlags, keyCode, scanCode, metaState, downTime);
2513 LOGD("VirtualKeys: Hit test (%d, %d): keyCode=%d, scanCode=%d, "
2516 virtualKey.keyCode, virtualKey.scanCode,
3070 int32_t TouchInputMapper::getKeyCodeState(uint32_t sourceMask, int32_t keyCode) {
3074 if (mLocked.currentVirtualKey.down && mLocked.currentVirtualKey.keyCode == keyCode) {
3081 if (virtualKey.keyCode == keyCode) {
3120 if (virtualKey.keyCode == keyCodes[i]) {