Class ShadowNativeBaseRecordingCanvas

Direct Known Subclasses:
ShadowNativeRecordingCanvas

@Implements(value=android.graphics.BaseRecordingCanvas.class,
            minSdk=29,
            shadowPicker=Picker.class,
            isInAndroidSdk=false)
public class ShadowNativeBaseRecordingCanvas
extends ShadowNativeCanvas
Shadow for BaseRecordingCanvas that is backed by native code
  • Constructor Details

  • Method Details

    • nDrawBitmap

      @Implementation protected static void nDrawBitmap​(long nativeCanvas, long bitmapHandle, float left, float top, long nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity)
    • nDrawBitmap

      @Implementation protected static void nDrawBitmap​(long nativeCanvas, long bitmapHandle, 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

      @Implementation protected static void nDrawColor​(long nativeCanvas, int color, int mode)
    • nDrawColor

      @Implementation protected static void nDrawColor​(long nativeCanvas, long nativeColorSpace, long color, int mode)
    • nDrawPaint

      @Implementation protected static void nDrawPaint​(long nativeCanvas, long nativePaint)
    • 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)
    • nDrawDoubleRoundRect

      @Implementation protected static void nDrawDoubleRoundRect​(long nativeCanvas, float outerLeft, float outerTop, float outerRight, float outerBottom, float outerRx, float outerRy, float innerLeft, float innerTop, float innerRight, float innerBottom, float innerRx, float innerRy, long nativePaint)
    • nDrawDoubleRoundRect

      @Implementation protected static void nDrawDoubleRoundRect​(long nativeCanvas, float outerLeft, float outerTop, float outerRight, float outerBottom, float[] outerRadii, float innerLeft, float innerTop, float innerRight, float innerBottom, float[] innerRadii, 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, long bitmapHandle, long nativeMatrix, long nativePaint)
    • nDrawBitmapMesh

      @Implementation protected static void nDrawBitmapMesh​(long nativeCanvas, long bitmapHandle, 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)
    • nDrawGlyphs

      @Implementation(minSdk=31) protected static void nDrawGlyphs​(long nativeCanvas, int[] glyphIds, float[] positions, int glyphIdStart, int positionStart, int glyphCount, long nativeFont, 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)
    • nDrawText

      @Implementation(minSdk=26, maxSdk=27) protected static void nDrawText​(long nativeCanvas, char[] text, int index, int count, float x, float y, int flags, long nativePaint, long nativeTypeface)
    • nDrawText

      @Implementation(minSdk=26, maxSdk=27) protected static void nDrawText​(long nativeCanvas, String text, int start, int end, float x, float y, int flags, long nativePaint, long nativeTypeface)
    • 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(minSdk=26) 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 nativeTypefaceOrPrecomputedText)
      The signature of this method is the same from SDK levels O and above, but the last native pointer changed from a Typeface pointer to a MeasuredParagraph pointer in P.
    • nDrawTextRun

      @Implementation(minSdk=26, maxSdk=27) protected static void nDrawTextRun​(long nativeCanvas, String text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, long nativePaint, long nativeTypeface)
    • 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)
    • nDrawTextOnPath

      @Implementation(minSdk=26, maxSdk=27) protected static void nDrawTextOnPath​(long nativeCanvas, char[] text, int index, int count, long nativePath, float hOffset, float vOffset, int bidiFlags, long nativePaint, long nativeTypeface)
    • nDrawTextOnPath

      @Implementation(minSdk=26, maxSdk=27) protected static void nDrawTextOnPath​(long nativeCanvas, String text, long nativePath, float hOffset, float vOffset, int flags, long nativePaint, long nativeTypeface)
    • nPunchHole

      @Implementation(minSdk=31, maxSdk=33) protected static void nPunchHole​(long renderer, float left, float top, float right, float bottom, float rx, float ry)
    • nPunchHole

      @Implementation(minSdk=10000) protected static void nPunchHole​(long renderer, float left, float top, float right, float bottom, float rx, float ry, float alpha)