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

Commit 3474c46f authored by Julia Reynolds's avatar Julia Reynolds Committed by Android (Google) Code Review
Browse files

Merge "Suppress warnings" into main

parents c62eed79 951188da
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;
@@ -114,6 +115,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;