Home
last modified time | relevance | path

Searched refs:keyCode (Results 1 – 25 of 40) sorted by relevance

12

/base/powermgr/power_manager/test/unittest/src/
Dpower_mgr_service_native_test.cpp90 int32_t keyCode = OHOS::MMI::KeyEvent::KEYCODE_F1; variable
91 g_pmsTest->HandleKeyEvent(keyCode);
111 int32_t keyCode = OHOS::MMI::KeyEvent::KEYCODE_F1; variable
112 g_pmsTest->HandleKeyEvent(keyCode);
113 keyCode = OHOS::MMI::KeyEvent::KEYCODE_F2;
114 g_pmsTest->HandleKeyEvent(keyCode);
115 keyCode = OHOS::MMI::KeyEvent::KEYCODE_VIRTUAL_MULTITASK;
116 g_pmsTest->HandleKeyEvent(keyCode);
117 keyCode = OHOS::MMI::KeyEvent::KEYCODE_WEAR_1;
118 g_pmsTest->HandleKeyEvent(keyCode);
/base/inputmethod/imf/test/unittest/cpp_test/common/src/
Dkey_event_util.cpp29 bool KeyEventUtil::SimulateKeyEvent(int32_t keyCode) in SimulateKeyEvent() argument
31 auto keyDown = CreateKeyEvent(keyCode, MMI::KeyEvent::KEY_ACTION_DOWN); in SimulateKeyEvent()
32 auto keyUp = CreateKeyEvent(keyCode, MMI::KeyEvent::KEY_ACTION_UP); in SimulateKeyEvent()
34 IMSA_HILOGE("failed to create key event: %{public}d", keyCode); in SimulateKeyEvent()
71 std::shared_ptr<MMI::KeyEvent> KeyEventUtil::CreateKeyEvent(int32_t keyCode, int32_t keyAction) in CreateKeyEvent() argument
76 keyItem.SetKeyCode(keyCode); in CreateKeyEvent()
82 keyEvent->SetKeyCode(keyCode); in CreateKeyEvent()
/base/inputmethod/imf/test/unittest/cpp_test/common/include/
Dkey_event_util.h25 static bool SimulateKeyEvent(int32_t keyCode);
27 static std::shared_ptr<MMI::KeyEvent> CreateKeyEvent(int32_t keyCode, int32_t keyAction);
/base/inputmethod/imf/services/adapter/keyboard/src/
Dinput_event_callback.cpp34 auto keyCode = keyEvent->GetKeyCode(); in OnInputEvent() local
36 auto currKey = MASK_MAP.find(keyCode); in OnInputEvent()
46 if (keyCode == MMI::KeyEvent::KEYCODE_CAPS_LOCK) { in OnInputEvent()
/base/web/webview/test/fuzztest/sendkeyevent_fuzzer/
Dsendkeyevent_fuzzer.cpp111 int32_t keyCode; in DoSomethingInterestingWithMyAPI() local
113 if (memcpy_s(&keyCode, sizeof(int32_t), data, sizeof(int32_t)) != 0) { in DoSomethingInterestingWithMyAPI()
119 g_nweb->SendKeyEvent(keyCode, keyAction); in DoSomethingInterestingWithMyAPI()
/base/inputmethod/imf/frameworks/js/napi/inputmethodability/
Djs_keyboard_delegate_setting.h44 bool OnKeyEvent(int32_t keyCode, int32_t keyStatus) override;
52 static napi_value GetResultOnKeyEvent(napi_env env, int32_t keyCode, int32_t keyStatus);
75 int32_t keyCode = 0; member
Djs_keyboard_delegate_setting.cpp271 napi_value JsKeyboardDelegateSetting::GetResultOnKeyEvent(napi_env env, int32_t keyCode, int32_t ke… in GetResultOnKeyEvent() argument
277 napi_create_int32(env, keyCode, &jsKeyCode); in GetResultOnKeyEvent()
335 bool JsKeyboardDelegateSetting::OnKeyEvent(int32_t keyCode, int32_t keyStatus) in OnKeyEvent() argument
338 KeyEventPara para{ keyCode, keyStatus, false }; in OnKeyEvent()
342 entry.keyEventPara = { para.keyCode, para.keyStatus, para.isOnKeyEvent }; in OnKeyEvent()
364 … GetResultOnKeyEvent(env, entry->keyEventPara.keyCode, entry->keyEventPara.keyStatus); in OnKeyEvent()
/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/
Dinput_data_channel_proxy.cpp83 int32_t InputDataChannelProxy::MoveCursor(int32_t keyCode) in MoveCursor() argument
87 … MOVE_CURSOR, [keyCode](MessageParcel &parcel) { return ITypesUtil::Marshal(parcel, keyCode); }); in MoveCursor()
/base/inputmethod/imf/test/unittest/cpp_test/src/
Dinput_method_editor_test.cpp54 bool OnKeyEvent(int32_t keyCode, int32_t keyStatus) override;
64 bool KeyboardListenerImpl::OnKeyEvent(int32_t keyCode, int32_t keyStatus) in OnKeyEvent() argument
66 IMSA_HILOGD("KeyboardListenerImpl::OnKeyEvent %{public}d %{public}d", keyCode, keyStatus); in OnKeyEvent()
67 keyCode_ = keyCode; in OnKeyEvent()
130 constexpr int32_t keyCode = 2001; in SetUpTestCase() local
132 keyEvent_->SetKeyCode(keyCode); in SetUpTestCase()
/base/inputmethod/imf/frameworks/native/inputmethod_ability/include/
Dkeyboard_listener.h26 virtual bool OnKeyEvent(int32_t keyCode, int32_t keyStatus) = 0;
/base/web/webview/ohos_adapter/multimodalinput_adapter/src/
Dmmi_adapter_impl.cpp75 const char* MMIAdapterImpl::KeyCodeToString(int32_t keyCode) in KeyCodeToString() argument
77 return MMI::KeyEvent::KeyCodeToString(keyCode); in KeyCodeToString()
/base/inputmethod/imf/test/common/src/
Dtext_listener.cpp117 void TextListener::HandleSelect(int32_t keyCode, int32_t cursorMoveSkip) in HandleSelect() argument
119 selectionDirection_ = keyCode; in HandleSelect()
/base/powermgr/power_manager/services/native/src/wakeup/
Dwakeup_controller.cpp240 int32_t keyCode = keyEvent->GetKeyCode(); in OnInputEvent() local
242 if (keyCode == KeyEvent::KEYCODE_F1) { in OnInputEvent()
246 if (keyCode >= KeyEvent::KEYCODE_0 && keyCode <= KeyEvent::KEYCODE_NUMPAD_RIGHT_PAREN) { in OnInputEvent()
253 …_HILOGI(FEATURE_WAKEUP, "KeyEvent wakeupType=%{public}u, keyCode=%{public}d", wakeupType, keyCode); in OnInputEvent()
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/
Djs_get_input_method_textchange_listener.h38 void HandleSelect(int32_t keyCode, int32_t cursorMoveSkip) override {} in HandleSelect() argument
/base/inputmethod/imf/frameworks/native/inputmethod_controller/include/
Di_input_data_channel.h60 virtual int32_t MoveCursor(int32_t keyCode) = 0;
Dinput_data_channel_proxy.h45 int32_t MoveCursor(int32_t keyCode) override;
Dinput_data_channel_stub.h49 int32_t MoveCursor(int32_t keyCode) override;
/base/web/webview/ohos_adapter/interfaces/
Dmmi_adapter.h61 virtual const char* KeyCodeToString(int32_t keyCode) = 0;
Dimf_adapter.h112 virtual void HandleSelect(int32_t keyCode, int32_t cursorMoveSkip) = 0;
/base/inputmethod/imf/test/common/include/
Dtext_listener.h43 void HandleSelect(int32_t keyCode, int32_t cursorMoveSkip) override;
/base/startup/init/services/begetctl/shell/
Dshell_bas.h75 uint8_t keyCode; member
/base/web/webview/ohos_adapter/inputmethodframework_adapter/include/
Dimf_adapter_impl.h49 void HandleSelect(int32_t keyCode, int32_t cursorMoveSkip) override;
/base/powermgr/power_manager/services/native/src/
Dpower_mgr_service.cpp297 void PowerMgrService::HandleKeyEvent(int32_t keyCode) in HandleKeyEvent() argument
299 POWER_HILOGD(FEATURE_INPUT, "keyCode: %{public}d", keyCode); in HandleKeyEvent()
304 if (keyCode == KeyEvent::KEYCODE_F1) { in HandleKeyEvent()
307 reason.append(std::to_string(keyCode)); in HandleKeyEvent()
309 … } else if (keyCode >= KeyEvent::KEYCODE_0 && keyCode <= KeyEvent::KEYCODE_NUMPAD_RIGHT_PAREN) { in HandleKeyEvent()
312 reason.append(std::to_string(keyCode)); in HandleKeyEvent()
/base/web/webview/ohos_adapter/multimodalinput_adapter/include/
Dmmi_adapter_impl.h61 const char* KeyCodeToString(int32_t keyCode) override;
/base/web/webview/ohos_adapter/inputmethodframework_adapter/src/
Dimf_adapter_impl.cpp158 void IMFTextListenerAdapterImpl::HandleSelect(int32_t keyCode, int32_t cursorMoveSkip) in HandleSelect() argument
161 listener_->HandleSelect(keyCode, cursorMoveSkip); in HandleSelect()

12