Home
last modified time | relevance | path

Searched refs:ShadowPath (Results 1 – 5 of 5) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPathTest.java5 import static org.robolectric.shadows.ShadowPath.Point.Type.LINE_TO;
6 import static org.robolectric.shadows.ShadowPath.Point.Type.MOVE_TO;
23 List<ShadowPath.Point> moveToPoints = shadowOf(path).getPoints(); in testMoveTo()
25 assertEquals(new ShadowPath.Point(2, 3, MOVE_TO), moveToPoints.get(0)); in testMoveTo()
26 assertEquals(new ShadowPath.Point(3, 4, MOVE_TO), moveToPoints.get(1)); in testMoveTo()
35 List<ShadowPath.Point> lineToPoints = shadowOf(path).getPoints(); in testLineTo()
37 assertEquals(new ShadowPath.Point(2, 3, LINE_TO), lineToPoints.get(0)); in testLineTo()
38 assertEquals(new ShadowPath.Point(3, 4, LINE_TO), lineToPoints.get(1)); in testLineTo()
49 ShadowPath shadowPath = shadowOf(path); in testReset()
50 List<ShadowPath.Point> points = shadowPath.getPoints(); in testReset()
DShadowCanvasTest.java6 import static org.robolectric.shadows.ShadowPath.Point.Type.LINE_TO;
114 ShadowPath drawnPath = shadowOf(shadow.getDrawnPath(0)); in drawPath_shouldRecordThePathAndThePaint()
115 assertEquals(drawnPath.getPoints().get(0), new ShadowPath.Point(10, 10, LINE_TO)); in drawPath_shouldRecordThePathAndThePaint()
136 …assertEquals(shadowOf(shadow.getDrawnPath(0)).getPoints().get(0), new ShadowPath.Point(10, 10, LIN… in drawPath_shouldRecordThePointsOfEachPathEvenWhenItIsTheSameInstance()
137 …assertEquals(shadowOf(shadow.getDrawnPath(1)).getPoints().get(0), new ShadowPath.Point(20, 20, LIN… in drawPath_shouldRecordThePointsOfEachPathEvenWhenItIsTheSameInstance()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPath.java7 import static org.robolectric.shadows.ShadowPath.Point.Type.LINE_TO;
8 import static org.robolectric.shadows.ShadowPath.Point.Type.MOVE_TO;
36 public class ShadowPath { class
37 private static final String TAG = ShadowPath.class.getSimpleName();
54 ShadowPath shadowPath = extract(path); in __constructor__()
228 ShadowPath shadowSrc = extract(src); in set()
503 ShadowPath.addPath(realObject, src, AffineTransform.getTranslateInstance(dx, dy)); in addPath()
509 ShadowPath.addPath(realObject, src, null); in addPath()
517 ShadowPath shadowSrc = extract(src); in addPath()
521 ShadowPath.addPath(realObject, src, shadowMatrix.getAffineTransform()); in addPath()
[all …]
DShadowPathMeasure.java18 ShadowPath shadowPath = (ShadowPath) Shadow.extract(path); in __constructor__()
DShadowCanvas.java185 ShadowPath shadowPath = Shadow.extract(path); in drawPath()