/test/testfwk/arkxtest/uitest/test/ |
D | ui_action_test.cpp | 54 PointerMatrix events; in TEST_F() local 55 action.Decompose(events, customOptions_); in TEST_F() 56 ASSERT_EQ(2, events.GetSize()); // up & down in TEST_F() 57 auto &event1 = events.At(0, 0); in TEST_F() 58 auto &event2 = events.At(0, 1); in TEST_F() 74 PointerMatrix events; in TEST_F() local 75 action.Decompose(events, customOptions_); in TEST_F() 76 ASSERT_EQ(2, events.GetSize()); // up & down in TEST_F() 77 auto &event1 = events.At(0, 0); in TEST_F() 78 auto &event2 = events.At(0, 1); in TEST_F() [all …]
|
D | mock_controller.h | 52 void InjectTouchEventSequence(const PointerMatrix &events) const override in InjectTouchEventSequence() argument 54 … touch_event_records_ = std::make_unique<PointerMatrix>(events.GetFingers(), events.GetSteps()); in InjectTouchEventSequence() 55 for (int step = 0; step < events.GetSteps(); step++) { in InjectTouchEventSequence() 56 for (int finger = 0; finger < events.GetFingers(); finger++) { in InjectTouchEventSequence() 57 touch_event_records_->PushAction(events.At(finger, step)); in InjectTouchEventSequence()
|
/test/testfwk/arkxtest/jsunit/src/ |
D | core.js | 42 this.events = { property 69 if (!this.events[serviceName]) { 70 this.events[serviceName] = eventObj; 72 eventObj = this.events[serviceName]; 78 const eventObj = this.events[serviceName]; 85 const eventObj = this.events[serviceName]; 94 const eventObj = this.events[serviceName];
|
/test/xts/acts/resourceschedule/resourceschedule_standard/backgroundtaskmanager/src/main/js/test/ |
D | ContinuousTaskJsunit.test.js | 112 …startAbilityWithOption({ events: ["startTaskUseApi7Callback"] }, "testcase1", "startTaskUseApi7Cal… property 122 …startAbilityWithOption({ events: ["stopTaskUseApi7Callback"] }, "testcase2", "stopTaskUseApi7Callb… property 132 …startAbilityWithOption({ events: ["startTaskUseApi8Callback"] }, "testcase3", "startTaskUseApi8Cal… property 142 …startAbilityWithOption({ events: ["stopTaskUseApi8Callback"] }, "testcase4", "stopTaskUseApi8Callb… property 152 …startAbilityWithOption({ events: ["startTaskUseApi7Promise"] }, "testcase5", "startTaskUseApi7Prom… property 162 …startAbilityWithOption({ events: ["stopTaskUseApi7Promise"] }, "testcase6", "stopTaskUseApi7Promis… property 172 …startAbilityWithOption({ events: ["startTaskUseApi8Promise"] }, "testcase7", "startTaskUseApi8Prom… property 182 …startAbilityWithOption({ events: ["stopTaskUseApi8Promise"] }, "testcase8", "stopTaskUseApi8Promis… property 192 …startAbilityWithOption({ events: ["startTaskInvalidBgmode"] }, "testcase9", "startTaskInvalidBgmod… property
|
/test/testfwk/arkxtest/uitest/core/ |
D | ui_driver.cpp | 272 vector<KeyEvent> events; in TriggerKey() local 273 key.ComputeEvents(events, opt); in TriggerKey() 274 if (events.empty()) { in TriggerKey() 277 uiController_->InjectKeyEventSequence(events); in TriggerKey() 355 PointerMatrix events; in PerformTouch() local 356 touch.Decompose(events, opt); in PerformTouch() 357 if (events.Empty()) { in PerformTouch() 360 uiController_->InjectTouchEventSequence(events); in PerformTouch() 369 vector<MouseEvent> events; in PerformMouseAction() local 370 touch.Decompose(events, opt); in PerformMouseAction() [all …]
|
D | ui_controller.h | 66 virtual void InjectTouchEventSequence(const PointerMatrix& events) const {}; in InjectTouchEventSequence() argument 68 virtual void InjectKeyEventSequence(const std::vector<KeyEvent>& events) const {}; in InjectKeyEventSequence() argument 70 virtual void InjectMouseEventSequence(const vector<MouseEvent>& events) const {}; in InjectMouseEventSequence() argument
|
D | widget_operator.cpp | 192 vector<KeyEvent> events; in InputText() local 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() 205 auto keyActionForDelete = KeysForwarder(events); in InputText()
|
/test/xts/acts/notification/ces_standard/subscribeandpublish/actssubscriberorderedtest/src/main/js/test/ |
D | ActsSubscriber_test_ordered.js | 53 events: ['publish_event0100'], property 58 events: ['publish_event0100'], property 166 events: ['publish_event0200', property 172 events: ['publish_event0201'], property 272 events: ['publish_event0301'], property 277 events: ['publish_event0301'], property 381 events: ['publish_eventOrder0400'], property 386 events: ['publish_eventOrder0400'], property 432 expect(data.events[0]).assertEqual('publish_eventOrder0400'); 444 expect(data.events[0]).assertEqual('publish_eventOrder0400'); [all …]
|
/test/xts/acts/notification/ces_standard/subscribeandpublish/actssubscriberunordertest/src/main/js/test/ |
D | ActsSubscriber_test_unorder.js | 24 events: ['event'], property 59 expect(CommonEventSubscriberInfo.events[0]).assertEqual('event') 90 expect(CommonEventSubscriberInfo.events[0]).assertEqual('event') 110 CommonEventSubscriberInfo.events[0] = '@#¥#3243adsafdf_' 129 expect(CommonEventSubscriberInfo.events[0]).assertEqual('@#¥#3243adsafdf_') 147 CommonEventSubscriberInfo.events[0] = '@#¥#3243adsafdf_' 161 expect(CommonEventSubscriberInfo.events[0]).assertEqual('@#¥#3243adsafdf_') 181 CommonEventSubscriberInfo.events[0] = 'publish_event_0500' 219 expect(CommonEventSubscriberInfo.events[0]).assertEqual('publish_event_0500') 254 CommonEventSubscriberInfo.events[0] = 'publish_event_0600' [all …]
|
/test/testfwk/arkxtest/uitest/server/ |
D | system_ui_controller.h | 37 void InjectTouchEventSequence(const PointerMatrix &events) const override; 39 void InjectMouseEventSequence(const vector<MouseEvent> &events) const override; 41 void InjectKeyEventSequence(const std::vector<KeyEvent> &events) const override;
|
D | system_ui_controller.cpp | 376 void SysUiController::InjectTouchEventSequence(const PointerMatrix &events) const in InjectTouchEventSequence() 378 for (uint32_t step = 0; step < events.GetSteps(); step++) { in InjectTouchEventSequence() 380 for (uint32_t finger = 0; finger < events.GetFingers(); finger++) { in InjectTouchEventSequence() 384 pinterItem.SetDisplayX(events.At(finger, step).point_.px_); in InjectTouchEventSequence() 385 pinterItem.SetDisplayY(events.At(finger, step).point_.py_); in InjectTouchEventSequence() 386 switch (events.At(finger, step).stage_) { in InjectTouchEventSequence() 399 pinterItem.SetPressed(events.At(finger, step).stage_ != ActionStage::UP); in InjectTouchEventSequence() 405 if (events.At(finger, step).holdMs_ > 0) { in InjectTouchEventSequence() 406 this_thread::sleep_for(chrono::milliseconds(events.At(finger, step).holdMs_)); in InjectTouchEventSequence() 471 void SysUiController::InjectMouseEventSequence(const vector<MouseEvent> &events) const in InjectMouseEventSequence() [all …]
|
/test/xts/acts/notification/ces_standard/actsCommomEventAppointTest/actscommoneventtest/entry/src/main/ets/test/ |
D | Ability.test.ets | 25 events: ['Acts_CommonEvent_Test'], 30 events: ['Acts_CommonEventTest'], 35 events: ['Acts_CommonEvent_Test'], 39 events: ['Acts_CommonEventSame_Test'], 55 * @tc.name: Support specifying app subscriptions for custom events. 56 …* @tc.desc: Verify that the specified PublisherBundlerName receives multiple events published by t… 139 * @tc.name: Support specifying app subscriptions for custom events. 140 … * @tc.desc: Verify that multiple subscription objects subscribe to events, one of which specifies 141 …* PublisherBundlerName, and successfully receives events published by non-specified publ… 222 * @tc.name: Support specifying app subscriptions for custom events. [all …]
|
/test/xts/acts/ability/ability_runtime/featureability/actsfeatureabilitytest/entry/src/main/js/test/ |
D | FeatureAbilityJsunit.test.js | 25 events: ["ACTS_StartAbility_0100_CommonEvent"], property 28 events: ["ACTS_StartAbility_0201_CommonEvent"], property 31 events: ["ACTS_StartAbility_0301_CommonEvent"], property 34 events: ["ACTS_StartAbility_0401_CommonEvent"], property 37 events: ["ACTS_StartAbility_0501_CommonEvent"], property 40 events: ["ACTS_StartAbility_0601_CommonEvent"], property 43 events: ["ACTS_StartAbility_1000_CommonEvent"], property 46 events: ["ACTS_StartAbility_1300_CommonEvent"], property 49 events: ["ACTS_TerminateAbility_0200_CommonEvent", property 53 events: ["ACTS_GetCallingBundle_0100_CommonEvent", property [all …]
|
/test/xts/acts/hiviewdfx/hisyseventtest/hisyseventboxtest/src/main/js/test/ |
D | HiSysEventBox.test.js | 274 let events = JSON.parse('[' + res.slice(0, res.length - 1) + ']'); 275 console.log("read file end, events is :" + JSON.stringify(events)); 276 expect(JSON.stringify(events) != "").assertTrue() 354 let events = JSON.parse('[' + res.slice(0, res.length - 1) + ']'); 355 console.log("read file end, events is :" + JSON.stringify(events)); 356 expect(JSON.stringify(events) != "").assertTrue() 408 let events = JSON.parse('[' + res.slice(0, res.length - 1) + ']'); 409 console.log("read file end, events is :" + JSON.stringify(events)); 410 expect(JSON.stringify(events) != "").assertTrue()
|
/test/xts/acts/powermgr/battery_manager/src/main/js/test/ |
D | battery_common_event.test.js | 1429 events: [commonEvent.Support.COMMON_EVENT_AIRPLANE_MODE_CHANGED], property 1482 events: [commonEvent.Support.COMMON_EVENT_FOUNDATION_READY], property 1534 events: [commonEvent.Support.COMMON_EVENT_ACCOUNT_DELETED], property 1586 events: [commonEvent.Support.COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED], property 1638 events: [commonEvent.Support.COMMON_EVENT_DISK_EJECT], property 1690 events: [commonEvent.Support.COMMON_EVENT_DISK_UNMOUNTABLE], property 1742 events: [commonEvent.Support.COMMON_EVENT_DISK_BAD_REMOVAL], property 1794 events: [commonEvent.Support.COMMON_EVENT_DISK_MOUNTED], property 1846 events: [commonEvent.Support.COMMON_EVENT_DISK_UNMOUNTED], property 1898 events: [commonEvent.Support.COMMON_EVENT_DISK_REMOVED], property [all …]
|
/test/xts/acts/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityclienttest/src/main/js/test/ |
D | StServiceAbilityClient.test.js | 27 events: ["ACTS_SerivceAbilityServer_onCommand_PageStartService_0100", property 32 events: ["ACTS_SerivceAbilityServer_onCommand_PageStartService_0200", property 37 events: ["ACTS_SerivceAbilityServer_onCommand_PageStartService_0300", property 43 events: ["ACTS_SerivceAbilityServer_onCommand_PageStartService_0400", property 48 events: ["ACTS_SerivceAbilityServer_onConnect_PageConnectService_0500", property 54 events: ["ACTS_SerivceAbilityServer_onConnect_PageConnectService_0600", property 60 events: ["ACTS_SerivceAbilityServerSecond_onCommand_ServiceStartService_0900", property 65 events: ["ACTS_SerivceAbilityServerSecond_onCommand_ServiceStartService_1000", property 70 events: ["ACTS_SerivceAbilityServerSecond_onConnect_ServiceConnectService_1300", property 76 events: ["ACTS_SerivceAbilityServerSecond_onConnect_ServiceConnectService_1400", property [all …]
|
/test/xts/acts/notification/ces_standard/actsCommonEventManagerTest/src/main/js/test/ |
D | ActsCommonEventManagerTest.js | 96 events: ["event03"] property 133 events: ["event04"] property 162 events: ["event05"] property 213 events: ["event06"] property 283 events: ["event07"] property 401 events: ["event08"] property
|
D | ActsCommonEventManagerSubscribeTest.js | 34 events: ["event09"] property 137 events: ["event10"] property 223 events: ["eventname"], property 309 events: ["eventname2"], property
|
/test/xts/acts/telephony/telephonyjstest/netmanager_socket/entry/src/main/ets/test/ |
D | WebSocketJsunit.test.ets | 336 * @tc.desc : Enables listening for the open events of a WebSocket connection. 366 * @tc.desc : Cancels listening for the open events of a WebSocket connection. 393 * @tc.desc : Cancels listening for the open events of a WebSocket connection. 411 * @tc.desc : Enables listening for the message events of a WebSocket connection. 438 * @tc.desc : Cancels listening for the message events of a WebSocket connection. 465 * @tc.desc : Cancels listening for the message events of a WebSocket connection. 483 * @tc.desc : Enables listening for the close events of a WebSocket connection. 510 * @tc.desc : Cancels listening for the close events of a WebSocket connection. 537 * @tc.desc : Cancels listening for the close events of a WebSocket connection. 555 * @tc.desc : Enables listening for the error events of a WebSocket connection. [all …]
|
/test/xts/acts/inputmethod/InputMethodEngine/entry/src/main/ets/test/ |
D | inputMethodEngine.test.ets | 128 events: ["inputMethodEngine_test_getInputMethodEngine_001"] 186 events: ["inputMethodEngine_test_getKeyboardDelegate_001"] 248 events: ["inputMethodEngine_test_028"] 310 events: ["inputMethodEngine_test_029"] 372 events: ["inputMethodEngine_test_030"] 433 events: ["inputMethodEngine_test_031"] 494 events: ["inputMethodEngine_test_032"] 555 events: ["inputMethodEngine_test_033"] 616 events: ["inputMethodEngine_test_034"] 678 events: ["inputMethodEngine_test_035"] [all …]
|
D | inputMethodAbility.test.ets | 582 events: ["inputMethodAbility_test_getInputMethodAbility_001"] 644 events: ["inputMethodAbility_test_getKeyboardDelegate_001"] 705 events: ["inputMethodAbility_test_028"] 766 events: ["inputMethodAbility_test_029"] 827 events: ["inputMethodAbility_test_030"] 888 events: ["inputMethodAbility_test_031"] 949 events: ["inputMethodAbility_test_032"] 1010 events: ["inputMethodAbility_test_033"] 1071 events: ["inputMethodAbility_test_034"] 1132 events: ["inputMethodAbility_test_035"] [all …]
|
/test/xts/acts/account/appaccount/actsaccountoperatetest/src/main/js/test/ |
D | ChangeOnOff.js | 97 events: ["account_on_change_setcredential"] property 164 events: ["account_on_remove_another"] property 226 events: ["account_on_change_remove"] property 297 events: ["account_on_set_another_disable"] property
|
/test/xts/acts/inputmethod/InputMethodWindManage/entry/src/main/ets/test/ |
D | InputMethodWindManage.test.ets | 111 events: ['Sub_Misc_inputMethod_Panel_createPanelCallback_0010'] 171 events: ['Sub_Misc_inputMethod_Panel_createPanelPromise_0020'] 231 events: ['Sub_Misc_inputMethod_Panel_destroyPanelCallback_0030'] 291 events: ['Sub_Misc_inputMethod_Panel_destroyPanelPromise_0040'] 351 events: ['Sub_Misc_inputMethod_Panel_setUiContentCallback_0050'] 411 events: ['Sub_Misc_inputMethod_Panel_setUiContentPromise_0060'] 471 events: ['Sub_Misc_inputMethod_Panel_setUiContentCallback_0070'] 531 events: ['Sub_Misc_inputMethod_Panel_setUiContentPromise_0080'] 591 events: ['Sub_Misc_inputMethod_Panel_resizeCallback_0090'] 651 events: ['Sub_Misc_inputMethod_Panel_resizePromise_0100'] [all …]
|
/test/xts/acts/ability/ability_runtime/stage/actsuripermission/actstempuripermissionhaptest/entry/src/main/ets/test/ |
D | UriPermissionTest.ets | 88 events: [eventName1_1, eventName1_2] 117 events: [eventName1_3, eventName1_4] 197 events: [eventName2_1, eventName2_2] 226 events: [eventName2_3, eventName2_4] 315 events: [eventName3_1, eventName3_2] 344 events: [eventName3_3, eventName3_4] 373 events: [eventName3_5, eventName3_6] 445 events: [eventName4_1, eventName4_2] 474 events: [eventName4_3, eventName4_4] 520 events: [eventName4_5, eventName4_6] [all …]
|
/test/xts/acts/ability/ability_runtime/actsstartabilitygetdisplayidtest/entry/src/main/ets/test/ |
D | StartAbilityGetDisplayId.test.ets | 73 events: [Constant.event_500] 113 events: [Constant.event_600] 150 events: [Constant.event_700] 189 events: [Constant.event_300] 228 events: [Constant.event_200] 267 events: [Constant.event_100] 306 events: [Constant.event_400]
|