Searched refs:shadowBitmap (Results 1 – 10 of 10) sorted by relevance
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowLegacyBitmap.java | 100 ShadowLegacyBitmap shadowBitmap = Shadow.extract(scaledBitmap); in createBitmap() local 101 shadowBitmap.setDescription("Bitmap (" + width + " x " + height + ")"); in createBitmap() 103 shadowBitmap.width = width; in createBitmap() 104 shadowBitmap.height = height; in createBitmap() 105 shadowBitmap.config = config; in createBitmap() 106 shadowBitmap.hasAlpha = hasAlpha; in createBitmap() 107 shadowBitmap.setMutable(true); in createBitmap() 111 shadowBitmap.bufferedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); in createBitmap() 113 shadowBitmap.colorSpace = ColorSpace.get(ColorSpace.Named.SRGB); in createBitmap() 123 ShadowLegacyBitmap shadowBitmap = Shadow.extract(bitmap); in createBitmap() local [all …]
|
D | ShadowBitmapFactory.java | 86 ShadowLegacyBitmap shadowBitmap = Shadow.extract(bitmap); in decodeResource() local 87 shadowBitmap.createdFromResId = id; in decodeResource() 117 ShadowLegacyBitmap shadowBitmap = Shadow.extract(bitmap); in decodeFile() local 118 shadowBitmap.createdFromPath = pathName; in decodeFile() 144 ShadowLegacyBitmap shadowBitmap = Shadow.extract(bitmap); in decodeFileDescriptor() local 145 shadowBitmap.createdFromFileDescriptor = fd; in decodeFileDescriptor() 187 ShadowLegacyBitmap shadowBitmap = Shadow.extract(bitmap); in decodeStream() local 188 shadowBitmap.createdFromStream = is; in decodeStream() 220 ShadowLegacyBitmap shadowBitmap = Shadow.extract(bitmap); in decodeByteArray() local 221 shadowBitmap.createdFromBytes = data; in decodeByteArray() [all …]
|
D | ShadowBitmapDrawable.java | 46 ShadowLegacyBitmap shadowBitmap = Shadow.extract(bitmap); in setCreatedFromResId() local 47 if (shadowBitmap.createdFromResId == -1) { in setCreatedFromResId() 48 shadowBitmap.setCreatedFromResId(createdFromResId, resourceName); in setCreatedFromResId() 63 ShadowBitmap shadowBitmap = Shadow.extract(realBitmapDrawable.getBitmap()); in getCreatedFromResId() local 64 return shadowBitmap.getCreatedFromResId(); in getCreatedFromResId()
|
D | ShadowThreadedRenderer.java | 28 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in createHardwareBitmap() local 29 shadowBitmap.setMutable(false); in createHardwareBitmap()
|
D | ShadowLegacyCanvas.java | 81 ShadowBitmap shadowBitmap = Shadow.extract(targetBitmap); in appendDescription() local 82 shadowBitmap.appendDescription(s); in appendDescription() 87 ShadowBitmap shadowBitmap = Shadow.extract(targetBitmap); in getDescription() local 88 return shadowBitmap.getDescription(); in getDescription() 279 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in describeBitmap() local 280 appendDescription(shadowBitmap.getDescription()); in describeBitmap() 350 ShadowBitmap shadowBitmap = Shadow.extract(targetBitmap); in resetCanvasHistory() local 351 shadowBitmap.setDescription(""); in resetCanvasHistory()
|
D | ShadowHardwareRenderer.java | 54 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in createHardwareBitmap() local 55 shadowBitmap.setMutable(false); in createHardwareBitmap()
|
D | ShadowBitmap.java | 33 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in visualize() local 34 return shadowBitmap.getDescription(); in visualize()
|
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowBitmapTest.java | 157 ShadowLegacyBitmap shadowBitmap = Shadow.extract(newBitmap); in shouldCreateBitmapWithMatrix() local 158 assertThat(shadowBitmap.getDescription()) in shouldCreateBitmapWithMatrix() 162 assertThat(shadowBitmap.getCreatedFromBitmap()).isEqualTo(originalBitmap); in shouldCreateBitmapWithMatrix() 163 assertThat(shadowBitmap.getCreatedFromX()).isEqualTo(0); in shouldCreateBitmapWithMatrix() 164 assertThat(shadowBitmap.getCreatedFromY()).isEqualTo(0); in shouldCreateBitmapWithMatrix() 165 assertThat(shadowBitmap.getCreatedFromWidth()).isEqualTo(100); in shouldCreateBitmapWithMatrix() 166 assertThat(shadowBitmap.getCreatedFromHeight()).isEqualTo(50); in shouldCreateBitmapWithMatrix() 167 assertThat(shadowBitmap.getCreatedFromMatrix()).isEqualTo(m); in shouldCreateBitmapWithMatrix() 168 assertThat(shadowBitmap.getCreatedFromFilter()).isEqualTo(true); in shouldCreateBitmapWithMatrix() 169 assertThat(shadowBitmap.getWidth()).isEqualTo(50); in shouldCreateBitmapWithMatrix() [all …]
|
D | ShadowBitmapFactoryTest.java | 56 ShadowBitmap shadowBitmap = shadowOf(bitmap); in decodeResource_shouldSetDescriptionAndCreatedFrom() local 58 "Bitmap for resource:org.robolectric:drawable/an_image", shadowBitmap.getDescription()); in decodeResource_shouldSetDescriptionAndCreatedFrom() 59 assertEquals(R.drawable.an_image, shadowBitmap.getCreatedFromResId()); in decodeResource_shouldSetDescriptionAndCreatedFrom() 109 ShadowBitmap shadowBitmap = shadowOf(bitmap); in decodeFile_shouldSetDescriptionAndCreatedFrom() local 110 assertEquals("Bitmap for file:/some/file.jpg", shadowBitmap.getDescription()); in decodeFile_shouldSetDescriptionAndCreatedFrom() 111 assertEquals("/some/file.jpg", shadowBitmap.getCreatedFromPath()); in decodeFile_shouldSetDescriptionAndCreatedFrom() 121 ShadowBitmap shadowBitmap = shadowOf(bitmap); in decodeStream_shouldSetDescriptionAndCreatedFrom() local 122 assertEquals("Bitmap for content:/path", shadowBitmap.getDescription()); in decodeStream_shouldSetDescriptionAndCreatedFrom() 123 assertEquals(inputStream, shadowBitmap.getCreatedFromStream()); in decodeStream_shouldSetDescriptionAndCreatedFrom() 140 ShadowBitmap shadowBitmap = shadowOf(bitmap); in decodeBytes_shouldSetDescriptionAndCreatedFrom() local [all …]
|
/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/shadows/ |
D | ShadowNativeBitmapTest.java | 1685 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in legacyShadowAPIs_throwException() local 1686 assertThrows(UnsupportedOperationException.class, () -> shadowBitmap.setDescription("hello")); in legacyShadowAPIs_throwException()
|