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

Commit 395bf705 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

API council feedback for dnd

Test: cts
Fixes: 126726239
Change-Id: I864f8ea0c109e81c941cc3e2feb135e4c216a3f5
parent f4d0aa27
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -5848,8 +5848,8 @@ package android.app {
    field public static final int INTERRUPTION_FILTER_NONE = 3; // 0x3
    field public static final int INTERRUPTION_FILTER_NONE = 3; // 0x3
    field public static final int INTERRUPTION_FILTER_PRIORITY = 2; // 0x2
    field public static final int INTERRUPTION_FILTER_PRIORITY = 2; // 0x2
    field public static final int INTERRUPTION_FILTER_UNKNOWN = 0; // 0x0
    field public static final int INTERRUPTION_FILTER_UNKNOWN = 0; // 0x0
    field public static final String META_DATA_AUTOMATIC_RULE_TYPE = "android.app.automatic.ruleType";
    field public static final String META_DATA_AUTOMATIC_RULE_TYPE = "android.service.zen.automatic.ruleType";
    field public static final String META_DATA_RULE_INSTANCE_LIMIT = "android.app.zen.automatic.ruleInstanceLimit";
    field public static final String META_DATA_RULE_INSTANCE_LIMIT = "android.service.zen.automatic.ruleInstanceLimit";
  }
  }
  public static class NotificationManager.Policy implements android.os.Parcelable {
  public static class NotificationManager.Policy implements android.os.Parcelable {
+1 −1
Original line number Original line Diff line number Diff line
@@ -231,7 +231,7 @@ public final class AutomaticZenRule implements Parcelable {
     * Sets the zen policy.
     * Sets the zen policy.
     */
     */
    public void setZenPolicy(ZenPolicy zenPolicy) {
    public void setZenPolicy(ZenPolicy zenPolicy) {
        this.mZenPolicy = zenPolicy;
        this.mZenPolicy = (zenPolicy == null ? null : zenPolicy.copy());
    }
    }


    /**
    /**
+3 −2
Original line number Original line Diff line number Diff line
@@ -315,7 +315,8 @@ public class NotificationManager {
     * This tag should contain a localized name of the type of the zen rule provided by the
     * This tag should contain a localized name of the type of the zen rule provided by the
     * activity.
     * activity.
     */
     */
    public static final String META_DATA_AUTOMATIC_RULE_TYPE = "android.app.automatic.ruleType";
    public static final String META_DATA_AUTOMATIC_RULE_TYPE =
            "android.service.zen.automatic.ruleType";


    /**
    /**
     * An optional {@code meta-data} tag for activities that handle
     * An optional {@code meta-data} tag for activities that handle
@@ -325,7 +326,7 @@ public class NotificationManager {
     * can be created for this rule type. Omit or enter a value <= 0 to allow unlimited instances.
     * can be created for this rule type. Omit or enter a value <= 0 to allow unlimited instances.
     */
     */
    public static final String META_DATA_RULE_INSTANCE_LIMIT =
    public static final String META_DATA_RULE_INSTANCE_LIMIT =
            "android.app.zen.automatic.ruleInstanceLimit";
            "android.service.zen.automatic.ruleInstanceLimit";


    /** Value signifying that the user has not expressed a per-app visibility override value.
    /** Value signifying that the user has not expressed a per-app visibility override value.
     * @hide */
     * @hide */