Add @UnsupportedAppUsage annotations
For packages:
android.app.usage
android.app.trust
android.app.timezonedetector
android.app.timezone
android.app.timedetector
android.app.job
android.app.backup
android.app.assist
android.app.admin
android.app
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: I618c5dc4462ae990d9df45c3e9ed3f092cc5138c
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index 74d3c0d..2fe797b 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -27,6 +27,7 @@
import android.annotation.SdkConstant;
import android.annotation.SdkConstant.SdkConstantType;
import android.annotation.SystemApi;
+import android.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
@@ -873,6 +874,7 @@
*/
public String category;
+ @UnsupportedAppUsage
private String mGroupKey;
/**
@@ -918,6 +920,7 @@
*
* @hide
*/
+ @UnsupportedAppUsage
public ArraySet<PendingIntent> allPendingIntents;
/**
@@ -1257,9 +1260,12 @@
*/
public static final String EXTRA_FOREGROUND_APPS = "android.foregroundApps";
+ @UnsupportedAppUsage
private Icon mSmallIcon;
+ @UnsupportedAppUsage
private Icon mLargeIcon;
+ @UnsupportedAppUsage
private String mChannelId;
private long mTimeout;
@@ -1411,6 +1417,7 @@
public static final int SEMANTIC_ACTION_CALL = 10;
private final Bundle mExtras;
+ @UnsupportedAppUsage
private Icon mIcon;
private final RemoteInput[] mRemoteInputs;
private boolean mAllowGeneratedReplies = true;
@@ -2065,6 +2072,7 @@
/**
* @hide
*/
+ @UnsupportedAppUsage
public Notification(Context context, int icon, CharSequence tickerText, long when,
CharSequence contentTitle, CharSequence contentText, Intent contentIntent)
{
@@ -3077,6 +3085,7 @@
* Used when notifying to clean up legacy small icons.
* @hide
*/
+ @UnsupportedAppUsage
public void setSmallIcon(Icon icon) {
mSmallIcon = icon;
}
@@ -3093,6 +3102,7 @@
/**
* @hide
*/
+ @UnsupportedAppUsage
public boolean isGroupSummary() {
return mGroupKey != null && (flags & FLAG_GROUP_SUMMARY) != 0;
}
@@ -3100,6 +3110,7 @@
/**
* @hide
*/
+ @UnsupportedAppUsage
public boolean isGroupChild() {
return mGroupKey != null && (flags & FLAG_GROUP_SUMMARY) == 0;
}
@@ -3176,6 +3187,7 @@
private Notification mN;
private Bundle mUserExtras = new Bundle();
private Style mStyle;
+ @UnsupportedAppUsage
private ArrayList<Action> mActions = new ArrayList<Action>(MAX_ACTION_BUTTONS);
private ArrayList<Person> mPersonList = new ArrayList<>();
private ContrastColorUtil mColorUtil;
@@ -4793,6 +4805,7 @@
/**
* @hide
*/
+ @UnsupportedAppUsage
public String loadHeaderAppName() {
CharSequence name = null;
final PackageManager pm = mContext.getPackageManager();
@@ -5119,6 +5132,7 @@
*
* @hide
*/
+ @UnsupportedAppUsage
public RemoteViews makePublicContentView() {
return makePublicView(false /* ambient */);
}
@@ -5663,6 +5677,7 @@
return clone;
}
+ @UnsupportedAppUsage
private int getBaseLayoutResource() {
return R.layout.notification_template_material_base;
}
@@ -7753,6 +7768,7 @@
* @hide
*/
@Override
+ @UnsupportedAppUsage
public Notification buildStyled(Notification wip) {
super.buildStyled(wip);
if (wip.category == null) {