Home
last modified time | relevance | path

Searched refs:point (Results 1 – 25 of 48) sorted by relevance

12

/test/testfwk/arkxtest/uitest/core/
Dui_model.h176 FORCE_INLINE static bool IsInnerPoint(const Rect &rect, const Point &point);
177 FORCE_INLINE static bool IsPointOnEdge(const Rect &rect, const Point &point);
198 FORCE_INLINE bool RectAlgorithm::IsInnerPoint(const Rect &rect, const Point& point) in IsInnerPoint() argument
200 if (point.px_ <= rect.left_ || point.px_ >= rect.right_ in IsInnerPoint()
201 || point.py_ <= rect.top_ || point.py_ >= rect.bottom_) { in IsInnerPoint()
207 FORCE_INLINE bool RectAlgorithm::IsPointOnEdge(const Rect &rect, const Point& point) in IsPointOnEdge() argument
209 if ((point.px_ == rect.left_ || point.px_ == rect.right_) in IsPointOnEdge()
210 && point.py_ >= rect.top_ && point.py_ <= rect.bottom_) { in IsPointOnEdge()
213 if ((point.py_ == rect.top_ || point.py_ == rect.bottom_) in IsPointOnEdge()
214 && point.px_ >= rect.left_ && point.px_ <= rect.right_) { in IsPointOnEdge()
Drect_algorithm.cpp106 const auto point = Point(px, py); in CollectGridPoint() local
107 const bool onRectEdge = RectAlgorithm::IsPointOnEdge(rect, point); in CollectGridPoint()
108 if (!onRectEdge && !RectAlgorithm::IsInnerPoint(rect, point)) { in CollectGridPoint()
113 if (RectAlgorithm::IsInnerPoint(overlay, point)) { in CollectGridPoint()
117 onOverlyEdge = RectAlgorithm::IsPointOnEdge(overlay, point); in CollectGridPoint()
121 g_Points[g_PCount++] = point; in CollectGridPoint()
Dui_action.h175 GenericClick(TouchOp type, const Point &point) : type_(type), point_(point) {}; in GenericClick() argument
336 explicit MouseMoveTo(const Point &point) : point_(point) {}; in MouseMoveTo() argument
362 …explicit MouseClick(TouchOp type, const Point &point, const MouseButton &button, int32_t &key1, in… in MouseClick() argument
363 : type_(type), point_(point), button_(button), key1_(key1), key2_(key2) {}; in MouseClick()
379 …explicit MouseScroll(const Point &point, int32_t scrollValue, int32_t key1, int32_t key2, uint32_t… in MouseScroll() argument
380 … : point_(point), scrollValue_(scrollValue), key1_(key1), key2_(key2), speed_(speed) {}; in MouseScroll()
399 … GenericAtomicAction(const ActionStage stage, const Point point) : stage_(stage), point_(point) {}; in GenericAtomicAction() argument
Dui_action.cpp23 static void DecomposeClick(PointerMatrix &recv, const Point &point, const UiOpArgs &options) in DecomposeClick() argument
28 pointer.PushAction(TouchEvent {ActionStage::DOWN, point, 0, options.clickHoldMs_}); in DecomposeClick()
29 pointer.PushAction(TouchEvent {ActionStage::UP, point, options.clickHoldMs_, 0}); in DecomposeClick()
33 static void DecomposeLongClick(PointerMatrix &recv, const Point &point, const UiOpArgs &options) in DecomposeLongClick() argument
39 pointer.PushAction(TouchEvent {ActionStage::DOWN, point, 0, options.longClickHoldMs_}); in DecomposeLongClick()
40 pointer.PushAction(TouchEvent {ActionStage::UP, point, options.longClickHoldMs_, 0}); in DecomposeLongClick()
44 … static void DecomposeDoubleClick(PointerMatrix &recv, const Point &point, const UiOpArgs &options) in DecomposeDoubleClick() argument
50 pointer.PushAction(TouchEvent {ActionStage::DOWN, point, 0, options.clickHoldMs_}); in DecomposeDoubleClick()
51 pointer.PushAction(TouchEvent {ActionStage::UP, point, options.clickHoldMs_, msInterval}); in DecomposeDoubleClick()
53 pointer.PushAction(TouchEvent {ActionStage::DOWN, point, 0, options.clickHoldMs_}); in DecomposeDoubleClick()
[all …]
/test/xts/acts/arkui/ace_ets_component_api11_completion/entry/src/main/ets/test/ComAttr/
DComAttr_parentX_parentY_strategy.test.ets59 let point = await row.getBoundsCenter();
61 await driver.click(point.x, point.y)
85 let point = await row.getBoundsCenter();
87 await driver.click(point.x, point.y)
110 let point = await row.getBoundsCenter();
112 await driver.click(point.x, point.y)
136 let point = await row.getBoundsCenter();
138 await driver.click(point.x, point.y)
162 let point = await row.getBoundsCenter();
164 await driver.click(point.x, point.y)
DComAttr_aboutToAppear.test.ets62 let point = await closeButton.getBoundsCenter();
64 await driver.click(point.x, point.y)
91 let point = await closeButton.getBoundsCenter();
93 await driver.click(point.x, point.y)
/test/testfwk/arkxtest/uitest/test/
Dui_action_test.cpp52 Point point {100, 200}; in TEST_F() local
53 GenericClick action(TouchOp::CLICK, point); in TEST_F()
59 ASSERT_EQ(point.px_, event1.point_.px_); in TEST_F()
60 ASSERT_EQ(point.py_, event1.point_.py_); in TEST_F()
64 ASSERT_EQ(point.px_, event2.point_.px_); in TEST_F()
65 ASSERT_EQ(point.py_, event2.point_.py_); in TEST_F()
72 Point point {100, 200}; in TEST_F() local
73 GenericClick action(TouchOp::LONG_CLICK, point); in TEST_F()
79 ASSERT_EQ(point.px_, event1.point_.px_); in TEST_F()
80 ASSERT_EQ(point.py_, event1.point_.py_); in TEST_F()
[all …]
/test/xts/device_attest_lite/services/core/utils/
Dattest_utils.c246 void AttestMemFree(void **point) in AttestMemFree() argument
248 if (point == NULL || *point == NULL) { in AttestMemFree()
252 (void)RemoveMemInfo(*point); in AttestMemFree()
254 free(*point); in AttestMemFree()
255 *point = NULL; in AttestMemFree()
/test/xts/hats/hdf/display/composer/common/
Dhdi_composition_check.cpp60 for (auto point : points) { in GetCheckColors() local
66 if ((point.x >= RECT.x) && (point.x < (RECT.x + RECT.w)) && (point.y >= RECT.y) && in GetCheckColors()
67 (point.y < (RECT.y + RECT.h))) { in GetCheckColors()
/test/xts/acts/multimedia/camera/camera_ndk_test/src/main/ets/test/
DCameraSessionFocusTest.test.ets534 * @tc.name : Check capture session set focus point with promise
535 * @tc.desc : Check capture session set focus point with promise
558 * @tc.name : Check capture session set focus point with promise(left-top point)
559 * @tc.desc : Check capture session set focus point with promise(left-top point)
582 * @tc.name : Check capture session set focus point with promise(right-top point)
583 * @tc.desc : Check capture session set focus point with promise(right-top point)
606 * @tc.name : Check capture session set focus point with promise(left-bottom point)
607 * @tc.desc : Check capture session set focus point with promise(left-bottom point)
630 * @tc.name : Check capture session set focus point with promise(right-bottom point)
631 * @tc.desc : Check capture session set focus point with promise(right-bottom point)
[all …]
DCameraSessionExposureTest.test.ets445 * @tc.name : Check capture session set METERING point with promise
446 * @tc.desc : Check capture session set METERING point with promise
469 * @tc.name : Check capture session set METERING point with promise(left-top point)
470 * @tc.desc : Check capture session set METERING point with promise(left-top point)
493 * @tc.name : Check capture session set METERING point with promise(right-top point)
494 * @tc.desc : Check capture session set METERING point with promise(right-top point)
517 * @tc.name : Check capture session set METERING point with promise(left-bottom point)
518 * @tc.desc : Check capture session set METERING point with promise(left-bottom point)
541 * @tc.name : Check capture session set METERING point with promise(right-bottom point)
542 * @tc.desc : Check capture session set METERING point with promise(right-bottom point)
[all …]
/test/xts/device_attest/services/core/utils/
Dattest_utils.c243 void AttestMemFree(void **point) in AttestMemFree() argument
245 if (point == NULL || *point == NULL) { in AttestMemFree()
249 (void)RemoveMemInfo(*point); in AttestMemFree()
251 free(*point); in AttestMemFree()
252 *point = NULL; in AttestMemFree()
/test/testfwk/arkxtest/uitest/input/
Dui_input.cpp97 bool GetPoint(Point &point, int32_t argc, char *argv[]) in GetPoint() argument
106 point = Point(from_x, from_y); in GetPoint()
236 Point point; in TextActionInput() local
237 if (!GetPoint(point, argc, argv)) { in TextActionInput()
241 auto touch = GenericClick(TouchOp::CLICK, point); in TextActionInput()
262 Point point; in ClickActionInput() local
263 if (!GetPoint(point, argc, argv)) { in ClickActionInput()
266 auto touch = GenericClick(op, point); in ClickActionInput()
/test/xts/acts/multimedia/camera/camera_ndk_test/src/main/cpp/types/libentry/
Dindex.d.ts154 export const sessionSetMeteringPoint: (point: Point) => number;
168 export const sessionSetFocusPoint: (point: Point) => number;
/test/xts/acts/multimedia/camera/camera_js_standard/entry/src/main/ets/test/
DCameraSessionFocusTest.test.ets912 * @tc.name : Check capture session set focus point with promise
913 * @tc.desc : Check capture session set focus point with promise
958 * @tc.name : Check capture session set focus point with promise(left-top point)
959 * @tc.desc : Check capture session set focus point with promise(left-top point)
1005 * @tc.name : Check capture session set focus point with promise(right-top point)
1006 * @tc.desc : Check capture session set focus point with promise(right-top point)
1052 * @tc.name : Check capture session set focus point with promise(left-bottom point)
1053 * @tc.desc : Check capture session set focus point with promise(left-bottom point)
1099 * @tc.name : Check capture session set focus point with promise(right-bottom point)
1100 * @tc.desc : Check capture session set focus point with promise(right-bottom point)
[all …]
DCameraSessionExposureTest.test.ets839 * @tc.name : Check capture session set METERING point with promise
840 * @tc.desc : Check capture session set METERING point with promise
883 * @tc.name : Check capture session set METERING point with promise(left-top point)
884 * @tc.desc : Check capture session set METERING point with promise(left-top point)
930 * @tc.name : Check capture session set METERING point with promise(right-top point)
931 * @tc.desc : Check capture session set METERING point with promise(right-top point)
976 * @tc.name : Check capture session set METERING point with promise(left-bottom point)
977 * @tc.desc : Check capture session set METERING point with promise(left-bottom point)
1023 * @tc.name : Check capture session set METERING point with promise(right-bottom point)
1024 * @tc.desc : Check capture session set METERING point with promise(right-bottom point)
[all …]
/test/xts/device_attest_lite/services/core/include/utils/
Dattest_utils.h34 void AttestMemFree(void **point);
/test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/
DTouchAdd.ets34 …this.text = 'TouchType:' + this.eventType + '\nDistance between touch point and touch element:\nx:…
50 …this.text = 'TouchType:' + this.eventType + '\nDistance between touch point and touch element:\nx:…
/test/xts/device_attest/services/core/include/utils/
Dattest_utils.h34 void AttestMemFree(void **point);
/test/xts/acts/arkui/ace_ets_component_two/entry/src/main/ets/test/
DSourceTypeJsunit.test.ets56 let point: TouchObject = {
73 console.info('sourceTypeTest_0100 sendTouchEvent :' + sendTouchEvent(point));
/test/xts/acts/arkui/ace_ets_component_three/entry/src/main/ets/test/
DParallelGestureJsunit.test.ets56 let point: TouchObject = {
72 console.info('parallelGestureTest_0100 sendTouchEvent result:' + sendTouchEvent(point));
DPriorityGestureJsunit.test.ets55 let point: TouchObject = {
71 console.info('priorityGestureTest_0100 sendTouchEvent one:' + sendTouchEvent(point));
DTapGesture.test.ets58 let point: TouchObject = {
77 console.info('testTapGesture01 sendTouchEvent one:' + sendTouchEvent(point));
DResponseRegionJsunit.test.ets80 let point: TouchObject = {
101 console.info('[testResponseRegion02] testSendTouchEvent ' + sendTouchEvent(point));
/test/xts/acts/multimedia/camera/camera_ndk_test/src/main/cpp/
Dcamera_manager.cpp829 Camera_Point point; in SessionSetMeteringPoint() local
830 point.x = point_x; in SessionSetMeteringPoint()
831 point.y = point_y; in SessionSetMeteringPoint()
833 Camera_ErrorCode ret = OH_CaptureSession_SetMeteringPoint(captureSession_, point); in SessionSetMeteringPoint()
919 Camera_Point point; in SessionSetFocusPoint() local
920 point.x = point_x; in SessionSetFocusPoint()
921 point.y = point_y; in SessionSetFocusPoint()
922 Camera_ErrorCode ret = OH_CaptureSession_SetFocusPoint(captureSession_, point); in SessionSetFocusPoint()

12