diff --git a/graphics/java/android/graphics/ImageDecoder.java b/graphics/java/android/graphics/ImageDecoder.java index 9f6227a173a05..1f658bc97b34a 100644 --- a/graphics/java/android/graphics/ImageDecoder.java +++ b/graphics/java/android/graphics/ImageDecoder.java @@ -194,14 +194,11 @@ public final class ImageDecoder implements AutoCloseable { public static abstract class Source { private Source() {} - /* @hide */ @Nullable Resources getResources() { return null; } - /* @hide */ int getDensity() { return Bitmap.DENSITY_NONE; } - /* @hide */ final int computeDstDensity() { Resources res = getResources(); if (res == null) { @@ -211,7 +208,6 @@ public final class ImageDecoder implements AutoCloseable { return res.getDisplayMetrics().densityDpi; } - /* @hide */ @NonNull abstract ImageDecoder createImageDecoder(boolean preferAnimation) throws IOException; }; @@ -1412,6 +1408,8 @@ public final class ImageDecoder implements AutoCloseable { * {@link OnHeaderDecodedListener#onHeaderDecoded onHeaderDecoded}.

* * @hide + * Must be public for access from android.graphics.drawable, + * but must not be called from outside the UI module. */ public void setOutPaddingRect(@NonNull Rect outPadding) { mOutPaddingRect = outPadding;