Home
last modified time | relevance | path

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

/frameworks/native/libs/input/
DKeyLayoutMap.cpp190 status_t KeyLayoutMap::mapKey(int32_t scanCode, int32_t usageCode, in mapKey() argument
192 const Key* key = getKey(scanCode, usageCode); in mapKey()
195 usageCode); in mapKey()
206 scanCode, usageCode, *outKeyCode, *outFlags); in mapKey()
224 const KeyLayoutMap::Key* KeyLayoutMap::getKey(int32_t scanCode, int32_t usageCode) const { in getKey()
225 if (usageCode) { in getKey()
226 auto it = mKeysByUsageCode.find(usageCode); in getKey()
252 for (const auto& [usageCode, key] : mKeysByUsageCode) { in findUsageCodesForKey()
254 usageCodes.push_back(usageCode); in findUsageCodesForKey()
288 for (const auto& [usageCode, led] : mLedsByUsageCode) { in findUsageCodeForLed()
[all …]
DKeyCharacterMap.cpp338 status_t KeyCharacterMap::mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const { in mapKey() argument
339 if (usageCode) { in mapKey()
340 const auto it = mKeysByUsageCode.find(usageCode); in mapKey()
345 scanCode, usageCode, *outKeyCode); in mapKey()
356 scanCode, usageCode, *outKeyCode); in mapKey()
363 ALOGD("mapKey: scanCode=%d, usageCode=0x%08x ~ Failed.", scanCode, usageCode); in mapKey()
/frameworks/native/include/input/
DKeyLayoutMap.h71 status_t mapKey(int32_t scanCode, int32_t usageCode,
113 const Key* getKey(int32_t scanCode, int32_t usageCode) const;
DKeyCharacterMap.h137 status_t mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const;
/frameworks/native/services/inputflinger/tests/
DFakeEventHub.cpp139 void FakeEventHub::addKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t keyCode, in addKey() argument
148 if (usageCode) { in addKey()
149 device->keysByUsageCode.add(usageCode, info); in addKey()
300 status_t FakeEventHub::mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, in mapKey() argument
305 const KeyInfo* key = getKey(device, scanCode, usageCode); in mapKey()
324 int32_t usageCode) const { in getKey()
325 if (usageCode) { in getKey()
326 ssize_t index = device->keysByUsageCode.indexOfKey(usageCode); in getKey()
DFakeEventHub.h130 void addKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t keyCode,
170 status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t metaState,
172 const KeyInfo* getKey(Device* device, int32_t scanCode, int32_t usageCode) const;
DInterfaceMocks.h70 (int32_t deviceId, int scanCode, int usageCode, int32_t metaState,
DInputReader_test.cpp7761 void processHidUsage(MultiTouchInputMapper& mapper, int32_t usageCode, int32_t value);
7867 void MultiTouchInputMapperTest::processHidUsage(MultiTouchInputMapper& mapper, int32_t usageCode, in processHidUsage() argument
7869 process(mapper, ARBITRARY_TIME, READ_TIME, EV_MSC, MSC_SCAN, usageCode); in processHidUsage()
/frameworks/native/services/inputflinger/reader/mapper/
DKeyboardInputMapper.h96 int32_t scanCode, int32_t usageCode);
DKeyboardInputMapper.cpp203 int32_t scanCode, int32_t usageCode) { in processKey() argument
209 if (getDeviceContext().mapKey(scanCode, usageCode, mMetaState, &keyCode, &keyMetaState, in processKey()
/frameworks/native/services/inputflinger/reader/include/
DInputDevice.h302 inline status_t mapKey(int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument
304 return mEventHub->mapKey(mId, scanCode, usageCode, metaState, outKeycode, outMetaState, in mapKey()
DEventHub.h286 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode,
491 status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t metaState,
/frameworks/native/services/inputflinger/tests/fuzzers/
DMapperHelpers.h109 status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument
/frameworks/native/services/inputflinger/reader/
DEventHub.cpp1103 status_t EventHub::mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument
1113 if (!kcm->mapKey(scanCode, usageCode, outKeycode)) { in mapKey()
1121 if (!device->keyMap.keyLayoutMap->mapKey(scanCode, usageCode, outKeycode, outFlags)) { in mapKey()