Package org.robolectric.shadows
Class ShadowSurface
java.lang.Object
org.robolectric.shadows.ShadowSurface
@Implements(value=android.view.Surface.class, looseSignatures=true) public class ShadowSurface extends Object
Shadow for
Surface
-
Constructor Summary
Constructors Constructor Description ShadowSurface()
-
Method Summary
Modifier and Type Method Description protected void
__constructor__(SurfaceTexture surfaceTexture)
protected void
finalize()
SurfaceTexture
getSurfaceTexture()
protected boolean
isValid()
protected Canvas
lockCanvas(Rect inOutDirty)
protected Canvas
lockHardwareCanvas()
protected static Object
nativeCreateFromSurfaceControl(Object surfaceControlNativeObject)
protected static Object
nativeCreateFromSurfaceTexture(Object surfaceTexture)
protected static long
nativeGetFromSurfaceControl(long surfaceObject, long surfaceControlNativeObject)
protected void
release()
static void
reset()
protected void
unlockCanvasAndPost(Canvas canvas)
-
Constructor Details
-
ShadowSurface
public ShadowSurface()
-
-
Method Details
-
__constructor__
-
getSurfaceTexture
-
finalize
-
isValid
-
release
-
lockCanvas
-
lockHardwareCanvas
-
unlockCanvasAndPost
-
nativeCreateFromSurfaceTexture
@Implementation(minSdk=18) protected static Object nativeCreateFromSurfaceTexture(Object surfaceTexture) -
nativeCreateFromSurfaceControl
@Implementation(minSdk=18) protected static Object nativeCreateFromSurfaceControl(Object surfaceControlNativeObject) -
nativeGetFromSurfaceControl
@Implementation(minSdk=29) protected static long nativeGetFromSurfaceControl(long surfaceObject, long surfaceControlNativeObject) -
reset
-