/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() 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 …]
|
D | VirtualKeyMap.cpp | 114 bool success = parseNextIntField(&defn.scanCode) in parse() 128 defn.scanCode, defn.centerX, defn.centerY, defn.width, defn.height); in parse()
|
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 | InputTransport.cpp | 250 int32_t scanCode, in publishKeyEvent() argument 260 deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount, in publishKeyEvent() 277 msg.body.key.scanCode = scanCode; in publishKeyEvent() 907 msg->body.key.scanCode, in initializeKeyEvent()
|
D | Input.cpp | 60 int32_t scanCode, in initialize() argument 69 mScanCode = scanCode; in initialize()
|
/frameworks/native/services/inputflinger/ |
D | EventHub.h | 204 int32_t scanCode, int32_t usageCode, int32_t metaState, 207 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode, 231 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const = 0; 243 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const = 0; 293 int32_t scanCode, int32_t usageCode, int32_t metaState, 296 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode, 301 virtual int32_t getScanCodeState(int32_t deviceId, int32_t scanCode) const; 311 virtual bool hasScanCode(int32_t deviceId, int32_t scanCode) const;
|
D | InputListener.cpp | 47 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()
|
D | EventHub.cpp | 335 int32_t EventHub::getScanCodeState(int32_t deviceId, int32_t scanCode) const { in getScanCodeState() 336 if (scanCode >= 0 && scanCode <= KEY_MAX) { in getScanCodeState() 340 if (device && !device->isVirtual() && test_bit(scanCode, device->keyBitmask)) { in getScanCodeState() 344 return test_bit(scanCode, keyState) ? AKEY_STATE_DOWN : AKEY_STATE_UP; in getScanCodeState() 442 int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument 452 if (!kcm->mapKey(scanCode, usageCode, outKeycode)) { in mapKey() 461 scanCode, usageCode, outKeycode, outFlags)) { in mapKey() 484 status_t EventHub::mapAxis(int32_t deviceId, int32_t scanCode, AxisInfo* outAxisInfo) const { in mapAxis() argument 489 status_t err = device->keyMap.keyLayoutMap->mapAxis(scanCode, outAxisInfo); in mapAxis() 504 bool EventHub::hasScanCode(int32_t deviceId, int32_t scanCode) const { in hasScanCode() [all …]
|
D | InputReader.h | 356 int32_t scanCode) = 0; 419 InputDevice* device, int32_t keyCode, int32_t scanCode) = 0; 461 int32_t scanCode); 493 InputDevice* device, int32_t keyCode, int32_t scanCode); 551 InputDevice* device, int32_t keyCode, int32_t scanCode); 615 int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 1030 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 1121 virtual int32_t getScanCodeState(uint32_t sourceMask, int32_t scanCode); 1131 int32_t scanCode; member 1163 bool isKeyboardOrGamepadKey(int32_t scanCode); [all …]
|
D | InputReader.cpp | 609 InputDevice* device, int32_t keyCode, int32_t scanCode) { in shouldDropVirtualKeyLocked() argument 615 keyCode, scanCode); in shouldDropVirtualKeyLocked() 666 int32_t scanCode) { in getScanCodeState() argument 669 return getStateLocked(deviceId, sourceMask, scanCode, &InputDevice::getScanCodeState); in getScanCodeState() 889 InputDevice* device, int32_t keyCode, int32_t scanCode) { in shouldDropVirtualKey() argument 891 return mReader->shouldDropVirtualKeyLocked(now, device, keyCode, scanCode); in shouldDropVirtualKey() 1123 int32_t InputDevice::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument 1124 return getState(sourceMask, scanCode, & InputMapper::getScanCodeState); in getScanCodeState() 1886 int32_t InputMapper::getScanCodeState(uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument 2213 int32_t scanCode = rawEvent->code; in process() local [all …]
|
D | InputListener.h | 62 int32_t scanCode; member 69 int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode,
|
D | InputDispatcher.cpp | 667 entry->action, entry->flags, entry->keyCode, entry->scanCode, in synthesizeKeyRepeatLocked() 819 entry->action, entry->flags, entry->keyCode, entry->scanCode, entry->metaState, in logOutboundKeyDetailsLocked() 1986 keyEntry->keyCode, keyEntry->scanCode, in startDispatchCycleLocked() 2395 args->action, args->flags, args->keyCode, args->scanCode, in notifyKey() 2446 flags, keyCode, args->scanCode, metaState, 0, in notifyKey() 2469 args->action, flags, keyCode, args->scanCode, in notifyKey() 3759 keyEntry->scanCode = event.getScanCode(); in afterKeyEventLockedInterruptible() 3796 entry->keyCode, entry->scanCode, entry->metaState, entry->repeatCount, in initializeKeyEvent() 3933 int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, in KeyEntry() argument 3937 keyCode(keyCode), scanCode(scanCode), metaState(metaState), in KeyEntry() [all …]
|
D | InputDispatcher.h | 481 int32_t scanCode; member 499 int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, 759 int32_t scanCode; member
|
/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 | 128 status_t mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const; 132 void tryRemapKey(int32_t scanCode, int32_t metaState,
|
D | InputTransport.h | 71 int32_t scanCode; member 217 int32_t scanCode,
|
D | Input.h | 349 int32_t scanCode,
|
/frameworks/base/core/jni/ |
D | android_view_KeyEvent.cpp | 85 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/ |
D | InputPublisherAndConsumer_test.cpp | 79 const int32_t scanCode = 13; in PublishAndConsumeKeyEvent() local 86 keyCode, scanCode, metaState, repeatCount, downTime, eventTime); in PublishAndConsumeKeyEvent() 108 EXPECT_EQ(scanCode, keyEvent->getScanCode()); in PublishAndConsumeKeyEvent()
|
D | StructLayout_test.cpp | 44 CHECK_OFFSET(InputMessage::Body::Key, scanCode, 36); in TestInputMessageAlignment()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 400 void setScanCodeState(int32_t deviceId, int32_t scanCode, int32_t state) { in setScanCodeState() argument 402 device->scanCodeStates.replaceValueFor(scanCode, state); in setScanCodeState() 415 void addKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, in addKey() argument 421 if (scanCode) { in addKey() 422 device->keysByScanCode.add(scanCode, info); in addKey() 522 int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument 526 const KeyInfo* key = getKey(device, scanCode, usageCode); in mapKey() 543 const KeyInfo* getKey(Device* device, int32_t scanCode, int32_t usageCode) const { in getKey() argument 550 if (scanCode) { in getKey() 551 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 450 public int getScanCodeState(int deviceId, int sourceMask, int scanCode) { in getScanCodeState() argument 451 return nativeGetScanCodeState(mPtr, deviceId, sourceMask, scanCode); in getScanCodeState()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 1156 jlong ptr, jint deviceId, jint sourceMask, jint scanCode) { in nativeGetScanCodeState() argument 1160 deviceId, uint32_t(sourceMask), scanCode); in nativeGetScanCodeState()
|