Searched refs:usageCode (Results 1 – 8 of 8) sorted by relevance
/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() 108 if (usageCode) { in getKey() 109 ssize_t index = mKeysByUsageCode.indexOfKey(usageCode); in getKey()
|
D | KeyCharacterMap.cpp | 331 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() 337 scanCode, usageCode, *outKeyCode); in mapKey() 348 scanCode, usageCode, *outKeyCode); in mapKey() 356 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Failed.", scanCode, usageCode); in mapKey()
|
/frameworks/native/include/input/ |
D | KeyLayoutMap.h | 67 status_t mapKey(int32_t scanCode, int32_t usageCode, 97 const Key* getKey(int32_t scanCode, int32_t usageCode) const;
|
D | KeyCharacterMap.h | 125 status_t mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const;
|
/frameworks/native/services/inputflinger/ |
D | EventHub.h | 194 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, 282 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode,
|
D | EventHub.cpp | 434 status_t EventHub::mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, in mapKey() argument 443 if (!kcm->mapKey(scanCode, usageCode, outKeycode)) { in mapKey() 452 scanCode, usageCode, outKeycode, outFlags)) { in mapKey()
|
D | InputReader.cpp | 2081 int32_t usageCode = mCurrentHidUsage; in process() local 2087 if (getEventHub()->mapKey(getDeviceId(), scanCode, usageCode, &keyCode, &flags)) { in process()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 416 void addKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, in addKey() argument 425 if (usageCode) { in addKey() 426 device->keysByUsageCode.add(usageCode, info); in addKey() 522 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, in mapKey() argument 526 const KeyInfo* key = getKey(device, scanCode, usageCode); in mapKey() 540 const KeyInfo* getKey(Device* device, int32_t scanCode, int32_t usageCode) const { in getKey() 541 if (usageCode) { in getKey() 542 ssize_t index = device->keysByUsageCode.indexOfKey(usageCode); in getKey()
|