Home
last modified time | relevance | path

Searched refs:usageCode (Results 1 – 9 of 9) 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()
108 if (usageCode) { in getKey()
109 ssize_t index = mKeysByUsageCode.indexOfKey(usageCode); in getKey()
DKeyCharacterMap.cpp331 status_t KeyCharacterMap::mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const { in mapKey() argument
332 if (usageCode) { in mapKey()
333 ssize_t index = mKeysByUsageCode.indexOfKey(usageCode); in mapKey()
338 scanCode, usageCode, *outKeyCode); in mapKey()
349 scanCode, usageCode, *outKeyCode); in mapKey()
356 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Failed.", scanCode, usageCode); in mapKey()
/frameworks/native/include/input/
DKeyLayoutMap.h67 status_t mapKey(int32_t scanCode, int32_t usageCode,
97 const Key* getKey(int32_t scanCode, int32_t usageCode) const;
DKeyCharacterMap.h130 status_t mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const;
/frameworks/native/services/inputflinger/reader/mapper/
DKeyboardInputMapper.cpp195 int32_t usageCode = mCurrentHidUsage; in process() local
199 processKey(rawEvent->when, rawEvent->value != 0, scanCode, usageCode); in process()
252 void KeyboardInputMapper::processKey(nsecs_t when, bool down, int32_t scanCode, int32_t usageCode) { in processKey() argument
257 if (getEventHub()->mapKey(getDeviceId(), scanCode, usageCode, mMetaState, &keyCode, in processKey()
DKeyboardInputMapper.h85 void processKey(nsecs_t when, bool down, int32_t scanCode, int32_t usageCode);
/frameworks/native/services/inputflinger/reader/include/
DEventHub.h182 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode,
279 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode,
/frameworks/native/services/inputflinger/reader/
DEventHub.cpp524 status_t EventHub::mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument
534 if (!kcm->mapKey(scanCode, usageCode, outKeycode)) { in mapKey()
542 if (!device->keyMap.keyLayoutMap->mapKey(scanCode, usageCode, outKeycode, outFlags)) { in mapKey()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp467 void addKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, in addKey() argument
476 if (usageCode) { in addKey()
477 device->keysByUsageCode.add(usageCode, info); in addKey()
579 int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument
583 const KeyInfo* key = getKey(device, scanCode, usageCode); in mapKey()
600 const KeyInfo* getKey(Device* device, int32_t scanCode, int32_t usageCode) const { in getKey()
601 if (usageCode) { in getKey()
602 ssize_t index = device->keysByUsageCode.indexOfKey(usageCode); in getKey()