Home
last modified time | relevance | path

Searched refs:shortcut (Results 1 - 12 of 12) sorted by relevance

/foundation/multimodalinput/input/service/subscriber/src/
H A Dkey_shortcut_manager.cpp104 KeyShortcut shortcut {}; in RegisterSystemKey()
112 if (!CheckSystemKey(key, shortcut)) { in RegisterSystemKey()
124 if (!IsReservedSystemKey(shortcut)) { in RegisterSystemKey()
135 auto [iter, _] = shortcuts_.emplace(GenerateId(), shortcut); in RegisterSystemKey()
137 iter->first, shortcut.modifiers, shortcut.finalKey, shortcut.longPressTime, in RegisterSystemKey()
138 shortcut.triggerType, shortcut.session); in RegisterSystemKey()
161 MMI_HILOGE("Not global shortcut ke in RegisterHotKey()
599 KeyShortcut &shortcut = item.second; HandleKeyDown() local
626 KeyShortcut &shortcut = item.second; HandleKeyUp() local
687 TriggerDown( std::shared_ptr<KeyEvent> keyEvent, int32_t shortcutId, const KeyShortcut &shortcut) TriggerDown() argument
733 TriggerUp( std::shared_ptr<KeyEvent> keyEvent, int32_t shortcutId, const KeyShortcut &shortcut) TriggerUp() argument
817 MarkShortcutConsumed(const ShortcutKey &shortcut) MarkShortcutConsumed() argument
829 MarkShortcutConsumed(const KeyOption &shortcut) MarkShortcutConsumed() argument
[all...]
/foundation/multimodalinput/input/service/subscriber/test/src/
H A Dkey_shortcut_manager_test.cpp60 * @tc.desc: We can register system shortcut key that consist of modifiers only.
78 * @tc.desc: We can register system shortcut key that consist of modifiers and
97 * @tc.desc: We can register system shortcut key that consist of modifiers and
116 * @tc.desc: We can register system shortcut key that consist of modifiers and
134 * @tc.desc: Only 'LOGO' can be single-key shortcut.
152 * @tc.desc: Only 'LOGO' can be single-key shortcut.
227 * @tc.desc: Global shortcut key that consist of modifiers and single non-modifier key,
246 * @tc.desc: Global shortcut key that consist of modifiers and single non-modifier key,
265 * @tc.desc: Global shortcut key that consist of modifiers and single non-modifier key,
283 * @tc.desc: 'LOGO' can not be modifier of Global shortcut ke
995 ShortcutKey shortcut; HWTEST_F() local
1021 KeyOption shortcut; HWTEST_F() local
1077 KeyShortcutManager::KeyShortcut shortcut; HWTEST_F() local
1097 KeyShortcutManager::KeyShortcut shortcut; HWTEST_F() local
1122 KeyShortcutManager::KeyShortcut shortcut; HWTEST_F() local
1142 KeyShortcutManager::KeyShortcut shortcut; HWTEST_F() local
1198 KeyShortcutManager::KeyShortcut shortcut; HWTEST_F() local
1220 KeyShortcutManager::KeyShortcut shortcut; HWTEST_F() local
1244 KeyShortcutManager::KeyShortcut shortcut; HWTEST_F() local
[all...]
/foundation/multimodalinput/input/service/subscriber/include/
H A Dkey_shortcut_manager.h90 void MarkShortcutConsumed(const ShortcutKey &shortcut);
91 void MarkShortcutConsumed(const KeyOption &shortcut);
140 bool CheckSystemKey(const SystemShortcutKey &key, KeyShortcut &shortcut) const;
142 bool IsReservedSystemKey(const KeyShortcut &shortcut) const;
143 bool CheckGlobalKey(const HotKey &key, KeyShortcut &shortcut) const;
150 bool CheckCombination(std::shared_ptr<KeyEvent> keyEvent, const KeyShortcut &shortcut) const;
151 bool CheckPureModifiers(std::shared_ptr<KeyEvent> keyEvent, const KeyShortcut &shortcut) const;
152 bool CheckModifiers(std::shared_ptr<KeyEvent> keyEvent, const KeyShortcut &shortcut) const;
153 void TriggerDown(std::shared_ptr<KeyEvent> keyEvent, int32_t shortcutId, const KeyShortcut &shortcut);
155 void TriggerUp(std::shared_ptr<KeyEvent> keyEvent, int32_t shortcutId, const KeyShortcut &shortcut);
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dshortcut_info.cpp349 void from_json(const nlohmann::json &jsonObject, Shortcut &shortcut) in from_json() argument
356 shortcut.shortcutId, in from_json()
362 shortcut.icon, in from_json()
368 shortcut.iconId, in from_json()
376 shortcut.label, in from_json()
382 shortcut.labelId, in from_json()
390 shortcut.wants, in from_json()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_parser_test/
H A Dbms_bundle_parser_test.cpp103 "label": "$string:shortcut",
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_kit_service_test/
H A Dbms_bundle_kit_service_test.cpp617 ShortcutInfo shortcut = MockShortcutInfo(bundleName, SHORTCUT_TEST_ID); in AddInnerBundleInfoByTest() local
619 innerBundleInfo.InsertShortcutInfos(shortcutKey, shortcut); in AddInnerBundleInfoByTest()
621 ShortcutInfo shortcut = MockShortcutInfo(bundleName, SHORTCUT_DEMO_ID); in AddInnerBundleInfoByTest() local
623 innerBundleInfo.InsertShortcutInfos(shortcutKey, shortcut); in AddInnerBundleInfoByTest()
858 Shortcut shortcut; in MockShortcut() local
859 shortcut.shortcutId = SHORTCUT_TEST_ID; in MockShortcut()
860 shortcut.icon = SHORTCUT_ICON; in MockShortcut()
861 shortcut.iconId = ICON_ID; in MockShortcut()
862 shortcut.label = SHORTCUT_LABEL; in MockShortcut()
863 shortcut in MockShortcut()
10714 Shortcut shortcut; HWTEST_F() local
10730 Shortcut shortcut; HWTEST_F() local
10745 Shortcut shortcut = shortcutJson.shortcuts.front(); HWTEST_F() local
13003 Shortcut shortcut; HWTEST_F() local
13033 Shortcut shortcut; HWTEST_F() local
13061 Shortcut shortcut; HWTEST_F() local
[all...]
H A Dbms_bundle_data_mgr_test.cpp515 ShortcutInfo shortcut = MockShortcutInfo(bundleName, SHORTCUT_TEST_ID); in AddInnerBundleInfoByTest() local
517 innerBundleInfo.InsertShortcutInfos(shortcutKey, shortcut); in AddInnerBundleInfoByTest()
519 ShortcutInfo shortcut = MockShortcutInfo(bundleName, SHORTCUT_DEMO_ID); in AddInnerBundleInfoByTest() local
521 innerBundleInfo.InsertShortcutInfos(shortcutKey, shortcut); in AddInnerBundleInfoByTest()
736 Shortcut shortcut; in MockShortcut() local
737 shortcut.shortcutId = SHORTCUT_TEST_ID; in MockShortcut()
738 shortcut.icon = SHORTCUT_ICON; in MockShortcut()
739 shortcut.iconId = ICON_ID; in MockShortcut()
740 shortcut.label = SHORTCUT_LABEL; in MockShortcut()
741 shortcut in MockShortcut()
[all...]
/foundation/bundlemanager/bundle_framework/test/benchmarktest/json_serializer_test/
H A Djson_serializer_test.cpp518 Shortcut shortcut; in BenchmarkTestForShortcutFromJson() local
521 from_json(jsonObject, shortcut); in BenchmarkTestForShortcutFromJson()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_profile.cpp1461 void from_json(const nlohmann::json &jsonObject, Shortcut &shortcut) in from_json() argument
1468 shortcut.shortcutId, in from_json()
1475 shortcut.label, in from_json()
1481 shortcut.icon, in from_json()
1487 shortcut.intents, in from_json()
1496 shortcut.labelId, in from_json()
1505 shortcut.iconId, in from_json()
H A Dinner_bundle_info.cpp2675 for (const auto &shortcut : shortcutInfos_) { in GetShortcutInfos()
2676 shortcutInfos.emplace_back(shortcut.second); in GetShortcutInfos()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
H A Djson_serializer.h136 void from_json(const nlohmann::json &jsonObject, Shortcut &shortcut);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dinner_bundle_info.h344 * @brief Add shortcut infos to old InnerBundleInfo object.
350 for (const auto &shortcut : shortcutInfos) { in AddModuleShortcutInfo()
351 shortcutInfos_.try_emplace(shortcut.first, shortcut.second); in AddModuleShortcutInfo()

Completed in 40 milliseconds