Home
last modified time | relevance | path

Searched refs:targetBitmap (Results 1 – 2 of 2) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowCanvasTest.java25 private Bitmap targetBitmap; field in ShadowCanvasTest
30 targetBitmap = Shadow.newInstanceOf(Bitmap.class); in setUp()
36 Canvas canvas = new Canvas(targetBitmap); in shouldDescribeBitmapDrawing()
44 "Bitmap for file:/an/image.jpg at (100,200)", shadowOf(targetBitmap).getDescription()); in shouldDescribeBitmapDrawing()
49 Canvas canvas = new Canvas(targetBitmap); in shouldDescribeBitmapDrawing_withDestinationRect()
57 Canvas canvas = new Canvas(targetBitmap); in shouldDescribeBitmapDrawing_withDestinationRectF()
65 Canvas canvas = new Canvas(targetBitmap); in shouldDescribeBitmapDrawing_WithMatrix()
73 …n/image.jpg transformed by Matrix[pre=[], set={}, post=[]]", shadowOf(targetBitmap).getDescription… in shouldDescribeBitmapDrawing_WithMatrix()
78 Canvas canvas = new Canvas(targetBitmap); in visualize_shouldReturnDescription()
89 Canvas canvas = new Canvas(targetBitmap); in drawColor_shouldReturnDescription()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowCanvas.java37 private Bitmap targetBitmap = ReflectionHelpers.callConstructor(Bitmap.class); field in ShadowCanvas
58 this.targetBitmap = bitmap; in __constructor__()
62 ShadowBitmap shadowBitmap = Shadow.extract(targetBitmap); in appendDescription()
67 ShadowBitmap shadowBitmap = Shadow.extract(targetBitmap); in getDescription()
73 targetBitmap = bitmap; in setBitmap()
304 ShadowBitmap shadowBitmap = Shadow.extract(targetBitmap); in resetCanvasHistory()