Home
last modified time | relevance | path

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

/frameworks/native/libs/input/
DKeyLayoutMap.cpp191 status_t KeyLayoutMap::mapKey(int32_t scanCode, int32_t usageCode, in mapKey() argument
193 const Key* key = getKey(scanCode, usageCode); in mapKey()
196 usageCode); in mapKey()
207 scanCode, usageCode, *outKeyCode, *outFlags); in mapKey()
225 const KeyLayoutMap::Key* KeyLayoutMap::getKey(int32_t scanCode, int32_t usageCode) const { in getKey()
226 if (usageCode) { in getKey()
227 auto it = mKeysByUsageCode.find(usageCode); in getKey()
254 for (const auto& [usageCode, key] : mKeysByUsageCode) { in findUsageCodesForKey()
256 usageCodes.push_back(usageCode); in findUsageCodesForKey()
290 for (const auto& [usageCode, led] : mLedsByUsageCode) { in findUsageCodeForLed()
[all …]
DKeyCharacterMap.cpp324 status_t KeyCharacterMap::mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const { in mapKey() argument
325 if (usageCode) { in mapKey()
326 const auto it = mKeysByUsageCode.find(usageCode); in mapKey()
331 scanCode, usageCode, *outKeyCode); in mapKey()
342 scanCode, usageCode, *outKeyCode); in mapKey()
349 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.h135 status_t mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const;
/frameworks/native/services/inputflinger/tests/
DFakeEventHub.cpp136 void FakeEventHub::addKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t keyCode, in addKey() argument
145 if (usageCode) { in addKey()
146 device->keysByUsageCode.add(usageCode, info); in addKey()
296 status_t FakeEventHub::mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, in mapKey() argument
301 const KeyInfo* key = getKey(device, scanCode, usageCode); in mapKey()
320 int32_t usageCode) const { in getKey()
321 if (usageCode) { in getKey()
322 ssize_t index = device->keysByUsageCode.indexOfKey(usageCode); in getKey()
DFakeEventHub.h131 void addKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t keyCode,
178 status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t metaState,
180 const KeyInfo* getKey(Device* device, int32_t scanCode, int32_t usageCode) const;
DInterfaceMocks.h105 (int32_t deviceId, int scanCode, int usageCode, int32_t metaState,
DKeyboardInputMapper_test.cpp147 void addKeyByUsageCode(int32_t usageCode, int32_t keyCode, int32_t flags = 0) { in addKeyByUsageCode() argument
148 EXPECT_CALL(mMockEventHub, mapKey(EVENTHUB_ID, _, usageCode, _, _, _, _)) in addKeyByUsageCode()
DInputReader_test.cpp5975 void processHidUsage(MultiTouchInputMapper& mapper, int32_t usageCode, int32_t value);
6081 void MultiTouchInputMapperTest::processHidUsage(MultiTouchInputMapper& mapper, int32_t usageCode, in processHidUsage() argument
6083 process(mapper, ARBITRARY_TIME, READ_TIME, EV_MSC, MSC_SCAN, usageCode); in processHidUsage()
/frameworks/native/services/inputflinger/reader/mapper/
DKeyboardInputMapper.h103 int32_t scanCode, int32_t usageCode);
DKeyboardInputMapper.cpp264 int32_t scanCode, int32_t usageCode) { in processKey() argument
271 if (getDeviceContext().mapKey(scanCode, usageCode, mMetaState, &keyCode, &keyMetaState, in processKey()
/frameworks/native/services/inputflinger/reader/include/
DInputDevice.h337 inline status_t mapKey(int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument
339 return mEventHub->mapKey(mId, scanCode, usageCode, metaState, outKeycode, outMetaState, in mapKey()
DEventHub.h293 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode,
535 status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t metaState,
/frameworks/native/services/inputflinger/tests/fuzzers/
DMapperHelpers.h175 status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument
/frameworks/native/services/inputflinger/reader/
DEventHub.cpp1217 status_t EventHub::mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument
1227 if (!kcm->mapKey(scanCode, usageCode, outKeycode)) { in mapKey()
1235 if (!device->keyMap.keyLayoutMap->mapKey(scanCode, usageCode, outKeycode, outFlags)) { in mapKey()