Home
last modified time | relevance | path

Searched refs:outKeyCode (Results 1 – 7 of 7) sorted by relevance

/frameworks/native/libs/input/tests/
DInputDevice_test.cpp147 int32_t outKeyCode; in TEST_F() local
148 status_t mapKeyResult = mKeyMap.keyCharacterMap->mapKey(KEY_Q, /*usageCode=*/0, &outKeyCode); in TEST_F()
150 ASSERT_EQ(outKeyCode, AKEYCODE_A); in TEST_F()
152 mapKeyResult = mKeyMap.keyCharacterMap->mapKey(KEY_E, /*usageCode=*/0, &outKeyCode); in TEST_F()
180 int32_t outKeyCode; in TEST() local
182 keyLayoutMap->mapKey(0, hidUsageCode, &outKeyCode, &outFlags); in TEST()
185 std::vector<int32_t> usageCodes = keyLayoutMap->findUsageCodesForKey(outKeyCode); in TEST()
194 int32_t outKeyCode; in TEST() local
196 keyLayoutMap->mapKey(0, hidUsageCode, &outKeyCode, &outFlags); in TEST()
199 std::vector<int32_t> usageCodes = keyLayoutMap->findUsageCodesForKey(outKeyCode); in TEST()
/frameworks/base/core/jni/
Dandroid_view_KeyCharacterMap.cpp267 int32_t outKeyCode; in nativeGetMappedKey() local
268 status_t mapKeyRes = map->getMap()->mapKey(scanCode, /*usageCode=*/0, &outKeyCode); in nativeGetMappedKey()
272 return static_cast<jint>(outKeyCode); in nativeGetMappedKey()
/frameworks/native/include/input/
DKeyCharacterMap.h135 status_t mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const;
242 bool findKey(char16_t ch, int32_t* outKeyCode, int32_t* outMetaState) const;
DKeyLayoutMap.h72 int32_t* outKeyCode, uint32_t* outFlags) const;
/frameworks/native/libs/input/
DKeyCharacterMap.cpp335 status_t KeyCharacterMap::mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const { in mapKey()
339 *outKeyCode = it->second; in mapKey()
342 scanCode, usageCode, *outKeyCode); in mapKey()
350 *outKeyCode = it->second; in mapKey()
353 scanCode, usageCode, *outKeyCode); in mapKey()
362 *outKeyCode = AKEYCODE_UNKNOWN; in mapKey()
473 bool KeyCharacterMap::findKey(char16_t ch, int32_t* outKeyCode, int32_t* outMetaState) const { in findKey() argument
488 *outKeyCode = keyCode; in findKey()
DKeyLayoutMap.cpp192 int32_t* outKeyCode, uint32_t* outFlags) const { in mapKey() argument
197 *outKeyCode = AKEYCODE_UNKNOWN; in mapKey()
202 *outKeyCode = key->keyCode; in mapKey()
207 scanCode, usageCode, *outKeyCode, *outFlags); in mapKey()
/frameworks/native/services/inputflinger/reader/
DEventHub.cpp1101 int32_t outKeyCode; in getKeyCodeForKeyLocation() local
1103 device->getKeyCharacterMap()->mapKey(scanCodes[0], /*usageCode=*/0, &outKeyCode); in getKeyCodeForKeyLocation()
1109 outKeyCode = locationKeyCode; in getKeyCodeForKeyLocation()
1114 outKeyCode = AKEYCODE_UNKNOWN; in getKeyCodeForKeyLocation()
1118 return device->getKeyCharacterMap()->applyKeyRemapping(outKeyCode); in getKeyCodeForKeyLocation()