|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.view.Surface
public class Surface
Handle on to a raw buffer that is being managed by the screen compositor.
| Nested Class Summary | |
|---|---|
static class |
Surface.OutOfResourcesException
Exception thrown when a surface couldn't be created or resized |
| Nested classes/interfaces inherited from interface android.os.Parcelable |
|---|
Parcelable.Creator<T> |
| Field Summary | |
|---|---|
static Parcelable.Creator<Surface> |
CREATOR
|
static int |
FX_SURFACE_BLUR
Creates a Blur surface. |
static int |
FX_SURFACE_DIM
Creates a Dim surface. |
static int |
FX_SURFACE_MASK
Mask used for FX values above |
static int |
FX_SURFACE_NORMAL
Creates a normal surface. |
static int |
GPU
Implies "HARDWARE", the surface is to be used by the GPU additionally the backbuffer is never preserved for these surfaces. |
static int |
HARDWARE
The surface is to be used by hardware accelerators or DMA engines |
static int |
HIDDEN
Surface is created hidden |
static int |
NON_PREMULTIPLIED
Creates a surface where color components are interpreted as "non pre-multiplied" by their alpha channel. |
static int |
PUSH_BUFFERS
Creates a surface without a rendering buffer. |
static int |
ROTATION_0
|
static int |
ROTATION_180
|
static int |
ROTATION_270
|
static int |
ROTATION_90
|
static int |
SECURE
The surface contains secure content, special measures will be taken to disallow the surface's content to be copied from another process. |
static int |
SURACE_FROZEN
Freeze the surface. |
static int |
SURFACE_BLUR_FREEZE
|
static int |
SURFACE_DITHER
Enable dithering when compositing this surface |
static int |
SURFACE_HIDDEN
Hide the surface. |
| Fields inherited from interface android.os.Parcelable |
|---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
| Constructor Summary | |
|---|---|
Surface()
Create an empty surface, which will later be filled in by readFromParcel(). |
|
Surface(SurfaceSession s,
int pid,
int display,
int w,
int h,
int format,
int flags)
create a surface |
|
| Method Summary | |
|---|---|
void |
clear()
Call this free the surface up. |
static void |
closeTransaction()
|
void |
copyFrom(Surface o)
Copy another surface to this one. |
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation. |
protected void |
finalize()
Called by the virtual machine when there are no longer any (non-weak) references to the receiver. |
void |
freeze()
|
static void |
freezeDisplay(int display)
Freezes the specified display, No updating of the screen will occur until unfreezeDisplay() is called. |
void |
hide()
|
boolean |
isValid()
Does this object hold a valid surface? Returns true if it holds a physical surface, so lockCanvas() will succeed. |
Canvas |
lockCanvas(Rect dirty)
draw into a surface |
static void |
openTransaction()
start/end a transaction |
void |
readFromParcel(Parcel source)
|
void |
setAlpha(float alpha)
|
void |
setFlags(int flags,
int mask)
|
void |
setFreezeTint(int tint)
|
void |
setLayer(int zorder)
set surface parameters. |
void |
setMatrix(float dsdx,
float dtdx,
float dsdy,
float dtdy)
|
static void |
setOrientation(int display,
int orientation)
set the orientation of the given display. |
void |
setPosition(int x,
int y)
|
void |
setSize(int w,
int h)
|
void |
setTransparentRegionHint(Region region)
|
void |
show()
|
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
void |
unfreeze()
|
static void |
unfreezeDisplay(int display)
resume updating the specified display. |
void |
unlockCanvas(Canvas canvas)
unlock the surface. |
void |
unlockCanvasAndPost(Canvas canvas)
unlock the surface and asks a page flip |
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int HIDDEN
public static final int HARDWARE
public static final int GPU
public static final int SECURE
public static final int NON_PREMULTIPLIED
public static final int PUSH_BUFFERS
public static final int FX_SURFACE_NORMAL
public static final int FX_SURFACE_BLUR
public static final int FX_SURFACE_DIM
public static final int FX_SURFACE_MASK
public static final int SURFACE_HIDDEN
public static final int SURACE_FROZEN
public static final int SURFACE_DITHER
public static final int SURFACE_BLUR_FREEZE
public static final int ROTATION_0
public static final int ROTATION_90
public static final int ROTATION_180
public static final int ROTATION_270
public static final Parcelable.Creator<Surface> CREATOR
| Constructor Detail |
|---|
public Surface(SurfaceSession s,
int pid,
int display,
int w,
int h,
int format,
int flags)
throws Surface.OutOfResourcesException
Surface.OutOfResourcesExceptionpublic Surface()
| Method Detail |
|---|
public void copyFrom(Surface o)
public boolean isValid()
public void clear()
public Canvas lockCanvas(Rect dirty)
throws Surface.OutOfResourcesException
Surface.OutOfResourcesExceptionpublic void unlockCanvasAndPost(Canvas canvas)
public void unlockCanvas(Canvas canvas)
public static void openTransaction()
public static void closeTransaction()
public static void freezeDisplay(int display)
display - public static void unfreezeDisplay(int display)
display -
public static void setOrientation(int display,
int orientation)
display - orientation - public void setLayer(int zorder)
public void setPosition(int x,
int y)
public void setSize(int w,
int h)
public void hide()
public void show()
public void setTransparentRegionHint(Region region)
public void setAlpha(float alpha)
public void setMatrix(float dsdx,
float dtdx,
float dsdy,
float dtdy)
public void freeze()
public void unfreeze()
public void setFreezeTint(int tint)
public void setFlags(int flags,
int mask)
public String toString()
Object
toString in class Objectpublic int describeContents()
Parcelable
describeContents in interface Parcelablepublic void readFromParcel(Parcel source)
public void writeToParcel(Parcel dest,
int flags)
Parcelable
writeToParcel in interface Parcelabledest - The Parcel in which the object should be written.flags - Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
protected void finalize()
throws Throwable
ObjectNote: The virtual machine assumes that the implementation in class Object is empty.
finalize in class ObjectThrowable - The virtual machine ignores any exceptions which are
thrown during finalization.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||