Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 951188da authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Suppress warnings

One is an old (unchangeable) API and the others we discussed with api
council

Test: m checkapi
Flag: EXEMPT bugfix
Fixes: 340899312
Change-Id: I43c5665dcf120854458e2e08ff67e732be8dbf9e
parent cdecb49e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2972,6 +2972,7 @@ public class NotificationManager {
        android.Manifest.permission.INTERACT_ACROSS_USERS,
        android.Manifest.permission.ACCESS_NOTIFICATIONS})
    @FlaggedApi(android.service.notification.Flags.FLAG_CALLSTYLE_CALLBACK_API)
    @SuppressLint("UserHandle")
    public void registerCallNotificationEventListener(@NonNull String packageName,
            @NonNull UserHandle userHandle, @NonNull @CallbackExecutor Executor executor,
            @NonNull CallNotificationEventListener listener) {
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SdkConstant;
import android.annotation.SuppressLint;
import android.annotation.SystemApi;
import android.app.Notification;
import android.app.NotificationChannel;
@@ -116,6 +117,7 @@ public abstract class NotificationAssistantService extends NotificationListenerS
     */
    protected Handler mHandler;

    @SuppressLint("OnNameExpected")
    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
+2 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ import android.annotation.FlaggedApi;
import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SuppressLint;
import android.annotation.SystemApi;
import android.app.Flags;
import android.app.RemoteInput;
@@ -229,6 +230,7 @@ public final class NotificationStats implements Parcelable {
    /**
     * Records that the user has replied to a notification that has a smart reply at least once.
     */
    @SuppressLint("GetterSetterNames")
    @FlaggedApi(Flags.FLAG_LIFETIME_EXTENSION_REFACTOR)
    public void setSmartReplied() {
        mSmartReplied = true;
+1 −0
Original line number Diff line number Diff line
@@ -1007,6 +1007,7 @@ public final class ZenPolicy implements Parcelable {
        /**
         * Set whether priority channels are permitted to break through DND.
         */
        @SuppressLint("BuilderSetStyle")
        @FlaggedApi(Flags.FLAG_MODES_API)
        public @NonNull Builder allowPriorityChannels(boolean allow) {
            mZenPolicy.mAllowChannels = allow ? CHANNEL_POLICY_PRIORITY : CHANNEL_POLICY_NONE;