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

This commit is contained in:
Leon Scroggins
2020-04-01 14:27:00 +00:00
committed by Android (Google) Code Review
2 changed files with 13 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ 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;
@@ -918,8 +919,12 @@ 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,