/foundation/multimodalinput/input/service/subscriber/src/ |
H A D | key_shortcut_manager.cpp | 59 return (finalKey < other.finalKey); in operator <() 64 if (finalKey != other.finalKey) { in operator <() 65 return (finalKey < other.finalKey); in operator <() 78 if (finalKey != other.finalKey) { in operator <() 79 return (finalKey < other.finalKey); in operator <() 270 int32_t finalKey = static_cast<int32_t>(cJSON_GetNumberValue(jsonFinalKey)); ReadSystemKey() local 274 AddSystemKey(const std::set<int32_t> &preKeys, int32_t finalKey) AddSystemKey() argument 966 int32_t finalKey = static_cast<int32_t>(cJSON_GetNumberValue(jsonFinalKey)); ReadHotkey() local 970 AddHotkey(const std::set<int32_t> &preKeys, int32_t finalKey) AddHotkey() argument [all...] |
H A D | key_subscriber_handler.cpp | 124 MMI_HILOGI("SubscribeId:%{public}d, finalKey:%{private}d," in SubscribeKeyEvent() 174 MMI_HILOGI("SubscribeId:%{public}d, finalKey:%{private}d, isFinalKeyDown:%{public}s," in RemoveSubscriber() 226 MMI_HILOGI("SubscribeId:%{public}d, finalKey:%{private}d, isFinalKeyDown:%{public}s," in RemoveKeyGestureSubscriber() 242 .finalKey = option->GetFinalKey(), in RegisterSystemKey() 257 .finalKey = option->GetFinalKey(), in RegisterHotKey() 298 MMI_HILOGI("SubscribeId:%{public}d, finalKey:%{private}d," in SubscribeHotkey() 633 MMI_HILOGI("SubscribeId:%{public}d, finalKey:%{private}d, isFinalKeyDown:%{public}s," in OnSessionDelete() 1062 MMI_HILOGD("keyOption->finalKey:%{private}d, keyOption->isFinalKeyDown:%{public}s, " in IsKeyEventSubscribed() 1165 MMI_HILOGD("keyOption->finalKey:%{private}d,keyOption->isFinalKeyDown:%{public}s, " in PrintKeyOption() 1178 MMI_HILOGD("subscribeId:%{public}d, keyOption->finalKey in PrintKeyUpLog() [all...] |
/foundation/multimodalinput/input/service/subscriber/include/ |
H A D | key_shortcut_manager.h | 59 int32_t finalKey; member 68 int32_t finalKey; member 98 int32_t finalKey; member 105 int32_t finalKey; member 114 int32_t finalKey; member 123 int32_t finalKey; member 131 int32_t AddSystemKey(const std::set<int32_t> &preKeys, int32_t finalKey); 163 int32_t AddHotkey(const std::set<int32_t> &preKeys, int32_t finalKey);
|
/foundation/multimodalinput/input/service/subscriber/test/src/ |
H A D | key_shortcut_manager_test.cpp | 69 .finalKey = KeyShortcutManager::SHORTCUT_PURE_MODIFIERS, in HWTEST_F() 88 .finalKey = KeyEvent::KEYCODE_S, in HWTEST_F() 107 .finalKey = KeyEvent::KEYCODE_BACKSLASH, in HWTEST_F() 125 .finalKey = KeyEvent::KEYCODE_A, in HWTEST_F() 143 .finalKey = KeyShortcutManager::SHORTCUT_PURE_MODIFIERS, in HWTEST_F() 161 .finalKey = KeyShortcutManager::SHORTCUT_PURE_MODIFIERS, in HWTEST_F() 179 .finalKey = KeyEvent::KEYCODE_S, in HWTEST_F() 197 .finalKey = KeyEvent::KEYCODE_D, in HWTEST_F() 216 .finalKey = KeyEvent::KEYCODE_D, in HWTEST_F() 237 .finalKey in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/test/mock/adapter/ |
H A D | mock_input_manager.cpp | 24 int32_t finalKey = static_cast<int32_t>(KeyCode::KEY_F4); in GetSystemHotkeys() local 25 hotkeys.push_back({ prekeys, finalKey }); in GetSystemHotkeys()
|
/foundation/barrierfree/accessibility/services/aams/src/ |
H A D | accessibility_short_key.cpp | 37 void AccessibilityShortKey::SubscribeShortKey(std::set<int32_t> preKeys, int32_t finalKey, int32_t holdTime) in SubscribeShortKey() argument 41 keyOption->SetFinalKey(finalKey); in SubscribeShortKey() 50 HILOG_ERROR("Subscribe key event failed, finalKey: %{public}d id: %{public}d", finalKey, subscribeId); in SubscribeShortKey()
|
/foundation/multimodalinput/input/test/fuzztest/subscribekeyevent_fuzzer/ |
H A D | subscribekeyevent_fuzzer.cpp | 73 int32_t finalKey; in SubscribeKeyEventFuzzTest() local 74 startPos += GetObject<int32_t>(finalKey, data + startPos, size - startPos); in SubscribeKeyEventFuzzTest() 75 keyOption->SetFinalKey(finalKey); in SubscribeKeyEventFuzzTest()
|
/foundation/barrierfree/accessibility/services/aams/test/mock/src/ |
H A D | mock_accessibility_short_key.cpp | 34 void AccessibilityShortKey::SubscribeShortKey(std::set<int32_t> preKeys, int32_t finalKey, int32_t holdTime) in SubscribeShortKey() argument 38 (void)finalKey; in SubscribeShortKey()
|
/foundation/barrierfree/accessibility/services/test/moduletest/mock/src/ |
H A D | mock_mt_accessibility_short_key.cpp | 34 void MockAccessibilityShortKey::SubscribeShortKey(std::set<int32_t> preKeys, int32_t finalKey, int32_t holdTime) in SubscribeShortKey() argument 38 (void)finalKey; in SubscribeShortKey()
|
/foundation/multimodalinput/input/frameworks/napi/input_consumer/src/ |
H A D | js_register_module.cpp | 125 std::optional<int32_t> finalKeyOption = GetNamedPropertyInt32(env, argv[1], "finalKey"); in GetHotkeyEventInfo() 130 int32_t finalKey = finalKeyOption.value(); in GetHotkeyEventInfo() local 131 if (finalKey < 0) { in GetHotkeyEventInfo() 132 MMI_HILOGE("FinalKey:%{private}d is less 0, can not process", finalKey); in GetHotkeyEventInfo() 136 auto it = std::find(finalKeyCodes.begin(), finalKeyCodes.end(), finalKey); in GetHotkeyEventInfo() 142 subKeyNames += std::to_string(finalKey); in GetHotkeyEventInfo() 144 keyOption->SetFinalKey(finalKey); in GetHotkeyEventInfo() 145 MMI_HILOGD("FinalKey:%{private}d", finalKey); in GetHotkeyEventInfo() 205 std::optional<int32_t> tempFinalKey = GetNamedPropertyInt32(env, argv[1], "finalKey"); in GetEventInfoAPI9() 210 int32_t finalKey in GetEventInfoAPI9() local [all...] |
/foundation/multimodalinput/input/frameworks/proxy/events/src/ |
H A D | key_option.cpp | 44 void KeyOption::SetFinalKey(int32_t finalKey) in SetFinalKey() argument 46 finalKey_ = finalKey; in SetFinalKey()
|
H A D | input_manager_util.cpp | 122 const std::set<int32_t> &preKeys, int32_t finalKey, bool isFinalKeyDown, int32_t duration) in InitOption() 126 keyOption->SetFinalKey(finalKey); in InitOption() 121 InitOption( const std::set<int32_t> &preKeys, int32_t finalKey, bool isFinalKeyDown, int32_t duration) InitOption() argument
|
/foundation/barrierfree/accessibility/services/aams/include/ |
H A D | accessibility_short_key.h | 33 void SubscribeShortKey(std::set<int32_t> preKeys, int32_t finalKey, int32_t holdTime);
|
/foundation/multimodalinput/input/interfaces/native/innerkits/event/include/ |
H A D | key_option.h | 56 * @param finalKey Indicates the final key. 60 void SetFinalKey(int32_t finalKey);
|
/foundation/multimodalinput/input/service/key_command/src/ |
H A D | key_command_handler_util.cpp | 131 cJSON *finalKey = cJSON_GetObjectItemCaseSensitive(jsonData, "finalKey"); in GetKeyFinalKey() local 132 if (!cJSON_IsNumber(finalKey)) { in GetKeyFinalKey() 133 MMI_HILOGE("finalKey must be number"); in GetKeyFinalKey() 136 finalKeyInt = finalKey->valueint; in GetKeyFinalKey() 254 if (!GetKeyFinalKey(jsonData, shortcutKey.finalKey)) { in ConvertToShortcutKey() 255 MMI_HILOGE("Get finalKey failed"); in ConvertToShortcutKey() 563 ss << key.finalKey << ","; in GenerateKey() 575 .finalKey = shortcutKey.finalKey, in RegisterSystemKey() [all...] |
H A D | key_command_handler.cpp | 1053 MMI_HILOGI("finalKey:%d, keyDownDuration:%{public}d, triggerType:%{public}d," in Print() 1054 " bundleName:%{public}s, abilityName:%{public}s", shortcutKey.finalKey, in Print() 1640 MMI_HILOGD("Repeat, current key %{public}d has launched ability", currentLaunchAbilityKey_.finalKey); in HandleShortKeys() 1642 MMI_HILOGD("Repeat, current key %d has launched ability", currentLaunchAbilityKey_.finalKey); in HandleShortKeys() 1687 if (currentLaunchAbilityKey_.finalKey == keyEvent->GetKeyCode() in MatchShortcutKeys() 1729 if (currentLaunchAbilityKey_.finalKey == keyEvent->GetKeyCode() in HandleConsumedKeyEvent() 1978 if ((key->GetKeyCode() != shortcutKey.finalKey) || (shortcutKey.triggerType != key->GetKeyAction())) { in IsKeyMatch() 2032 if (InputHandler->GetSubscriberHandler()->IsKeyEventSubscribed(shortcutKey.finalKey, shortcutKey.triggerType)) { in HandleKeyDown() 2033 MMI_HILOGI("current shortcutKey %d is subSubcribed", shortcutKey.finalKey); in HandleKeyDown() 2190 MMI_HILOGI("Eventkey matched, finalKey in Print() [all...] |
/foundation/multimodalinput/input/frameworks/native/input/ |
H A D | oh_input_manager.cpp | 85 int32_t finalKey { -1 }; 1756 hotkey[i]->finalKey = keyOptions[i]->GetFinalKey(); in OH_Input_GetAllSystemHotkeys() 1817 void OH_Input_SetFinalKey(Input_Hotkey *hotkey, int32_t finalKey) in OH_Input_SetFinalKey() argument 1821 hotkey->finalKey = finalKey; in OH_Input_SetFinalKey() 1830 *finalKeyCode = hotkey->finalKey; in OH_Input_GetFinalKey() 1850 std::string GetHotkeyName(std::set<int32_t> preKeys, int32_t finalKey, bool isRepeat, in GetHotkeyName() argument 1856 keyOption->SetFinalKey(finalKey); in GetHotkeyName() 1865 hotkeyName += std::to_string(finalKey); in GetHotkeyName() 1900 int32_t finalKey in MakeHotkeyInfo() local [all...] |
/foundation/multimodalinput/input/service/key_command/include/ |
H A D | key_command_handler.h | 79 int32_t finalKey { -1 }; 263 lastMatchedKey_.finalKey = -1; in ResetLastMatchedKey() 270 currentLaunchAbilityKey_.finalKey = -1; in ResetCurrentLaunchAbilityKey()
|
/foundation/multimodalinput/input/frameworks/proxy/events/include/ |
H A D | input_manager_util.h | 35 const std::set<int32_t> &preKeys, int32_t finalKey, bool isFinalKeyDown, int32_t duration);
|
/foundation/multimodalinput/input/service/key_command/test/ |
H A D | key_command_handler_test.cpp | 414 shortcutKey.finalKey = -1; in HWTEST_F() 747 shortcutKey.finalKey = -1; in HWTEST_F() 766 shortcutKey.finalKey = -1; in HWTEST_F() 810 key1.finalKey = -1; in HWTEST_F() 964 key.finalKey = 6; in HWTEST_F() 975 handler.currentLaunchAbilityKey_.finalKey = 4; in HWTEST_F() 1239 shortcutKey.finalKey = 2076; 2614 shortcutKey.finalKey = 2019; 2635 shortcutKey.finalKey = 2019; 2780 shortcutKey.finalKey [all...] |
/foundation/multimodalinput/input/interfaces/kits/c/input/ |
H A D | oh_input_manager.h | 1327 * @param finalKey Modified key. Only one modified key is supported. 1331 void OH_Input_SetFinalKey(Input_Hotkey *hotkey, int32_t finalKey);
|