Merge "Expose Image and Plane for testing"

This commit is contained in:
Emilian Peev
2020-10-30 16:10:30 +00:00
committed by Gerrit Code Review
2 changed files with 11 additions and 0 deletions

View File

@@ -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();
}

View File

@@ -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() {
}