Home
last modified time | relevance | path

Searched refs:TouchOp (Results 1 – 7 of 7) sorted by relevance

/test/testfwk/arkxtest/uitest/core/
Dwidget_operator.cpp75 void WidgetOperator::GenericClick(TouchOp op, ApiCallErr &error) const in GenericClick()
77 DCHECK(op >= TouchOp::CLICK && op <= TouchOp::DOUBLE_CLICK_P); in GenericClick()
117 auto touch = GenericSwipe(TouchOp::SWIPE, topPoint, bottomPoint); in ScrollToEnd()
120 auto touch = GenericSwipe(TouchOp::SWIPE, bottomPoint, topPoint); in ScrollToEnd()
140 auto touch = GenericSwipe(TouchOp::DRAG, centerFrom, centerTo); in DragIntoWidget()
221 auto touch = OHOS::uitest::GenericClick(TouchOp::CLICK, center); in InputText()
276 auto touch = (scrollingUp) ? GenericSwipe(TouchOp::SWIPE, topPoint, bottomPoint) : in ScrollFindWidget()
277 GenericSwipe(TouchOp::SWIPE, bottomPoint, topPoint); in ScrollFindWidget()
Dui_action.h31 enum TouchOp : uint8_t { CLICK, LONG_CLICK, DOUBLE_CLICK_P, SWIPE, DRAG, FLING }; enum
128 GenericClick(TouchOp type, const Point &point) : type_(type), point_(point) {}; in GenericClick()
135 const TouchOp type_;
144 …explicit GenericSwipe(TouchOp type, const Point &from, const Point &to) : type_(type), from_(from)… in GenericSwipe()
151 const TouchOp type_;
Dwidget_operator.h27 void GenericClick(TouchOp op, ApiCallErr &error) const;
Dwindow_operator.cpp105 auto touch = GenericSwipe(TouchOp::DRAG, from, to); in CallBar()
118 auto touch = GenericClick(TouchOp::CLICK, focus); in Focus()
133 auto touch = GenericSwipe(TouchOp::DRAG, from, to); in MoveTo()
186 driver_.PerformTouch(GenericSwipe(TouchOp::DRAG, from, to), options_, out.exception_); in Resize()
265 auto touch = GenericClick(TouchOp::CLICK, widgetCenter); in BarAction()
Dui_action.cpp95 DCHECK(type_ >= TouchOp::CLICK && type_ <= TouchOp::DOUBLE_CLICK_P); in Decompose()
116 DCHECK(type_ >= TouchOp::SWIPE && type_ <= TouchOp::DRAG); in Decompose()
117 DecomposeComputeSwipe(recv, from_, to_, type_ == TouchOp::DRAG, options); in Decompose()
Dfrontend_api_handler.cpp676 auto op = TouchOp::CLICK; in RegisterUiDriverTouchOperators()
678 op = TouchOp::LONG_CLICK; in RegisterUiDriverTouchOperators()
680 op = TouchOp::DOUBLE_CLICK_P; in RegisterUiDriverTouchOperators()
682 op = TouchOp::SWIPE; in RegisterUiDriverTouchOperators()
687 op = TouchOp::DRAG; in RegisterUiDriverTouchOperators()
692 if (op == TouchOp::SWIPE || op == TouchOp::DRAG) { in RegisterUiDriverTouchOperators()
725 auto op = TouchOp::SWIPE; in RegisterUiDriverMultiPointerOperators()
888 wOp.GenericClick(TouchOp::CLICK, out.exception_); in RegisterUiComponentOperators()
890 wOp.GenericClick(TouchOp::LONG_CLICK, out.exception_); in RegisterUiComponentOperators()
892 wOp.GenericClick(TouchOp::DOUBLE_CLICK_P, out.exception_); in RegisterUiComponentOperators()
/test/testfwk/arkxtest/uitest/test/
Dui_action_test.cpp53 GenericClick action(TouchOp::CLICK, point); in TEST_F()
73 GenericClick action(TouchOp::LONG_CLICK, point); in TEST_F()
95 GenericClick action(TouchOp::DOUBLE_CLICK_P, point); in TEST_F()
132 GenericSwipe action(TouchOp::SWIPE, point0, point1); in TEST_F()
181 GenericSwipe action(TouchOp::SWIPE, point0, point1); in TEST_F()
415 GenericSwipe swipeAction(TouchOp::SWIPE, point0, point1); in TEST_F()
416 GenericSwipe dragAction(TouchOp::DRAG, point0, point1); in TEST_F()