Home
last modified time | relevance | path

Searched refs:shadowCanvas (Results 1 – 3 of 3) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowCanvasTest.java194 ShadowCanvas shadowCanvas = shadowOf(canvas); in shouldRecordText() local
196 assertThat(shadowCanvas.getTextHistoryCount()).isEqualTo(2); in shouldRecordText()
198 assertEquals(1f, shadowCanvas.getDrawnTextEvent(0).x, 0); in shouldRecordText()
199 assertEquals(2f, shadowCanvas.getDrawnTextEvent(0).y, 0); in shouldRecordText()
200 assertEquals(4f, shadowCanvas.getDrawnTextEvent(1).x, 0); in shouldRecordText()
201 assertEquals(6f, shadowCanvas.getDrawnTextEvent(1).y, 0); in shouldRecordText()
203 assertEquals(paint, shadowCanvas.getDrawnTextEvent(0).paint); in shouldRecordText()
204 assertEquals(paint2, shadowCanvas.getDrawnTextEvent(1).paint); in shouldRecordText()
206 assertEquals("hello", shadowCanvas.getDrawnTextEvent(0).text); in shouldRecordText()
207 assertEquals("hello 2", shadowCanvas.getDrawnTextEvent(1).text); in shouldRecordText()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowView.java89 ShadowCanvas shadowCanvas = Shadow.extract(canvas); in visualize() local
90 return shadowCanvas.getDescription(); in visualize()
167 ShadowCanvas shadowCanvas = Shadow.extract(canvas); in draw() local
168 shadowCanvas.appendDescription("background:"); in draw()
DShadowCanvas.java52 ShadowCanvas shadowCanvas = Shadow.extract(canvas); in visualize() local
53 return shadowCanvas.getDescription(); in visualize()