Searched refs:shadowBitmap (Results 1 – 9 of 9) sorted by relevance
68 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in visualize() local69 return shadowBitmap.getDescription(); in visualize()214 ShadowBitmap shadowBitmap = Shadow.extract(scaledBitmap); in createBitmap() local215 shadowBitmap.setDescription("Bitmap (" + width + " x " + height + ")"); in createBitmap()217 shadowBitmap.width = width; in createBitmap()218 shadowBitmap.height = height; in createBitmap()219 shadowBitmap.config = config; in createBitmap()220 shadowBitmap.setMutable(true); in createBitmap()222 shadowBitmap.density = displayMetrics.densityDpi; in createBitmap()224 …shadowBitmap.setPixels(new int[shadowBitmap.getHeight() * shadowBitmap.getWidth()], 0, shadowBitma… in createBitmap()[all …]
67 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in decodeResource() local68 shadowBitmap.createdFromResId = id; in decodeResource()80 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in decodeFile() local81 shadowBitmap.createdFromPath = pathName; in decodeFile()90 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in decodeFileDescriptor() local91 shadowBitmap.createdFromFileDescriptor = fd; in decodeFileDescriptor()129 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in decodeStream() local130 shadowBitmap.createdFromStream = is; in decodeStream()137 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in decodeByteArray() local138 shadowBitmap.createdFromBytes = data; in decodeByteArray()[all …]
62 ShadowBitmap shadowBitmap = Shadow.extract(targetBitmap); in appendDescription() local63 shadowBitmap.appendDescription(s); in appendDescription()67 ShadowBitmap shadowBitmap = Shadow.extract(targetBitmap); in getDescription() local68 return shadowBitmap.getDescription(); in getDescription()226 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in describeBitmap() local227 appendDescription(shadowBitmap.getDescription()); in describeBitmap()304 ShadowBitmap shadowBitmap = Shadow.extract(targetBitmap); in resetCanvasHistory() local305 shadowBitmap.setDescription(""); in resetCanvasHistory()
23 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in createHardwareBitmap() local24 shadowBitmap.setMutable(false); in createHardwareBitmap()
65 ShadowBitmap shadowBitmap = Shadow.extract(realBitmapDrawable.getBitmap()); in getCreatedFromResId() local66 return shadowBitmap.getCreatedFromResId(); in getCreatedFromResId()
99 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in createFromResourceId() local100 shadowBitmap.createdFromResId = resourceId; in createFromResourceId()
324 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in setCreatedFromResId() local325 if (shadowBitmap.createdFromResId == -1) { in setCreatedFromResId()332 shadowBitmap.setCreatedFromResId(id, resourceName); in setCreatedFromResId()
38 ShadowBitmap shadowBitmap = shadowOf(bitmap); in decodeResource_shouldSetDescriptionAndCreatedFrom() local39 …assertEquals("Bitmap for resource:org.robolectric:drawable/an_image", shadowBitmap.getDescription(… in decodeResource_shouldSetDescriptionAndCreatedFrom()40 assertEquals(R.drawable.an_image, shadowBitmap.getCreatedFromResId()); in decodeResource_shouldSetDescriptionAndCreatedFrom()69 ShadowBitmap shadowBitmap = shadowOf(bitmap); in decodeFile_shouldSetDescriptionAndCreatedFrom() local70 assertEquals("Bitmap for file:/some/file.jpg", shadowBitmap.getDescription()); in decodeFile_shouldSetDescriptionAndCreatedFrom()71 assertEquals("/some/file.jpg", shadowBitmap.getCreatedFromPath()); in decodeFile_shouldSetDescriptionAndCreatedFrom()81 ShadowBitmap shadowBitmap = shadowOf(bitmap); in decodeStream_shouldSetDescriptionAndCreatedFrom() local82 assertEquals("Bitmap for content:/path", shadowBitmap.getDescription()); in decodeStream_shouldSetDescriptionAndCreatedFrom()83 assertEquals(inputStream, shadowBitmap.getCreatedFromStream()); in decodeStream_shouldSetDescriptionAndCreatedFrom()93 ShadowBitmap shadowBitmap = shadowOf(bitmap); in decodeBytes_shouldSetDescriptionAndCreatedFrom() local[all …]
111 ShadowBitmap shadowBitmap = shadowOf(newBitmap); in shouldCreateBitmapWithMatrix() local112 assertThat(shadowBitmap.getDescription()) in shouldCreateBitmapWithMatrix()115 assertThat(shadowBitmap.getCreatedFromBitmap()).isEqualTo(originalBitmap); in shouldCreateBitmapWithMatrix()116 assertThat(shadowBitmap.getCreatedFromX()).isEqualTo(0); in shouldCreateBitmapWithMatrix()117 assertThat(shadowBitmap.getCreatedFromY()).isEqualTo(0); in shouldCreateBitmapWithMatrix()118 assertThat(shadowBitmap.getCreatedFromWidth()).isEqualTo(100); in shouldCreateBitmapWithMatrix()119 assertThat(shadowBitmap.getCreatedFromHeight()).isEqualTo(50); in shouldCreateBitmapWithMatrix()120 assertThat(shadowBitmap.getCreatedFromMatrix()).isEqualTo(m); in shouldCreateBitmapWithMatrix()121 assertThat(shadowBitmap.getCreatedFromFilter()).isEqualTo(true); in shouldCreateBitmapWithMatrix()122 assertThat(shadowBitmap.getWidth()).isEqualTo(50); in shouldCreateBitmapWithMatrix()[all …]