Add @UnsupportedAppUsage annotations
For packages: android.renderscript 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: I016f6e720e79c48afe44f4690b5dd99fc81ae780 Merged-In: I1aa8ebca448547031b426a7b305c5c3d6fcf2652
This commit is contained in:
@@ -23,6 +23,7 @@ import java.util.Map;
|
||||
|
||||
import android.os.Environment;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.content.res.AssetManager;
|
||||
import android.content.res.Resources;
|
||||
|
||||
@@ -85,6 +86,7 @@ public class Font extends BaseObj {
|
||||
/**
|
||||
* @deprecated in API 16
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
ITALIC,
|
||||
/**
|
||||
* @deprecated in API 16
|
||||
@@ -236,6 +238,7 @@ public class Font extends BaseObj {
|
||||
*
|
||||
* Returns default font if no match could be found.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
static public Font create(RenderScript rs, Resources res, String familyName, Style fontStyle, float pointSize) {
|
||||
String fileName = getFontFileName(familyName, fontStyle);
|
||||
String fontPath = Environment.getRootDirectory().getAbsolutePath();
|
||||
|
||||
Reference in New Issue
Block a user