Package org.robolectric.shadows
Class ShadowNativeSurface
java.lang.Object
org.robolectric.shadows.ShadowNativeSurface
@Implements(value=android.view.Surface.class,
minSdk=26,
shadowPicker=Picker.class,
isInAndroidSdk=false,
callNativeMethodsByDefault=true)
public class ShadowNativeSurface
extends Object
Shadow for
Surface that is backed by native code-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidnativeAllocateBuffers(long nativeObject) protected static intnativeAttachAndQueueBufferWithColorSpace(long nativeObject, HardwareBuffer buffer, int colorSpaceId) protected static longnativeCreateFromSurfaceControl(long surfaceControlNativeObject) protected static longnativeCreateFromSurfaceTexture(SurfaceTexture surfaceTexture) protected static intnativeForceScopedDisconnect(long nativeObject) protected static longnativeGetFromBlastBufferQueue(long surfaceObject, long blastBufferQueueNativeObject) protected static longnativeGetFromSurfaceControl(long surfaceControlNativeObject) protected static longnativeGetFromSurfaceControl(long surfaceObject, long surfaceControlNativeObject) protected static intnativeGetHeight(long nativeObject) protected static longnativeGetNextFrameNumber(long nativeObject) protected static intnativeGetWidth(long nativeObject) protected static booleannativeIsConsumerRunningBehind(long nativeObject) protected static booleannativeIsValid(long nativeObject) protected static longnativeLockCanvas(long nativeObject, Canvas canvas, Rect dirty) protected static longnativeReadFromParcel(long nativeObject, Parcel source) protected static voidnativeRelease(long nativeObject) protected static intnativeSetAutoRefreshEnabled(long nativeObject, boolean enabled) protected static intnativeSetFrameRate(long nativeObject, float frameRate, int compatibility, int changeFrameRateStrategy) protected static intnativeSetScalingMode(long nativeObject, int scalingMode) protected static intnativeSetSharedBufferModeEnabled(long nativeObject, boolean enabled) protected static voidnativeUnlockCanvasAndPost(long nativeObject, Canvas canvas) protected static voidnativeWriteToParcel(long nativeObject, Parcel dest) protected static longnHwuiCreate(long rootNode, long surface) protected static longnHwuiCreate(long contentRootNode, long surface, boolean isWideColorGamut) protected static voidnHwuiDestroy(long renderer) protected static voidnHwuiDraw(long renderer) protected static voidnHwuiSetSurface(long renderer, long surface) protected voidunlockCanvasAndPost(Canvas canvas)
-
Constructor Details
-
ShadowNativeSurface
public ShadowNativeSurface()
-
-
Method Details
-
nativeCreateFromSurfaceTexture
@Implementation protected static long nativeCreateFromSurfaceTexture(SurfaceTexture surfaceTexture) throws Surface.OutOfResourcesException - Throws:
Surface.OutOfResourcesException
-
nativeCreateFromSurfaceControl
@Implementation(maxSdk=34) protected static long nativeCreateFromSurfaceControl(long surfaceControlNativeObject) -
nativeGetFromSurfaceControl
@Implementation(minSdk=29, maxSdk=34) protected static long nativeGetFromSurfaceControl(long surfaceObject, long surfaceControlNativeObject) -
nativeGetFromSurfaceControl
@Implementation(minSdk=28, maxSdk=28) protected static long nativeGetFromSurfaceControl(long surfaceControlNativeObject) -
nativeGetFromBlastBufferQueue
@Implementation(minSdk=31, maxSdk=34) protected static long nativeGetFromBlastBufferQueue(long surfaceObject, long blastBufferQueueNativeObject) -
nativeLockCanvas
@Implementation(maxSdk=34) protected static long nativeLockCanvas(long nativeObject, Canvas canvas, Rect dirty) throws Surface.OutOfResourcesException - Throws:
Surface.OutOfResourcesException
-
nativeUnlockCanvasAndPost
@Implementation(maxSdk=34) protected static void nativeUnlockCanvasAndPost(long nativeObject, Canvas canvas) -
nativeRelease
-
nativeIsValid
-
nativeIsConsumerRunningBehind
@Implementation(maxSdk=34) protected static boolean nativeIsConsumerRunningBehind(long nativeObject) -
nativeReadFromParcel
@Implementation(maxSdk=34) protected static long nativeReadFromParcel(long nativeObject, Parcel source) -
nativeWriteToParcel
@Implementation(maxSdk=34) protected static void nativeWriteToParcel(long nativeObject, Parcel dest) -
nativeAllocateBuffers
-
nativeGetWidth
-
nativeGetHeight
-
nativeGetNextFrameNumber
-
nativeSetScalingMode
@Implementation(maxSdk=34) protected static int nativeSetScalingMode(long nativeObject, int scalingMode) -
nativeForceScopedDisconnect
-
nativeAttachAndQueueBufferWithColorSpace
@Implementation(minSdk=31, maxSdk=34) protected static int nativeAttachAndQueueBufferWithColorSpace(long nativeObject, HardwareBuffer buffer, int colorSpaceId) -
nativeSetAutoRefreshEnabled
@Implementation(minSdk=27, maxSdk=34) protected static int nativeSetAutoRefreshEnabled(long nativeObject, boolean enabled) -
nativeSetFrameRate
@Implementation(minSdk=31, maxSdk=34) protected static int nativeSetFrameRate(long nativeObject, float frameRate, int compatibility, int changeFrameRateStrategy) -
unlockCanvasAndPost
-
nHwuiCreate
@Implementation(minSdk=28, maxSdk=29) protected static long nHwuiCreate(long contentRootNode, long surface, boolean isWideColorGamut) -
nHwuiCreate
@Implementation(minSdk=26, maxSdk=27) protected static long nHwuiCreate(long rootNode, long surface) -
nHwuiSetSurface
@Implementation(minSdk=26, maxSdk=29) protected static void nHwuiSetSurface(long renderer, long surface) -
nHwuiDraw
-
nHwuiDestroy
-