/test/testfwk/arkxtest/uitest/core/ |
D | ui_action.h | 84 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 …]
|
D | ui_action.cpp | 308 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 …]
|
D | widget_operator.cpp | 192 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()
|
D | ui_driver.cpp | 272 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()
|
D | ui_controller.h | 68 virtual void InjectKeyEventSequence(const std::vector<KeyEvent>& events) const {}; in InjectKeyEventSequence()
|
D | ui_driver.h | 100 bool TextToKeyEvents(string_view text, std::vector<KeyEvent> &events, ApiCallErr &error);
|
/test/ostest/wukong/common/src/ |
D | multimode_manager.cpp | 27 … 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()
|
D | component_manager.cpp | 46 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/ |
D | ui_record.cpp | 30 {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 …]
|
D | keyevent_tracker.cpp | 20 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
|
D | ui_record.h | 58 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/ |
D | keysource.ets | 28 Button('KeyEvent').backgroundColor(0x2788D9) 29 .onKeyEvent((event: KeyEvent) => {
|
/test/testfwk/arkxtest/uitest/server/ |
D | system_ui_controller.cpp | 70 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 …]
|
D | system_ui_controller.h | 41 void InjectKeyEventSequence(const std::vector<KeyEvent> &events) const override;
|
/test/xts/acts/arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/conponentadd/ |
D | common_y.ets | 85 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/ |
D | common.ets | 53 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/ |
D | event_monitor.h | 36 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/ |
D | ClickMouseTouchEvent.ets | 52 .onKeyEvent((event: KeyEvent) => { 53 this.intentionCode = "KeyEvent: " + event.intentionCode
|
/test/ostest/wukong/input_factory/src/ |
D | hardkey_input.cpp | 54 int keycode = MMI::KeyEvent::KEYCODE_VOLUME_UP + rand() % HARDKEY_COUNT; in RandomInput()
|
D | record_input.cpp | 141 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/ |
D | global.test.ets | 71 …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/ |
D | KeyBoard.ets | 22 struct KeyEvent {
|
/test/testfwk/arkxtest/uitest/test/ |
D | ui_action_test.cpp | 444 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/ |
D | MultimodalInputEventType.test.ets | 21 import { Key, KeyEvent } from '@ohos.multimodalInput.keyEvent' 88 let testKeyEvent: KeyEvent = {
|
/test/testfwk/arkxtest/ |
D | README_zh.md | 1479 > 支持操作类型:点击 双击 长按 慢滑 快滑 拖拽 输入文字 KeyEvent。
|