Searched refs:outKeyCode (Results 1 – 7 of 7) sorted by relevance
/frameworks/native/libs/input/tests/ |
D | InputDevice_test.cpp | 147 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/ |
D | android_view_KeyCharacterMap.cpp | 267 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/ |
D | KeyCharacterMap.h | 135 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;
|
D | KeyLayoutMap.h | 72 int32_t* outKeyCode, uint32_t* outFlags) const;
|
/frameworks/native/libs/input/ |
D | KeyCharacterMap.cpp | 335 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()
|
D | KeyLayoutMap.cpp | 192 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/ |
D | EventHub.cpp | 1101 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()
|