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)
public class ShadowNativeMatrix
extends ShadowMatrix
Shadow for
Matrix
that is backed by native code-
Nested Class Summary
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) protected static boolean nSetRectToRect(long nObject, RectF src, RectF dst, int stf) -
nSetPolyToPoly
@Implementation(minSdk=26) protected static boolean nSetPolyToPoly(long nObject, float[] src, int srcIndex, float[] dst, int dstIndex, int pointCount) -
nMapPoints
@Implementation(minSdk=26) protected static void nMapPoints(long nObject, float[] dst, int dstIndex, float[] src, int srcIndex, int ptCount, boolean isPts) -
nMapRect
-
nGetValues
-
nSetValues
-
nIsIdentity
-
nIsAffine
-
nRectStaysRect
-
nReset
-
nSet
-
nSetTranslate
-
nSetScale
@Implementation(minSdk=26) protected static void nSetScale(long nObject, float sx, float sy, float px, float py) -
nSetScale
-
nSetRotate
@Implementation(minSdk=26) protected static void nSetRotate(long nObject, float degrees, float px, float py) -
nSetRotate
-
nSetSinCos
@Implementation(minSdk=26) protected static void nSetSinCos(long nObject, float sinValue, float cosValue, float px, float py) -
nSetSinCos
@Implementation(minSdk=26) protected static void nSetSinCos(long nObject, float sinValue, float cosValue) -
nSetSkew
@Implementation(minSdk=26) protected static void nSetSkew(long nObject, float kx, float ky, float px, float py) -
nSetSkew
-
nSetConcat
-
nPreTranslate
-
nPreScale
@Implementation(minSdk=26) protected static void nPreScale(long nObject, float sx, float sy, float px, float py) -
nPreScale
-
nPreRotate
@Implementation(minSdk=26) protected static void nPreRotate(long nObject, float degrees, float px, float py) -
nPreRotate
-
nPreSkew
@Implementation(minSdk=26) protected static void nPreSkew(long nObject, float kx, float ky, float px, float py) -
nPreSkew
-
nPreConcat
-
nPostTranslate
-
nPostScale
@Implementation(minSdk=26) protected static void nPostScale(long nObject, float sx, float sy, float px, float py) -
nPostScale
-
nPostRotate
@Implementation(minSdk=26) protected static void nPostRotate(long nObject, float degrees, float px, float py) -
nPostRotate
-
nPostSkew
@Implementation(minSdk=26) protected static void nPostSkew(long nObject, float kx, float ky, float px, float py) -
nPostSkew
-
nPostConcat
-
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
-