Home
last modified time | relevance | path

Searched refs:codeToken (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/libs/input/
DKeyLayoutMap.cpp357 String8 codeToken = mTokenizer->nextToken(WHITESPACE); in parseKey() local
359 if (codeToken == "usage") { in parseKey()
362 codeToken = mTokenizer->nextToken(WHITESPACE); in parseKey()
365 std::optional<int> code = parseInt(codeToken.c_str()); in parseKey()
368 mapUsage ? "usage" : "scan code", codeToken.c_str()); in parseKey()
375 mapUsage ? "usage" : "scan code", codeToken.c_str()); in parseKey()
523 String8 codeToken = mTokenizer->nextToken(WHITESPACE); in parseLed() local
525 if (codeToken == "usage") { in parseLed()
528 codeToken = mTokenizer->nextToken(WHITESPACE); in parseLed()
530 std::optional<int> code = parseInt(codeToken.c_str()); in parseLed()
[all …]
DKeyCharacterMap.cpp881 String8 codeToken = mTokenizer->nextToken(WHITESPACE); in parseMapKey() local
883 if (codeToken == "usage") { in parseMapKey()
886 codeToken = mTokenizer->nextToken(WHITESPACE); in parseMapKey()
890 int32_t code = int32_t(strtol(codeToken.c_str(), &end, 0)); in parseMapKey()
893 mapUsage ? "usage" : "scan code", codeToken.c_str()); in parseMapKey()
900 mapUsage ? "usage" : "scan code", codeToken.c_str()); in parseMapKey()