Home
last modified time | relevance | path

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

12

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/model/
H A Dmodel_test_ng.cpp335 TouchLocationInfo touchLocationInfo(0); variable
336 touchLocationInfo.touchType_ = TouchType::MOVE;
337 touchLocationInfo.localLocation_ = Offset(1.0f, 1.0f);
338 touchEventInfo.AddChangedTouchLocationInfo(std::move(touchLocationInfo));
443 TouchLocationInfo touchLocationInfo(0); variable
444 touchLocationInfo.touchType_ = TouchType::DOWN;
445 touchLocationInfo.localLocation_ = Offset(1.0f, 1.0f);
450 touchLocationInfo.touchType_ = TouchType::MOVE;
456 touchLocationInfo.touchType_ = TouchType::UP;
461 touchLocationInfo.touchType_ = TouchType::CANCEL;
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/event/
H A Dstate_style_manager_test_ng.cpp91 TouchLocationInfo touchLocationInfo = TouchLocationInfo(1); variable
92 touchLocationInfo.SetLocalLocation(Offset(100.0, 100.0));
93 touchLocationInfo.SetTouchType(TouchType::DOWN);
94 touchEventInfo.AddTouchLocationInfo(std::move(touchLocationInfo));
105 touchLocationInfo.SetTouchType(TouchType::UP);
250 TouchLocationInfo touchLocationInfo = TouchLocationInfo(1); variable
251 touchLocationInfo.SetLocalLocation(Offset(100.0, 100.0));
252 touchLocationInfo.SetTouchType(TouchType::CANCEL);
285 TouchLocationInfo touchLocationInfo = TouchLocationInfo(1); variable
286 touchLocationInfo.SetLocalLocation(Offset(-100.0, -100.0));
[all …]
H A Dfocus_hub_test_ng.cpp1149 TouchLocationInfo touchLocationInfo(1); variable
1150 touchLocationInfo.SetTouchType(TouchType::UP);
1151 touchEventInfo.AddTouchLocationInfo(std::move(touchLocationInfo));
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/
H A Dswiper_indicator_common_test_ng.cpp444 TouchLocationInfo touchLocationInfo("down", 0); variable
445 touchLocationInfo.SetTouchType(TouchType::DOWN);
446 touchLocationInfo.SetLocalLocation(Offset(100.f, 100.f));
482 TouchLocationInfo touchLocationInfo("down", 0); variable
483 touchLocationInfo.SetTouchType(TouchType::DOWN);
484 touchLocationInfo.SetLocalLocation(Offset(100.f, 100.f));
521 TouchLocationInfo touchLocationInfo("down", 0); variable
522 touchLocationInfo.SetTouchType(TouchType::DOWN);
523 touchLocationInfo.SetLocalLocation(Offset(100.f, 100.f));
593 TouchLocationInfo touchLocationInfo("down", 0); variable
[all …]
H A Dswiper_indicator_test_ng.cpp363 TouchLocationInfo touchLocationInfo("down", 0); variable
364 touchLocationInfo.SetTouchType(TouchType::DOWN);
366 infoSwiper.emplace_back(touchLocationInfo);
451 TouchLocationInfo touchLocationInfo("down", 0); variable
452 touchLocationInfo.SetTouchType(TouchType::DOWN);
454 EXPECT_TRUE(indicatorPattern->CheckIsTouchBottom(touchLocationInfo));
462 EXPECT_TRUE(indicatorPattern->CheckIsTouchBottom(touchLocationInfo));
715 TouchLocationInfo touchLocationInfo("down", 0); variable
716 touchLocationInfo.SetTouchType(TouchType::DOWN);
718 infoSwiper.emplace_back(touchLocationInfo);
H A Dswiper_arrow_test_ng.cpp862 TouchLocationInfo touchLocationInfo = TouchLocationInfo(1); variable
863 touchLocationInfo.SetLocalLocation(Offset(100.0, 100.0));
864 touchLocationInfo.SetTouchType(TouchType::DOWN);
865 touchEventInfo.AddTouchLocationInfo(std::move(touchLocationInfo));
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor/
H A Drich_editor_pattern_testthree_ng.cpp506 TouchLocationInfo touchLocationInfo(0); variable
507 touchLocationInfo.touchType_ = TouchType::DOWN;
508 touchLocationInfo.localLocation_ = Offset(0.0f, 0.0f);
526 TouchLocationInfo touchLocationInfo(0); variable
527 touchLocationInfo.touchType_ = TouchType::UP;
528 touchLocationInfo.localLocation_ = Offset(0.0f, 0.0f);
546 TouchLocationInfo touchLocationInfo(0); variable
547 touchLocationInfo.touchType_ = TouchType::MOVE;
548 touchLocationInfo.localLocation_ = Offset(0.0f, 0.0f);
566 TouchLocationInfo touchLocationInfo(0); variable
[all …]
H A Drich_editor_overlay_test_ng.cpp943 TouchLocationInfo touchLocationInfo(0); variable
944 touchLocationInfo.touchType_ = TouchType::DOWN;
945 touchLocationInfo.localLocation_ = touchOffset;
946 touchEventInfo.AddTouchLocationInfo(std::move(touchLocationInfo));
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/gestures/
H A Draw_recognizer.cpp131 TouchLocationInfo touchLocationInfo("onTouch", touchPoint.id); in CreateTouchEventInfo() local
133 touchLocationInfo.SetGlobalLocation(offset) in CreateTouchEventInfo()
136 touchLocationInfo.SetForce(touchPoint.force); in CreateTouchEventInfo()
138 touchLocationInfo.SetTiltX(touchPoint.tiltX.value()); in CreateTouchEventInfo()
141 touchLocationInfo.SetTiltY(touchPoint.tiltY.value()); in CreateTouchEventInfo()
143 touchLocationInfo.SetSourceTool(touchPoint.sourceTool); in CreateTouchEventInfo()
144 info.AddTouchLocationInfo(std::move(touchLocationInfo)); in CreateTouchEventInfo()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_common_ffi.cpp42 for (const OHOS::Ace::TouchLocationInfo& touchLocationInfo : touchLocationInfoList) { in TransformNativeTouchLocationInfo() local
44 ffiTouches.type = static_cast<uint8_t>(touchLocationInfo.GetTouchType()); in TransformNativeTouchLocationInfo()
45 ffiTouches.fingerId = touchLocationInfo.GetFingerId(); in TransformNativeTouchLocationInfo()
46 auto& globalLoc = touchLocationInfo.GetGlobalLocation(); in TransformNativeTouchLocationInfo()
49 auto& localLoc = touchLocationInfo.GetLocalLocation(); in TransformNativeTouchLocationInfo()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/
H A Dtest_ng.cpp105 TouchLocationInfo touchLocationInfo(1); in CreateTouchEventInfo() local
106 touchLocationInfo.SetTouchType(touchType); in CreateTouchEventInfo()
107 touchLocationInfo.SetLocalLocation(location); in CreateTouchEventInfo()
109 touchEventInfo.AddTouchLocationInfo(std::move(touchLocationInfo)); in CreateTouchEventInfo()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/
H A Dtab_bar_event_test_ng.cpp555 TouchLocationInfo touchLocationInfo(1); variable
556 touchLocationInfo.SetTouchType(TouchType::DOWN);
557 touchLocationInfo.SetLocalLocation(Offset(0.f, 0.f));
561 tabBarPattern_->HandleTouchEvent(touchLocationInfo);
996 TouchLocationInfo touchLocationInfo = TouchLocationInfo(1); variable
997 touchLocationInfo.SetLocalLocation(Offset(200.0, 30.0));
998 touchLocationInfo.SetTouchType(TouchType::DOWN);
999 info.AddTouchLocationInfo(std::move(touchLocationInfo));
H A Dtabs_event_test_ng.cpp907 TouchLocationInfo touchLocationInfo(1); variable
908 touchLocationInfo.SetTouchType(TouchType::DOWN);
909 touchLocationInfo.SetLocalLocation(Offset(0.f, 0.f));
912 tabBarPattern_->HandleTouchEvent(touchLocationInfo);
932 TouchLocationInfo touchLocationInfo(1); variable
933 touchLocationInfo.SetTouchType(TouchType::DOWN);
934 touchLocationInfo.SetLocalLocation(Offset(0.f, 0.f));
937 tabBarPattern_->HandleTouchEvent(touchLocationInfo);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/panel/
H A DdragBar_pattern_test_ng.cpp247 TouchLocationInfo touchLocationInfo = TouchLocationInfo(i); variable
248 touchLocationInfo.SetTouchType(TOUCH_TYPES[i]);
249 touchLocationInfo.SetLocalLocation(LOCAL_LOCATIONS[i]);
250 touchEventInfo.AddTouchLocationInfo(std::move(touchLocationInfo));
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/
H A Dtext_field_pattern_test.cpp1910 TouchLocationInfo touchLocationInfo(0); variable
1911 touchLocationInfo.touchType_ = TouchType::MOVE;
1912 touchLocationInfo.localLocation_ = Offset(0.0f, 0.0f);
1997 TouchLocationInfo touchLocationInfo(0); variable
1998 touchLocationInfo.touchType_ = TouchType::MOVE;
1999 touchLocationInfo.localLocation_ = Offset(0.0f, 0.0f);
2004 pattern->HandleTouchMove(touchLocationInfo);
2006 pattern->HandleTouchMove(touchLocationInfo);
2026 TouchLocationInfo touchLocationInfo(0); variable
2027 touchLocationInfo.touchType_ = TouchType::MOVE;
[all …]
H A Dtext_field_pattern_testtwo.cpp1387 TouchLocationInfo touchLocationInfo(0); variable
1388 touchLocationInfo.touchType_ = TouchType::MOVE;
1389 touchLocationInfo.localLocation_ = Offset(0.0f, 0.0f);
1390 touchEventInfo.AddTouchLocationInfo(std::move(touchLocationInfo));
1391 pattern->UpdateCaretByTouchMove(touchLocationInfo);
1392 pattern->UpdateCaretByTouchMove(touchLocationInfo);
1396 pattern->UpdateCaretByTouchMove(touchLocationInfo);
1407 pattern->UpdateCaretByTouchMove(touchLocationInfo);
H A Dtext_input_modify_test.cpp572 TouchLocationInfo touchLocationInfo(0); variable
573 touchLocationInfo.touchType_ = TouchType::DOWN;
574 touchLocationInfo.localLocation_ = Offset(0.0f, 0.0f);
575 touchEventInfo.AddTouchLocationInfo(std::move(touchLocationInfo));
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/form/
H A Dform_pattern_test.cpp150 TouchLocationInfo touchLocationInfo(1); variable
151 touchLocationInfo.SetTouchType(TouchType::DOWN);
152 event.AddTouchLocationInfo(std::move(touchLocationInfo));
181 TouchLocationInfo touchLocationInfo(1); variable
182 touchLocationInfo.SetTouchType(TouchType::UP);
183 event.AddTouchLocationInfo(std::move(touchLocationInfo));
221 TouchLocationInfo touchLocationInfo(1); variable
222 touchLocationInfo.SetTouchType(TouchType::DOWN);
223 event.AddTouchLocationInfo(std::move(touchLocationInfo));
H A Dform_test_ng.cpp1058 TouchLocationInfo touchLocationInfo(1); variable
1059 touchLocationInfo.SetTouchType(TouchType::UP);
1060 event.AddTouchLocationInfo(std::move(touchLocationInfo));
1081 TouchLocationInfo touchLocationInfo(1); variable
1082 touchLocationInfo.SetTouchType(TouchType::DOWN);
1083 event.AddTouchLocationInfo(std::move(touchLocationInfo));
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/slider/
H A Dslider_pattern_test_ng.cpp203 TouchLocationInfo touchLocationInfo(1); variable
204 touchLocationInfo.SetTouchType(TouchType::UP);
207 info.AddTouchLocationInfo(std::move(touchLocationInfo));
251 TouchLocationInfo touchLocationInfo(1); variable
252 touchLocationInfo.SetTouchType(TouchType::UP);
254 info.AddTouchLocationInfo(std::move(touchLocationInfo));
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/option/
H A Doption_test_ng.cpp237 TouchLocationInfo touchLocationInfo(1); variable
238 touchLocationInfo.SetTouchType(TouchType::UP);
239 touchInfo.AddTouchLocationInfo(std::move(touchLocationInfo));
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/
H A Dmenu_patternEx_test_ng.cpp244 auto touchLocationInfo = locationInfo.SetGlobalLocation(globalLocation); variable
245 info.touches_.emplace_back(touchLocationInfo);
265 auto touchLocationInfo = locationInfo.SetGlobalLocation(globalLocation); variable
266 info.touches_.emplace_back(touchLocationInfo);
285 auto touchLocationInfo = locationInfo.SetGlobalLocation(globalLocation); variable
286 info.touches_.emplace_back(touchLocationInfo);
1006 auto touchLocationInfo = locationInfo.SetGlobalLocation(globalLocation); variable
1007 info.touches_.emplace_back(touchLocationInfo);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/button/
H A Dbutton_test_ng.cpp1156 TouchLocationInfo touchLocationInfo(1); variable
1157 touchLocationInfo.SetTouchType(TouchType::DOWN);
1158 info.AddTouchLocationInfo(std::move(touchLocationInfo));
1163 touchLocationInfo.SetTouchType(TouchType::UP);
1165 info.AddTouchLocationInfo(std::move(touchLocationInfo));
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/select_overlay/
H A Dselect_overlay_test_ng.cpp601 TouchLocationInfo touchLocationInfo(1); variable
602 touchLocationInfo.SetTouchType(TouchType::DOWN);
603 touchInfo.AddChangedTouchLocationInfo(std::move(touchLocationInfo));
642 TouchLocationInfo touchLocationInfo(1); variable
643 touchLocationInfo.SetTouchType(TouchType::UP);
644 touchInfo.AddChangedTouchLocationInfo(std::move(touchLocationInfo));
683 TouchLocationInfo touchLocationInfo(1); variable
684 touchLocationInfo.SetTouchType(TouchType::MOVE);
685 touchInfo.AddChangedTouchLocationInfo(std::move(touchLocationInfo));
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/checkboxgroup/
H A Dcheckboxgroup_test_ng.cpp1632 TouchLocationInfo touchLocationInfo(-1); variable
1633 touchLocationInfo.SetTouchType(TouchType::UP);
1636 touchEventInfo.AddTouchLocationInfo(std::move(touchLocationInfo));
1639 touchLocationInfo.SetTouchType(TouchType::CANCEL);

12