Package org.robolectric.shadows
Class ShadowNativeThreadedRenderer
java.lang.Object
org.robolectric.shadows.ShadowNativeThreadedRenderer
@Implements(value=android.view.ThreadedRenderer.class,
minSdk=26,
maxSdk=28,
shadowPicker=Picker.class)
public class ShadowNativeThreadedRenderer
extends Object
Shadow for
ThreadedRenderer that is backed by native code-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static BitmapcreateHardwareBitmap(Object renderNode, int width, int height) protected static voidnAddRenderNode(long nativeProxy, long rootRenderNode, boolean placeFront) protected static voidnBuildLayer(long nativeProxy, long node) protected static voidnCancelLayerUpdate(long nativeProxy, long layer) protected static BitmapnCreateHardwareBitmap(long renderNode, int width, int height) protected static longnCreateProxy(boolean translucent, long rootRenderNode) protected static longprotected static longnCreateTextureLayer(long nativeProxy) protected static voidnDeleteProxy(long nativeProxy) protected static voidnDestroy(long nativeProxy, long rootRenderNode) protected static voidnDestroyHardwareResources(long nativeProxy) protected static voidnDetachSurfaceTexture(long nativeProxy, long layer) protected static voidnDrawRenderNode(long nativeProxy, long rootRenderNode) protected static voidnFence(long nativeProxy) protected static intnGetRenderThreadTid(long nativeProxy) protected static booleannLoadSystemProperties(long nativeProxy) protected static voidnNotifyFramePending(long nativeProxy) protected static voidnOverrideProperty(String name, String value) protected static voidnPushLayerUpdate(long nativeProxy, long layer) protected static voidnRegisterAnimatingRenderNode(long rootRenderNode, long animatingNode) protected static voidnRegisterVectorDrawableAnimator(long rootRenderNode, long animator) protected static voidnRemoveRenderNode(long nativeProxy, long rootRenderNode) protected static voidprotected static voidnSetContentDrawBounds(long nativeProxy, int left, int top, int right, int bottom) protected static voidprotected static voidnSetOpaque(long nativeProxy, boolean opaque) protected static voidnSetProcessStatsBuffer(int fd) protected static voidnSetStopped(long nativeProxy, boolean stopped) protected static voidnStopDrawing(long nativeProxy) protected static booleanprotected static intnSyncAndDrawFrame(long nativeProxy, long[] frameInfo, int size) protected static voidnTrimMemory(int level)
-
Constructor Details
-
ShadowNativeThreadedRenderer
public ShadowNativeThreadedRenderer()
-
-
Method Details
-
nSupportsOpenGL
@Implementation(maxSdk=26) protected static boolean nSupportsOpenGL() -
nRotateProcessStatsBuffer
@Implementation protected static void nRotateProcessStatsBuffer() -
nSetProcessStatsBuffer
@Implementation protected static void nSetProcessStatsBuffer(int fd) -
nGetRenderThreadTid
@Implementation protected static int nGetRenderThreadTid(long nativeProxy) -
nCreateRootRenderNode
@Implementation protected static long nCreateRootRenderNode() -
nCreateProxy
@Implementation protected static long nCreateProxy(boolean translucent, long rootRenderNode) -
nDeleteProxy
@Implementation protected static void nDeleteProxy(long nativeProxy) -
nLoadSystemProperties
@Implementation protected static boolean nLoadSystemProperties(long nativeProxy) -
nSetName
-
nSetStopped
@Implementation protected static void nSetStopped(long nativeProxy, boolean stopped) -
nSetOpaque
@Implementation protected static void nSetOpaque(long nativeProxy, boolean opaque) -
nSyncAndDrawFrame
@Implementation protected static int nSyncAndDrawFrame(long nativeProxy, long[] frameInfo, int size) -
nDestroy
@Implementation protected static void nDestroy(long nativeProxy, long rootRenderNode) -
nRegisterAnimatingRenderNode
@Implementation protected static void nRegisterAnimatingRenderNode(long rootRenderNode, long animatingNode) -
nRegisterVectorDrawableAnimator
@Implementation protected static void nRegisterVectorDrawableAnimator(long rootRenderNode, long animator) -
nCreateTextureLayer
@Implementation protected static long nCreateTextureLayer(long nativeProxy) -
nBuildLayer
@Implementation protected static void nBuildLayer(long nativeProxy, long node) -
nPushLayerUpdate
@Implementation protected static void nPushLayerUpdate(long nativeProxy, long layer) -
nCancelLayerUpdate
@Implementation protected static void nCancelLayerUpdate(long nativeProxy, long layer) -
nDetachSurfaceTexture
@Implementation protected static void nDetachSurfaceTexture(long nativeProxy, long layer) -
nDestroyHardwareResources
@Implementation protected static void nDestroyHardwareResources(long nativeProxy) -
nTrimMemory
@Implementation protected static void nTrimMemory(int level) -
nOverrideProperty
-
nFence
@Implementation protected static void nFence(long nativeProxy) -
nStopDrawing
@Implementation protected static void nStopDrawing(long nativeProxy) -
nNotifyFramePending
@Implementation protected static void nNotifyFramePending(long nativeProxy) -
nAddRenderNode
@Implementation protected static void nAddRenderNode(long nativeProxy, long rootRenderNode, boolean placeFront) -
nRemoveRenderNode
@Implementation protected static void nRemoveRenderNode(long nativeProxy, long rootRenderNode) -
nDrawRenderNode
@Implementation protected static void nDrawRenderNode(long nativeProxy, long rootRenderNode) -
nSetContentDrawBounds
@Implementation protected static void nSetContentDrawBounds(long nativeProxy, int left, int top, int right, int bottom) -
nCreateHardwareBitmap
@Implementation protected static Bitmap nCreateHardwareBitmap(long renderNode, int width, int height) -
createHardwareBitmap
-