Package org.robolectric.shadows
Class ShadowNativeRecordingCanvas
java.lang.Object
org.robolectric.shadows.ShadowCanvas
org.robolectric.shadows.ShadowNativeBaseCanvas
org.robolectric.shadows.ShadowNativeCanvas
org.robolectric.shadows.ShadowNativeBaseRecordingCanvas
org.robolectric.shadows.ShadowNativeRecordingCanvas
- Direct Known Subclasses:
ShadowNativeDisplayListCanvas
@Implements(value=android.graphics.RecordingCanvas.class, minSdk=29, shadowPicker=Picker.class) public class ShadowNativeRecordingCanvas extends ShadowNativeBaseRecordingCanvas
Shadow for
RecordingCanvas
that is backed by native code-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowNativeRecordingCanvas.Picker
Shadow picker forRecordingCanvas
.Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowCanvas
ShadowCanvas.ArcPaintHistoryEvent, ShadowCanvas.CirclePaintHistoryEvent, ShadowCanvas.LinePaintHistoryEvent, ShadowCanvas.OvalPaintHistoryEvent, ShadowCanvas.RectPaintHistoryEvent, ShadowCanvas.RoundRectPaintHistoryEvent, ShadowCanvas.TextHistoryEvent
-
Constructor Summary
Constructors Constructor Description ShadowNativeRecordingCanvas()
-
Method Summary
Modifier and Type Method Description protected static long
nCreateDisplayListCanvas(long node, int width, int height)
protected static void
nDrawCircle(long renderer, long propCx, long propCy, long propRadius, long propPaint)
protected static void
nDrawRenderNode(long renderer, long renderNode)
protected static void
nDrawRipple(long renderer, long propCx, long propCy, long propRadius, long propPaint, long propProgress, long turbulencePhase, int color, long runtimeEffect)
protected static void
nDrawRoundRect(long renderer, long propLeft, long propTop, long propRight, long propBottom, long propRx, long propRy, long propPaint)
protected static void
nDrawTextureLayer(long renderer, long layer)
protected static void
nDrawWebViewFunctor(long canvas, int functor)
protected static void
nEnableZ(long renderer, boolean enableZ)
protected static void
nFinishRecording(long renderer, long renderNode)
protected static int
nGetMaximumTextureHeight()
protected static int
nGetMaximumTextureWidth()
protected static void
nResetDisplayListCanvas(long canvas, long node, int width, int height)
Methods inherited from class org.robolectric.shadows.ShadowNativeBaseRecordingCanvas
nDrawArc, nDrawBitmap, nDrawBitmap, nDrawBitmap, nDrawBitmapMatrix, nDrawBitmapMesh, nDrawCircle, nDrawColor, nDrawColor, nDrawDoubleRoundRect, nDrawDoubleRoundRect, nDrawGlyphs, nDrawLine, nDrawLines, nDrawNinePatch, nDrawOval, nDrawPaint, nDrawPath, nDrawPoint, nDrawPoints, nDrawRect, nDrawRegion, nDrawRoundRect, nDrawText, nDrawText, nDrawText, nDrawText, nDrawTextOnPath, nDrawTextOnPath, nDrawTextOnPath, nDrawTextOnPath, nDrawTextRun, nDrawTextRun, nDrawTextRun, nDrawVertices, nPunchHole, nPunchHole
Methods inherited from class org.robolectric.shadows.ShadowNativeCanvas
nClipPath, nClipRect, nConcat, nFreeCaches, nFreeTextLayoutCaches, nGetClipBounds, nGetHeight, nGetMatrix, nGetNativeFinalizer, nGetSaveCount, nGetWidth, nInitRaster, nInitRaster, nIsOpaque, nQuickReject, nQuickReject, nRestore, nRestoreToCount, nRestoreUnclippedLayer, nRotate, nSave, nSaveLayer, nSaveLayer, nSaveLayerAlpha, nSaveLayerAlpha, nSaveUnclippedLayer, nScale, nSetBitmap, nSetBitmap, nSetCompatibilityVersion, nSetDrawFilter, nSetMatrix, nSkew, nTranslate, saveUnclippedLayer
Methods inherited from class org.robolectric.shadows.ShadowNativeBaseCanvas
appendDescription, getArcPaintHistoryCount, getCirclePaintHistoryCount, getDescription, getDrawnArc, getDrawnCircle, getDrawnLine, getDrawnOval, getDrawnPaint, getDrawnPath, getDrawnPathPaint, getDrawnRect, getDrawnRoundRect, getDrawnTextEvent, getLastDrawnRect, getLastDrawnRoundRect, getLinePaintHistoryCount, getOvalPaintHistoryCount, getPathPaintHistoryCount, getRectPaintHistoryCount, getRoundRectPaintHistoryCount, getTextHistoryCount, hasDrawnCircle, hasDrawnPath, nDrawBitmap, nDrawBitmap, nDrawBitmapMatrix, nDrawBitmapMesh, resetCanvasHistory, setHeight, setWidth
-
Constructor Details
-
ShadowNativeRecordingCanvas
public ShadowNativeRecordingCanvas()
-
-
Method Details
-
nCreateDisplayListCanvas
-
nResetDisplayListCanvas
@Implementation protected static void nResetDisplayListCanvas(long canvas, long node, int width, int height) -
nGetMaximumTextureWidth
-
nGetMaximumTextureHeight
-
nEnableZ
-
nFinishRecording
-
nDrawRenderNode
-
nDrawTextureLayer
-
nDrawCircle
@Implementation protected static void nDrawCircle(long renderer, long propCx, long propCy, long propRadius, long propPaint) -
nDrawRipple
@Implementation(minSdk=31) protected static void nDrawRipple(long renderer, long propCx, long propCy, long propRadius, long propPaint, long propProgress, long turbulencePhase, int color, long runtimeEffect) -
nDrawRoundRect
@Implementation protected static void nDrawRoundRect(long renderer, long propLeft, long propTop, long propRight, long propBottom, long propRx, long propRy, long propPaint) -
nDrawWebViewFunctor
-