Home
last modified time | relevance | path

Searched refs:Point (Results 1 – 25 of 146) sorted by relevance

123456

/cts/tests/tests/graphics/src/android/graphics/cts/
DPointTest.java24 import android.graphics.Point;
36 private Point mPoint;
40 mPoint = new Point(); in testConstructor()
41 mPoint = new Point(10, 10); in testConstructor()
43 Point point = new Point(10, 10); in testConstructor()
44 mPoint = new Point(point); in testConstructor()
49 mPoint = new Point(); in testSet()
57 mPoint = new Point(3, 4); in testEquals1()
64 mPoint = new Point(3, 4); in testEquals2()
65 Point point = new Point(3, 4); in testEquals2()
[all …]
DRadialGradientTest.java28 import android.graphics.Point;
92 for (Point p : new Point[] { new Point(0, 0), new Point(50, 0), new Point(99, 0), in testColorLong()
93 new Point(0, 50), new Point(0, 99), new Point(99, 0), new Point(99, 50), in testColorLong()
94 new Point(99, 99) }) { in testColorLong()
101 Point lastPoint = new Point(0, 0); in testColorLong()
106 Point currentPoint = null; in testColorLong()
117 currentPoint = new Point(x, y); in testColorLong()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DViewFadingEdgeTests.java21 import android.graphics.Point;
96 .runWithVerifier(new SamplePointVerifier(new Point[] { in testCreateLeftFade()
97 new Point(0, 0), in testCreateLeftFade()
98 new Point(TEST_WIDTH / 4, 0), in testCreateLeftFade()
99 new Point(TEST_WIDTH / 2, 0), in testCreateLeftFade()
100 new Point(TEST_WIDTH - 1, 0) in testCreateLeftFade()
120 .runWithVerifier(new SamplePointVerifier(new Point[] { in testCreateRightFade()
121 new Point(0, 0), in testCreateRightFade()
122 new Point(TEST_WIDTH / 2, 0), in testCreateRightFade()
123 new Point((TEST_WIDTH / 4) * 3, 0), in testCreateRightFade()
[all …]
DGradientTests.java27 import android.graphics.Point;
62 .runWithVerifier(new SamplePointVerifier(new Point[] { in testAlphaPreMultiplication()
63 new Point(0, 0), new Point(0, 39) in testAlphaPreMultiplication()
99 new Point[]{ in testRadialGradientWithFocalPoint()
100 new Point(0, 0), in testRadialGradientWithFocalPoint()
101 new Point(TEST_WIDTH - 1, 0), in testRadialGradientWithFocalPoint()
102 new Point(TEST_WIDTH - 1, TEST_HEIGHT - 1), in testRadialGradientWithFocalPoint()
103 new Point(0, TEST_HEIGHT - 1), in testRadialGradientWithFocalPoint()
104 new Point(TEST_WIDTH / 2 - 10, TEST_HEIGHT / 2 - 10) in testRadialGradientWithFocalPoint()
139 new Point[]{ in testRadialGradientSameStartEndCircles()
[all …]
DBitmapBlendModeTest.java20 import android.graphics.Point;
36 private static final Point[] SAMPLE_POINTS = {
37 new Point(0, 0),
38 new Point(TEST_WIDTH - 1, 0),
39 new Point(0, TEST_HEIGHT - 1),
40 new Point(TEST_WIDTH - 1, TEST_HEIGHT - 1),
41 new Point(TEST_WIDTH / 2, TEST_HEIGHT / 2)
DRgba16fTests.java25 import android.graphics.Point;
59 new Point[] { new Point(0, 0) }, in testTransferFunctions()
83 new Point[] { new Point(0, 0) }, in testAlpha()
117 new Point[] { new Point(0, 0), new Point(31, 31) }, in testMasked()
138 new Point[] { new Point(0, 0) }, in testTransferFunctionsShader()
DWideColorGamutTests.java26 import android.graphics.Point;
56 private static final Point[] POINTS = {
57 new Point(16, 16),
58 new Point(48, 16),
59 new Point(80, 16),
88 private BitmapVerifier getVerifier(Point[] points, Color[] colors, float eps) { in getVerifier()
149 new Point[] { new Point(0, 0), new Point(50, 50) }, in testCanvasDrawColorLong()
184 new Point[] { new Point(0, 0), new Point(50, 50) }, in testCanvasDrawColorLongBlendMode()
216 new Point[] { new Point(0, 0) }, in testProPhoto()
DColorFilterAlphaTest.java23 import android.graphics.Point;
51 private static final Point[] TEST_POINTS = new Point[] {
52 new Point(9, 45),
53 new Point(27, 45),
54 new Point(45, 45),
55 new Point(63, 45),
56 new Point(81, 45)
DPathClippingTests.java25 import android.graphics.Point;
125 new Point[] { in testCircleWithPoints()
127 new Point(30, 50), in testCircleWithPoints()
129 new Point(30 + 32, 30 + 32), in testCircleWithPoints()
131 new Point(30 + 38, 30 + 38), in testCircleWithPoints()
132 new Point(80, 80) in testCircleWithPoints()
154 new Point[] { in testViewRotate()
156 new Point(40, 40), in testViewRotate()
157 new Point(40 + 25, 40 + 25), in testViewRotate()
159 new Point(40 + 31, 40 + 31), in testViewRotate()
[all …]
DLayoutTests.java19 import android.graphics.Point;
54 new Point[] { in testTransformChildViewLayout()
55 new Point(20, 10), in testTransformChildViewLayout()
56 new Point(0, TEST_HEIGHT - 1) in testTransformChildViewLayout()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeLayoutInfo.java19 import android.graphics.Point;
45 private Point mViewOriginOnScreen;
47 private Point mDisplaySize;
68 @NonNull Point viewOriginOnScreen, @Nullable Point displaySize) { in ImeLayoutInfo()
71 mViewOriginOnScreen = new Point(viewOriginOnScreen); in ImeLayoutInfo()
72 mDisplaySize = new Point(displaySize); in ImeLayoutInfo()
85 final Point viewOrigin = bundle.getParcelable(VIEW_ORIGIN_ON_SCREEN_KEY); in readFromBundle()
86 final Point displaySize = bundle.getParcelable(DISPLAY_SIZE_KEY); in readFromBundle()
97 final Point viewOrigin = new Point(viewOriginArray[0], viewOriginArray[1]); in fromLayoutListenerCallback()
99 final Point displaySize; in fromLayoutListenerCallback()
[all …]
/cts/tests/input/src/android/input/cts/
DTouchScreenTest.kt20 import android.graphics.Point
105 val location1 = Point(100, 100) in testMultiTouch()
106 val location2 = Point(150, 150) in testMultiTouch()
133 val location = Point(100, 100) in testDeviceCancel()
158 val location1 = Point(100, 100) in testDevicePointerCancel()
159 val location2 = Point(150, 150) in testDevicePointerCancel()
195 Point(0, 0), in testTouchScreenPrecisionOrientation0()
196 Point(WIDTH - 1, 0), in testTouchScreenPrecisionOrientation0()
197 Point(WIDTH - 1, HEIGHT - 1), in testTouchScreenPrecisionOrientation0()
198 Point(0, HEIGHT - 1), in testTouchScreenPrecisionOrientation0()
[all …]
DDrawingTabletTest.kt20 import android.graphics.Point
161 transformToExpectedPoint: (Point) -> PointF? in verifyTaps()
202 Point(0, 0), // top-left corner of drawing tablet
203 Point(WIDTH - 1, 0), // top-right corner of drawing tablet
204 Point(WIDTH - 1, HEIGHT - 1), // bottom-right corner of drawing tablet
205 Point(0, HEIGHT - 1), // bottom-left corner of drawing tablet
206 Point(200, 200), // point inside drawing tablet
207 Point(200, 600), // point inside drawing tablet
223 fun transformForUnrotatedDrawingTablet(p: Point): PointF? { in transformForUnrotatedDrawingTablet()
240 fun transformForRotatedDrawingTablet(p: Point): PointF? { in transformForRotatedDrawingTablet()
/cts/tests/tests/util/src/android/util/cts/
DPropertyTest.java21 import android.graphics.Point;
37 private Point mPointValue = new Point(-3, -4);
42 Point testPointValue = new Point(10, 20); in testProperty()
98 private void setPointProp(Point value) { in setPointProp()
102 private Point getPointProp() { in getPointProp()
109 private static final Property<PropertyTest, Point> RAW_POINT_PROP =
110 new Property<PropertyTest, Point>(Point.class, "rawPoint") {
112 public void set(PropertyTest object, Point value) {
117 public Point get(PropertyTest object) {
/cts/tests/tests/view/src/android/view/cts/
DViewGroup_ScrollCaptureTest.java28 import android.graphics.Point;
145 Point windowOffset = new Point(); in testDispatchScrollCaptureSearch()
167 Point windowOffset = new Point(); in testDispatchScrollCaptureSearch_withCallback()
200 Point windowOffset = new Point(); in testDispatchScrollCaptureSearch_withCallback_hintExclude()
225 Point windowOffset = new Point(0, 0); in testDispatchScrollCaptureSearch_toChildren()
288 new Rect(25, 25, 150, 75), new Point(0, 25)); in testDispatchScrollCaptureSearch_toChildren()
294 new Rect(25, 0, 175, 50), new Point(0, 100)); in testDispatchScrollCaptureSearch_toChildren()
302 new Rect(0, 0, 25, 50), new Point(150, 100)); in testDispatchScrollCaptureSearch_toChildren()
337 Point windowOffset = new Point(0, 0); in testOnScrollCaptureSearch_withPadding()
361 parent.assertOnScrollCaptureSearchLastArgs(new Rect(25, 50, 175, 150), new Point(0, 0)); in testOnScrollCaptureSearch_withPadding()
[all …]
DScrollCaptureSessionTest.java21 import android.graphics.Point;
54 new ScrollCaptureSession(null, new Rect(1, 2, 3, 4), new Point(5, 6)); in testConstructor_requiresNonNullSurface()
59 new ScrollCaptureSession(mSurface, null, new Point(5, 6)); in testConstructor_requiresNonNullBounds()
70 new Rect(1, 2, 3, 4), new Point(5, 6)); in testGetSurface()
77 new Rect(1, 2, 3, 4), new Point(5, 6)); in testGetScrollBounds()
84 new Rect(1, 2, 3, 4), new Point(5, 6)); in testGetPositionInWindow()
85 assertEquals(new Point(5, 6), session.getPositionInWindow()); in testGetPositionInWindow()
DScrollCaptureTargetTest.java39 import android.graphics.Point;
94 new ScrollCaptureTarget(null, new Rect(1, 2, 3, 4), new Point(5, 6), mCallback); in testConstructor_requiresNonNullTarget()
100 new ScrollCaptureTarget(mTargetView, null, new Point(5, 6), mCallback); in testConstructor_requiresNonNullVisibleRect()
112 new ScrollCaptureTarget(mTargetView, new Rect(1, 2, 3, 4), new Point(5, 6), null); in testConstructor_requiresNonNullCallback()
120 new Rect(0, 0, 10, 10), new Point(5, 5), mCallback); in testScrollBounds()
145 new Rect(1, 2, 3, 4), new Point(5, 6), mCallback); in testContainingView()
154 new Rect(1, 2, 3, 4), new Point(5, 6), mCallback); in testLocalVisibleRect()
164 new Rect(0, 0, 2, 2), new Point(0, 0), mCallback); in testPositionInWindow()
165 assertEquals(new Point(0, 0), target.getPositionInWindow()); in testPositionInWindow()
171 assertEquals(new Point(5, 6), target.getPositionInWindow()); in testPositionInWindow()
[all …]
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testclasses/
DBitmapBlendModeTest.java20 import android.graphics.Point;
36 private static final Point[] SAMPLE_POINTS = {
37 new Point(0, 0),
38 new Point(TEST_WIDTH - 1, 0),
39 new Point(0, TEST_HEIGHT - 1),
40 new Point(TEST_WIDTH - 1, TEST_HEIGHT - 1),
41 new Point (TEST_WIDTH / 2, TEST_HEIGHT / 2)
/cts/tests/app/src/android/app/cts/
DDisplayTest.java27 import android.graphics.Point;
71 final Point origSize = new Point(); in testRotation()
87 final Point newOrigSize = new Point(); in testRotation()
92 final Point updatedSize = new Point(); in testRotation()
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsBehaviorTests.java49 import android.graphics.Point;
207 private List<Point> mActionCancelPoints;
208 private List<Point> mActionDownPoints;
209 private List<Point> mActionUpPoints;
385 private void swipeByUiDevice(Point p1, Point p2) { in swipeByUiDevice()
389 private void clickAndWaitByUiDevice(Point p) { in clickAndWaitByUiDevice()
411 private int swipeBigX(Rect viewBoundary, BiConsumer<Point, Point> callback) { in swipeBigX() argument
418 callback.accept(new Point(theLeftestLine, theToppestLine), in swipeBigX()
419 new Point(theRightestLine, theBottomestLine)); in swipeBigX()
424 callback.accept(new Point(theRightestLine, theToppestLine), in swipeBigX()
[all …]
DWindowInsetsPresenterDrawable.java27 import android.graphics.Point;
46 private final List<Point> mAllActionPoints;
47 private final List<Point> mActionCancelPoints;
48 private final List<Point> mActionDownPoints;
49 private final List<Point> mActionUpPoints;
148 for (Point p : mAllActionPoints) { in draw()
184 Point p; in onTouch()
188 p = new Point((int) event.getX(), (int) event.getY()); in onTouch()
198 p = new Point((int) event.getX(), (int) event.getY()); in onTouch()
205 p = new Point((int) event.getX(), (int) event.getY()); in onTouch()
[all …]
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/
DPdfRendererPreVTest.java40 import android.graphics.Point;
445 Point point = new Point(77, 104); in selectPageText()
451 Point leftPoint = new Point(93, 139); in selectPageText()
452 Point rightPoint = new Point(147, 139); in selectPageText()
458 assertSelectionBoundary(firstTextSelection.getStart(), -1, new Point(72, 103)); in selectPageText()
459 assertSelectionBoundary(firstTextSelection.getStop(), -1, new Point(91, 103)); in selectPageText()
476 Point leftPoint = new Point(93, 139); in selectPageText_textSpreadAcrossMultipleLines()
477 Point rightPoint = new Point(135, 168); in selectPageText_textSpreadAcrossMultipleLines()
482 assertSelectionBoundary(textSelection.getStart(), -1, new Point(93, 139)); in selectPageText_textSpreadAcrossMultipleLines()
483 assertSelectionBoundary(textSelection.getStop(), -1, new Point(135, 163)); in selectPageText_textSpreadAcrossMultipleLines()
[all …]
DPdfFormFillingTest.java26 import android.graphics.Point;
160 verifyFormWidgetInfo(CLICK_FORM, 0, new Point(145, 80), expected); in getFormWidgetInfo_checkbox()
172 verifyFormWidgetInfo(CLICK_FORM, 0, new Point(95, 240), expected); in getFormWidgetInfo_radioButton()
184 verifyFormWidgetInfo(CLICK_FORM, 0, new Point(145, 40), expected); in getFormWidgetInfo_readOnlyCheckbox()
196 verifyFormWidgetInfo(CLICK_FORM, 0, new Point(95, 190), expected); in getFormWidgetInfo_readOnlyRadioButton()
215 verifyFormWidgetInfo(COMBOBOX_FORM, 0, new Point(150, 235), expected); in getFormWidgetInfo_editableCombobox()
257 verifyFormWidgetInfo(COMBOBOX_FORM, 0, new Point(150, 185), expected); in getFormWidgetInfo_unEditableCombobox()
273 verifyFormWidgetInfo(COMBOBOX_FORM, 0, new Point(150, 85), expected); in getFormWidgetInfo_readOnlyCombobox()
298 verifyFormWidgetInfo(LISTBOX_FORM, 0, new Point(150, 485), expected); in getFormWidgetInfo_listbox()
323 verifyFormWidgetInfo(LISTBOX_FORM, 0, new Point(150, 485), expected); in getFormWidgetInfo_multiselectListbox()
[all …]
DPdfFormFillingPreVTest.java26 import android.graphics.Point;
157 verifyFormWidgetInfo(CLICK_FORM, 0, new Point(145, 80), expected); in getFormWidgetInfo_checkbox()
169 verifyFormWidgetInfo(CLICK_FORM, 0, new Point(95, 240), expected); in getFormWidgetInfo_radioButton()
181 verifyFormWidgetInfo(CLICK_FORM, 0, new Point(145, 40), expected); in getFormWidgetInfo_readOnlyCheckbox()
193 verifyFormWidgetInfo(CLICK_FORM, 0, new Point(95, 190), expected); in getFormWidgetInfo_readOnlyRadioButton()
212 verifyFormWidgetInfo(COMBOBOX_FORM, 0, new Point(150, 235), expected); in getFormWidgetInfo_editableCombobox()
254 verifyFormWidgetInfo(COMBOBOX_FORM, 0, new Point(150, 185), expected); in getFormWidgetInfo_unEditableCombobox()
270 verifyFormWidgetInfo(COMBOBOX_FORM, 0, new Point(150, 85), expected); in getFormWidgetInfo_readOnlyCombobox()
296 verifyFormWidgetInfo(LISTBOX_FORM, 0, new Point(150, 485), expected); in getFormWidgetInfo_listbox()
322 verifyFormWidgetInfo(LISTBOX_FORM, 0, new Point(150, 485), expected); in getFormWidgetInfo_multiselectListbox()
[all …]
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceControlInputReceiverTests.java44 import android.graphics.Point;
152 Point tappedCoords = new Point(); in testLocalSurfaceControlReceivesInput()
157 Point centerCoordRelativeToWindow = new Point(bounds.width() / 2, in testLocalSurfaceControlReceivesInput()
226 final Point tapCoord = new Point(bounds.left + bounds.width() / 2, in testRemoteSurfaceControlReceivesInput()
230 final Point centerCoordRelativeToWindow = new Point(bounds.width() / 2, in testRemoteSurfaceControlReceivesInput()
282 Point tappedCoords = new Point(); in testNonBatchedSurfaceControlReceivesInput()
287 Point centerCoordRelativeToWindow = new Point(bounds.width() / 2, in testNonBatchedSurfaceControlReceivesInput()
320 Point tappedCoords = new Point(); in testTransferGestureFromHostToEmbedded()
328 Point centerCoordRelativeToWindow = new Point(bounds.width() / 2, in testTransferGestureFromHostToEmbedded()
338 Point coordRelativeToWindow) throws InterruptedException { in assertMotionEventInWindow()
[all …]

123456