Home
last modified time | relevance | path

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

12

/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DGestureUtils.java106 public static StrokeDescription pointerDown(PointF point) { in pointerDown() argument
107 return new StrokeDescription(path(point), 0, ViewConfiguration.getTapTimeout(), true); in pointerDown()
123 public static StrokeDescription click(PointF point) { in click() argument
124 return new StrokeDescription(path(point), 0, sTapDuration); in click()
127 public static StrokeDescription longClick(PointF point) { in longClick() argument
128 return new StrokeDescription(path(point), 0, ViewConfiguration.getLongPressTimeout() * 3); in longClick()
166 for (PointF point : rest) { in path()
167 path.lineTo(point.x, point.y); in path()
215 public static GestureDescription doubleTap(PointF point) { in doubleTap() argument
216 return doubleTap(point, Display.DEFAULT_DISPLAY); in doubleTap()
[all …]
/cts/tests/tests/gesture/src/android/gesture/cts/
DGesturePointTest.java37 GesturePoint point = new GesturePoint(expected_x, expected_y, expected_timestamp); in testGesturePointConstructor() local
38 assertEquals(expected_x, point.x); in testGesturePointConstructor()
39 assertEquals(expected_y, point.y); in testGesturePointConstructor()
40 assertEquals(expected_timestamp, point.timestamp); in testGesturePointConstructor()
DLineGestureStrokeHelper.java91 for (GesturePoint point : points) { in createGestureStroke()
92 list.add(point); in createGestureStroke()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DColorSpaceTests.java85 point(0, 0), point(48, 0), point(32, 40), point(0, 40), point(0, 56) in testDrawDisplayP3()
99 point(0, 0), point(48, 0), point(32, 40), point(0, 40), point(0, 56) in testDrawDisplayP3Config565()
117 point(0, 0), point(48, 0), point(32, 40), point(0, 40), point(0, 56) in testDrawProPhotoRGB()
132 point(0, 0), point(48, 0), point(32, 40), point(0, 40), point(0, 56) in testDrawProPhotoRGBConfig565()
149 new Point[] { point(0, 0) }, in testDrawTranslucentAdobeRGB()
358 private static Point point(int x, int y) { in point() method in ColorSpaceTests
/cts/tests/tests/view/src/android/view/cts/
DViewUnbufferedTest.java276 final Point point = getViewCenterOnScreen(mView); in testNormalTouch() local
277 sendPointerEvents(point.x, point.y, in testNormalTouch()
292 final Point point = getViewCenterOnScreen(mView); in testUnbufferedTouch() local
293 sendPointerEvents(point.x, point.y, in testUnbufferedTouch()
311 final Point point = getViewCenterOnScreen(mView); in testUnbufferedTouchByEvent() local
312 sendPointerEvents(point.x, point.y, in testUnbufferedTouchByEvent()
326 final Point point = getViewCenterOnScreen(mView); in testUnbufferedTouch_Reset() local
327 sendPointerEvents(point.x, point.y, in testUnbufferedTouch_Reset()
335 sendPointerEvents(point.x, point.y, in testUnbufferedTouch_Reset()
376 final Point point = getViewCenterOnScreen(mView); in testUnbufferedHover() local
[all …]
DVerifyInputEventTest.java167 final Point point = getViewCenterOnScreen(view); in testMotionEvent() local
170 point.x, point.y, 0 /*metaState*/); in testMotionEvent()
181 MotionEvent.ACTION_UP, point.x, point.y, 0 /*metaState*/); in testMotionEvent()
195 final Point point = getViewCenterOnScreen(view); in testMotionEventWithoutHmac() local
198 point.x, point.y, 0 /*metaState*/); in testMotionEventWithoutHmac()
207 point.x, point.y, 0 /*metaState*/); in testMotionEventWithoutHmac()
220 final Point point = getViewCenterOnScreen(view); in testTamperedMotionEvent() local
223 point.x, point.y, 0 /*metaState*/); in testTamperedMotionEvent()
234 MotionEvent.ACTION_UP, point.x, point.y, 0 /*metaState*/); in testTamperedMotionEvent()
277 final Point point = getViewCenterOnScreen(view); in testDeviceIdBecomesVirtualForInjectedMotions() local
[all …]
DSystemGestureExclusionRectsTest.java85 int[] point = new int[2]; in staticView()
86 v.getLocationInWindow(point); in staticView()
87 expected.left = point[0]; in staticView()
88 expected.top = point[1]; in staticView()
226 int[] point = new int[2]; in ignoreHiddenViewRects() local
227 v.getLocationInWindow(point); in ignoreHiddenViewRects()
230 offsetR.offsetTo(point[0], point[1]); in ignoreHiddenViewRects()
DTextureViewTest.java849 private int getPixel(Window window, Point point) { in getPixel() argument
854 int pixel = screenshot.getPixel(point.x, point.y); in getPixel()
859 private void waitForColor(Window window, Point point, int color) in waitForColor() argument
862 int pixel = getPixel(window, point); in waitForColor()
871 private int waitForChange(Window window, Point point, int color) in waitForChange() argument
874 int pixel = getPixel(window, point); in waitForChange()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/touch/
DTouchPointView.java72 finger.point = new Point((int)event.getX(pointerIndex), (int)event.getY(pointerIndex)); in onTouchEvent()
86 Point point = finger.point; in onDraw() local
89 canvas.drawCircle(point.x, point.y, radius, mPaint); in onDraw()
94 public Point point; field in TouchPointView.Finger
/cts/tests/tests/graphics/src/android/graphics/cts/
DPointTest.java43 Point point = new Point(10, 10); in testConstructor() local
44 mPoint = new Point(point); in testConstructor()
65 Point point = new Point(3, 4); in testEquals2() local
66 assertTrue(mPoint.equals(point)); in testEquals2()
67 point = new Point(4, 3); in testEquals2()
68 assertFalse(mPoint.equals(point)); in testEquals2()
DPointFTest.java43 Point point = new Point(10, 10); in testConstructor() local
44 mPointF = new PointF(point); in testConstructor()
/cts/hostsidetests/mediapc/videoencodingquality/bdrate/src/main/java/com/android/media/videoquality/bdrate/
DRateDistortionCurve.java46 public Builder addPoint(RateDistortionPoint point) { in addPoint() argument
48 mPointsBuilder.add(point); in addPoint()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/
DREADME4 the native code, make NDK_BUILD variable to point the correct path in
/cts/apps/CtsVerifier/include/colorchecker/
Dimagetesthandler.h41 void drawPoint(const Vec2i &point, const Vec3i &color);
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewHandwritingGestureTest.java1912 private void performInsertGesture(PointF point) { in performInsertGesture() argument
1913 performInsertGesture(point, /* setFallbackText= */ true); in performInsertGesture()
1916 private void performInsertGesture(PointF point, boolean setFallbackText) { in performInsertGesture() argument
1917 point.offset(mLocationOnScreen[0], mLocationOnScreen[1]); in performInsertGesture()
1919 .setInsertionPoint(point) in performInsertGesture()
1927 private InsertModeGesture performInsertModeGesture(PointF point) { in performInsertModeGesture() argument
1928 return performInsertModeGesture(point, /* setFallbackText= */ true); in performInsertModeGesture()
1931 private InsertModeGesture performInsertModeGesture(PointF point, boolean setFallbackText) { in performInsertModeGesture() argument
1932 point.offset(mLocationOnScreen[0], mLocationOnScreen[1]); in performInsertModeGesture()
1934 .setInsertionPoint(point) in performInsertModeGesture()
[all …]
/cts/tests/openglperf2/assets/vertex/
Dwater26 // Multiply to get the final point in normalized screen coordinates.
Dperspective30 // Multiply to get the final point in normalized screen coordinates.
/cts/tests/tests/animation/src/android/animation/cts/
DValueAnimatorTest.java443 PointF point = (PointF) animation.getAnimatedValue(); in testSetObjectValues()
444 assertTrue(point.x >= 0f && point.x <= 1f); in testSetObjectValues()
445 assertTrue(point.y >= 0f && point.y <= 1f); in testSetObjectValues()
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/
DPdfRendererPreVTest.java445 Point point = new Point(77, 104); in selectPageText() local
446 SelectionBoundary start = new SelectionBoundary(point); in selectPageText()
447 SelectionBoundary stop = new SelectionBoundary(point); in selectPageText()
579 Point point = new Point(157, 330); in selectPageText_withoutRightBoundary_throwsException() local
581 () -> firstPage.selectContent(new SelectionBoundary(point), null)); in selectPageText_withoutRightBoundary_throwsException()
DPdfRendererTest.java738 Point point = new Point(77, 104); in assertSelectPageText() local
739 SelectionBoundary start = new SelectionBoundary(point); in assertSelectPageText()
740 SelectionBoundary stop = new SelectionBoundary(point); in assertSelectPageText()
911 Point point = new Point(157, 330); in assertSelectPageText_withoutRightBoundary() local
913 () -> firstPage.selectContent(new SelectionBoundary(point), null)); in assertSelectPageText_withoutRightBoundary()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dlayered_filter_fast_d1new.rscript414 // At this point, sharp->dilated_depth must be within the depth range of
444 // At this point, sharp->dilated_depth must be within the depth range of
479 // At this point, this pixel must be either active or close enough to an
496 // At this point, sharp->dilated_depth must be within the depth range of
533 // At this point, this pixel must be either active or close enough to an
549 // At this point, sharp->dilated_depth must be within the depth range of
596 // At this point, this pixel must be either active or close enough to an
643 // At this point, this pixel must be either active or close enough to an
Dlayered_filter_fast_f32.rscript313 // At this point, sharp->dilated_depth must be within the depth range of
347 // At this point, this pixel must be either active or close enough to an
364 // At this point, sharp->dilated_depth must be within the depth range of
410 // At this point, this pixel must be either active or close enough to an
/cts/hostsidetests/appsecurity/test-apps/ApkVerityTestAppPrebuilt/
DREADME.md11 key. You will also need to point the test to use your local build.
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java281 private static Object serializePoint(Point point) throws org.json.JSONException { in serializePoint() argument
283 pointObj.put("x", point.x); in serializePoint()
284 pointObj.put("y", point.y); in serializePoint()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java106 private static Object serializePoint(Point point) throws org.json.JSONException { in serializePoint() argument
108 pointObj.put("x", point.x); in serializePoint()
109 pointObj.put("y", point.y); in serializePoint()

12