Home
last modified time | relevance | path

Searched refs:Path (Results 1 – 25 of 81) sorted by relevance

1234

/cts/tests/tests/graphics/src/android/graphics/cts/
DPathTest.java29 import android.graphics.Path;
53 new Path(); in testConstructor()
56 new Path(new Path()); in testConstructor()
61 Path path = new Path(); in testAddRect1()
64 path.addRect(rect, Path.Direction.CW); in testAddRect1()
70 Path path = new Path(); in testAddRect2()
72 path.addRect(LEFT, TOP, RIGHT, BOTTOM, Path.Direction.CW); in testAddRect2()
78 Path path = new Path(); in testMoveTo()
84 Path path = new Path(); in testSet()
86 Path path1 = new Path(); in testSet()
[all …]
DPathMeasureTest.java24 import android.graphics.Path;
25 import android.graphics.Path.Direction;
39 private Path mPath;
43 mPath = new Path(); in setup()
52 Path path = new Path(); in testConstructor()
76 mPath.addRect(1f, 2f, 3f, 4f, Path.Direction.CW); in testGetPosTan()
86 mPath.addRect(1, 2, 3, 4, Path.Direction.CW); in testNextContour()
87 mPath.addRect(1, 2, 3, 4, Path.Direction.CW); in testNextContour()
96 mPath.addRect(1, 2, 3, 4, Path.Direction.CW); in testGetLength()
103 Path circle = new Path(); in testIsClosed()
[all …]
DPathDashPathEffectTest.java26 import android.graphics.Path;
27 import android.graphics.Path.Direction;
80 private static Path path() { in path()
81 Path p = new Path(); in path()
87 private static Path shape() { in shape()
88 Path p = new Path(); in shape()
DOutlineTest.java24 import android.graphics.Path;
182 Path path = new Path();
188 path.addCircle(50, 50, 50, Path.Direction.CW);
196 Path path = new Path();
197 path.addRect(0, 0, 100, 10, Path.Direction.CW);
198 path.addRect(0, 0, 10, 100, Path.Direction.CW);
DCornerPathEffectTest.java28 import android.graphics.Path;
51 Path path = new Path(); in testCornerPathEffect()
71 Path expectedPath = new Path(); in testCornerPathEffect()
DSumPathEffectTest.java29 import android.graphics.Path;
30 import android.graphics.Path.Direction;
53 Path path = new Path(); in testSumPathEffect()
DCanvas_EdgeTypeTest.java22 import android.graphics.Path;
51 c.quickReject(new Path(), EdgeType.AA); in testValues()
52 c.quickReject(new Path(), EdgeType.BW); in testValues()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DGestureDescriptionTest.java19 import android.graphics.Path;
32 private Path mNominalPath;
36 mNominalPath = new Path(); in setUp()
58 Path negativeStartXPath = new Path(); in testCreateStroke_negativeStartX_shouldThrow()
69 Path negativeStartYPath = new Path(); in testCreateStroke_negativeStartY_shouldThrow()
80 Path negativeEndXPath = new Path(); in testCreateStroke_negativeEndX_shouldThrow()
91 Path negativeEndYPath = new Path(); in testCreateStroke_negativeEndY_shouldThrow()
102 Path emptyPath = new Path(); in testCreateStroke_withEmptyPath_shouldThrow()
111 Path multiContourPath = new Path(); in testCreateStroke_pathWithMultipleContours_shouldThrow()
144 Path path = new Path(); in testAddStroke_allowUpToMaxPaths()
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DPatternPathMotionTest.java20 import android.graphics.Path;
34 Path pattern = new Path(); in testStraightPath()
41 Path expected = new Path(); in testStraightPath()
50 Path pattern = new Path(); in testCurve()
56 Path expected = new Path(); in testCurve()
64 Path pattern = new Path(); in testSetPatternPath()
DArcMotionTest.java20 import android.graphics.Path;
37 Path expected = arcWithPoint(0, 100, 100, 0, 100, 100); in test90Quadrants()
38 Path path = arcMotion.getPath(0, 100, 100, 0); in test90Quadrants()
59 Path expected; in test345Triangles()
60 Path path; in test345Triangles()
95 private static Path arcWithPoint(float startX, float startY, float endX, float endY, in arcWithPoint()
101 Path path = new Path(); in arcWithPoint()
117 Path expected = arcWithPoint(0, 100, 100, 0, ex, ey); in testMaximumAngle()
118 Path path = arcMotion.getPath(0, 100, 100, 0); in testMaximumAngle()
130 Path expected = arcWithPoint(0, 0, 100, 50, ex, ey); in testMinimumHorizontalAngle()
[all …]
DPathMotionTest.java21 import android.graphics.Path;
25 public static void assertPathMatches(Path expectedPath, Path path) { in assertPathMatches()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DPathTests.java5 import android.graphics.Path;
31 Path path = new Path(); in testTextPathWithOffset()
43 final Path path = new Path(); in testPathApproximate_circle()
44 path.addCircle(45, 45, 40, Path.Direction.CW); in testPathApproximate_circle()
50 final Path path = new Path(); in testPathApproximate_rect()
51 path.addRect(5, 5, 85, 85, Path.Direction.CW); in testPathApproximate_rect()
57 final Path path = new Path(); in testPathApproximate_quads()
68 final Path path = new Path(); in testPathApproximate_cubics()
77 private void verifyPathApproximation(Path path, int goldenResourceId) { in verifyPathApproximation()
DPathClippingTests.java24 import android.graphics.Path;
66 Path path = new Path();
67 path.addCircle(30, 30, 50, Path.Direction.CW);
68 path.addCircle(30, 30, 30, Path.Direction.CCW);
80 Path path1 = new Path();
81 path1.addCircle(30, 30, 50, Path.Direction.CW);
83 Path path2 = new Path();
84 path2.addCircle(30, 30, 30, Path.Direction.CW);
158 Path path = new Path(); in testPathScale()
160 TEST_WIDTH / 4, Path.Direction.CW); in testPathScale()
[all …]
DViewClippingTests.java7 import android.graphics.Path;
119 Path mPath = new Path(); in testOvalOutlineClip()
124 Path.Direction.CW); in testOvalOutlineClip()
142 Path mPath = new Path(); in testConcaveOutlineClip()
146 mPath.addRect(0, 0, 10, 100, Path.Direction.CW); in testConcaveOutlineClip()
147 mPath.addRect(0, 0, 100, 10, Path.Direction.CW); in testConcaveOutlineClip()
DCanvasStateTests.java25 import android.graphics.Path;
65 Path rectPath = new Path(); in testClipPathReturnValues()
66 rectPath.addRect(0, 0, 20, 20, Path.Direction.CW); in testClipPathReturnValues()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAdaptiveIconMaskTest.java26 import android.graphics.Path;
27 import android.graphics.Path.Direction;
53 private Path mMask = new Path();
54 private Path mSafeZone = new Path();
144 private boolean isCircle(Path maskPath) { in isCircle()
145 Path circle101 = new Path(); in isCircle()
147 Path circle99 = new Path(); in isCircle()
149 circle99.op(maskPath, Path.Op.DIFFERENCE); in isCircle()
151 maskPath.op(circle101, Path.Op.DIFFERENCE); in isCircle()
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DPathShapeTest.java29 import android.graphics.Path;
48 new PathShape(new Path(), 1f, 5f); in testConstructor()
50 new PathShape(new Path(), -1f, -1f); in testConstructor()
60 Path path = new Path(); in testDraw()
104 PathShape pathShape = new PathShape(new Path(), 1f, 5f); in testClone()
122 shape = new PathShape(new Path(), 0, 0); in testGetOutline()
/cts/tests/tests/gesture/src/android/gesture/cts/
DGestureStrokeTest.java22 import android.graphics.Path;
53 Path emptyPath = emptyStroke.getPath(); in testGetPath_singlePoint()
63 Path linePath = lineStroke.getPath(); in testGetPath_line()
75 Path linePath = lineStroke.toPath(LineGestureStrokeHelper.LINE_END_POINT, in testToPath_line()
92 Path linePath = lineStroke.toPath(LineGestureStrokeHelper.LINE_MIDWAY_POINT, in testToPath_boundedLine()
DGestureTest.java20 import android.graphics.Path;
92 Path myPath = new Path(); in testToPathPath()
93 Path generatedPath = mGesture.toPath(myPath); in testToPathPath()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/view/
DCircleClipFrameLayout.java21 import android.graphics.Path;
26 final Path mClipPath = new Path();
48 mClipPath.addOval(0, 0, getWidth(), getHeight(), Path.Direction.CW); in dispatchDraw()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/TestPhase/
DTest.java27 import com.android.cts.verifier.sensors.sixdof.Utils.Path.AccuracyPath;
28 import com.android.cts.verifier.sensors.sixdof.Utils.Path.Path;
29 import com.android.cts.verifier.sensors.sixdof.Utils.Path.ReferencePath;
30 import com.android.cts.verifier.sensors.sixdof.Utils.Path.PathUtilityClasses.Waypoint;
51 protected Path mTestPath;
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DAbstractApiTest.java36 import java.nio.file.Path;
119 Path file = extractResourceToFile(resourceName, resourcePath.newInputStream()); in readResource()
129 Path extractResourceToFile(String resourceName, InputStream is) throws IOException { in extractResourceToFile()
130 Path tempDirectory = Files.createTempDirectory("signature"); in extractResourceToFile()
131 Path file = tempDirectory.resolve(resourceName); in extractResourceToFile()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/Path/
DAccuracyPath.java16 package com.android.cts.verifier.sensors.sixdof.Utils.Path;
21 public class AccuracyPath extends Path {
DPath.java16 package com.android.cts.verifier.sensors.sixdof.Utils.Path;
24 import com.android.cts.verifier.sensors.sixdof.Utils.Path.PathUtilityClasses.Waypoint;
31 public abstract class Path { class
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DGestureUtils.java23 import android.graphics.Path;
93 public static Path path(PointF first, PointF... rest) { in path()
94 Path path = new Path(); in path()

1234