Home
last modified time | relevance | path

Searched refs:py_ (Results 1 – 11 of 11) sorted by relevance

/test/testfwk/arkxtest/uitest/test/
Dui_action_test.cpp60 ASSERT_EQ(point.py_, event1.point_.py_); in TEST_F()
65 ASSERT_EQ(point.py_, event2.point_.py_); in TEST_F()
80 ASSERT_EQ(point.py_, event1.point_.py_); in TEST_F()
87 ASSERT_EQ(point.py_, event2.point_.py_); in TEST_F()
104 ASSERT_EQ(point.py_, event1.point_.py_); in TEST_F()
109 ASSERT_EQ(point.py_, event2.point_.py_); in TEST_F()
116 ASSERT_EQ(point.py_, event3.point_.py_); in TEST_F()
121 ASSERT_EQ(point.py_, event4.point_.py_); in TEST_F()
140 const int32_t disY = point1.py_ - point0.py_; in TEST_F()
148 int32_t expectedPointerY = point0.py_ + (disY * step) / steps; in TEST_F()
[all …]
Dwidget_operator_test.cpp264 if (MockController::touch_event_records_->At(finger, step).point_.py_ > maxCy) { in TEST_F()
265 maxCy = MockController::touch_event_records_->At(finger, step).point_.py_; in TEST_F()
267 if (MockController::touch_event_records_->At(finger, step).point_.py_ < minCy) { in TEST_F()
268 minCy = MockController::touch_event_records_->At(finger, step).point_.py_; in TEST_F()
302 if (MockController::touch_event_records_->At(0, event).point_.py_ > in TEST_F()
303 MockController::touch_event_records_->At(0, maxCyEventIndex).point_.py_) { in TEST_F()
311 ASSERT_LT(MockController::touch_event_records_->At(0, idx).point_.py_, in TEST_F()
312 MockController::touch_event_records_->At(0, idx + 1).point_.py_); in TEST_F()
314 ASSERT_GT(MockController::touch_event_records_->At(0, idx).point_.py_, in TEST_F()
315 MockController::touch_event_records_->At(0, idx + 1).point_.py_); in TEST_F()
/test/testfwk/arkxtest/uitest/input/
Dui_input.cpp59 to = Point(screenSize.px_ / INDEX_TWO, screenSize.py_ / INDEX_TWO); in CreateFlingPoint()
63 from.py_ = to.py_; in CreateFlingPoint()
67 from.py_ = to.py_; in CreateFlingPoint()
71 from.py_ = to.py_ - screenSize.py_ / INDEX_FOUR; in CreateFlingPoint()
75 from.py_ = to.py_ + screenSize.py_ / INDEX_FOUR; in CreateFlingPoint()
112 const int32_t distanceY = to.py_ - from.py_; in CheckStepLength()
/test/testfwk/arkxtest/uitest/core/
Dwidget_operator.cpp263 topPoint.py_ += options_.scrollWidgetDeadZone_; in TurnPage()
264 bottomPoint.py_ -= options_.scrollWidgetDeadZone_; in TurnPage()
267 auto gestureZone = screenSize.py_ / 20; in TurnPage()
268 if (screenSize.py_ - bounds.bottom_ <= gestureZone) { in TurnPage()
269 bottomPoint.py_ = bottomPoint.py_ - gestureZone; in TurnPage()
274 oriDistance = std::abs(topPoint.py_ - bottomPoint.py_); in TurnPage()
276 LOG_I("turn page from %{public}d to %{public}d", topPoint.py_, bottomPoint.py_); in TurnPage()
278 LOG_I("turn page from %{public}d to %{public}d", bottomPoint.py_, topPoint.py_); in TurnPage()
Dui_model.h98 Point() : px_(0), py_(0){}; in Point()
99 Point(int32_t px, int32_t py) : px_(px), py_(py){}; in Point()
101 int32_t py_; member
201 || point.py_ <= rect.top_ || point.py_ >= rect.bottom_) { in IsInnerPoint()
210 && point.py_ >= rect.top_ && point.py_ <= rect.bottom_) { in IsPointOnEdge()
213 if ((point.py_ == rect.top_ || point.py_ == rect.bottom_) in IsPointOnEdge()
Drect_algorithm.cpp129 return pa.px_ == pb.px_ ? pa.py_ < pb.py_ : pa.px_ < pb.px_; in FindMaxVisibleRegion()
135 const auto height = g_Points[idx1].py_ - g_Points[idx0].py_; in FindMaxVisibleRegion()
143 …t auto area = Rect(g_Points[idx0].px_, g_Points[idx1].px_, g_Points[idx0].py_, g_Points[idx1].py_); in FindMaxVisibleRegion()
Dui_action.cpp62 const int32_t distanceY = to.py_ - from.py_; in DecomposeComputeSwipe()
74 pointer.PushAction(TouchEvent {ActionStage::DOWN, {from.px_, from.py_}, 0, intervalMs}); in DecomposeComputeSwipe()
77 const int32_t pointY = from.py_ + (distanceY * step) / steps; in DecomposeComputeSwipe()
82 pointer.PushAction(TouchEvent {ActionStage::UP, {to.px_, to.py_}, timeCostMs, intervalMs}); in DecomposeComputeSwipe()
166 const int32_t pyTo = pointers_.At(finger, step + 1).point_.py_; in Decompose()
167 const int32_t pyFrom = pointers_.At(finger, step).point_.py_; in Decompose()
181 auto endPy = pointers_.At(finger, pointers_.GetSteps() - 1).point_.py_; in Decompose()
Dfrontend_api_handler.cpp925 to = Point(screenSize.px_ / INDEX_TWO, screenSize.py_ / INDEX_TWO); in CreateFlingPoint()
929 from.py_ = to.py_; in CreateFlingPoint()
933 from.py_ = to.py_; in CreateFlingPoint()
937 from.py_ = to.py_ - screenSize.py_ / INDEX_FOUR; in CreateFlingPoint()
941 from.py_ = to.py_ + screenSize.py_ / INDEX_FOUR; in CreateFlingPoint()
976 const int32_t distanceY = to.py_ - from.py_; in RegisterUiDriverFlingOperators()
1114 data["y"] = result.py_; in RegisterUiDriverDisplayOperators()
1120 data["y"] = result.py_; in RegisterUiDriverDisplayOperators()
/test/testfwk/arkxtest/uitest/record/
Doffset.h31 Offset(Point p1, Point p2) : deltaX_(p2.px_-p1.px_), deltaY_(p2.py_-p1.py_) {} in Offset()
Dui_record.cpp361 Rect windowBounds = Rect(0, screenSize.px_, 0, screenSize.py_); in RecordInitEnv()
/test/testfwk/arkxtest/uitest/server/
Dsystem_ui_controller.cpp323 auto screenRect = Rect(0, screenSize.px_, 0, screenSize.py_); in GetUiWindows()
385 pinterItem.SetDisplayY(events.At(finger, step).point_.py_); in InjectTouchEventSequence()
417 item.SetDisplayY(event.point_.py_); in SetMousePointerItemAttr()
781 Point result(displaySize.px_ * rate, displaySize.py_ * rate); in GetDisplayDensity()