Searched refs:usageCode (Results 1 - 9 of 9) sorted by relevance

/frameworks/native/include/input/
H A DKeyLayoutMap.h67 status_t mapKey(int32_t scanCode, int32_t usageCode,
97 const Key* getKey(int32_t scanCode, int32_t usageCode) const;
H A DKeyCharacterMap.h128 status_t mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const;
/frameworks/native/libs/input/
H A DKeyLayoutMap.cpp85 status_t KeyLayoutMap::mapKey(int32_t scanCode, int32_t usageCode, argument
87 const Key* key = getKey(scanCode, usageCode);
90 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Failed.", scanCode, usageCode);
101 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Result keyCode=%d, outFlags=0x%08x.",
102 scanCode, usageCode, *outKeyCode, *outFlags);
107 const KeyLayoutMap::Key* KeyLayoutMap::getKey(int32_t scanCode, int32_t usageCode) const {
108 if (usageCode) {
109 ssize_t index = mKeysByUsageCode.indexOfKey(usageCode);
H A DKeyCharacterMap.cpp331 status_t KeyCharacterMap::mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const { argument
332 if (usageCode) {
333 ssize_t index = mKeysByUsageCode.indexOfKey(usageCode);
337 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Result keyCode=%d.",
338 scanCode, usageCode, *outKeyCode);
348 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Result keyCode=%d.",
349 scanCode, usageCode, *outKeyCode);
356 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Failed.", scanCode, usageCode);
/frameworks/native/services/inputflinger/
H A DEventHub.h204 int32_t scanCode, int32_t usageCode, int32_t metaState,
293 int32_t scanCode, int32_t usageCode, int32_t metaState,
H A DEventHub.cpp442 int32_t scanCode, int32_t usageCode, int32_t metaState,
452 if (!kcm->mapKey(scanCode, usageCode, outKeycode)) {
461 scanCode, usageCode, outKeycode, outFlags)) {
441 mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t metaState, int32_t* outKeycode, int32_t* outMetaState, uint32_t* outFlags) const argument
H A DInputReader.cpp2206 int32_t usageCode = mCurrentHidUsage; local
2210 processKey(rawEvent->when, rawEvent->value != 0, scanCode, usageCode);
2236 int32_t usageCode) {
2241 if (getEventHub()->mapKey(getDeviceId(), scanCode, usageCode, mMetaState,
2235 processKey(nsecs_t when, bool down, int32_t scanCode, int32_t usageCode) argument
H A DInputReader.h1165 void processKey(nsecs_t when, bool down, int32_t scanCode, int32_t usageCode);
/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp415 void addKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, argument
424 if (usageCode) {
425 device->keysByUsageCode.add(usageCode, info);
522 int32_t scanCode, int32_t usageCode, int32_t metaState,
526 const KeyInfo* key = getKey(device, scanCode, usageCode);
543 const KeyInfo* getKey(Device* device, int32_t scanCode, int32_t usageCode) const {
544 if (usageCode) {
545 ssize_t index = device->keysByUsageCode.indexOfKey(usageCode);
521 mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t metaState, int32_t* outKeycode, int32_t *outMetaState, uint32_t* outFlags) const argument

Completed in 142 milliseconds