Lines Matching defs:Surface

38  * <p>A Surface is generally created by or from a consumer of image buffers (such as a
46 * <p><strong>Note:</strong> A Surface acts like a
50 public class Surface implements Parcelable {
51 private static final String TAG = "Surface";
80 public static final Parcelable.Creator<Surface> CREATOR =
81 new Parcelable.Creator<Surface>() {
83 public Surface createFromParcel(Parcel source) {
85 Surface s = new Surface();
95 public Surface[] newArray(int size) {
96 return new Surface[size];
162 public Surface() {
166 * Create Surface from a {@link SurfaceTexture}.
168 * Images drawn to the Surface will be made available to the {@link
173 * Surface.
176 public Surface(SurfaceTexture surfaceTexture) {
188 private Surface(long nativeObject) {
208 * Always call release() when you're done with a Surface.
273 * Returns true if the consumer of this Surface is running behind the producer.
304 throws Surface.OutOfResourcesException, IllegalArgumentException {
311 // we just refuse to re-lock the Surface.
312 throw new IllegalArgumentException("Surface was already locked");
343 Log.w(TAG, "WARNING: Surface's mNativeObject (0x" +
348 throw new IllegalStateException("Surface was not locked");
479 public void transferFrom(Surface other) {
511 // create a new native Surface and return it after reducing
515 // in frameworks/native/libs/Surface.cpp
529 // in frameworks/native/libs/Surface.cpp
542 return "Surface(name=" + mName + ")/@0x" +
564 throw new IllegalStateException("Surface has already been released.");
598 throw new RuntimeException("Failed to disconnect Surface instance (bad object?)");
604 * Transfer ownership of buffer and present it on the Surface.
613 "Failed to attach and queue buffer to Surface (bad object?)");
619 * Returns whether or not this Surface is backed by a single-buffered SurfaceTexture
627 * Exception thrown when a Canvas couldn't be locked with {@link Surface#lockCanvas}, or
649 case Surface.ROTATION_0: {
652 case Surface.ROTATION_90: {
655 case Surface.ROTATION_180: {
658 case Surface.ROTATION_270: {
723 throw new IllegalStateException("Surface was already locked!");