Add @UnsupportedAppUsage annotations

For all remaining unannotated code.

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: I32861fa341a08f11a9c50c07a1ef7404dadf6bb6
Merged-In: I67c8b71ea535ebffb10bf577948bd4ccb8ca069d
This commit is contained in:
Mathew Inwood
2018-08-30 13:20:51 +01:00
parent b0896e61f8
commit 71da3a1fe4
24 changed files with 153 additions and 132 deletions

View File

@@ -107,6 +107,7 @@ public class ColorMatrixColorFilter extends ColorFilter {
*
* @hide
*/
@UnsupportedAppUsage
public void setColorMatrixArray(@Nullable float[] array) {
// called '...Array' so that passing null isn't ambiguous
discardNativeInstance();

View File

@@ -52,6 +52,7 @@ public class FontFamily {
/**
* @hide
*/
@UnsupportedAppUsage
public long mNativePtr;
// Points native font family builder. Must be zero after freezing this family.

View File

@@ -16,6 +16,7 @@
package android.graphics;
import android.annotation.UnsupportedAppUsage;
import android.graphics.fonts.FontVariationAxis;
import android.text.FontConfig;
import android.util.Xml;
@@ -37,6 +38,7 @@ import java.util.regex.Pattern;
public class FontListParser {
/* Parse fallback list (no names) */
@UnsupportedAppUsage
public static FontConfig parse(InputStream in) throws XmlPullParserException, IOException {
try {
XmlPullParser parser = Xml.newPullParser();