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
Nested ClassesModifier and TypeClassDescriptionstatic classShadow forMatrix$ExtraNativesthat contains native functions.Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowMatrix
ShadowMatrix.Picker -
Field Summary
-
Constructor Summary
Constructors -
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 longnative_create(long nSrcOrZero) protected static longnCreate(long nSrcOrZero) protected static booleannEquals(long nA, long nB) protected static longprotected static voidnGetValues(long nObject, float[] values) protected static booleannInvert(long nObject, long nInverse) protected static booleannIsAffine(long nObject) protected static booleannIsIdentity(long nObject) protected static voidnMapPoints(long nObject, float[] dst, int dstIndex, float[] src, int srcIndex, int ptCount, boolean isPts) protected static floatnMapRadius(long nObject, float radius) protected static booleanprotected static voidnPostConcat(long nObject, long nOtherMatrix) protected static voidnPostRotate(long nObject, float degrees) protected static voidnPostRotate(long nObject, float degrees, float px, float py) protected static voidnPostScale(long nObject, float sx, float sy) protected static voidnPostScale(long nObject, float sx, float sy, float px, float py) protected static voidnPostSkew(long nObject, float kx, float ky) protected static voidnPostSkew(long nObject, float kx, float ky, float px, float py) protected static voidnPostTranslate(long nObject, float dx, float dy) protected static voidnPreConcat(long nObject, long nOtherMatrix) protected static voidnPreRotate(long nObject, float degrees) protected static voidnPreRotate(long nObject, float degrees, float px, float py) protected static voidnPreScale(long nObject, float sx, float sy) protected static voidnPreScale(long nObject, float sx, float sy, float px, float py) protected static voidnPreSkew(long nObject, float kx, float ky) protected static voidnPreSkew(long nObject, float kx, float ky, float px, float py) protected static voidnPreTranslate(long nObject, float dx, float dy) protected static booleannRectStaysRect(long nObject) protected static voidnReset(long nObject) protected static voidnSet(long nObject, long nOther) protected static voidnSetConcat(long nObject, long nA, long nB) protected static booleannSetPolyToPoly(long nObject, float[] src, int srcIndex, float[] dst, int dstIndex, int pointCount) protected static booleannSetRectToRect(long nObject, RectF src, RectF dst, int stf) protected static voidnSetRotate(long nObject, float degrees) protected static voidnSetRotate(long nObject, float degrees, float px, float py) protected static voidnSetScale(long nObject, float sx, float sy) protected static voidnSetScale(long nObject, float sx, float sy, float px, float py) protected static voidnSetSinCos(long nObject, float sinValue, float cosValue) protected static voidnSetSinCos(long nObject, float sinValue, float cosValue, float px, float py) protected static voidnSetSkew(long nObject, float kx, float ky) protected static voidnSetSkew(long nObject, float kx, float ky, float px, float py) protected static voidnSetTranslate(long nObject, float dx, float dy) protected static voidnSetValues(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:ShadowMatrixA list of all 'pre' operations performed on this Matrix. The last operation performed will be first in the list.- Specified by:
getPreOperationsin classShadowMatrix- Returns:
- A list of all 'pre' operations performed on this Matrix.
-
getPostOperations
Description copied from class:ShadowMatrixA list of all 'post' operations performed on this Matrix. The last operation performed will be last in the list.- Specified by:
getPostOperationsin classShadowMatrix- Returns:
- A list of all 'post' operations performed on this Matrix.
-
getSetOperations
Description copied from class:ShadowMatrixA map of all 'set' operations performed on this Matrix.- Specified by:
getSetOperationsin classShadowMatrix- Returns:
- A map of all 'set' operations performed on this Matrix.
-
getDescription
- Specified by:
getDescriptionin classShadowMatrix
-