/base/web/webview/ohos_nweb/src/ |
D | nweb_input_event_consumer.cpp | 38 bool NWebInputEventConsumer::OnInputEvent(const std::shared_ptr<MMI::KeyEvent>& keyEvent) const in OnInputEvent() 40 if (keyEvent == nullptr) { in OnInputEvent() 44 DispatchKeyEvent(keyEvent); in OnInputEvent() 45 keyEvent->MarkProcessed(); in OnInputEvent() 102 void NWebInputEventConsumer::DispatchKeyEvent(std::shared_ptr<MMI::KeyEvent> keyEvent) const in DispatchKeyEvent() 109 if (keyEvent == nullptr) { in DispatchKeyEvent() 113 int32_t keyCode = keyEvent->GetKeyCode(); in DispatchKeyEvent()
|
/base/web/webview/test/unittest/ohos_nweb/ |
D | nweb_input_event_test.cpp | 96 std::shared_ptr<MMI::KeyEvent> keyEvent = MMI::KeyEvent::Create(); variable 97 EXPECT_NE(keyEvent, nullptr); 102 result = g_input->OnInputEvent(keyEvent); 120 result = input->OnInputEvent(keyEvent); 125 keyEvent->SetKeyCode(keyCode); 126 result = input->OnInputEvent(keyEvent); 129 keyEvent = nullptr; 131 input->DispatchKeyEvent(keyEvent); 135 result = input->OnInputEvent(keyEvent);
|
/base/web/webview/test/ohos_nweb/ |
D | nweb_input_event_consumer_test.cpp | 30 bool NWebInputEventConsumerTest::OnInputEvent(const std::shared_ptr<MMI::KeyEvent>& keyEvent) const in OnInputEvent() 32 DispatchKeyEvent(keyEvent); in OnInputEvent() 33 keyEvent->MarkProcessed(); in OnInputEvent() 90 void NWebInputEventConsumerTest::DispatchKeyEvent(std::shared_ptr<MMI::KeyEvent> keyEvent) const in DispatchKeyEvent() 97 if (keyEvent == nullptr) { in DispatchKeyEvent() 101 int32_t keyCode = keyEvent->GetKeyCode(); in DispatchKeyEvent()
|
D | nweb_input_event_consumer_test.h | 31 bool OnInputEvent(const std::shared_ptr<MMI::KeyEvent>& keyEvent) const override; 37 void DispatchKeyEvent(std::shared_ptr<MMI::KeyEvent> keyEvent) const;
|
/base/web/webview/test/unittest/mmi_adapter/ |
D | mmi_adapter_impl_test.cpp | 170 std::shared_ptr<MMI::KeyEvent> keyEvent = MMI::KeyEvent::Create(); variable 173 keyEvent->SetKeyAction(MMI::KeyEvent::KEY_ACTION_DOWN); 174 listenerAdapter.OnInputEvent(keyEvent); 178 keyEvent->SetKeyAction(MMI::KeyEvent::KEY_ACTION_UP); 179 listenerAdapter.OnInputEvent(keyEvent); 180 keyEvent->SetKeyAction(MMI::KeyEvent::KEY_ACTION_CANCEL); 181 listenerAdapter.OnInputEvent(keyEvent); 184 listenerAdapterImpl.OnInputEvent(keyEvent);
|
/base/web/webview/ohos_adapter/multimodalinput_adapter/src/ |
D | mmi_adapter_impl.cpp | 54 void MMIInputListenerAdapterImpl::OnInputEvent(std::shared_ptr<MMI::KeyEvent> keyEvent) const in OnInputEvent() 59 if (keyEvent->GetKeyAction() != MMI::KeyEvent::KEY_ACTION_DOWN && in OnInputEvent() 60 keyEvent->GetKeyAction() != MMI::KeyEvent::KEY_ACTION_UP) { in OnInputEvent() 63 …int32_t keyAction = (keyEvent->GetKeyAction() == MMI::KeyEvent::KEY_ACTION_DOWN) ? KEY_DOWN : KEY_… in OnInputEvent() 64 listener_(keyEvent->GetKeyCode(), keyAction); in OnInputEvent()
|
/base/inputmethod/imf/services/adapter/keyboard/src/ |
D | input_event_callback.cpp | 32 void InputEventCallback::OnInputEvent(std::shared_ptr<MMI::KeyEvent> keyEvent) const in OnInputEvent() 34 auto keyCode = keyEvent->GetKeyCode(); in OnInputEvent() 35 auto keyAction = keyEvent->GetKeyAction(); in OnInputEvent()
|
/base/web/webview/ohos_nweb/include/ |
D | nweb_input_event_consumer.h | 32 bool OnInputEvent(const std::shared_ptr<MMI::KeyEvent>& keyEvent) const override; 38 void DispatchKeyEvent(std::shared_ptr<MMI::KeyEvent> keyEvent) const;
|
/base/inputmethod/imf/unitest/src/ |
D | input_method_service_test.cpp | 124 std::shared_ptr<MMI::KeyEvent> keyEvent = MMI::KeyEvent::Create(); in SetKeyEvent() local 130 if (keyEvent != nullptr) { in SetKeyEvent() 131 keyEvent->SetKeyCode(keyCode); in SetKeyEvent() 132 keyEvent->SetKeyAction(keyAction); in SetKeyEvent() 133 keyEvent->AddPressedKeyItems(keyItem); in SetKeyEvent() 135 return keyEvent; in SetKeyEvent()
|
/base/web/webview/test/fuzztest/dispatchkeyevent_fuzzer/ |
D | dispatchkeyevent_fuzzer.cpp | 132 auto keyEvent = MMI::KeyEvent::Create(); in DoSomethingInterestingWithMyAPI() local 133 if (keyEvent == nullptr) { in DoSomethingInterestingWithMyAPI() 136 inputEvent.DispatchKeyEvent(keyEvent); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/oninputkeyevent_fuzzer/ |
D | oninputkeyevent_fuzzer.cpp | 130 auto keyEvent = MMI::KeyEvent::Create(); in DoSomethingInterestingWithMyAPI() local 131 if (keyEvent == nullptr) { in DoSomethingInterestingWithMyAPI() 134 inputEvent.OnInputEvent(keyEvent); in DoSomethingInterestingWithMyAPI()
|
/base/inputmethod/imf/test/unitest/src/ |
D | InputMethodTest.js | 717 KeyboardDelegate.off('keyDown', (keyEvent) => { 718 console.info("inputMethodEngine beforeEach keyDown:" + keyEvent.keyCode); 719 expect(keyEvent.keyCode).assertEqual('1'); 721 console.info("inputMethodEngine beforeEach keyDown:" + keyEvent.keyAction); 722 expect(keyEvent.keyAction).assertEqual('1'); 725 KeyboardDelegate.off('keyUp', (keyEvent) => { 726 console.info("inputMethodEngine beforeEach keyUp:" + keyEvent.keyCode); 727 expect(keyEvent.keyCode).assertEqual('1'); 728 console.info("inputMethodEngine beforeEach keyDown:" + keyEvent.keyAction); 729 expect(keyEvent.keyAction).assertEqual('0'); [all …]
|
/base/inputmethod/imf/test/fuzztest/inputmethodcontroller_fuzzer/ |
D | inputmethodcontroller_fuzzer.cpp | 74 std::shared_ptr<MMI::KeyEvent> keyEvent = MMI::KeyEvent::Create(); in TestDispatchKeyEvent() local 75 keyEvent->SetKeyAction(fuzzedInt32); in TestDispatchKeyEvent() 76 keyEvent->SetKeyCode(fuzzedInt32); in TestDispatchKeyEvent() 77 imc->dispatchKeyEvent(keyEvent); in TestDispatchKeyEvent()
|
/base/inputmethod/imf/services/adapter/keyboard/include/ |
D | input_event_callback.h | 31 virtual void OnInputEvent(std::shared_ptr<MMI::KeyEvent> keyEvent) const;
|
/base/powermgr/power_manager/services/native/src/ |
D | power_mgr_service.cpp | 148 virtual void OnInputEvent(std::shared_ptr<KeyEvent> keyEvent) const; 153 void InputCallback::OnInputEvent(std::shared_ptr<KeyEvent> keyEvent) const in OnInputEvent() 160 pms->HandleKeyEvent(keyEvent->GetKeyCode()); in OnInputEvent() 194 [this](std::shared_ptr<OHOS::MMI::KeyEvent> keyEvent) { in KeyMonitorInit() argument 206 [this](std::shared_ptr<OHOS::MMI::KeyEvent> keyEvent) { in KeyMonitorInit() argument 221 [this](std::shared_ptr<OHOS::MMI::KeyEvent> keyEvent) { in KeyMonitorInit() argument 233 [this](std::shared_ptr<OHOS::MMI::KeyEvent> keyEvent) { in KeyMonitorInit() argument 235 this->HandleKeyEvent(keyEvent->GetKeyCode()); in KeyMonitorInit()
|
/base/web/webview/ohos_adapter/multimodalinput_adapter/include/ |
D | mmi_adapter_impl.h | 45 void OnInputEvent(std::shared_ptr<MMI::KeyEvent> keyEvent) const override;
|
/base/inputmethod/imf/frameworks/inputmethod_controller/src/ |
D | input_method_controller.cpp | 647 bool InputMethodController::dispatchKeyEvent(std::shared_ptr<MMI::KeyEvent> keyEvent) in dispatchKeyEvent() argument 661 && data.WriteInt32(keyEvent->GetKeyCode()) in dispatchKeyEvent() 662 && data.WriteInt32(keyEvent->GetKeyAction()))) { in dispatchKeyEvent()
|
/base/inputmethod/imf/frameworks/inputmethod_controller/include/ |
D | input_method_controller.h | 78 IMF_API bool dispatchKeyEvent(std::shared_ptr<MMI::KeyEvent> keyEvent);
|