Package org.robolectric.shadows
Class ShadowNativeHardwareRenderer
- java.lang.Object
-
- org.robolectric.shadows.ShadowNativeHardwareRenderer
-
@Implements(value=android.graphics.HardwareRenderer.class, minSdk=29, looseSignatures=true, shadowPicker=Picker.class) public class ShadowNativeHardwareRenderer extends Object
Shadow forHardwareRendererthat is backed by native code
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShadowNativeHardwareRenderer.PickerShadow picker forHardwareRenderer.
-
Constructor Summary
Constructors Constructor Description ShadowNativeHardwareRenderer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static voiddisableVsync()protected static booleanisWebViewOverlaysEnabled()protected static voidnAddObserver(long nativeProxy, long nativeObserver)protected static voidnAddRenderNode(long nativeProxy, long rootRenderNode, boolean placeFront)protected static voidnAllocateBuffers(long nativeProxy)protected static voidnBuildLayer(long nativeProxy, long node)protected static voidnCancelLayerUpdate(long nativeProxy, long layer)protected static booleannCopyLayerInto(long nativeProxy, long layer, long bitmapHandle)protected static intnCopySurfaceInto(Surface surface, int srcLeft, int srcTop, int srcRight, int srcBottom, long bitmapHandle)protected static BitmapnCreateHardwareBitmap(long renderNode, int width, int height)protected static longnCreateProxy(boolean translucent, boolean isWideGamut, long rootRenderNode)protected static longnCreateProxy(boolean translucent, long rootRenderNode)protected static ObjectnCreateProxy(Object translucent, Object rootRenderNode)protected static longnCreateRootRenderNode()protected 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 voidnDumpProfileInfo(long nativeProxy, FileDescriptor fd, int dumpFlags)protected static voidnFence(long nativeProxy)protected static intnGetRenderThreadTid(long nativeProxy)protected static voidnHackySetRTAnimationsEnabled(boolean enabled)protected static voidnInitDisplayInfo(int width, int height, float refreshRate, int wideColorDataspace, long appVsyncOffsetNanos, long presentationDeadlineNanos)protected static voidnInitDisplayInfo(int width, int height, float refreshRate, int wideColorDataspace, long appVsyncOffsetNanos, long presentationDeadlineNanos, boolean supportsFp16ForHdr, boolean nInitDisplayInfo)protected static booleannLoadSystemProperties(long nativeProxy)protected static voidnNotifyFramePending(long nativeProxy)protected static voidnOverrideProperty(String name, String value)protected static booleannPause(long nativeProxy)protected static voidnPushLayerUpdate(long nativeProxy, long layer)protected static voidnRegisterAnimatingRenderNode(long rootRenderNode, long animatingNode)protected static voidnRegisterVectorDrawableAnimator(long rootRenderNode, long animator)protected static voidnRemoveObserver(long nativeProxy, long nativeObserver)protected static voidnRemoveRenderNode(long nativeProxy, long rootRenderNode)protected static voidnRotateProcessStatsBuffer()protected static voidnSetASurfaceTransactionCallback(Object nativeProxy, Object callback)protected static ObjectnSetColorMode(long nativeProxy, int colorMode)protected static voidnSetContentDrawBounds(long nativeProxy, int left, int top, int right, int bottom)protected static voidnSetContextPriority(int priority)protected static voidnSetDebuggingEnabled(boolean enabled)protected static voidnSetDisplayDensityDpi(int densityDpi)protected static voidnSetForceDark(long nativeProxy, boolean enabled)protected static voidnSetFrameCallback(long nativeProxy, HardwareRenderer.FrameDrawingCallback callback)protected static voidnSetFrameCompleteCallback(long nativeProxy, HardwareRenderer.FrameCompleteCallback callback)protected static voidnSetHighContrastText(boolean enabled)protected static voidnSetIsHighEndGfx(boolean isHighEndGfx)protected static voidnSetIsolatedProcess(boolean enabled)protected static voidnSetLightAlpha(long nativeProxy, float ambientShadowAlpha, float spotShadowAlpha)protected static voidnSetLightGeometry(long nativeProxy, float lightX, float lightY, float lightZ, float lightRadius)protected static voidnSetName(long nativeProxy, String name)protected static voidnSetOpaque(long nativeProxy, boolean opaque)protected static voidnSetPictureCaptureCallback(long nativeProxy, HardwareRenderer.PictureCapturedCallback callback)protected static voidnSetPrepareSurfaceControlForWebviewCallback(Object nativeProxy, Object callback)protected static voidnSetProcessStatsBuffer(int fd)protected static voidnSetSdrWhitePoint(long nativeProxy, float whitePoint)protected static voidnSetStopped(long nativeProxy, boolean stopped)protected static voidnSetSurface(long nativeProxy, Surface window, boolean discardBuffer)protected static voidnSetSurfaceControl(long nativeProxy, long nativeSurfaceControl)protected static voidnStopDrawing(long nativeProxy)protected static intnSyncAndDrawFrame(long nativeProxy, long[] frameInfo, int size)protected static voidnTrimMemory(int level)protected static voidpreload()protected static voidsetupShadersDiskCache(String cacheFile, String skiaCacheFile)
-
-
-
Method Detail
-
disableVsync
@Implementation protected static void disableVsync()
-
preload
@Implementation protected static void preload()
-
isWebViewOverlaysEnabled
@Implementation(minSdk=31) protected static boolean isWebViewOverlaysEnabled()
-
setupShadersDiskCache
@Implementation protected static void setupShadersDiskCache(String cacheFile, String skiaCacheFile)
-
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(minSdk=31) protected static long nCreateProxy(boolean translucent, long rootRenderNode)
-
nCreateProxy
@Implementation(minSdk=30, maxSdk=30) protected static long nCreateProxy(boolean translucent, boolean isWideGamut, long rootRenderNode)
-
nCreateProxy
@Implementation(minSdk=29, maxSdk=29) protected static Object nCreateProxy(Object translucent, Object rootRenderNode)
-
nDeleteProxy
@Implementation protected static void nDeleteProxy(long nativeProxy)
-
nLoadSystemProperties
@Implementation protected static boolean nLoadSystemProperties(long nativeProxy)
-
nSetName
@Implementation protected static void nSetName(long nativeProxy, String name)
-
nSetSurface
@Implementation(minSdk=30) protected static void nSetSurface(long nativeProxy, Surface window, boolean discardBuffer)
-
nSetSurfaceControl
@Implementation(minSdk=31) protected static void nSetSurfaceControl(long nativeProxy, long nativeSurfaceControl)
-
nPause
@Implementation protected static boolean nPause(long nativeProxy)
-
nSetStopped
@Implementation protected static void nSetStopped(long nativeProxy, boolean stopped)
-
nSetLightGeometry
@Implementation protected static void nSetLightGeometry(long nativeProxy, float lightX, float lightY, float lightZ, float lightRadius)
-
nSetLightAlpha
@Implementation protected static void nSetLightAlpha(long nativeProxy, float ambientShadowAlpha, float spotShadowAlpha)
-
nSetOpaque
@Implementation protected static void nSetOpaque(long nativeProxy, boolean opaque)
-
nSetColorMode
@Implementation(minSdk=31) protected static Object nSetColorMode(long nativeProxy, int colorMode)
-
nSetSdrWhitePoint
@Implementation(minSdk=31) protected static void nSetSdrWhitePoint(long nativeProxy, float whitePoint)
-
nSetIsHighEndGfx
@Implementation(minSdk=31) protected static void nSetIsHighEndGfx(boolean isHighEndGfx)
-
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)
-
nCopyLayerInto
@Implementation protected static boolean nCopyLayerInto(long nativeProxy, long layer, long bitmapHandle)
-
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
@Implementation protected static void nOverrideProperty(String name, String value)
-
nFence
@Implementation protected static void nFence(long nativeProxy)
-
nStopDrawing
@Implementation protected static void nStopDrawing(long nativeProxy)
-
nNotifyFramePending
@Implementation protected static void nNotifyFramePending(long nativeProxy)
-
nDumpProfileInfo
@Implementation protected static void nDumpProfileInfo(long nativeProxy, FileDescriptor fd, int dumpFlags)
-
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)
-
nSetPictureCaptureCallback
@Implementation protected static void nSetPictureCaptureCallback(long nativeProxy, HardwareRenderer.PictureCapturedCallback callback)
-
nSetASurfaceTransactionCallback
@Implementation(minSdk=31) protected static void nSetASurfaceTransactionCallback(Object nativeProxy, Object callback)
-
nSetPrepareSurfaceControlForWebviewCallback
@Implementation(minSdk=31) protected static void nSetPrepareSurfaceControlForWebviewCallback(Object nativeProxy, Object callback)
-
nSetFrameCallback
@Implementation protected static void nSetFrameCallback(long nativeProxy, HardwareRenderer.FrameDrawingCallback callback)
-
nSetFrameCompleteCallback
@Implementation protected static void nSetFrameCompleteCallback(long nativeProxy, HardwareRenderer.FrameCompleteCallback callback)
-
nAddObserver
@Implementation(minSdk=30) protected static void nAddObserver(long nativeProxy, long nativeObserver)
-
nRemoveObserver
@Implementation(minSdk=30) protected static void nRemoveObserver(long nativeProxy, long nativeObserver)
-
nCopySurfaceInto
@Implementation(maxSdk=33) protected static int nCopySurfaceInto(Surface surface, int srcLeft, int srcTop, int srcRight, int srcBottom, long bitmapHandle)
-
nCreateHardwareBitmap
@Implementation protected static Bitmap nCreateHardwareBitmap(long renderNode, int width, int height)
-
nSetHighContrastText
@Implementation protected static void nSetHighContrastText(boolean enabled)
-
nHackySetRTAnimationsEnabled
@Implementation(minSdk=29, maxSdk=31) protected static void nHackySetRTAnimationsEnabled(boolean enabled)
-
nSetDebuggingEnabled
@Implementation protected static void nSetDebuggingEnabled(boolean enabled)
-
nSetIsolatedProcess
@Implementation protected static void nSetIsolatedProcess(boolean enabled)
-
nSetContextPriority
@Implementation protected static void nSetContextPriority(int priority)
-
nAllocateBuffers
@Implementation protected static void nAllocateBuffers(long nativeProxy)
-
nSetForceDark
@Implementation protected static void nSetForceDark(long nativeProxy, boolean enabled)
-
nSetDisplayDensityDpi
@Implementation(minSdk=31) protected static void nSetDisplayDensityDpi(int densityDpi)
-
nInitDisplayInfo
@Implementation(minSdk=31, maxSdk=33) protected static void nInitDisplayInfo(int width, int height, float refreshRate, int wideColorDataspace, long appVsyncOffsetNanos, long presentationDeadlineNanos)
-
nInitDisplayInfo
@Implementation(minSdk=10000) protected static void nInitDisplayInfo(int width, int height, float refreshRate, int wideColorDataspace, long appVsyncOffsetNanos, long presentationDeadlineNanos, boolean supportsFp16ForHdr, boolean nInitDisplayInfo)
-
-