Home
last modified time | relevance | path

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

123

/cts/tests/tests/graphics/src/android/graphics/cts/
DPointTest.java24 import android.graphics.Point;
35 private Point mPoint;
39 mPoint = new Point(); in testConstructor()
40 mPoint = new Point(10, 10); in testConstructor()
42 Point point = new Point(10, 10); in testConstructor()
43 mPoint = new Point(point); in testConstructor()
48 mPoint = new Point(); in testSet()
56 mPoint = new Point(3, 4); in testEquals1()
63 mPoint = new Point(3, 4); in testEquals2()
64 Point point = new Point(3, 4); in testEquals2()
[all …]
DPointFTest.java23 import android.graphics.Point;
42 Point point = new Point(10, 10); in testConstructor()
/cts/tests/app/src/android/app/cts/
DWallpaperManagerTest.java21 import android.graphics.Point;
44 final Point min = getScreenSize(); in testSuggestDesiredDimensions()
47 assertDesiredMinimum(new Point(min.x / 2, min.y / 2), min); in testSuggestDesiredDimensions()
49 assertDesiredMinimum(new Point(w, h), min); in testSuggestDesiredDimensions()
51 assertDesiredMinimum(new Point(min.x / 2, h), min); in testSuggestDesiredDimensions()
53 assertDesiredMinimum(new Point(w, min.y / 2), min); in testSuggestDesiredDimensions()
56 private void assertDesiredMinimum(Point suggestedSize, Point minSize) { in assertDesiredMinimum()
58 Point actualSize = new Point(mWallpaperManager.getDesiredMinimumWidth(), in assertDesiredMinimum()
69 private Point getScreenSize() { in getScreenSize()
72 Point p = new Point(); in getScreenSize()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityGestureDispatchTest.java31 import android.graphics.Point;
130 Point clickPoint = new Point(10, 20); in testClickAt_producesDownThenUp()
165 Point clickPoint = new Point(10, 20); in testLongClickAt_producesEventsWithLongClickTiming()
187 Point startPoint = new Point(10, 20); in testSwipe_shouldContainPointsInALine()
188 Point endPoint = new Point(20, 40); in testSwipe_shouldContainPointsInALine()
212 Point intermediatePoint = new Point(startPoint); in testSwipe_shouldContainPointsInALine()
224 Point startPoint = new Point(10, 20); in testSlowSwipe_shouldNotContainMovesForTinyMovement()
225 Point intermediatePoint1 = new Point(10, 21); in testSlowSwipe_shouldNotContainMovesForTinyMovement()
226 Point intermediatePoint2 = new Point(11, 21); in testSlowSwipe_shouldNotContainMovesForTinyMovement()
227 Point intermediatePoint3 = new Point(11, 22); in testSlowSwipe_shouldNotContainMovesForTinyMovement()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DPropertyTest.java19 import android.graphics.Point;
35 private Point mPointValue = new Point(-3, -4);
40 Point testPointValue = new Point(10, 20); in testProperty()
96 private void setPointProp(Point value) { in setPointProp()
100 private Point getPointProp() { in getPointProp()
107 private static final Property<PropertyTest, Point> RAW_POINT_PROP =
108 new Property<PropertyTest, Point>(Point.class, "rawPoint") {
110 public void set(PropertyTest object, Point value) {
115 public Point get(PropertyTest object) {
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DShadowTests.java19 import android.graphics.Point;
35 public GrayScaleVerifier(Point[] testPoints, int[] expectedColors, int tolerance) { in GrayScaleVerifier()
56 new Point[] { in testShadowLayout()
58 new Point(25, 64), in testShadowLayout()
59 new Point(64, 64), in testShadowLayout()
61 new Point(25, 65), in testShadowLayout()
62 new Point(64, 65) in testShadowLayout()
DRgba16fTests.java25 import android.graphics.Point;
58 new Point[] { new Point(0, 0) }, in testTransferFunctions()
82 new Point[] { new Point(0, 0) }, in testAlpha()
116 new Point[] { new Point(0, 0), new Point(31, 31) }, in testMasked()
137 new Point[] { new Point(0, 0) }, in testTransferFunctionsShader()
160 new Point[] { new Point(0, 0) }, in testMirroredTransferFunctions()
DLayerTests.java29 import android.graphics.Point;
356 new Point[] { in testSaveLayerUnclippedWithColorFilterSW()
358 new Point(9, 9), new Point(70, 10), new Point(10, 70), new Point(70, 70), in testSaveLayerUnclippedWithColorFilterSW()
360 new Point(10, 10), new Point(39, 39), in testSaveLayerUnclippedWithColorFilterSW()
362 new Point(40, 10), new Point(69, 39), in testSaveLayerUnclippedWithColorFilterSW()
364 new Point(10, 40), new Point(39, 69), in testSaveLayerUnclippedWithColorFilterSW()
366 new Point(40, 40), new Point(69, 69), in testSaveLayerUnclippedWithColorFilterSW()
407 new Point[]{ in testSaveLayerUnclippedWithAlpha()
409 new Point(9, 9), new Point(70, 10), new Point(10, 70), new Point(70, 70), in testSaveLayerUnclippedWithAlpha()
411 new Point(10, 10), new Point(39, 39), in testSaveLayerUnclippedWithAlpha()
[all …]
DColorFilterAlphaTest.java22 import android.graphics.Point;
46 private static final Point[] TEST_POINTS = new Point[] {
47 new Point(9, 45),
48 new Point(27, 45),
49 new Point(45, 45),
50 new Point(63, 45),
51 new Point(81, 45)
DPathClippingTests.java25 import android.graphics.Point;
108 new Point[] { in testCircleWithPoints()
110 new Point(30, 50), in testCircleWithPoints()
112 new Point(30 + 32, 30 + 32), in testCircleWithPoints()
114 new Point(30 + 38, 30 + 38), in testCircleWithPoints()
115 new Point(80, 80) in testCircleWithPoints()
137 new Point[] { in testViewRotate()
139 new Point(40, 40), in testViewRotate()
140 new Point(40 + 25, 40 + 25), in testViewRotate()
142 new Point(40 + 31, 40 + 31), in testViewRotate()
[all …]
DGradientTests.java22 import android.graphics.Point;
51 .runWithVerifier(new SamplePointVerifier(new Point[] { in testAlphaPreMultiplication()
52 new Point(0, 0), new Point(0, 39) in testAlphaPreMultiplication()
DColorSpaceTests.java29 import android.graphics.Point;
70 new Point[] { in testDrawDisplayP3()
84 new Point[] { in testDrawDisplayP3Config565()
102 new Point[] { in testDrawProPhotoRGB()
117 new Point[] { in testDrawProPhotoRGBConfig565()
135 new Point[] { point(0, 0) }, in testDrawTranslucentAdobeRGB()
188 private static Point point(int x, int y) { in point()
189 return new Point(x, y); in point()
DXfermodeTest.java22 import android.graphics.Point;
50 private final static Point[] TEST_POINTS = new Point[] {
51 new Point(1, 80),
52 new Point(25, 25),
53 new Point(35, 35),
54 new Point(70, 70)
/cts/hostsidetests/services/activityandwindowmanager/windowmanager/src/android/server/cts/
DCrossAppDragAndDropTests.java158 private String getResizeTaskCommand(int taskId, Point topLeft, Point bottomRight) in getResizeTaskCommand()
220 Point displaySize, boolean leftSide) throws Exception{ in launchFreeformActivity()
226 Point topLeft = new Point(leftSide ? 0 : displaySize.x / 2, 0); in launchFreeformActivity()
227 Point bottomRight = new Point(leftSide ? displaySize.x / 2 : displaySize.x, displaySize.y); in launchFreeformActivity()
248 private void injectInput(Point from, Point to, int durationMs) throws Exception { in injectInput()
254 static class Point { class in CrossAppDragAndDropTests
257 public Point(int _x, int _y) { in Point() method in CrossAppDragAndDropTests.Point
262 public Point() {} in Point() method in CrossAppDragAndDropTests.Point
292 private boolean getWindowBounds(String name, Point from, Point to) throws Exception { in getWindowBounds()
318 private Point getDisplaySize() throws Exception { in getDisplaySize()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DTextureViewTest.java26 import android.graphics.Point;
64 final Point center = new Point(); in testFirstFrames()
96 private int getPixel(Point point) { in getPixel()
103 private void waitForColor(Point point, int color) in waitForColor()
115 private int waitForChange(Point point, int color) in waitForChange()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DSamplePointVerifier.java19 import android.graphics.Point;
32 private final Point[] mTestPoints;
36 public SamplePointVerifier(Point[] testPoints, int[] expectedColors) { in SamplePointVerifier()
40 public SamplePointVerifier(Point[] testPoints, int[] expectedColors, int tolerance) { in SamplePointVerifier()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/touch/
DTouchPointView.java23 import android.graphics.Point;
72 finger.point = new Point((int)event.getX(pointerIndex), (int)event.getY(pointerIndex)); in onTouchEvent()
86 Point point = finger.point; in onDraw()
94 public Point point;
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/
DUtils.java23 import android.graphics.Point;
58 public static Point getDisplaySize(Context context) { in getDisplaySize()
61 Point size = new Point(); in getDisplaySize()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.java22 import android.graphics.Point;
45 private final Point mLock = new Point();
92 public Point enqueueRenderSpecAndWait(int layoutId, CanvasClient canvasClient, in enqueueRenderSpecAndWait()
96 Point point = new Point(); in enqueueRenderSpecAndWait()
DActivityTestBase.java24 import android.graphics.Point;
123 public Bitmap takeScreenshot(Point testOffset) { in takeScreenshot()
139 protected Point runRenderSpec(TestCase testCase) { in runRenderSpec()
140 Point testOffset = getActivity().enqueueRenderSpecAndWait( in runRenderSpec()
158 Point testOffset = runRenderSpec(testCase); in captureRenderSpec()
169 Bitmap takeScreenshot(Point point); in takeScreenshot()
233 Point testOffset = runRenderSpec(testCase); in runWithAnimationVerifier()
/cts/hostsidetests/services/activityandwindowmanager/windowmanager/alertwindowappsdk25/src/android/server/alertwindowappsdk25/
DAlertWindowTestBaseActivity.java21 import android.graphics.Point;
54 final Point size = new Point(); in createAlertWindow()
/cts/tests/tests/security/src/android/security/cts/
DMotionEventTest.java25 import android.graphics.Point;
84 final Point size = new Point(); in testActionOutsideDoesNotContainedObscuredInformation()
122 FutureTask<Point> task = new FutureTask<>(() -> { in testActionOutsideDoesNotContainedObscuredInformation()
125 return new Point(viewLocation[0], viewLocation[1]); in testActionOutsideDoesNotContainedObscuredInformation()
128 Point viewLocation = task.get(5, TimeUnit.SECONDS); in testActionOutsideDoesNotContainedObscuredInformation()
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/app/src/android/server/cts/
DAbstractLifecycleLogActivity.java21 import android.graphics.Point;
89 final Point point = new Point(); in dumpDisplaySize()
/cts/tests/tests/assist/src/android/assist/cts/
DAssistantContentViewTest.java24 import android.graphics.Point;
85 Point displayPoint = (Point) mIntent.getParcelableExtra(Utils.EXTRA_DISPLAY_POINT); in testAssistantContentViewDimens()
/cts/tests/dram/src/android/dram/cts/
DBandwidthTest.java20 import android.graphics.Point;
182 Point size = new Point(); in doRunMemcpy()
217 Point size = new Point(); in doRunMemset()

123