Home
last modified time | relevance | path

Searched refs:scanCode (Results 1 – 24 of 24) sorted by relevance

/frameworks/native/libs/input/
DKeyLayoutMap.cpp85 status_t KeyLayoutMap::mapKey(int32_t scanCode, int32_t usageCode, in mapKey() argument
87 const Key* key = getKey(scanCode, usageCode); in mapKey()
90 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Failed.", scanCode, usageCode); in mapKey()
102 scanCode, usageCode, *outKeyCode, *outFlags); in mapKey()
107 const KeyLayoutMap::Key* KeyLayoutMap::getKey(int32_t scanCode, int32_t usageCode) const { in getKey() argument
114 if (scanCode) { in getKey()
115 ssize_t index = mKeysByScanCode.indexOfKey(scanCode); in getKey()
133 status_t KeyLayoutMap::mapAxis(int32_t scanCode, AxisInfo* outAxisInfo) const { in mapAxis() argument
134 ssize_t index = mAxes.indexOfKey(scanCode); in mapAxis()
137 ALOGD("mapAxis: scanCode=%d ~ Failed.", scanCode); in mapAxis()
[all …]
DVirtualKeyMap.cpp114 bool success = parseNextIntField(&defn.scanCode) in parse()
128 defn.scanCode, defn.centerX, defn.centerY, defn.width, defn.height); in parse()
DInputTransport.cpp129 msg->body.key.scanCode = body.key.scanCode; in getSanitizedCopy()
351 int32_t scanCode, in publishKeyEvent() argument
361 deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount, in publishKeyEvent()
378 msg.body.key.scanCode = scanCode; in publishKeyEvent()
1023 msg->body.key.scanCode, in initializeKeyEvent()
DKeyCharacterMap.cpp331 status_t KeyCharacterMap::mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const { in mapKey() argument
338 scanCode, usageCode, *outKeyCode); in mapKey()
343 if (scanCode) { in mapKey()
344 ssize_t index = mKeysByScanCode.indexOfKey(scanCode); in mapKey()
349 scanCode, usageCode, *outKeyCode); in mapKey()
356 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Failed.", scanCode, usageCode); in mapKey()
DInput.cpp60 int32_t scanCode, in initialize() argument
69 mScanCode = scanCode; in initialize()
/frameworks/native/include/input/
DKeyLayoutMap.h67 status_t mapKey(int32_t scanCode, int32_t usageCode,
73 status_t mapAxis(int32_t scanCode, AxisInfo* outAxisInfo) const;
97 const Key* getKey(int32_t scanCode, int32_t usageCode) const;
DVirtualKeyMap.h33 int32_t scanCode; member
DKeyCharacterMap.h128 status_t mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const;
132 void tryRemapKey(int32_t scanCode, int32_t metaState,
DInputTransport.h80 int32_t scanCode; member
232 int32_t scanCode,
DInput.h349 int32_t scanCode,
/frameworks/native/services/inputflinger/
DEventHub.h203 int32_t scanCode, int32_t usageCode, int32_t metaState,
206 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode,
230 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const = 0;
242 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const = 0;
301 int32_t scanCode, int32_t usageCode, int32_t metaState,
304 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode,
309 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const;
319 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const;
DInputListener.cpp47 int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, in NotifyKeyArgs() argument
50 action(action), flags(flags), keyCode(keyCode), scanCode(scanCode), in NotifyKeyArgs()
58 keyCode(other.keyCode), scanCode(other.scanCode), in NotifyKeyArgs()
DEventHub.cpp355 int32_t EventHub::getScanCodeState(int32_t deviceId, int32_t scanCode) const { in getScanCodeState()
356 if (scanCode >= 0 && scanCode <= KEY_MAX) { in getScanCodeState()
360 if (device && device->hasValidFd() && test_bit(scanCode, device->keyBitmask)) { in getScanCodeState()
364 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState()
462 int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument
472 if (!kcm->mapKey(scanCode, usageCode, outKeycode)) { in mapKey()
481 scanCode, usageCode, outKeycode, outFlags)) { in mapKey()
504 status_t EventHub::mapAxis(int32_t deviceId, int32_t scanCode, AxisInfo* outAxisInfo) const { in mapAxis() argument
509 status_t err = device->keyMap.keyLayoutMap->mapAxis(scanCode, outAxisInfo); in mapAxis()
524 bool EventHub::hasScanCode(int32_t deviceId, int32_t scanCode) const { in hasScanCode()
[all …]
DInputReader.h318 int32_t scanCode) = 0;
381 InputDevice* device, int32_t keyCode, int32_t scanCode) = 0;
425 int32_t scanCode);
457 InputDevice* device, int32_t keyCode, int32_t scanCode);
515 InputDevice* device, int32_t keyCode, int32_t scanCode);
582 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode);
997 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode);
1088 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode);
1098 int32_t scanCode; member
1130 bool isKeyboardOrGamepadKey(int32_t scanCode);
[all …]
DInputListener.h62 int32_t scanCode; member
69 int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode,
DInputReader.cpp683 InputDevice* device, int32_t keyCode, int32_t scanCode) { in shouldDropVirtualKeyLocked() argument
689 keyCode, scanCode); in shouldDropVirtualKeyLocked()
740 int32_t scanCode) { in getScanCodeState() argument
743 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState); in getScanCodeState()
978 InputDevice* device, int32_t keyCode, int32_t scanCode) { in shouldDropVirtualKey() argument
980 return mReader->shouldDropVirtualKeyLocked(now, device, keyCode, scanCode); in shouldDropVirtualKey()
1238 int32_t InputDevice::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
1239 return getState(sourceMask, scanCode, & InputMapper::getScanCodeState); in getScanCodeState()
2001 int32_t InputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
2346 int32_t scanCode = rawEvent->code; in process() local
[all …]
DInputDispatcher.cpp667 entry->action, entry->flags, entry->keyCode, entry->scanCode, in synthesizeKeyRepeatLocked()
819 entry->action, entry->flags, entry->keyCode, entry->scanCode, entry->metaState, in logOutboundKeyDetailsLocked()
1984 keyEntry->keyCode, keyEntry->scanCode, in startDispatchCycleLocked()
2393 args->action, args->flags, args->keyCode, args->scanCode, in notifyKey()
2444 flags, keyCode, args->scanCode, metaState, 0, in notifyKey()
2467 args->action, flags, keyCode, args->scanCode, in notifyKey()
3758 keyEntry->scanCode = event.getScanCode(); in afterKeyEventLockedInterruptible()
3795 entry->keyCode, entry->scanCode, entry->metaState, entry->repeatCount, in initializeKeyEvent()
3932 int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, in KeyEntry() argument
3936 keyCode(keyCode), scanCode(scanCode), metaState(metaState), in KeyEntry()
[all …]
DInputDispatcher.h481 int32_t scanCode; member
499 int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState,
759 int32_t scanCode; member
/frameworks/base/core/jni/
Dandroid_view_KeyEvent.cpp85 jint scanCode = env->GetIntField(eventObj, gKeyEventClassInfo.mScanCode); in android_view_KeyEvent_toNative() local
91 event->initialize(deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount, in android_view_KeyEvent_toNative()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp79 const int32_t scanCode = 13; in PublishAndConsumeKeyEvent() local
86 keyCode, scanCode, metaState, repeatCount, downTime, eventTime); in PublishAndConsumeKeyEvent()
109 EXPECT_EQ(scanCode, keyEvent->getScanCode()); in PublishAndConsumeKeyEvent()
DStructLayout_test.cpp45 CHECK_OFFSET(InputMessage::Body::Key, scanCode, 40); in TestInputMessageAlignment()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp498 void setScanCodeState(int32_t deviceId, int32_t scanCode, int32_t state) { in setScanCodeState() argument
500 device->scanCodeStates.replaceValueFor(scanCode, state); in setScanCodeState()
513 void addKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, in addKey() argument
519 if (scanCode) { in addKey()
520 device->keysByScanCode.add(scanCode, info); in addKey()
620 int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument
624 const KeyInfo* key = getKey(device, scanCode, usageCode); in mapKey()
641 const KeyInfo* getKey(Device* device, int32_t scanCode, int32_t usageCode) const { in getKey() argument
648 if (scanCode) { in getKey()
649 ssize_t index = device->keysByScanCode.indexOfKey(scanCode); in getKey()
[all …]
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java205 int deviceId, int sourceMask, int scanCode); in nativeGetScanCodeState() argument
470 public int getScanCodeState(int deviceId, int sourceMask, int scanCode) { in getScanCodeState() argument
471 return nativeGetScanCodeState(mPtr, deviceId, sourceMask, scanCode); in getScanCodeState()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp1288 jlong ptr, jint deviceId, jint sourceMask, jint scanCode) { in nativeGetScanCodeState() argument
1292 deviceId, uint32_t(sourceMask), scanCode); in nativeGetScanCodeState()