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,
callNativeMethodsByDefault=true)
public class ShadowNativeRecordingCanvas
extends ShadowNativeBaseRecordingCanvas
Shadow for
RecordingCanvas
that is backed by native code-
Nested Class Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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 long
nFinishRecording
(long renderer) protected static void
nFinishRecording
(long renderer, long renderNode) protected static int
protected static int
protected static void
nInsertReorderBarrier
(long renderer, boolean enableReorder) protected static void
nResetDisplayListCanvas
(long canvas, long node, int width, int height) static void
reset()
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, nSetHighContrastText, 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
Methods inherited from class org.robolectric.shadows.ShadowCanvas
visualize
-
Constructor Details
-
ShadowNativeRecordingCanvas
public ShadowNativeRecordingCanvas()
-
-
Method Details
-
nCreateDisplayListCanvas
@Implementation(maxSdk=34) protected static long nCreateDisplayListCanvas(long node, int width, int height) -
nResetDisplayListCanvas
@Implementation(maxSdk=34) protected static void nResetDisplayListCanvas(long canvas, long node, int width, int height) -
nGetMaximumTextureWidth
-
nGetMaximumTextureHeight
-
nEnableZ
@Implementation(minSdk=31, maxSdk=34) protected static void nEnableZ(long renderer, boolean enableZ) -
nFinishRecording
@Implementation(minSdk=31, maxSdk=34) protected static void nFinishRecording(long renderer, long renderNode) -
nFinishRecording
-
nDrawRenderNode
-
nDrawTextureLayer
-
nDrawCircle
@Implementation(maxSdk=34) protected static void nDrawCircle(long renderer, long propCx, long propCy, long propRadius, long propPaint) -
nDrawRipple
@Implementation(minSdk=31, maxSdk=34) protected static void nDrawRipple(long renderer, long propCx, long propCy, long propRadius, long propPaint, long propProgress, long turbulencePhase, int color, long runtimeEffect) -
nDrawRoundRect
@Implementation(maxSdk=34) protected static void nDrawRoundRect(long renderer, long propLeft, long propTop, long propRight, long propBottom, long propRx, long propRy, long propPaint) -
nDrawWebViewFunctor
-
nInsertReorderBarrier
@Implementation(maxSdk=30) protected static void nInsertReorderBarrier(long renderer, boolean enableReorder) -
reset
-