Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd5d331e authored by Craig Donner's avatar Craig Donner
Browse files

Update HardwareBuffer API.

Bug: 37514517
Test: cts-tradefed run cts -t CtsHardwareTestCases -t android.hardware.cts.HardwareBufferTest
Change-Id: I5e381964b780472081ef9a65c3c37f63dbaf1e51
parent 1e28c8fa
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -14763,16 +14763,16 @@ package android.hardware {
    method public float getZ();
  }
  public final class HardwareBuffer implements android.os.Parcelable {
  public final class HardwareBuffer implements java.lang.AutoCloseable android.os.Parcelable {
    method public void close();
    method public static android.hardware.HardwareBuffer create(int, int, int, int, long);
    method public int describeContents();
    method public void destroy();
    method public int getFormat();
    method public int getHeight();
    method public int getLayers();
    method public long getUsage();
    method public int getWidth();
    method public boolean isDestroyed();
    method public boolean isClosed();
    method public void writeToParcel(android.os.Parcel, int);
    field public static final int BLOB = 33; // 0x21
    field public static final android.os.Parcelable.Creator<android.hardware.HardwareBuffer> CREATOR;
+5 −0
Original line number Diff line number Diff line
@@ -116,6 +116,11 @@ package android.graphics {

package android.hardware {

  public final class HardwareBuffer implements java.lang.AutoCloseable android.os.Parcelable {
    method public deprecated void destroy();
    method public deprecated boolean isDestroyed();
  }

  public final class SensorDirectChannel implements java.nio.channels.Channel {
    method public deprecated boolean isValid();
  }
+3 −3
Original line number Diff line number Diff line
@@ -15537,16 +15537,16 @@ package android.hardware {
    method public float getZ();
  }
  public final class HardwareBuffer implements android.os.Parcelable {
  public final class HardwareBuffer implements java.lang.AutoCloseable android.os.Parcelable {
    method public void close();
    method public static android.hardware.HardwareBuffer create(int, int, int, int, long);
    method public int describeContents();
    method public void destroy();
    method public int getFormat();
    method public int getHeight();
    method public int getLayers();
    method public long getUsage();
    method public int getWidth();
    method public boolean isDestroyed();
    method public boolean isClosed();
    method public void writeToParcel(android.os.Parcel, int);
    field public static final int BLOB = 33; // 0x21
    field public static final android.os.Parcelable.Creator<android.hardware.HardwareBuffer> CREATOR;
+5 −0
Original line number Diff line number Diff line
@@ -114,6 +114,11 @@ package android.graphics {

package android.hardware {

  public final class HardwareBuffer implements java.lang.AutoCloseable android.os.Parcelable {
    method public deprecated void destroy();
    method public deprecated boolean isDestroyed();
  }

  public final class SensorDirectChannel implements java.nio.channels.Channel {
    method public deprecated boolean isValid();
  }
+3 −3
Original line number Diff line number Diff line
@@ -14808,16 +14808,16 @@ package android.hardware {
    method public float getZ();
  }
  public final class HardwareBuffer implements android.os.Parcelable {
  public final class HardwareBuffer implements java.lang.AutoCloseable android.os.Parcelable {
    method public void close();
    method public static android.hardware.HardwareBuffer create(int, int, int, int, long);
    method public int describeContents();
    method public void destroy();
    method public int getFormat();
    method public int getHeight();
    method public int getLayers();
    method public long getUsage();
    method public int getWidth();
    method public boolean isDestroyed();
    method public boolean isClosed();
    method public void writeToParcel(android.os.Parcel, int);
    field public static final int BLOB = 33; // 0x21
    field public static final android.os.Parcelable.Creator<android.hardware.HardwareBuffer> CREATOR;
Loading