/frameworks/native/libs/input/ |
D | KeyLayoutMap.cpp | 85 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() 134 status_t KeyLayoutMap::mapAxis(int32_t scanCode, AxisInfo* outAxisInfo) const { in mapAxis() argument 135 ssize_t index = mAxes.indexOfKey(scanCode); in mapAxis() 138 ALOGD("mapAxis: scanCode=%d ~ Failed.", scanCode); in mapAxis() [all …]
|
D | VirtualKeyMap.cpp | 99 bool success = parseNextIntField(&defn.scanCode) in parse() 113 defn.scanCode, defn.centerX, defn.centerY, defn.width, defn.height); in parse()
|
D | InputTransport.cpp | 150 msg->body.key.scanCode = body.key.scanCode; in getSanitizedCopy() 426 int32_t scanCode, in publishKeyEvent() argument 441 deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount, in publishKeyEvent() 459 msg.body.key.scanCode = scanCode; in publishKeyEvent() 1122 msg->body.key.scanCode, in initializeKeyEvent()
|
D | KeyCharacterMap.cpp | 331 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()
|
D | Input.cpp | 74 int32_t scanCode, in initialize() argument 83 mScanCode = scanCode; in initialize()
|
/frameworks/native/include/input/ |
D | KeyLayoutMap.h | 67 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;
|
D | VirtualKeyMap.h | 33 int32_t scanCode; member
|
D | KeyCharacterMap.h | 130 status_t mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const; 134 void tryRemapKey(int32_t scanCode, int32_t metaState,
|
D | InputTransport.h | 85 int32_t scanCode; member 250 int32_t scanCode,
|
D | Input.h | 394 int32_t scanCode,
|
/frameworks/native/services/inputflinger/ |
D | InputListener.cpp | 52 int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, in NotifyKeyArgs() argument 56 action(action), flags(flags), keyCode(keyCode), scanCode(scanCode), in NotifyKeyArgs() 64 keyCode(other.keyCode), scanCode(other.scanCode), in NotifyKeyArgs() 78 && scanCode == rhs.scanCode in operator ==()
|
D | EventHub.h | 184 int32_t scanCode, int32_t usageCode, int32_t metaState, 187 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode, 212 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const = 0; 224 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const = 0; 283 int32_t scanCode, int32_t usageCode, int32_t metaState, 286 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode, 291 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const; 302 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const;
|
D | EventHub.cpp | 404 int32_t EventHub::getScanCodeState(int32_t deviceId, int32_t scanCode) const { in getScanCodeState() 405 if (scanCode >= 0 && scanCode <= KEY_MAX) { in getScanCodeState() 409 if (device && device->hasValidFd() && test_bit(scanCode, device->keyBitmask)) { in getScanCodeState() 413 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState() 511 int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument 521 if (!kcm->mapKey(scanCode, usageCode, outKeycode)) { in mapKey() 529 if (!device->keyMap.keyLayoutMap->mapKey(scanCode, usageCode, outKeycode, outFlags)) { in mapKey() 552 status_t EventHub::mapAxis(int32_t deviceId, int32_t scanCode, AxisInfo* outAxisInfo) const { in mapAxis() argument 557 status_t err = device->keyMap.keyLayoutMap->mapAxis(scanCode, outAxisInfo); in mapAxis() 572 bool EventHub::hasScanCode(int32_t deviceId, int32_t scanCode) const { in hasScanCode() [all …]
|
D | InputReader.h | 86 InputDevice* device, int32_t keyCode, int32_t scanCode) = 0; 132 int32_t scanCode); 165 InputDevice* device, int32_t keyCode, int32_t scanCode); 227 InputDevice* device, int32_t keyCode, int32_t scanCode); 284 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 768 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 861 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 874 int32_t scanCode; member 906 bool isKeyboardOrGamepadKey(int32_t scanCode); 909 void processKey(nsecs_t when, bool down, int32_t scanCode, int32_t usageCode); [all …]
|
D | InputReader.cpp | 616 InputDevice* device, int32_t keyCode, int32_t scanCode) { in shouldDropVirtualKeyLocked() argument 622 keyCode, scanCode); in shouldDropVirtualKeyLocked() 674 int32_t scanCode) { in getScanCodeState() argument 677 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState); in getScanCodeState() 936 InputDevice* device, int32_t keyCode, int32_t scanCode) { in shouldDropVirtualKey() argument 938 return mReader->shouldDropVirtualKeyLocked(now, device, keyCode, scanCode); in shouldDropVirtualKey() 1193 int32_t InputDevice::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument 1194 return getState(sourceMask, scanCode, & InputMapper::getScanCodeState); in getScanCodeState() 1954 int32_t InputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument 2299 int32_t scanCode = rawEvent->code; in process() local [all …]
|
D | InputDispatcher.cpp | 772 entry->action, entry->flags, entry->keyCode, entry->scanCode, in synthesizeKeyRepeatLocked() 930 entry->action, entry->flags, entry->keyCode, entry->scanCode, entry->metaState, in logOutboundKeyDetails() 2217 keyEntry->keyCode, keyEntry->scanCode, in startDispatchCycleLocked() 2682 args->action, args->flags, args->keyCode, args->scanCode, in notifyKey() 2710 flags, keyCode, args->scanCode, metaState, repeatCount, in notifyKey() 2737 args->action, flags, keyCode, args->scanCode, in notifyKey() 4426 keyEntry->scanCode = event.getScanCode(); in afterKeyEventLockedInterruptible() 4465 entry->keyCode, entry->scanCode, entry->metaState, entry->repeatCount, in initializeKeyEvent() 4603 int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, in KeyEntry() argument 4607 keyCode(keyCode), scanCode(scanCode), metaState(metaState), in KeyEntry() [all …]
|
D | InputDispatcher.h | 532 int32_t scanCode; member 550 int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, 819 int32_t scanCode; member
|
/frameworks/base/core/jni/ |
D | android_view_KeyEvent.cpp | 88 jint scanCode = env->GetIntField(eventObj, gKeyEventClassInfo.mScanCode); in android_view_KeyEvent_toNative() local 94 event->initialize(deviceId, source, displayId, action, flags, keyCode, scanCode, metaState, in android_view_KeyEvent_toNative()
|
/frameworks/native/services/inputflinger/include/ |
D | InputListener.h | 74 int32_t scanCode; member 82 int32_t scanCode, int32_t metaState, nsecs_t downTime);
|
D | InputReaderBase.h | 81 int32_t scanCode) = 0;
|
/frameworks/native/libs/input/tests/ |
D | InputPublisherAndConsumer_test.cpp | 80 constexpr int32_t scanCode = 13; in PublishAndConsumeKeyEvent() local 87 keyCode, scanCode, metaState, repeatCount, downTime, eventTime); in PublishAndConsumeKeyEvent() 110 EXPECT_EQ(scanCode, keyEvent->getScanCode()); in PublishAndConsumeKeyEvent()
|
D | StructLayout_test.cpp | 45 CHECK_OFFSET(InputMessage::Body::Key, scanCode, 40); in TestInputMessageAlignment()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 440 void setScanCodeState(int32_t deviceId, int32_t scanCode, int32_t state) { in setScanCodeState() argument 442 device->scanCodeStates.replaceValueFor(scanCode, state); in setScanCodeState() 455 void addKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, in addKey() argument 461 if (scanCode) { in addKey() 462 device->keysByScanCode.add(scanCode, info); in addKey() 567 int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument 571 const KeyInfo* key = getKey(device, scanCode, usageCode); in mapKey() 588 const KeyInfo* getKey(Device* device, int32_t scanCode, int32_t usageCode) const { in getKey() argument 595 if (scanCode) { in getKey() 596 ssize_t index = device->keysByScanCode.indexOfKey(scanCode); in getKey() [all …]
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 198 int deviceId, int sourceMask, int scanCode); in nativeGetScanCodeState() argument 439 public int getScanCodeState(int deviceId, int sourceMask, int scanCode) { in getScanCodeState() argument 440 return nativeGetScanCodeState(mPtr, deviceId, sourceMask, scanCode); in getScanCodeState()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 1347 jlong ptr, jint deviceId, jint sourceMask, jint scanCode) { in nativeGetScanCodeState() argument 1351 deviceId, uint32_t(sourceMask), scanCode); in nativeGetScanCodeState()
|