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

Commit 75859f6f authored by Menghan Li's avatar Menghan Li
Browse files

chore(A11yHaTS): Rename Accessibility Notification Constants

The class now provides broadcast actions for scheduling and canceling
accessibility survey notifications. Its name should be updated to
better reflect this new functionality.

Bug: 379748766
Bug: 380346799
Test: atest AccessibilitySurveyNotificationJobServiceTest
            SurveyNotificationReceiverTest
            NotificationHelperTest
Flag: com.android.server.accessibility.enable_low_vision_hats
Change-Id: I271c497efe46c21c6a40e63c73576fddf5959341
parent a3d673a8
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -23,13 +23,16 @@ package com.android.internal.accessibility.common;
 */
public class NotificationConstants {

    /** Broadcast action sent when attempting to show the accessibility survey notification. */
    public static final String ACTION_SURVEY_NOTIFICATION_SHOWN =
            "android.settings.ACCESSIBILITY_SURVEY_NOTIFICATION_SHOWN";
    /** Broadcast action to schedule the display of the accessibility survey notification. */
    public static final String ACTION_SCHEDULE_SURVEY_NOTIFICATION =
            "android.settings.ACCESSIBILITY_SCHEDULE_SURVEY_NOTIFICATION";

    /** Broadcast action to indicate the accessibility survey notification has been dismissed. */
    public static final String ACTION_SURVEY_NOTIFICATION_DISMISSED =
            "android.settings.ACCESSIBILITY_SURVEY_NOTIFICATION_DISMISSED";
    /**
     * Broadcast action to cancel the accessibility survey notification, including any scheduled or
     * active display.
     */
    public static final String ACTION_CANCEL_SURVEY_NOTIFICATION =
            "android.settings.ACCESSIBILITY_CANCEL_SURVEY_NOTIFICATION";

    /** Extra key indicating the source of an action. */
    public static final String EXTRA_SOURCE = "source";