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

Commit 99b7556c authored by Leon Scroggins's avatar Leon Scroggins Committed by Leon Scroggins III
Browse files

Revert "Make createSource(ContentResolver, Uri, Resources) a SystemApi"

Bug: 152322291
Bug: 172934376
Test: make

This reverts commit 97eacc36.

Reason for revert: The UI Rendering mainline module is on hold for
now, so this does not need to be @SystemApi. The system can still
access it through @hide.

Change-Id: I0f4d685d62cf468a3fd9a7e664bcc46569e94591
parent cef78df6
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -48,10 +48,6 @@ package android.graphics {
    method public static void setTargetSdkVersion(int);
  }

  public final class ImageDecoder implements java.lang.AutoCloseable {
    method @AnyThread @NonNull public static android.graphics.ImageDecoder.Source createSource(@NonNull android.content.ContentResolver, @NonNull android.net.Uri, @Nullable android.content.res.Resources);
  }

}

package android.media {
+0 −5
Original line number Diff line number Diff line
@@ -27,7 +27,6 @@ import android.annotation.IntRange;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.Px;
import android.annotation.SystemApi;
import android.annotation.TestApi;
import android.annotation.WorkerThread;
import android.content.ContentResolver;
@@ -916,12 +915,8 @@ public final class ImageDecoder implements AutoCloseable {
    /**
     * Provide Resources for density scaling.
     *
     * This is a SystemApi to enable legacy behavior, so there is no need to
     * make it public like the version above, which does not have a Resources
     * parameter.
     * @hide
     */
    @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
    @AnyThread
    @NonNull
    public static Source createSource(@NonNull ContentResolver cr,