Home
last modified time | relevance | path

Searched refs:keyCode (Results 1 - 25 of 131) sorted by relevance

123456

/foundation/multimodalinput/input/service/key_event_normalize/src/
H A Dkey_event_normalize.cpp58 int32_t keyCode = static_cast<int32_t>(libinput_event_keyboard_get_key(data)); in Normalize() local
59 MMI_HILOGD("The linux input keyCode:%{private}d", keyCode); in Normalize()
60 keyCode = KeyMapMgr->TransferDeviceKeyValue(device, keyCode); in Normalize()
76 keyEvent->SetKeyCode(keyCode); in Normalize()
86 item.SetKeyCode(keyCode); in Normalize()
89 item.SetUnicode(KeyCodeToUnicode(keyCode, keyEvent)); in Normalize()
104 int32_t keyCode = keyEvent->GetKeyCode(); in HandleKeyAction() local
109 int32_t funcKey = keyEvent->TransitionFunctionKey(keyCode); in HandleKeyAction()
[all...]
H A Dkey_unicode_transformation.cpp116 uint32_t KeyCodeToUnicode(int32_t keyCode, std::shared_ptr<KeyEvent> keyEvent) in KeyCodeToUnicode() argument
119 auto iter = KEY_UNICODE_TRANSFORMATION.find(keyCode); in KeyCodeToUnicode()
126 if (keyCode >= HOS_KEY_A && keyCode <= HOS_KEY_Z) { in KeyCodeToUnicode()
/foundation/arkui/ace_engine/frameworks/core/event/
H A Dkey_event_recognizer.h30 std::vector<KeyEvent> GetKeyEvents(int32_t keyCode, int32_t keyAction, int32_t repeatTime, int64_t timeStamp = 0,
35 void addPressedKey(const int32_t keyCode);
36 void removeReleasedKey(const int32_t keyCode);
H A Dkey_event_recognizer.cpp37 const char* KeyCodeToString(int32_t keyCode) in KeyCodeToString() argument
431 auto iter = KEYCODE_TO_STRING.find(static_cast<KeyCode>(keyCode)); in KeyCodeToString()
504 std::vector<KeyEvent> KeyEventRecognizer::GetKeyEvents(int32_t keyCode, int32_t keyAction, int32_t repeatTime, in GetKeyEvents() argument
512 auto event = KeyEvent(static_cast<KeyCode>(keyCode), static_cast<KeyAction>(keyAction), repeatTime, in GetKeyEvents()
515 if ((keyCode != static_cast<int32_t>(KeyCode::KEY_UNKNOWN)) && in GetKeyEvents()
527 addPressedKey(keyCode); in GetKeyEvents()
531 if ((keyCode != static_cast<int32_t>(KeyCode::KEY_UNKNOWN)) && in GetKeyEvents()
533 removeReleasedKey(keyCode); in GetKeyEvents()
536 event.key = KeyCodeToString(keyCode); in GetKeyEvents()
540 auto result = keyMap_.try_emplace(keyCode, fals in GetKeyEvents()
571 addPressedKey(const int32_t keyCode) addPressedKey() argument
581 removeReleasedKey(const int32_t keyCode) removeReleasedKey() argument
[all...]
/foundation/multimedia/av_session/services/session/adapter/
H A Dkey_event_adapter.cpp35 for (auto keyCode : keyCodes) { in SubscribeKeyEvent()
38 keyOption->SetFinalKey(keyCode); in SubscribeKeyEvent()
42 SLOGE("keyCode=%{public}d failed", keyCode); in SubscribeKeyEvent()
/foundation/multimodalinput/input/service/subscriber/src/
H A Dkey_subscriber_handler.cpp75 MMI_HILOGD("Subscribe keyEvent filter success. keyCode:%{private}d", keyEvent->GetKeyCode()); in HandleKeyEvent()
77 MMI_HILOGD("Subscribe keyEvent filter success. keyCode:%{private}d", keyEvent->GetKeyCode()); in HandleKeyEvent()
121 for (const auto &keyCode : keyOption->GetPreKeys()) { in SubscribeKeyEvent()
122 MMI_HILOGD("keyOption->prekey:%{private}d", keyCode); in SubscribeKeyEvent()
295 for (const auto &keyCode : keyOption->GetPreKeys()) { in SubscribeHotkey()
296 MMI_HILOGD("keyOption->prekey:%{private}d", keyCode); in SubscribeHotkey()
459 int32_t keyCode = item.GetKeyCode(); in IsEnableCombineKey() local
460 if (keyCode != KeyEvent::KEYCODE_L && keyCode != KeyEvent::KEYCODE_META_LEFT && in IsEnableCombineKey()
461 keyCode ! in IsEnableCombineKey()
473 int32_t keyCode = item.GetKeyCode(); IsEnableCombineKeySwipe() local
938 auto keyCode = keyEvent->GetKeyCode(); HandleKeyDown() local
1000 auto keyCode = keyEvent->GetKeyCode(); HandleKeyUp() local
1056 IsKeyEventSubscribed(int32_t keyCode, int32_t trrigerType) IsKeyEventSubscribed() argument
1091 RemoveKeyCode(int32_t keyCode, std::vector<int32_t> &keyCodes) RemoveKeyCode() argument
1121 int32_t keyCode = item.GetKeyCode(); IsRepeatedKeyEvent() local
1136 RemoveSubscriberKeyUpTimer(int32_t keyCode) RemoveSubscriberKeyUpTimer() argument
1375 auto keyCode = keyEvent->GetKeyCode(); RemoveSubscriberTimer() local
[all...]
H A Dkey_shortcut_manager.cpp418 bool KeyShortcutManager::IsModifier(int32_t keyCode) const in IsModifier()
420 return (modifiers_.find(keyCode) != modifiers_.cend()); in IsModifier()
442 for (auto keyCode : key.modifiers) { in CheckSystemKey()
443 auto iter = modifiers_.find(keyCode); in CheckSystemKey()
445 MMI_HILOGE("Key code (%{public}d) is not modifier", keyCode); in CheckSystemKey()
491 for (auto keyCode : key.modifiers) { in CheckGlobalKey()
492 auto iter = modifiers_.find(keyCode); in CheckGlobalKey()
494 MMI_HILOGE("Key code (%{public}d) is not modifier", keyCode); in CheckGlobalKey()
666 for (auto keyCode : pressedKeys) { in CheckPureModifiers()
667 if (auto iter = modifiers_.find(keyCode); ite in CheckPureModifiers()
875 WillResetOnKeyDown(int32_t keyCode, const KeyShortcut &shortcut) const WillResetOnKeyDown() argument
884 WillResetOnKeyUp(int32_t keyCode, const KeyShortcut &shortcut) const WillResetOnKeyUp() argument
[all...]
/foundation/multimodalinput/input/service/subscriber/test/src/
H A Dkey_shortcut_manager_test.cpp502 int32_t keyCode = KeyEvent::KEYCODE_UNKNOWN; in HWTEST_F() local
510 keyCode = keyEvent->GetKeyCode(); in HWTEST_F()
522 EXPECT_EQ(keyCode, KeyEvent::KEYCODE_UNKNOWN); in HWTEST_F()
524 [&keyCode]() { in HWTEST_F()
525 return (keyCode != KeyEvent::KEYCODE_UNKNOWN); in HWTEST_F()
528 EXPECT_NE(keyCode, KeyEvent::KEYCODE_S); in HWTEST_F()
567 int32_t keyCode = KeyEvent::KEYCODE_UNKNOWN; in HWTEST_F() local
575 keyCode = keyEvent->GetKeyCode(); in HWTEST_F()
587 EXPECT_EQ(keyCode, KeyEvent::KEYCODE_UNKNOWN); in HWTEST_F()
592 EXPECT_EQ(keyCode, KeyEven in HWTEST_F()
635 int32_t keyCode = KeyEvent::KEYCODE_UNKNOWN; HWTEST_F() local
751 int32_t keyCode = KeyEvent::KEYCODE_UNKNOWN; HWTEST_F() local
898 int32_t keyCode = KeyEvent::KEYCODE_UNKNOWN; HWTEST_F() local
1076 int32_t keyCode = 1; HWTEST_F() local
1096 int32_t keyCode = 1; HWTEST_F() local
[all...]
/foundation/window/window_manager/wm/src/
H A Dwindow_input_channel.cpp65 WLOGFD("Receive key event, Id: %{public}u, keyCode: %{public}d", in HandleKeyEvent()
159 int32_t keyCode = keyEvent->GetKeyCode(); in IsKeyboardEvent() local
160 bool isKeyFN = (keyCode == MMI::KeyEvent::KEYCODE_FN); in IsKeyboardEvent()
161 bool isKeyBack = (keyCode == MMI::KeyEvent::KEYCODE_BACK); in IsKeyboardEvent()
162 bool isKeyboard = (keyCode >= MMI::KeyEvent::KEYCODE_0 && keyCode <= MMI::KeyEvent::KEYCODE_NUMPAD_RIGHT_PAREN); in IsKeyboardEvent()
163 bool isKeySound = (keyCode == MMI::KeyEvent::KEYCODE_SOUND); in IsKeyboardEvent()
/foundation/distributedhardware/distributed_input/common/include/
H A Dwhite_list_util.cpp107 int32_t keyCode = std::stoi(line); in Init() local
108 if (keyCode != 0) { in Init()
109 vecKeyCode.push_back(keyCode); in Init()
172 int32_t keyCode = std::stoi(single); in ReadLineDataStepOne() local
173 if (keyCode != 0) { in ReadLineDataStepOne()
174 vecKeyCode.push_back(keyCode); in ReadLineDataStepOne()
180 int32_t keyCode = std::stoi(column); in ReadLineDataStepOne() local
181 if (keyCode != 0) { in ReadLineDataStepOne()
182 vecKeyCode.push_back(keyCode); in ReadLineDataStepOne()
304 hash += std::to_string(event.keyCode); in GetBusinessEventHash()
[all...]
/foundation/multimodalinput/input/service/key_command/src/
H A Dkey_command_handler_util.cpp23 bool IsSpecialType(int32_t keyCode, SpecialType type) in IsSpecialType() argument
25 auto it = SPECIAL_KEYS.find(keyCode); in IsSpecialType()
287 cJSON *keyCode = cJSON_GetObjectItemCaseSensitive(jsonData, "keyCode"); in GetKeyCode() local
288 if (!cJSON_IsNumber(keyCode)) { in GetKeyCode()
289 MMI_HILOGE("keyCode is not number"); in GetKeyCode()
292 if (keyCode->valueint < 0) { in GetKeyCode()
293 MMI_HILOGE("keyCode must be number and bigger and equal zero"); in GetKeyCode()
296 keyCodeInt = keyCode->valueint; in GetKeyCode()
382 if (!GetKeyCode(sequenceKeysJson, sequenceKey.keyCode)) { in PackageSequenceKey()
[all...]
H A Dkey_command_handler.cpp95 MMI_HILOGD("The keyEvent start launch an ability, keyCode:%{private}d", keyEvent->GetKeyCode()); in HandleKeyEvent()
966 if (item.keyCode != keyEvent->GetKeyCode()) { in CheckSpecialRepeatKey()
969 if (item.keyCode != KeyEvent::KEYCODE_VOLUME_DOWN) { in CheckSpecialRepeatKey()
1064 MMI_HILOGD("keyCode:%d, keyAction:%{public}d, delay:%{public}" PRId64, in PrintExcludeKeys()
1065 excludeKeys_[i].keyCode, excludeKeys_[i].keyAction, excludeKeys_[i].delay); in PrintExcludeKeys()
1076 MMI_HILOGI("keyCode:%d, keyAction:%{public}d, delay:%{public}" PRId64, in PrintSeq()
1077 sequenceKey.keyCode, sequenceKey.keyAction, sequenceKey.delay); in PrintSeq()
1088 if (key->GetKeyCode() == excludeKeys_[i].keyCode) { in IsExcludeKey()
1128 int32_t keyCode = item.GetKeyCode(); in IsEnableCombineKey() local
1129 if (keyCode ! in IsEnableCombineKey()
1198 CreateKeyEvent(int32_t keyCode, int32_t keyAction, bool isPressed) CreateKeyEvent() argument
1985 int32_t keyCode = item.GetKeyCode(); IsKeyMatch() local
1997 SkipFinalKey(const int32_t keyCode, const std::shared_ptr<KeyEvent> &key) SkipFinalKey() argument
2194 RemoveSubscribedTimer(int32_t keyCode) RemoveSubscribedTimer() argument
2207 HandleSpecialKeys(int32_t keyCode, int32_t keyAction) HandleSpecialKeys() argument
[all...]
/foundation/barrierfree/accessibility/services/test/mock/multimodalinput/src/
H A Dmock_key_event.cpp62 void KeyEvent::KeyItem::SetKeyCode(int32_t keyCode) in SetKeyCode() argument
64 keyCode_ = keyCode; in SetKeyCode()
132 void KeyEvent::SetKeyCode(int32_t keyCode) in SetKeyCode() argument
134 keyCode_ = keyCode; in SetKeyCode()
/foundation/multimodalinput/input/service/subscriber/test/
H A Dkey_gesture_manager_test.cpp133 int32_t keyCode = 1; in HWTEST_F() local
134 KeyGestureManager::LongPressSingleKey longPressSingleKey(keyCode); in HWTEST_F()
262 int32_t keyCode = 1; in HWTEST_F() local
263 KeyGestureManager::LongPressSingleKey longPressSingleKey(keyCode); in HWTEST_F()
289 int32_t keyCode = 1; in HWTEST_F() local
290 KeyGestureManager::LongPressSingleKey longPressSingleKey(keyCode); in HWTEST_F()
309 int32_t keyCode = 1; in HWTEST_F() local
310 KeyGestureManager::LongPressSingleKey longPressSingleKey(keyCode); in HWTEST_F()
329 int32_t keyCode = 1; in HWTEST_F() local
330 KeyGestureManager::LongPressSingleKey longPressSingleKey(keyCode); in HWTEST_F()
349 int32_t keyCode = 1; HWTEST_F() local
571 int32_t keyCode = 1; HWTEST_F() local
[all...]
H A Dkey_gesture_manager_ex_test.cpp201 int32_t keyCode = KeyEvent::KEYCODE_A; in HWTEST_F() local
202 KeyGestureManager::LongPressSingleKey longPressSingleKey(keyCode); in HWTEST_F()
222 int32_t keyCode = KeyEvent::KEYCODE_A; in HWTEST_F() local
223 KeyGestureManager::LongPressSingleKey longPressSingleKey(keyCode); in HWTEST_F()
349 int32_t keyCode = KeyEvent::KEYCODE_A; in HWTEST_F() local
350 KeyGestureManager::LongPressSingleKey longPressSingleKey(keyCode); in HWTEST_F()
364 int32_t keyCode = KeyEvent::KEYCODE_A; in HWTEST_F() local
365 KeyGestureManager::LongPressSingleKey longPressSingleKey(keyCode); in HWTEST_F()
/foundation/distributedhardware/distributed_input/common/include/test/whitelistunittest/
H A Dwhite_list_test.cpp191 event.keyCode = 55; in HWTEST_F()
204 event.keyCode = 55; in HWTEST_F()
217 event.keyCode = 55; in HWTEST_F()
230 event.keyCode = 55; in HWTEST_F()
243 event.keyCode = 4; in HWTEST_F()
256 event.keyCode = 4; in HWTEST_F()
269 event.keyCode = 4; in HWTEST_F()
282 event.keyCode = 4; in HWTEST_F()
295 event.keyCode = 1; in HWTEST_F()
308 event.keyCode in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/focus/
H A Dfocus_node.h248 virtual void OnFocusMove(KeyCode keyCode) in OnFocusMove() argument
250 bool flag = keyCode == KeyCode::TV_CONTROL_UP || keyCode == KeyCode::TV_CONTROL_DOWN || in OnFocusMove()
251 keyCode == KeyCode::TV_CONTROL_LEFT || keyCode == KeyCode::TV_CONTROL_RIGHT || in OnFocusMove()
252 keyCode == KeyCode::KEY_TAB; in OnFocusMove()
254 onFocusMove_((int)keyCode); in OnFocusMove()
/foundation/multimodalinput/input/service/event_handler/src/
H A Dkey_map_manager.cpp124 std::vector<int32_t> KeyMapManager::InputTransferKeyValue(int32_t deviceId, int32_t keyCode) in InputTransferKeyValue() argument
129 if (it.second == keyCode) { in InputTransferKeyValue()
136 if (it.second == keyCode) { in InputTransferKeyValue()
142 sysKey.push_back(InputTransformationKeyValue(keyCode)); in InputTransferKeyValue()
/foundation/multimodalinput/input/test/fuzztest/simulateinputevent_fuzzer/
H A Dsimulateinputevent_fuzzer.cpp47 int32_t keyCode; in SimulateInjectEvent() local
49 startPos += GetObject<int32_t>(keyCode, data + startPos, size - startPos); in SimulateInjectEvent()
50 injectDownEvent->SetKeyCode(keyCode); in SimulateInjectEvent()
73 injectUpEvent->SetKeyCode(keyCode); in SimulateInjectEvent()
/foundation/multimodalinput/input/service/key_command/include/
H A Dkey_command_handler.h91 int32_t keyCode { -1 };
97 return (keyCode != sequenceKey.keyCode) || (keyAction != sequenceKey.keyAction); in operator !=()
102 int32_t keyCode { -1 };
150 int32_t keyCode { -1 };
248 std::shared_ptr<KeyEvent> CreateKeyEvent(int32_t keyCode, int32_t keyAction, bool isPressed);
251 void RemoveSubscribedTimer(int32_t keyCode);
252 void HandleSpecialKeys(int32_t keyCode, int32_t keyAction);
280 bool SkipFinalKey(const int32_t keyCode, const std::shared_ptr<KeyEvent> &key);
/foundation/multimodalinput/input/test/fuzztest/injectevent_fuzzer/
H A Dinjectevent_fuzzer.cpp43 int32_t keyCode; in InjectKeyEvent() local
45 startPos += GetObject<int32_t>(keyCode, data + startPos, size - startPos); in InjectKeyEvent()
46 injectDownEvent->SetKeyCode(keyCode); in InjectKeyEvent()
69 injectUpEvent->SetKeyCode(keyCode); in InjectKeyEvent()
/foundation/multimodalinput/input/util/napi/src/
H A Dkey_event_napi.cpp115 int32_t keyCode = GetNamePropertyInt32(env, in, "code"); in GetKeyItem() local
116 out.SetKeyCode(keyCode); in GetKeyItem()
167 bool KeyEventNapi::HasKeyCode(const std::vector<int32_t> &pressedKeys, int32_t keyCode) in HasKeyCode() argument
169 return std::find(pressedKeys.begin(), pressedKeys.end(), keyCode) != pressedKeys.end(); in HasKeyCode()
/foundation/multimodalinput/input/tools/inject_event/src/
H A Dinput_manager_command.cpp703 int32_t keyCode = 0; in ParseCommand() local
716 if (!StrToInt(optarg, keyCode)) { in ParseCommand()
720 downKey.push_back(keyCode); in ParseCommand()
730 KeyEvent->SetKeyCode(keyCode); in ParseCommand()
741 downKey.push_back(keyCode); in ParseCommand()
744 KeyEvent->SetKeyCode(keyCode); in ParseCommand()
749 item1.SetKeyCode(keyCode); in ParseCommand()
757 if (!StrToInt(optarg, keyCode)) { in ParseCommand()
761 std::vector<int32_t>::iterator iter = std::find(downKey.begin(), downKey.end(), keyCode); in ParseCommand()
763 std::cout << "you raised the key " << keyCode << st in ParseCommand()
1663 int32_t keyCode = 0; global() member
1703 IsSpecialChar(char character, int32_t &keyCode, bool &isPressShift) IsSpecialChar() argument
1715 PrintKeyboardTextChar(int32_t keyCode, bool isPressShift) PrintKeyboardTextChar() argument
1779 int32_t keyCode = -1; ProcessKeyboardTextInput() local
[all...]
/foundation/multimodalinput/input/service/key_command/test/
H A Dkey_command_handler_util_test.cpp46 int32_t keyCode = 1; in HWTEST_F() local
47 bool result = OHOS::MMI::IsSpecialType(keyCode, type); in HWTEST_F()
50 keyCode = 2; in HWTEST_F()
51 result = OHOS::MMI::IsSpecialType(keyCode, type); in HWTEST_F()
54 keyCode = 3; in HWTEST_F()
55 result = OHOS::MMI::IsSpecialType(keyCode, type); in HWTEST_F()
58 keyCode = -1; in HWTEST_F()
59 result = OHOS::MMI::IsSpecialType(keyCode, type); in HWTEST_F()
193 * @tc.desc: Test keyCode is not in SPECIAL_KEYS
200 int32_t keyCode in HWTEST_F() local
214 int32_t keyCode = 16; HWTEST_F() local
228 int32_t keyCode = 0; HWTEST_F() local
[all...]
/foundation/multimodalinput/input/service/key_event_normalize/include/
H A Dkey_unicode_transformation.h23 uint32_t KeyCodeToUnicode(int32_t keyCode, std::shared_ptr<KeyEvent> keyEvent);

Completed in 25 milliseconds

123456