/base/powermgr/power_manager/test/unittest/src/ |
D | power_mgr_service_native_test.cpp | 90 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/ |
D | key_event_util.cpp | 29 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/ |
D | key_event_util.h | 25 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/ |
D | input_event_callback.cpp | 34 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/ |
D | sendkeyevent_fuzzer.cpp | 111 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/ |
D | js_keyboard_delegate_setting.h | 44 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
|
D | js_keyboard_delegate_setting.cpp | 271 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/ |
D | input_data_channel_proxy.cpp | 83 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/ |
D | input_method_editor_test.cpp | 54 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/ |
D | keyboard_listener.h | 26 virtual bool OnKeyEvent(int32_t keyCode, int32_t keyStatus) = 0;
|
/base/web/webview/ohos_adapter/multimodalinput_adapter/src/ |
D | mmi_adapter_impl.cpp | 75 const char* MMIAdapterImpl::KeyCodeToString(int32_t keyCode) in KeyCodeToString() argument 77 return MMI::KeyEvent::KeyCodeToString(keyCode); in KeyCodeToString()
|
/base/inputmethod/imf/test/common/src/ |
D | text_listener.cpp | 117 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/ |
D | wakeup_controller.cpp | 240 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/ |
D | js_get_input_method_textchange_listener.h | 38 void HandleSelect(int32_t keyCode, int32_t cursorMoveSkip) override {} in HandleSelect() argument
|
/base/inputmethod/imf/frameworks/native/inputmethod_controller/include/ |
D | i_input_data_channel.h | 60 virtual int32_t MoveCursor(int32_t keyCode) = 0;
|
D | input_data_channel_proxy.h | 45 int32_t MoveCursor(int32_t keyCode) override;
|
D | input_data_channel_stub.h | 49 int32_t MoveCursor(int32_t keyCode) override;
|
/base/web/webview/ohos_adapter/interfaces/ |
D | mmi_adapter.h | 61 virtual const char* KeyCodeToString(int32_t keyCode) = 0;
|
D | imf_adapter.h | 112 virtual void HandleSelect(int32_t keyCode, int32_t cursorMoveSkip) = 0;
|
/base/inputmethod/imf/test/common/include/ |
D | text_listener.h | 43 void HandleSelect(int32_t keyCode, int32_t cursorMoveSkip) override;
|
/base/startup/init/services/begetctl/shell/ |
D | shell_bas.h | 75 uint8_t keyCode; member
|
/base/web/webview/ohos_adapter/inputmethodframework_adapter/include/ |
D | imf_adapter_impl.h | 49 void HandleSelect(int32_t keyCode, int32_t cursorMoveSkip) override;
|
/base/powermgr/power_manager/services/native/src/ |
D | power_mgr_service.cpp | 297 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/ |
D | mmi_adapter_impl.h | 61 const char* KeyCodeToString(int32_t keyCode) override;
|
/base/web/webview/ohos_adapter/inputmethodframework_adapter/src/ |
D | imf_adapter_impl.cpp | 158 void IMFTextListenerAdapterImpl::HandleSelect(int32_t keyCode, int32_t cursorMoveSkip) in HandleSelect() argument 161 listener_->HandleSelect(keyCode, cursorMoveSkip); in HandleSelect()
|