diff options
| author | Mathew Inwood <mathewi@google.com> | 2018-08-14 14:17:44 +0100 |
|---|---|---|
| committer | Mathew Inwood <mathewi@google.com> | 2018-08-14 14:17:44 +0100 |
| commit | 61e8ae614463fc75d7b38fd9bc840678ebebfb03 (patch) | |
| tree | cde2edf6c4b6988eef4019f7d210b5e6bc8d01c1 /core/java/android/app/Notification.java | |
| parent | b32447760cd99e9d15e678523c736e2c24a7e247 (diff) | |
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
Diffstat (limited to 'core/java/android/app/Notification.java')
| -rw-r--r-- | core/java/android/app/Notification.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 74d3c0df87ad..2fe797b8cc1c 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -27,6 +27,7 @@ import android.annotation.RequiresPermission; 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 class Notification implements Parcelable */ public String category; + @UnsupportedAppUsage private String mGroupKey; /** @@ -918,6 +920,7 @@ public class Notification implements Parcelable * * @hide */ + @UnsupportedAppUsage public ArraySet<PendingIntent> allPendingIntents; /** @@ -1257,9 +1260,12 @@ public class Notification implements Parcelable */ 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 class Notification implements Parcelable 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 @@ public class Notification implements Parcelable /** * @hide */ + @UnsupportedAppUsage public Notification(Context context, int icon, CharSequence tickerText, long when, CharSequence contentTitle, CharSequence contentText, Intent contentIntent) { @@ -3077,6 +3085,7 @@ public class Notification implements Parcelable * Used when notifying to clean up legacy small icons. * @hide */ + @UnsupportedAppUsage public void setSmallIcon(Icon icon) { mSmallIcon = icon; } @@ -3093,6 +3102,7 @@ public class Notification implements Parcelable /** * @hide */ + @UnsupportedAppUsage public boolean isGroupSummary() { return mGroupKey != null && (flags & FLAG_GROUP_SUMMARY) != 0; } @@ -3100,6 +3110,7 @@ public class Notification implements Parcelable /** * @hide */ + @UnsupportedAppUsage public boolean isGroupChild() { return mGroupKey != null && (flags & FLAG_GROUP_SUMMARY) == 0; } @@ -3176,6 +3187,7 @@ public class Notification implements Parcelable 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 @@ public class Notification implements Parcelable /** * @hide */ + @UnsupportedAppUsage public String loadHeaderAppName() { CharSequence name = null; final PackageManager pm = mContext.getPackageManager(); @@ -5119,6 +5132,7 @@ public class Notification implements Parcelable * * @hide */ + @UnsupportedAppUsage public RemoteViews makePublicContentView() { return makePublicView(false /* ambient */); } @@ -5663,6 +5677,7 @@ public class Notification implements Parcelable return clone; } + @UnsupportedAppUsage private int getBaseLayoutResource() { return R.layout.notification_template_material_base; } @@ -7753,6 +7768,7 @@ public class Notification implements Parcelable * @hide */ @Override + @UnsupportedAppUsage public Notification buildStyled(Notification wip) { super.buildStyled(wip); if (wip.category == null) { |
