Lines Matching full:keycode
142 char16_t KeyCharacterMap::getDisplayLabel(int32_t keyCode) const {
145 if (getKey(keyCode, &key)) {
149 LOGD("getDisplayLabel: keyCode=%d ~ Result %d.", keyCode, result);
154 char16_t KeyCharacterMap::getNumber(int32_t keyCode) const {
157 if (getKey(keyCode, &key)) {
161 LOGD("getNumber: keyCode=%d ~ Result %d.", keyCode, result);
166 char16_t KeyCharacterMap::getCharacter(int32_t keyCode, int32_t metaState) const {
170 if (getKeyBehavior(keyCode, metaState, &key, &behavior)) {
174 LOGD("getCharacter: keyCode=%d, metaState=0x%08x ~ Result %d.", keyCode, metaState, result);
179 bool KeyCharacterMap::getFallbackAction(int32_t keyCode, int32_t metaState,
181 outFallbackAction->keyCode = 0;
187 if (getKeyBehavior(keyCode, metaState, &key, &behavior)) {
189 outFallbackAction->keyCode = behavior->fallbackKeyCode;
195 LOGD("getFallbackKeyCode: keyCode=%d, metaState=0x%08x ~ Result %s, "
196 "fallback keyCode=%d, fallback metaState=0x%08x.",
197 keyCode, metaState, result ? "true" : "false",
198 outFallbackAction->keyCode, outFallbackAction->metaState);
203 char16_t KeyCharacterMap::getMatch(int32_t keyCode, const char16_t* chars, size_t numChars,
207 if (getKey(keyCode, &key)) {
227 LOGD("getMatch: keyCode=%d, chars=[%s], metaState=0x%08x ~ Result %d.",
228 keyCode, toString(chars, numChars).string(), metaState, result);
238 int32_t keyCode, metaState;
240 if (!findKey(ch, &keyCode, &metaState)) {
250 addKey(outEvents, deviceId, keyCode, currentMetaState, true, now);
251 addKey(outEvents, deviceId, keyCode, currentMetaState, false, now);
258 LOGD(" Key: keyCode=%d, metaState=0x%08x, %s.",
266 bool KeyCharacterMap::getKey(int32_t keyCode, const Key** outKey) const {
267 ssize_t index = mKeys.indexOfKey(keyCode);
275 bool KeyCharacterMap::getKeyBehavior(int32_t keyCode, int32_t metaState,
278 if (getKey(keyCode, &key)) {
318 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) {
323 0, keyCode, 0, metaState, 0, time, time);
393 int32_t keyCode, int32_t keyMetaState,
396 *currentMetaState = updateMetaState(keyCode, down, *currentMetaState);
397 addKey(outEvents, deviceId, keyCode, *currentMetaState, down, time);
423 int32_t keyCode, int32_t keyMetaState,
426 *currentMetaState = updateMetaState(keyCode, true, *currentMetaState);
427 addKey(outEvents, deviceId, keyCode, *currentMetaState, true, time);
428 *currentMetaState = updateMetaState(keyCode, false, *currentMetaState);
429 addKey(outEvents, deviceId, keyCode, *currentMetaState, false, time);
563 int32_t keyCode = getKeyCodeByLabel(keyCodeToken.string());
564 if (!keyCode) {
569 if (mMap->mKeys.indexOfKey(keyCode) >= 0) {
584 LOGD("Parsed beginning of key: keyCode=%d.", keyCode);
586 mKeyCode = keyCode;
587 mMap->mKeys.add(keyCode, new Key());
671 int32_t keyCode = getKeyCodeByLabel(token.string());
672 if (!keyCode) {
683 behavior.fallbackKeyCode = keyCode;
708 LOGD("Parsed key label: keyCode=%d, label=%d.", mKeyCode, key->label);
719 LOGD("Parsed key number: keyCode=%d, number=%d.", mKeyCode, key->number);
735 LOGD("Parsed key meta: keyCode=%d, meta=0x%x, char=%d, fallback=%d.", mKeyCode,