Package org.robolectric.shadows
Class ShadowNativeMatrix
java.lang.Object
org.robolectric.shadows.ShadowMatrix
org.robolectric.shadows.ShadowNativeMatrix
@Implements(value=android.graphics.Matrix.class,
minSdk=26,
isInAndroidSdk=false,
callNativeMethodsByDefault=true)
public class ShadowNativeMatrix
extends ShadowMatrix
Shadow for
Matrix
that is backed by native code-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Shadow forMatrix$ExtraNatives
that contains native functions.Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowMatrix
ShadowMatrix.Picker
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionA list of all 'post' operations performed on this Matrix.A list of all 'pre' operations performed on this Matrix.A map of all 'set' operations performed on this Matrix.protected static long
native_create
(long nSrcOrZero) protected static long
nCreate
(long nSrcOrZero) protected static boolean
nEquals
(long nA, long nB) protected static long
protected static void
nGetValues
(long nObject, float[] values) protected static boolean
nInvert
(long nObject, long nInverse) protected static boolean
nIsAffine
(long nObject) protected static boolean
nIsIdentity
(long nObject) protected static void
nMapPoints
(long nObject, float[] dst, int dstIndex, float[] src, int srcIndex, int ptCount, boolean isPts) protected static float
nMapRadius
(long nObject, float radius) protected static boolean
protected static void
nPostConcat
(long nObject, long nOtherMatrix) protected static void
nPostRotate
(long nObject, float degrees) protected static void
nPostRotate
(long nObject, float degrees, float px, float py) protected static void
nPostScale
(long nObject, float sx, float sy) protected static void
nPostScale
(long nObject, float sx, float sy, float px, float py) protected static void
nPostSkew
(long nObject, float kx, float ky) protected static void
nPostSkew
(long nObject, float kx, float ky, float px, float py) protected static void
nPostTranslate
(long nObject, float dx, float dy) protected static void
nPreConcat
(long nObject, long nOtherMatrix) protected static void
nPreRotate
(long nObject, float degrees) protected static void
nPreRotate
(long nObject, float degrees, float px, float py) protected static void
nPreScale
(long nObject, float sx, float sy) protected static void
nPreScale
(long nObject, float sx, float sy, float px, float py) protected static void
nPreSkew
(long nObject, float kx, float ky) protected static void
nPreSkew
(long nObject, float kx, float ky, float px, float py) protected static void
nPreTranslate
(long nObject, float dx, float dy) protected static boolean
nRectStaysRect
(long nObject) protected static void
nReset
(long nObject) protected static void
nSet
(long nObject, long nOther) protected static void
nSetConcat
(long nObject, long nA, long nB) protected static boolean
nSetPolyToPoly
(long nObject, float[] src, int srcIndex, float[] dst, int dstIndex, int pointCount) protected static boolean
nSetRectToRect
(long nObject, RectF src, RectF dst, int stf) protected static void
nSetRotate
(long nObject, float degrees) protected static void
nSetRotate
(long nObject, float degrees, float px, float py) protected static void
nSetScale
(long nObject, float sx, float sy) protected static void
nSetScale
(long nObject, float sx, float sy, float px, float py) protected static void
nSetSinCos
(long nObject, float sinValue, float cosValue) protected static void
nSetSinCos
(long nObject, float sinValue, float cosValue, float px, float py) protected static void
nSetSkew
(long nObject, float kx, float ky) protected static void
nSetSkew
(long nObject, float kx, float ky, float px, float py) protected static void
nSetTranslate
(long nObject, float dx, float dy) protected static void
nSetValues
(long nObject, float[] values)
-
Constructor Details
-
ShadowNativeMatrix
public ShadowNativeMatrix()
-
-
Method Details
-
native_create
-
nCreate
-
nGetNativeFinalizer
-
nSetRectToRect
@Implementation(minSdk=26, maxSdk=34) protected static boolean nSetRectToRect(long nObject, RectF src, RectF dst, int stf) -
nSetPolyToPoly
@Implementation(minSdk=26, maxSdk=34) protected static boolean nSetPolyToPoly(long nObject, float[] src, int srcIndex, float[] dst, int dstIndex, int pointCount) -
nMapPoints
@Implementation(minSdk=26, maxSdk=34) protected static void nMapPoints(long nObject, float[] dst, int dstIndex, float[] src, int srcIndex, int ptCount, boolean isPts) -
nMapRect
@Implementation(minSdk=26, maxSdk=34) protected static boolean nMapRect(long nObject, RectF dst, RectF src) -
nGetValues
@Implementation(minSdk=26, maxSdk=34) protected static void nGetValues(long nObject, float[] values) -
nSetValues
@Implementation(minSdk=26, maxSdk=34) protected static void nSetValues(long nObject, float[] values) -
nIsIdentity
-
nIsAffine
-
nRectStaysRect
-
nReset
-
nSet
-
nSetTranslate
@Implementation(minSdk=26, maxSdk=34) protected static void nSetTranslate(long nObject, float dx, float dy) -
nSetScale
@Implementation(minSdk=26, maxSdk=34) protected static void nSetScale(long nObject, float sx, float sy, float px, float py) -
nSetScale
@Implementation(minSdk=26, maxSdk=34) protected static void nSetScale(long nObject, float sx, float sy) -
nSetRotate
@Implementation(minSdk=26, maxSdk=34) protected static void nSetRotate(long nObject, float degrees, float px, float py) -
nSetRotate
-
nSetSinCos
@Implementation(minSdk=26, maxSdk=34) protected static void nSetSinCos(long nObject, float sinValue, float cosValue, float px, float py) -
nSetSinCos
@Implementation(minSdk=26, maxSdk=34) protected static void nSetSinCos(long nObject, float sinValue, float cosValue) -
nSetSkew
@Implementation(minSdk=26, maxSdk=34) protected static void nSetSkew(long nObject, float kx, float ky, float px, float py) -
nSetSkew
@Implementation(minSdk=26, maxSdk=34) protected static void nSetSkew(long nObject, float kx, float ky) -
nSetConcat
@Implementation(minSdk=26, maxSdk=34) protected static void nSetConcat(long nObject, long nA, long nB) -
nPreTranslate
@Implementation(minSdk=26, maxSdk=34) protected static void nPreTranslate(long nObject, float dx, float dy) -
nPreScale
@Implementation(minSdk=26, maxSdk=34) protected static void nPreScale(long nObject, float sx, float sy, float px, float py) -
nPreScale
@Implementation(minSdk=26, maxSdk=34) protected static void nPreScale(long nObject, float sx, float sy) -
nPreRotate
@Implementation(minSdk=26, maxSdk=34) protected static void nPreRotate(long nObject, float degrees, float px, float py) -
nPreRotate
-
nPreSkew
@Implementation(minSdk=26, maxSdk=34) protected static void nPreSkew(long nObject, float kx, float ky, float px, float py) -
nPreSkew
@Implementation(minSdk=26, maxSdk=34) protected static void nPreSkew(long nObject, float kx, float ky) -
nPreConcat
@Implementation(minSdk=26, maxSdk=34) protected static void nPreConcat(long nObject, long nOtherMatrix) -
nPostTranslate
@Implementation(minSdk=26, maxSdk=34) protected static void nPostTranslate(long nObject, float dx, float dy) -
nPostScale
@Implementation(minSdk=26, maxSdk=34) protected static void nPostScale(long nObject, float sx, float sy, float px, float py) -
nPostScale
@Implementation(minSdk=26, maxSdk=34) protected static void nPostScale(long nObject, float sx, float sy) -
nPostRotate
@Implementation(minSdk=26, maxSdk=34) protected static void nPostRotate(long nObject, float degrees, float px, float py) -
nPostRotate
@Implementation(minSdk=26, maxSdk=34) protected static void nPostRotate(long nObject, float degrees) -
nPostSkew
@Implementation(minSdk=26, maxSdk=34) protected static void nPostSkew(long nObject, float kx, float ky, float px, float py) -
nPostSkew
@Implementation(minSdk=26, maxSdk=34) protected static void nPostSkew(long nObject, float kx, float ky) -
nPostConcat
@Implementation(minSdk=26, maxSdk=34) protected static void nPostConcat(long nObject, long nOtherMatrix) -
nInvert
-
nMapRadius
-
nEquals
-
getPreOperations
Description copied from class:ShadowMatrix
A list of all 'pre' operations performed on this Matrix. The last operation performed will be first in the list.- Specified by:
getPreOperations
in classShadowMatrix
- Returns:
- A list of all 'pre' operations performed on this Matrix.
-
getPostOperations
Description copied from class:ShadowMatrix
A list of all 'post' operations performed on this Matrix. The last operation performed will be last in the list.- Specified by:
getPostOperations
in classShadowMatrix
- Returns:
- A list of all 'post' operations performed on this Matrix.
-
getSetOperations
Description copied from class:ShadowMatrix
A map of all 'set' operations performed on this Matrix.- Specified by:
getSetOperations
in classShadowMatrix
- Returns:
- A map of all 'set' operations performed on this Matrix.
-
getDescription
- Specified by:
getDescription
in classShadowMatrix
-