Package org.robolectric.shadows
Class ShadowNativeRecordingCanvasOP
java.lang.Object
org.robolectric.shadows.ShadowCanvas
org.robolectric.shadows.ShadowNativeBaseCanvas
org.robolectric.shadows.ShadowNativeCanvas
org.robolectric.shadows.ShadowNativeRecordingCanvasOP
@Implements(className="android.view.RecordingCanvas",
isInAndroidSdk=false,
minSdk=28,
maxSdk=28,
shadowPicker=Picker.class)
public class ShadowNativeRecordingCanvasOP
extends ShadowNativeCanvas
Shadow for android.view.RecordingCanvas. This class was renamed to
BaseRecordingCanvas in Q.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classShadow picker for android.view.RecordingCanvasOP.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 -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidnDrawArc(long nativeCanvas, float left, float top, float right, float bottom, float startAngle, float sweep, boolean useCenter, long nativePaint) protected static voidnDrawBitmap(long nativeCanvas, int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, long nativePaintOrZero) protected static voidnDrawBitmap(long nativeCanvas, Bitmap bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, long nativePaintOrZero, int screenDensity, int bitmapDensity) protected static voidnDrawBitmap(long nativeCanvas, Bitmap bitmap, float left, float top, long nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) protected static voidnDrawBitmapMatrix(long nativeCanvas, Bitmap bitmap, long nativeMatrix, long nativePaint) protected static voidnDrawBitmapMesh(long nativeCanvas, Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long nativePaint) protected static voidnDrawCircle(long nativeCanvas, float cx, float cy, float radius, long nativePaint) protected static voidnDrawColor(long nativeCanvas, int color, int mode) protected static voidnDrawLine(long nativeCanvas, float startX, float startY, float stopX, float stopY, long nativePaint) protected static voidnDrawLines(long canvasHandle, float[] pts, int offset, int count, long paintHandle) protected static voidnDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, float dstLeft, float dstTop, float dstRight, float dstBottom, long nativePaintOrZero, int screenDensity, int bitmapDensity) protected static voidnDrawOval(long nativeCanvas, float left, float top, float right, float bottom, long nativePaint) protected static voidnDrawPaint(long nativeCanvas, long nativePaint) protected static voidnDrawPath(long nativeCanvas, long nativePath, long nativePaint) protected static voidnDrawPoint(long canvasHandle, float x, float y, long paintHandle) protected static voidnDrawPoints(long canvasHandle, float[] pts, int offset, int count, long paintHandle) protected static voidnDrawRect(long nativeCanvas, float left, float top, float right, float bottom, long nativePaint) protected static voidnDrawRegion(long nativeCanvas, long nativeRegion, long nativePaint) protected static voidnDrawRoundRect(long nativeCanvas, float left, float top, float right, float bottom, float rx, float ry, long nativePaint) protected static voidnDrawText(long nativeCanvas, char[] text, int index, int count, float x, float y, int flags, long nativePaint) protected static voidnDrawText(long nativeCanvas, String text, int start, int end, float x, float y, int flags, long nativePaint) protected static voidnDrawTextOnPath(long nativeCanvas, char[] text, int index, int count, long nativePath, float hOffset, float vOffset, int bidiFlags, long nativePaint) protected static voidnDrawTextOnPath(long nativeCanvas, String text, long nativePath, float hOffset, float vOffset, int flags, long nativePaint) protected static voidnDrawTextRun(long nativeCanvas, char[] text, int start, int count, int contextStart, int contextCount, float x, float y, boolean isRtl, long nativePaint, long nativePrecomputedText) protected static voidnDrawTextRun(long nativeCanvas, String text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, long nativePaint) protected static voidnDrawVertices(long nativeCanvas, int mode, int n, float[] verts, int vertOffset, float[] texs, int texOffset, int[] colors, int colorOffset, short[] indices, int indexOffset, int indexCount, long nativePaint) 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, saveUnclippedLayerMethods 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, nDrawColor, nDrawDoubleRoundRect, nDrawDoubleRoundRect, nDrawGlyphs, nDrawText, nDrawText, nDrawTextOnPath, nDrawTextOnPath, nDrawTextRun, nPunchHole, nPunchHole, resetCanvasHistory, setHeight, setWidthMethods inherited from class org.robolectric.shadows.ShadowCanvas
visualize
-
Constructor Details
-
ShadowNativeRecordingCanvasOP
public ShadowNativeRecordingCanvasOP()
-
-
Method Details
-
nDrawBitmap
@Implementation protected static void nDrawBitmap(long nativeCanvas, Bitmap bitmap, float left, float top, long nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) -
nDrawBitmap
@Implementation protected static void nDrawBitmap(long nativeCanvas, Bitmap bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float dstLeft, float dstTop, float dstRight, float dstBottom, long nativePaintOrZero, int screenDensity, int bitmapDensity) -
nDrawBitmap
@Implementation protected static void nDrawBitmap(long nativeCanvas, int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, long nativePaintOrZero) -
nDrawColor
-
nDrawPaint
-
nDrawPoint
@Implementation protected static void nDrawPoint(long canvasHandle, float x, float y, long paintHandle) -
nDrawPoints
@Implementation protected static void nDrawPoints(long canvasHandle, float[] pts, int offset, int count, long paintHandle) -
nDrawLine
@Implementation protected static void nDrawLine(long nativeCanvas, float startX, float startY, float stopX, float stopY, long nativePaint) -
nDrawLines
@Implementation protected static void nDrawLines(long canvasHandle, float[] pts, int offset, int count, long paintHandle) -
nDrawRect
@Implementation protected static void nDrawRect(long nativeCanvas, float left, float top, float right, float bottom, long nativePaint) -
nDrawOval
@Implementation protected static void nDrawOval(long nativeCanvas, float left, float top, float right, float bottom, long nativePaint) -
nDrawCircle
@Implementation protected static void nDrawCircle(long nativeCanvas, float cx, float cy, float radius, long nativePaint) -
nDrawArc
@Implementation protected static void nDrawArc(long nativeCanvas, float left, float top, float right, float bottom, float startAngle, float sweep, boolean useCenter, long nativePaint) -
nDrawRoundRect
@Implementation protected static void nDrawRoundRect(long nativeCanvas, float left, float top, float right, float bottom, float rx, float ry, long nativePaint) -
nDrawPath
@Implementation protected static void nDrawPath(long nativeCanvas, long nativePath, long nativePaint) -
nDrawRegion
@Implementation protected static void nDrawRegion(long nativeCanvas, long nativeRegion, long nativePaint) -
nDrawNinePatch
@Implementation protected static void nDrawNinePatch(long nativeCanvas, long nativeBitmap, long ninePatch, float dstLeft, float dstTop, float dstRight, float dstBottom, long nativePaintOrZero, int screenDensity, int bitmapDensity) -
nDrawBitmapMatrix
@Implementation protected static void nDrawBitmapMatrix(long nativeCanvas, Bitmap bitmap, long nativeMatrix, long nativePaint) -
nDrawBitmapMesh
@Implementation protected static void nDrawBitmapMesh(long nativeCanvas, Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long nativePaint) -
nDrawVertices
@Implementation protected static void nDrawVertices(long nativeCanvas, int mode, int n, float[] verts, int vertOffset, float[] texs, int texOffset, int[] colors, int colorOffset, short[] indices, int indexOffset, int indexCount, long nativePaint) -
nDrawText
@Implementation protected static void nDrawText(long nativeCanvas, char[] text, int index, int count, float x, float y, int flags, long nativePaint) -
nDrawText
@Implementation protected static void nDrawText(long nativeCanvas, String text, int start, int end, float x, float y, int flags, long nativePaint) -
nDrawTextRun
@Implementation protected static void nDrawTextRun(long nativeCanvas, String text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, long nativePaint) -
nDrawTextRun
@Implementation protected static void nDrawTextRun(long nativeCanvas, char[] text, int start, int count, int contextStart, int contextCount, float x, float y, boolean isRtl, long nativePaint, long nativePrecomputedText) -
nDrawTextOnPath
@Implementation protected static void nDrawTextOnPath(long nativeCanvas, char[] text, int index, int count, long nativePath, float hOffset, float vOffset, int bidiFlags, long nativePaint) -
nDrawTextOnPath
@Implementation protected static void nDrawTextOnPath(long nativeCanvas, String text, long nativePath, float hOffset, float vOffset, int flags, long nativePaint)
-