Add @UnsupportedAppUsage annotations
For packages: android.graphics android.graphics.drawable android.graphics.drawable.shapes android.graphics.fonts android.graphics.pdf This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Merged-In: I7fc1162d2c63df8751a4660607e8ce72070efed8 Change-Id: I5d7739d2d1fc7bb12ee059bcc2a9ac9017ca35fb
This commit is contained in:
@@ -18,6 +18,7 @@ package android.graphics;
|
||||
|
||||
import static android.graphics.BitmapFactory.Options.validate;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.res.AssetManager;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Trace;
|
||||
@@ -822,11 +823,15 @@ public class BitmapFactory {
|
||||
return decodeFileDescriptor(fd, null, null);
|
||||
}
|
||||
|
||||
@UnsupportedAppUsage
|
||||
private static native Bitmap nativeDecodeStream(InputStream is, byte[] storage,
|
||||
Rect padding, Options opts);
|
||||
@UnsupportedAppUsage
|
||||
private static native Bitmap nativeDecodeFileDescriptor(FileDescriptor fd,
|
||||
Rect padding, Options opts);
|
||||
@UnsupportedAppUsage
|
||||
private static native Bitmap nativeDecodeAsset(long nativeAsset, Rect padding, Options opts);
|
||||
@UnsupportedAppUsage
|
||||
private static native Bitmap nativeDecodeByteArray(byte[] data, int offset,
|
||||
int length, Options opts);
|
||||
private static native boolean nativeIsSeekable(FileDescriptor fd);
|
||||
|
||||
Reference in New Issue
Block a user