/foundation/multimodalinput/input/test/unittest/interfaces/kits/ |
H A D | input_native_hotkey_test.cpp | 91 static void Input_HotkeyCallback(struct Input_Hotkey *hotkey) in Input_HotkeyCallback() argument 105 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); in HWTEST_F() local 106 ASSERT_NE(hotkey, nullptr); in HWTEST_F() 109 OH_Input_SetPreKeys(hotkey, prekeys, 1); in HWTEST_F() 110 OH_Input_SetFinalKey(hotkey, KEYCODE_Z); in HWTEST_F() 111 OH_Input_SetRepeat(hotkey, false); in HWTEST_F() 112 int32_t ret = OH_Input_RemoveHotkeyMonitor(hotkey, Input_HotkeyCallback); in HWTEST_F() 114 ret = OH_Input_AddHotkeyMonitor(hotkey, Input_HotkeyCallback); in HWTEST_F() 116 OH_Input_RemoveHotkeyMonitor(hotkey, Input_HotkeyCallback); in HWTEST_F() 117 OH_Input_DestroyHotkey(&hotkey); in HWTEST_F() 130 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 153 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 176 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 199 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 222 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 250 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 273 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 296 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 319 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 342 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 365 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 387 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 409 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 431 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 453 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 475 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 497 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 519 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 554 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 599 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local 622 Input_Hotkey *hotkey = OH_Input_CreateHotkey(); HWTEST_F() local [all...] |
H A D | input_native_test.cpp | 1744 Input_Hotkey **hotkey = OH_Input_CreateAllSystemHotkeys(count); in HWTEST_F() local 1745 ASSERT_NE(hotkey, nullptr); in HWTEST_F() 1746 ret = OH_Input_GetAllSystemHotkeys(hotkey, &count); in HWTEST_F() 1748 OH_Input_DestroyAllSystemHotkeys(hotkey, count); in HWTEST_F() 1759 Input_Hotkey *hotkey { nullptr }; in HWTEST_F() 1760 Input_Result ret = OH_Input_GetAllSystemHotkeys(&hotkey, nullptr); in HWTEST_F() 1773 Input_Hotkey **hotkey = OH_Input_CreateAllSystemHotkeys(count); in HWTEST_F() local 1774 EXPECT_EQ(hotkey, nullptr); in HWTEST_F()
|
/foundation/multimodalinput/input/interfaces/kits/c/input/ |
H A D | oh_input_manager.h | 295 typedef void (*Input_HotkeyCallback)(Input_Hotkey* hotkey); 1291 * @param hotkey Hot key object. 1295 void OH_Input_DestroyHotkey(Input_Hotkey **hotkey); 1300 * @param hotkey Hotkey key object. 1306 void OH_Input_SetPreKeys(Input_Hotkey *hotkey, int32_t *preKeys, int32_t size); 1311 * @param hotkey Hotkey key object. 1316 * {@link INPUT_PARAMETER_ERROR} The hotkey is NULL or the pressedKeys is NULL or the pressedKeyCount 1321 Input_Result OH_Input_GetPreKeys(const Input_Hotkey *hotkey, int32_t **preKeys, int32_t *preKeyCount); 1326 * @param hotkey Hotkey key object. 1331 void OH_Input_SetFinalKey(Input_Hotkey *hotkey, int32_ [all...] |
/foundation/multimodalinput/input/frameworks/native/input/ |
H A D | oh_input_manager.cpp | 1727 Input_Result OH_Input_GetAllSystemHotkeys(Input_Hotkey **hotkey, int32_t *count) in OH_Input_GetAllSystemHotkeys() argument 1741 if (hotkey == nullptr) { in OH_Input_GetAllSystemHotkeys() 1751 if (hotkey[i] == nullptr) { in OH_Input_GetAllSystemHotkeys() 1752 MMI_HILOGE("hotkey is null, i:%{public}d", i); in OH_Input_GetAllSystemHotkeys() 1755 hotkey[i]->preKeys = keyOptions[i]->GetPreKeys(); in OH_Input_GetAllSystemHotkeys() 1756 hotkey[i]->finalKey = keyOptions[i]->GetFinalKey(); in OH_Input_GetAllSystemHotkeys() 1764 Input_Hotkey* hotkey = new (std::nothrow) Input_Hotkey(); in OH_Input_CreateHotkey() local 1765 if (hotkey == nullptr) { in OH_Input_CreateHotkey() 1766 MMI_HILOGE("hotkey is null"); in OH_Input_CreateHotkey() 1769 return hotkey; in OH_Input_CreateHotkey() 1772 OH_Input_DestroyHotkey(Input_Hotkey **hotkey) OH_Input_DestroyHotkey() argument 1781 OH_Input_SetPreKeys(Input_Hotkey *hotkey, int32_t *preKeys, int32_t size) OH_Input_SetPreKeys() argument 1797 OH_Input_GetPreKeys(const Input_Hotkey *hotkey, int32_t **preKeys, int32_t *preKeyCount) OH_Input_GetPreKeys() argument 1817 OH_Input_SetFinalKey(Input_Hotkey *hotkey, int32_t finalKey) OH_Input_SetFinalKey() argument 1825 OH_Input_GetFinalKey(const Input_Hotkey *hotkey, int32_t *finalKeyCode) OH_Input_GetFinalKey() argument 1834 OH_Input_SetRepeat(Input_Hotkey* hotkey, bool isRepeat) OH_Input_SetRepeat() argument 1841 OH_Input_GetRepeat(const Input_Hotkey* hotkey, bool *isRepeat) OH_Input_GetRepeat() argument 1875 MakeHotkeyInfo(const Input_Hotkey* hotkey, Input_HotkeyInfo* hotkeyInfo, std::shared_ptr<OHOS::MMI::KeyOption> keyOption) MakeHotkeyInfo() argument 2016 Input_Hotkey hotkey; OnNotifyCallbackWorkResult() local 2041 OH_Input_AddHotkeyMonitor(const Input_Hotkey* hotkey, Input_HotkeyCallback callback) OH_Input_AddHotkeyMonitor() argument 2137 OH_Input_RemoveHotkeyMonitor(const Input_Hotkey *hotkey, Input_HotkeyCallback callback) OH_Input_RemoveHotkeyMonitor() argument [all...] |
/foundation/multimodalinput/input/service/subscriber/src/ |
H A D | key_shortcut_manager.cpp | 911 MMI_HILOGI("Config of hotkey:%{public}s", cfgPath); in LoadHotkeys() 933 MMI_HILOGE("Read hotkey failed"); in ReadHotkeys() 972 SystemHotkey hotkey { in AddHotkey() 976 for (const auto &item : hotkey.preKeys) { in AddHotkey() 983 if (IsModifier(hotkey.finalKey)) { in AddHotkey() 987 hotkeys_.emplace(hotkey); in AddHotkey()
|