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

Commit 56804f05 authored by Emilian Peev's avatar Emilian Peev Committed by Gerrit Code Review
Browse files

Merge "Expose Image and Plane for testing"

parents ad2bb796 2e686f16
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -876,6 +876,14 @@ package android.media {
    field public static final String SAMPLE_RATE = "android.media.audiotrack.sampleRate";
  }

  public abstract class Image implements java.lang.AutoCloseable {
    ctor protected Image();
  }

  public abstract static class Image.Plane {
    ctor protected Image.Plane();
  }

  public final class MediaCas implements java.lang.AutoCloseable {
    method public void forceResourceLost();
  }
+3 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package android.media;

import android.annotation.Nullable;
import android.annotation.TestApi;
import android.compat.annotation.UnsupportedAppUsage;
import android.graphics.Rect;
import android.hardware.HardwareBuffer;
@@ -58,6 +59,7 @@ public abstract class Image implements AutoCloseable {
     * @hide
     */
    @UnsupportedAppUsage
    @TestApi
    protected Image() {
    }

@@ -387,6 +389,7 @@ public abstract class Image implements AutoCloseable {
         * @hide
         */
        @UnsupportedAppUsage
        @TestApi
        protected Plane() {
        }