Class MatrixNatives

java.lang.Object
org.robolectric.nativeruntime.MatrixNatives

public class MatrixNatives extends Object
Native methods for Matrix JNI registration.

Native method signatures are derived from https://cs.android.com/android/platform/superproject/+/android-12.0.0_r1:frameworks/base/graphics/java/android/graphics/Matrix.java

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static long
    nCreate(long nSrcOrZero)
     
    static boolean
    nEquals(long nA, long nB)
     
    static long
     
    static void
    nGetValues(long nObject, float[] values)
     
    static boolean
    nInvert(long nObject, long nInverse)
     
    static boolean
    nIsAffine(long nObject)
     
    static boolean
    nIsIdentity(long nObject)
     
    static void
    nMapPoints(long nObject, float[] dst, int dstIndex, float[] src, int srcIndex, int ptCount, boolean isPts)
     
    static float
    nMapRadius(long nObject, float radius)
     
    static boolean
    nMapRect(long nObject, RectF dst, RectF src)
     
    static void
    nPostConcat(long nObject, long nOtherMatrix)
     
    static void
    nPostRotate(long nObject, float degrees)
     
    static void
    nPostRotate(long nObject, float degrees, float px, float py)
     
    static void
    nPostScale(long nObject, float sx, float sy)
     
    static void
    nPostScale(long nObject, float sx, float sy, float px, float py)
     
    static void
    nPostSkew(long nObject, float kx, float ky)
     
    static void
    nPostSkew(long nObject, float kx, float ky, float px, float py)
     
    static void
    nPostTranslate(long nObject, float dx, float dy)
     
    static void
    nPreConcat(long nObject, long nOtherMatrix)
     
    static void
    nPreRotate(long nObject, float degrees)
     
    static void
    nPreRotate(long nObject, float degrees, float px, float py)
     
    static void
    nPreScale(long nObject, float sx, float sy)
     
    static void
    nPreScale(long nObject, float sx, float sy, float px, float py)
     
    static void
    nPreSkew(long nObject, float kx, float ky)
     
    static void
    nPreSkew(long nObject, float kx, float ky, float px, float py)
     
    static void
    nPreTranslate(long nObject, float dx, float dy)
     
    static boolean
    nRectStaysRect(long nObject)
     
    static void
    nReset(long nObject)
     
    static void
    nSet(long nObject, long nOther)
     
    static void
    nSetConcat(long nObject, long nA, long nB)
     
    static boolean
    nSetPolyToPoly(long nObject, float[] src, int srcIndex, float[] dst, int dstIndex, int pointCount)
     
    static boolean
    nSetRectToRect(long nObject, RectF src, RectF dst, int stf)
     
    static void
    nSetRotate(long nObject, float degrees)
     
    static void
    nSetRotate(long nObject, float degrees, float px, float py)
     
    static void
    nSetScale(long nObject, float sx, float sy)
     
    static void
    nSetScale(long nObject, float sx, float sy, float px, float py)
     
    static void
    nSetSinCos(long nObject, float sinValue, float cosValue)
     
    static void
    nSetSinCos(long nObject, float sinValue, float cosValue, float px, float py)
     
    static void
    nSetSkew(long nObject, float kx, float ky)
     
    static void
    nSetSkew(long nObject, float kx, float ky, float px, float py)
     
    static void
    nSetTranslate(long nObject, float dx, float dy)
     
    static void
    nSetValues(long nObject, float[] values)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MatrixNatives

      public MatrixNatives()
  • Method Details

    • nCreate

      public static long nCreate(long nSrcOrZero)
    • nGetNativeFinalizer

      public static long nGetNativeFinalizer()
    • nSetRectToRect

      public static boolean nSetRectToRect(long nObject, RectF src, RectF dst, int stf)
    • nSetPolyToPoly

      public static boolean nSetPolyToPoly(long nObject, float[] src, int srcIndex, float[] dst, int dstIndex, int pointCount)
    • nMapPoints

      public static void nMapPoints(long nObject, float[] dst, int dstIndex, float[] src, int srcIndex, int ptCount, boolean isPts)
    • nMapRect

      public static boolean nMapRect(long nObject, RectF dst, RectF src)
    • nGetValues

      public static void nGetValues(long nObject, float[] values)
    • nSetValues

      public static void nSetValues(long nObject, float[] values)
    • nIsIdentity

      public static boolean nIsIdentity(long nObject)
    • nIsAffine

      public static boolean nIsAffine(long nObject)
    • nRectStaysRect

      public static boolean nRectStaysRect(long nObject)
    • nReset

      public static void nReset(long nObject)
    • nSet

      public static void nSet(long nObject, long nOther)
    • nSetTranslate

      public static void nSetTranslate(long nObject, float dx, float dy)
    • nSetScale

      public static void nSetScale(long nObject, float sx, float sy, float px, float py)
    • nSetScale

      public static void nSetScale(long nObject, float sx, float sy)
    • nSetRotate

      public static void nSetRotate(long nObject, float degrees, float px, float py)
    • nSetRotate

      public static void nSetRotate(long nObject, float degrees)
    • nSetSinCos

      public static void nSetSinCos(long nObject, float sinValue, float cosValue, float px, float py)
    • nSetSinCos

      public static void nSetSinCos(long nObject, float sinValue, float cosValue)
    • nSetSkew

      public static void nSetSkew(long nObject, float kx, float ky, float px, float py)
    • nSetSkew

      public static void nSetSkew(long nObject, float kx, float ky)
    • nSetConcat

      public static void nSetConcat(long nObject, long nA, long nB)
    • nPreTranslate

      public static void nPreTranslate(long nObject, float dx, float dy)
    • nPreScale

      public static void nPreScale(long nObject, float sx, float sy, float px, float py)
    • nPreScale

      public static void nPreScale(long nObject, float sx, float sy)
    • nPreRotate

      public static void nPreRotate(long nObject, float degrees, float px, float py)
    • nPreRotate

      public static void nPreRotate(long nObject, float degrees)
    • nPreSkew

      public static void nPreSkew(long nObject, float kx, float ky, float px, float py)
    • nPreSkew

      public static void nPreSkew(long nObject, float kx, float ky)
    • nPreConcat

      public static void nPreConcat(long nObject, long nOtherMatrix)
    • nPostTranslate

      public static void nPostTranslate(long nObject, float dx, float dy)
    • nPostScale

      public static void nPostScale(long nObject, float sx, float sy, float px, float py)
    • nPostScale

      public static void nPostScale(long nObject, float sx, float sy)
    • nPostRotate

      public static void nPostRotate(long nObject, float degrees, float px, float py)
    • nPostRotate

      public static void nPostRotate(long nObject, float degrees)
    • nPostSkew

      public static void nPostSkew(long nObject, float kx, float ky, float px, float py)
    • nPostSkew

      public static void nPostSkew(long nObject, float kx, float ky)
    • nPostConcat

      public static void nPostConcat(long nObject, long nOtherMatrix)
    • nInvert

      public static boolean nInvert(long nObject, long nInverse)
    • nMapRadius

      public static float nMapRadius(long nObject, float radius)
    • nEquals

      public static boolean nEquals(long nA, long nB)