Home
last modified time | relevance | path

Searched refs:usageCode (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/libs/androidfw/
DKeyLayoutMap.cpp83 status_t KeyLayoutMap::mapKey(int32_t scanCode, int32_t usageCode, in mapKey() argument
85 const Key* key = getKey(scanCode, usageCode); in mapKey()
88 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Failed.", scanCode, usageCode); in mapKey()
100 scanCode, usageCode, *outKeyCode, *outFlags); in mapKey()
105 const KeyLayoutMap::Key* KeyLayoutMap::getKey(int32_t scanCode, int32_t usageCode) const { in getKey()
106 if (usageCode) { in getKey()
107 ssize_t index = mKeysByUsageCode.indexOfKey(usageCode); in getKey()
DKeyCharacterMap.cpp329 status_t KeyCharacterMap::mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const { in mapKey() argument
330 if (usageCode) { in mapKey()
331 ssize_t index = mKeysByUsageCode.indexOfKey(usageCode); in mapKey()
335 scanCode, usageCode, *outKeyCode); in mapKey()
346 scanCode, usageCode, *outKeyCode); in mapKey()
354 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Failed.", scanCode, usageCode); in mapKey()
/frameworks/base/include/androidfw/
DKeyLayoutMap.h67 status_t mapKey(int32_t scanCode, int32_t usageCode,
88 const Key* getKey(int32_t scanCode, int32_t usageCode) const;
DKeyCharacterMap.h125 status_t mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const;
/frameworks/base/services/input/
DEventHub.h177 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode,
261 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode,
DEventHub.cpp441 status_t EventHub::mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, in mapKey() argument
450 if (!kcm->mapKey(scanCode, usageCode, outKeycode)) { in mapKey()
459 scanCode, usageCode, outKeycode, outFlags)) { in mapKey()
DInputReader.cpp2049 int32_t usageCode = mCurrentHidUsage; in process() local
2055 if (getEventHub()->mapKey(getDeviceId(), scanCode, usageCode, &keyCode, &flags)) { in process()
/frameworks/base/services/input/tests/
DInputReader_test.cpp391 void addKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, in addKey() argument
400 if (usageCode) { in addKey()
401 device->keysByUsageCode.add(usageCode, info); in addKey()
492 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, in mapKey() argument
496 const KeyInfo* key = getKey(device, scanCode, usageCode); in mapKey()
510 const KeyInfo* getKey(Device* device, int32_t scanCode, int32_t usageCode) const { in getKey()
511 if (usageCode) { in getKey()
512 ssize_t index = device->keysByUsageCode.indexOfKey(usageCode); in getKey()