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

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

Merge "Add extra to feedback action" into main

parents d8c4e73b 7b9909ae
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -13480,6 +13480,7 @@ package android.service.notification {
    method public final void unsnoozeNotification(@NonNull String);
    field public static final String ACTION_NOTIFICATION_ASSISTANT_DETAIL_SETTINGS = "android.service.notification.action.NOTIFICATION_ASSISTANT_DETAIL_SETTINGS";
    field @FlaggedApi("android.service.notification.notification_classification") public static final String ACTION_NOTIFICATION_ASSISTANT_FEEDBACK_SETTINGS = "android.service.notification.action.NOTIFICATION_ASSISTANT_FEEDBACK_SETTINGS";
    field @FlaggedApi("android.app.nm_summarization") public static final String EXTRA_NOTIFICATION_ADJUSTMENT = "android.service.notification.extra.NOTIFICATION_ADJUSTMENT";
    field @FlaggedApi("android.service.notification.notification_classification") public static final String EXTRA_NOTIFICATION_KEY = "android.service.notification.extra.NOTIFICATION_KEY";
    field public static final String FEEDBACK_RATING = "feedback.rating";
    field public static final String SERVICE_INTERFACE = "android.service.notification.NotificationAssistantService";
+12 −0
Original line number Diff line number Diff line
@@ -113,6 +113,8 @@ public abstract class NotificationAssistantService extends NotificationListenerS
     * <p>
     * Input: {@link #EXTRA_NOTIFICATION_KEY}, the {@link StatusBarNotification#getKey()} of the
     * notification the user wants to file feedback for.
     * Input: {@link #EXTRA_NOTIFICATION_ADJUSTMENT}, the {@link Adjustment} key that the user wants
     * to file feedback about.
     * <p>
     * Output: Nothing.
     */
@@ -130,6 +132,16 @@ public abstract class NotificationAssistantService extends NotificationListenerS
    public static final String EXTRA_NOTIFICATION_KEY
            = "android.service.notification.extra.NOTIFICATION_KEY";

    /**
     * A string extra containing the {@link Adjustment} key that the user wants to file feedback
     * about.
     *
     * Extra for {@link #ACTION_NOTIFICATION_ASSISTANT_FEEDBACK_SETTINGS}.
     */
    @FlaggedApi(android.app.Flags.FLAG_NM_SUMMARIZATION)
    public static final String EXTRA_NOTIFICATION_ADJUSTMENT
            = "android.service.notification.extra.NOTIFICATION_ADJUSTMENT";

    /**
     * Data type: int, the feedback rating score provided by user. The score can be any integer
     *            value depends on the experimental and feedback UX design.