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
Change-Id: I7fc1162d2c63df8751a4660607e8ce72070efed8
This commit is contained in:
Mathew Inwood
2018-07-31 14:29:22 +01:00
parent 234a2cc0e9
commit 0d649f291a
62 changed files with 297 additions and 231 deletions

View File

@@ -15,6 +15,7 @@
package android.graphics;
import android.annotation.UnsupportedAppUsage;
import android.content.res.AssetManager;
import java.io.FileDescriptor;
@@ -165,6 +166,7 @@ public final class BitmapRegionDecoder {
This can be called from JNI code.
*/
@UnsupportedAppUsage
private BitmapRegionDecoder(long decoder) {
mNativeBitmapRegionDecoder = decoder;
mRecycled = false;
@@ -267,6 +269,7 @@ public final class BitmapRegionDecoder {
private static native int nativeGetHeight(long lbm);
private static native void nativeClean(long lbm);
@UnsupportedAppUsage
private static native BitmapRegionDecoder nativeNewInstance(
byte[] data, int offset, int length, boolean isShareable);
private static native BitmapRegionDecoder nativeNewInstance(