/test/testfwk/arkxtest/uitest/core/ |
D | ui_model.h | 176 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()
|
D | rect_algorithm.cpp | 106 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()
|
D | ui_action.h | 175 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
|
D | ui_action.cpp | 23 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/ |
D | ComAttr_parentX_parentY_strategy.test.ets | 59 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)
|
D | ComAttr_aboutToAppear.test.ets | 62 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/ |
D | ui_action_test.cpp | 52 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/ |
D | attest_utils.c | 246 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/ |
D | hdi_composition_check.cpp | 60 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/ |
D | CameraSessionFocusTest.test.ets | 534 * @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 …]
|
D | CameraSessionExposureTest.test.ets | 445 * @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/ |
D | attest_utils.c | 243 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/ |
D | ui_input.cpp | 97 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/ |
D | index.d.ts | 154 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/ |
D | CameraSessionFocusTest.test.ets | 912 * @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 …]
|
D | CameraSessionExposureTest.test.ets | 839 * @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/ |
D | attest_utils.h | 34 void AttestMemFree(void **point);
|
/test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/ |
D | TouchAdd.ets | 34 …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/ |
D | attest_utils.h | 34 void AttestMemFree(void **point);
|
/test/xts/acts/arkui/ace_ets_component_two/entry/src/main/ets/test/ |
D | SourceTypeJsunit.test.ets | 56 let point: TouchObject = { 73 console.info('sourceTypeTest_0100 sendTouchEvent :' + sendTouchEvent(point));
|
/test/xts/acts/arkui/ace_ets_component_three/entry/src/main/ets/test/ |
D | ParallelGestureJsunit.test.ets | 56 let point: TouchObject = { 72 console.info('parallelGestureTest_0100 sendTouchEvent result:' + sendTouchEvent(point));
|
D | PriorityGestureJsunit.test.ets | 55 let point: TouchObject = { 71 console.info('priorityGestureTest_0100 sendTouchEvent one:' + sendTouchEvent(point));
|
D | TapGesture.test.ets | 58 let point: TouchObject = { 77 console.info('testTapGesture01 sendTouchEvent one:' + sendTouchEvent(point));
|
D | ResponseRegionJsunit.test.ets | 80 let point: TouchObject = { 101 console.info('[testResponseRegion02] testSendTouchEvent ' + sendTouchEvent(point));
|
/test/xts/acts/multimedia/camera/camera_ndk_test/src/main/cpp/ |
D | camera_manager.cpp | 829 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()
|