Home
last modified time | relevance | path

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

/test/testfwk/arkxtest/uitest/core/
Dui_action.h84 struct KeyEvent { struct
94 vector<KeyEvent> keyEvents_; argument
240 virtual void ComputeEvents(std::vector<KeyEvent> &recv, const UiOpArgs &options) const = 0;
247 explicit KeysForwarder(const vector<KeyEvent> &evetns) : events_(evetns) {}; in KeysForwarder()
249 void ComputeEvents(vector<KeyEvent> &recv, const UiOpArgs &opt) const override in ComputeEvents()
255 const vector<KeyEvent> &events_;
264 void ComputeEvents(std::vector<KeyEvent> &recv, const UiOpArgs &opt) const override in ComputeEvents()
267 recv.push_back(KeyEvent {ActionStage::DOWN, kCtrlCode, 0}); in ComputeEvents()
269 recv.push_back(KeyEvent {ActionStage::DOWN, kCode, opt.keyHoldMs_}); in ComputeEvents()
270 recv.push_back(KeyEvent {ActionStage::UP, kCode, 0}); in ComputeEvents()
[all …]
Dui_action.cpp308 vector<KeyEvent> keyAction1; in Decompose()
309 keyAction1.push_back(KeyEvent {ActionStage::DOWN, key1_, opt.keyHoldMs_}); in Decompose()
310 keyAction1.push_back(KeyEvent {ActionStage::DOWN, key2_, opt.keyHoldMs_}); in Decompose()
314 vector<KeyEvent> keyAction2; in Decompose()
315 keyAction2.push_back(KeyEvent {ActionStage::UP, key2_, opt.keyHoldMs_}); in Decompose()
316 keyAction2.push_back(KeyEvent {ActionStage::UP, key1_, opt.keyHoldMs_}); in Decompose()
327 vector<KeyEvent> keyAction1; in Decompose()
328 keyAction1.push_back(KeyEvent {ActionStage::DOWN, key1_, opt.keyHoldMs_}); in Decompose()
329 keyAction1.push_back(KeyEvent {ActionStage::DOWN, key2_, opt.keyHoldMs_}); in Decompose()
339 vector<KeyEvent> keyAction2; in Decompose()
[all …]
Dwidget_operator.cpp192 vector<KeyEvent> events; in InputText()
195 … events.emplace_back(KeyEvent{ActionStage::DOWN, KEYCODE_DPAD_RIGHT, typeCharTimeMs}); in InputText()
196 events.emplace_back(KeyEvent{ActionStage::UP, KEYCODE_DPAD_RIGHT, 0}); in InputText()
197 events.emplace_back(KeyEvent{ActionStage::DOWN, KEYCODE_DEL, typeCharTimeMs}); in InputText()
198 events.emplace_back(KeyEvent{ActionStage::UP, KEYCODE_DEL, 0}); in InputText()
Dui_driver.cpp272 vector<KeyEvent> events; in TriggerKey()
496 … bool UiDriver::TextToKeyEvents(string_view text, std::vector<KeyEvent> &events, ApiCallErr &error) in TextToKeyEvents()
515 events.emplace_back(KeyEvent {ActionStage::DOWN, pair.second, 0}); in TextToKeyEvents()
517 events.emplace_back(KeyEvent {ActionStage::DOWN, pair.first, typeCharTimeMs}); in TextToKeyEvents()
518 events.emplace_back(KeyEvent {ActionStage::UP, pair.first, 0}); in TextToKeyEvents()
520 events.emplace_back(KeyEvent {ActionStage::UP, pair.second, 0}); in TextToKeyEvents()
529 vector<KeyEvent> events; in InputText()
Dui_controller.h68 virtual void InjectKeyEventSequence(const std::vector<KeyEvent>& events) const {}; in InjectKeyEventSequence()
Dui_driver.h100 bool TextToKeyEvents(string_view text, std::vector<KeyEvent> &events, ApiCallErr &error);
/test/ostest/wukong/common/src/
Dmultimode_manager.cpp27 … for (int i = OHOS::MMI::KeyEvent::KEYCODE_CALL; i <= OHOS::MMI::KeyEvent::KEYCODE_ENDCALL; i++) { in MultimodeManager()
31 …for (int j = OHOS::MMI::KeyEvent::KEYCODE_0; j <= OHOS::MMI::KeyEvent::KEYCODE_NUMPAD_RIGHT_PAREN;… in MultimodeManager()
43 std::string keycodeType = OHOS::MMI::KeyEvent::KeyCodeToString(keycode); in SingleKeyCodeInput()
45 auto keyKeyboardEvent = OHOS::MMI::KeyEvent::Create(); in SingleKeyCodeInput()
46 MMI::KeyEvent::KeyItem item; in SingleKeyCodeInput()
51 keyKeyboardEvent->SetKeyAction(MMI::KeyEvent::KEY_ACTION_DOWN); in SingleKeyCodeInput()
65 keyKeyboardEvent->SetKeyAction(MMI::KeyEvent::KEY_ACTION_UP); in SingleKeyCodeInput()
Dcomponent_manager.cpp46 bool OnKeyPressEvent(const std::shared_ptr<MMI::KeyEvent>& keyEvent) override in OnKeyPressEvent()
241 int backKeyCode = OHOS::MMI::KeyEvent::KEYCODE_BACK; in BackToPrePage()
/test/testfwk/arkxtest/uitest/record/
Dui_record.cpp30 {MMI::KeyEvent::KEYCODE_BACK, TouchOpt::OP_RETURN},
31 {MMI::KeyEvent::KEYCODE_HOME, TouchOpt::OP_HOME},
35 {MMI::KeyEvent::KEYCODE_POWER, true, 0}, // 电源键按下订阅
36 {MMI::KeyEvent::KEYCODE_POWER, false, 0}, // 电源键抬起订阅
37 {MMI::KeyEvent::KEYCODE_VOLUME_UP, true, 0}, // 音量UP键按下订阅
38 {MMI::KeyEvent::KEYCODE_VOLUME_DOWN, true, 0}, // 音量DOWN键按下订阅
39 {MMI::KeyEvent::KEYCODE_ESCAPE, true, 0}, // esc键按下订阅
40 {MMI::KeyEvent::KEYCODE_ESCAPE, false, 0}, // esc键抬起订阅
41 {MMI::KeyEvent::KEYCODE_F1, true, 0}, // f1键按下订阅
42 {MMI::KeyEvent::KEYCODE_F1, false, 0}, // f1键抬起订阅
[all …]
Dkeyevent_tracker.cpp20 MMI::KeyEvent::KEYCODE_CTRL_LEFT,
21 MMI::KeyEvent::KEYCODE_CTRL_RIGHT,
22 MMI::KeyEvent::KEYCODE_ALT_LEFT,
23 MMI::KeyEvent::KEYCODE_ALT_RIGHT,
24 MMI::KeyEvent::KEYCODE_SHIFT_LEFT,
25 MMI::KeyEvent::KEYCODE_SHIFT_RIGHT,
26 MMI::KeyEvent::KEYCODE_POWER
Dui_record.h58 bool dealSpecialKey(std::shared_ptr<MMI::KeyEvent> keyEvent) const;
59 void OnInputEvent(std::shared_ptr<MMI::KeyEvent> keyEvent) const override;
/test/xts/acts/arkui/ace_ets_component_attrlack/entry/src/main/ets/MainAbility/pages/
Dkeysource.ets28 Button('KeyEvent').backgroundColor(0x2788D9)
29 .onKeyEvent((event: KeyEvent) => {
/test/testfwk/arkxtest/uitest/server/
Dsystem_ui_controller.cpp70 bool OnKeyPressEvent(const shared_ptr<MMI::KeyEvent> &keyEvent) override in OnKeyPressEvent()
485 void SysUiController::InjectKeyEventSequence(const vector<KeyEvent> &events) const in InjectKeyEventSequence()
499 auto keyEvent = OHOS::MMI::KeyEvent::Create(); in InjectKeyEventSequence()
501 keyEvent->SetKeyAction(OHOS::MMI::KeyEvent::KEY_ACTION_UP); in InjectKeyEventSequence()
502 OHOS::MMI::KeyEvent::KeyItem keyItem; in InjectKeyEventSequence()
509 auto keyEvent = OHOS::MMI::KeyEvent::Create(); in InjectKeyEventSequence()
512 keyEvent->SetKeyAction(OHOS::MMI::KeyEvent::KEY_ACTION_DOWN); in InjectKeyEventSequence()
513 OHOS::MMI::KeyEvent::KeyItem keyItem; in InjectKeyEventSequence()
547 code = OHOS::MMI::KeyEvent::KEYCODE_A + static_cast<int32_t>(ch - 'a'); in GetCharKeyCode()
549 ctrlCode = OHOS::MMI::KeyEvent::KEYCODE_SHIFT_LEFT; in GetCharKeyCode()
[all …]
Dsystem_ui_controller.h41 void InjectKeyEventSequence(const std::vector<KeyEvent> &events) const override;
/test/xts/acts/arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/conponentadd/
Dcommon_y.ets85 let res1 = inputEventClient.injectEvent({KeyEvent: keyEventDown});
93 let res2 = inputEventClient.injectEvent({KeyEvent: keyEventUp});
103 let res3 = inputEventClient.injectEvent({KeyEvent: keyEventDown});
111 let res4 = inputEventClient.injectEvent({KeyEvent: keyEventUp});
208 .onKeyEvent((event: KeyEvent) => {
/test/xts/acts/arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/
Dcommon.ets53 let res1 = inputEventClient.injectEvent({KeyEvent: keyEventDown});
61 let res2 = inputEventClient.injectEvent({KeyEvent: keyEventUp});
71 let res3 = inputEventClient.injectEvent({KeyEvent: keyEventDown});
79 let res4 = inputEventClient.injectEvent({KeyEvent: keyEventUp});
175 .onKeyEvent((event: KeyEvent) => {
/test/ostest/wukong/common/include/
Devent_monitor.h36 bool OnKeyPressEvent(const std::shared_ptr<MMI::KeyEvent> &keyEvent) override in OnKeyPressEvent()
/test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/
DClickMouseTouchEvent.ets52 .onKeyEvent((event: KeyEvent) => {
53 this.intentionCode = "KeyEvent: " + event.intentionCode
/test/ostest/wukong/input_factory/src/
Dhardkey_input.cpp54 int keycode = MMI::KeyEvent::KEYCODE_VOLUME_UP + rand() % HARDKEY_COUNT; in RandomInput()
Drecord_input.cpp141 void OnInputEvent(std::shared_ptr<MMI::KeyEvent> keyEvent) const override in OnInputEvent()
/test/xts/acts/arkui/ace_ets_component_apilack/entry/src/main/ets/test/
Dglobal.test.ets71 …let KeyEvent = {type:1,keyCode:2027,keyText:"Unknown",keySource:4,deviceId:7,metaKey:0,timestamp:5…
72 let result = sendKeyEvent(KeyEvent);
/test/xts/acts/validator/acts_validator/src/main/ets/pages/MultimodalInput/
DKeyBoard.ets22 struct KeyEvent {
/test/testfwk/arkxtest/uitest/test/
Dui_action_test.cpp444 vector<KeyEvent> events; in TEST_F()
459 vector<KeyEvent> events; in TEST_F()
483 vector<KeyEvent> events; in TEST_F()
/test/xts/acts/multimodalinput/multimodalinput_ets_standard/entry/src/main/ets/test/
DMultimodalInputEventType.test.ets21 import { Key, KeyEvent } from '@ohos.multimodalInput.keyEvent'
88 let testKeyEvent: KeyEvent = {
/test/testfwk/arkxtest/
DREADME_zh.md1479 > 支持操作类型:点击 双击 长按 慢滑 快滑 拖拽 输入文字 KeyEvent