Lines Matching refs:scanCode
609 InputDevice* device, int32_t keyCode, int32_t scanCode) {
612 "temporarily disabled for the next %0.3fms. keyCode=%d, scanCode=%d",
615 keyCode, scanCode);
666 int32_t scanCode) {
669 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState);
889 InputDevice* device, int32_t keyCode, int32_t scanCode) {
891 return mReader->shouldDropVirtualKeyLocked(now, device, keyCode, scanCode);
1123 int32_t InputDevice::getScanCodeState(uint32_t sourceMask, int32_t scanCode) {
1124 return getState(sourceMask, scanCode, & InputMapper::getScanCodeState);
1886 int32_t InputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) {
2213 int32_t scanCode = rawEvent->code;
2217 if (isKeyboardOrGamepadKey(scanCode)) {
2218 processKey(rawEvent->when, rawEvent->value != 0, scanCode, usageCode);
2236 bool KeyboardInputMapper::isKeyboardOrGamepadKey(int32_t scanCode) {
2237 return scanCode < BTN_MOUSE
2238 || scanCode >= KEY_OK
2239 || (scanCode >= BTN_MISC && scanCode < BTN_MOUSE)
2240 || (scanCode >= BTN_JOYSTICK && scanCode < BTN_DIGI);
2243 void KeyboardInputMapper::processKey(nsecs_t when, bool down, int32_t scanCode,
2249 if (getEventHub()->mapKey(getDeviceId(), scanCode, usageCode, mMetaState,
2263 ssize_t keyDownIndex = findKeyDown(scanCode);
2271 getDevice(), keyCode, scanCode)) {
2281 keyDown.scanCode = scanCode;
2287 ssize_t keyDownIndex = findKeyDown(scanCode);
2295 "keyCode=%d, scanCode=%d",
2296 getDeviceName().string(), keyCode, scanCode);
2330 AKEY_EVENT_FLAG_FROM_SYSTEM, keyCode, scanCode, keyMetaState, downTime);
2334 ssize_t KeyboardInputMapper::findKeyDown(int32_t scanCode) {
2337 if (mKeyDowns[i].scanCode == scanCode) {
2348 int32_t KeyboardInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) {
2349 return getEventHub()->getScanCodeState(getDeviceId(), scanCode);
2765 int32_t CursorInputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) {
2766 if (scanCode >= BTN_MOUSE && scanCode < BTN_JOYSTICK) {
2767 return getEventHub()->getScanCodeState(getDeviceId(), scanCode);
3699 virtualKey.scanCode = virtualKeyDefinition.scanCode;
3703 if (getEventHub()->mapKey(getDeviceId(), virtualKey.scanCode, 0, 0,
3706 virtualKey.scanCode);
3735 dump.appendFormat(INDENT4 "%zu: scanCode=%d, keyCode=%d, "
3737 i, virtualKey.scanCode, virtualKey.keyCode,
4377 ALOGD("VirtualKeys: Generating key up: keyCode=%d, scanCode=%d",
4378 mCurrentVirtualKey.keyCode, mCurrentVirtualKey.scanCode);
4405 ALOGD("VirtualKeys: Canceling key: keyCode=%d, scanCode=%d",
4406 mCurrentVirtualKey.keyCode, mCurrentVirtualKey.scanCode);
4429 mCurrentVirtualKey.scanCode = virtualKey->scanCode;
4431 when, getDevice(), virtualKey->keyCode, virtualKey->scanCode);
4435 ALOGD("VirtualKeys: Generating key down: keyCode=%d, scanCode=%d",
4437 mCurrentVirtualKey.scanCode);
4473 int32_t scanCode = mCurrentVirtualKey.scanCode;
4479 keyEventAction, keyEventFlags, keyCode, scanCode, metaState, downTime);
6306 ALOGD("VirtualKeys: Hit test (%d, %d): keyCode=%d, scanCode=%d, "
6309 virtualKey.keyCode, virtualKey.scanCode,
6525 scanCode) {
6526 if (mCurrentVirtualKey.down && mCurrentVirtualKey.scanCode == scanCode) {
6533 if (virtualKey.scanCode == scanCode) {