public static class ShadowSurfaceView.FakeSurfaceHolder
extends java.lang.Object
implements android.view.SurfaceHolder
Robolectric implementation of SurfaceHolder
.
Constructor and Description |
---|
FakeSurfaceHolder() |
Modifier and Type | Method and Description |
---|---|
void |
addCallback(android.view.SurfaceHolder.Callback callback) |
java.util.Set<android.view.SurfaceHolder.Callback> |
getCallbacks() |
android.view.Surface |
getSurface() |
android.graphics.Rect |
getSurfaceFrame() |
boolean |
isCreating() |
android.graphics.Canvas |
lockCanvas() |
android.graphics.Canvas |
lockCanvas(android.graphics.Rect rect) |
void |
removeCallback(android.view.SurfaceHolder.Callback callback) |
void |
setFixedSize(int i,
int i1) |
void |
setFormat(int i) |
void |
setKeepScreenOn(boolean b) |
void |
setSizeFromLayout() |
void |
setType(int i) |
void |
unlockCanvasAndPost(android.graphics.Canvas canvas) |
public void addCallback(android.view.SurfaceHolder.Callback callback)
addCallback
in interface android.view.SurfaceHolder
public java.util.Set<android.view.SurfaceHolder.Callback> getCallbacks()
public void removeCallback(android.view.SurfaceHolder.Callback callback)
removeCallback
in interface android.view.SurfaceHolder
public boolean isCreating()
isCreating
in interface android.view.SurfaceHolder
public void setType(int i)
setType
in interface android.view.SurfaceHolder
public void setFixedSize(int i, int i1)
setFixedSize
in interface android.view.SurfaceHolder
public void setSizeFromLayout()
setSizeFromLayout
in interface android.view.SurfaceHolder
public void setFormat(int i)
setFormat
in interface android.view.SurfaceHolder
public void setKeepScreenOn(boolean b)
setKeepScreenOn
in interface android.view.SurfaceHolder
public android.graphics.Canvas lockCanvas()
lockCanvas
in interface android.view.SurfaceHolder
public android.graphics.Canvas lockCanvas(android.graphics.Rect rect)
lockCanvas
in interface android.view.SurfaceHolder
public void unlockCanvasAndPost(android.graphics.Canvas canvas)
unlockCanvasAndPost
in interface android.view.SurfaceHolder
public android.graphics.Rect getSurfaceFrame()
getSurfaceFrame
in interface android.view.SurfaceHolder
public android.view.Surface getSurface()
getSurface
in interface android.view.SurfaceHolder