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

Commit 14d102e3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make all MetricStyle-related classes final" into main

parents 9845ca67 fe72157e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6989,7 +6989,7 @@ package android.app {
    method public android.app.Notification.MessagingStyle.Message setData(String, android.net.Uri);
  }
  @FlaggedApi("android.app.api_metric_style") public static class Notification.Metric {
  @FlaggedApi("android.app.api_metric_style") public static final class Notification.Metric {
    ctor public Notification.Metric(@NonNull android.app.Notification.Metric.MetricValue, @NonNull String, int);
    method @NonNull public String getLabel();
    method public int getMeaning();
@@ -7105,7 +7105,7 @@ package android.app {
    field public static final int FORMAT_CHRONOMETER = 3; // 0x3
  }
  @FlaggedApi("android.app.api_metric_style") public static class Notification.MetricStyle extends android.app.Notification.Style {
  @FlaggedApi("android.app.api_metric_style") public static final class Notification.MetricStyle extends android.app.Notification.Style {
    ctor public Notification.MetricStyle();
    method @NonNull public android.app.Notification.MetricStyle addMetric(@NonNull android.app.Notification.Metric);
    method @NonNull public java.util.List<android.app.Notification.Metric> getMetrics();
+3 −3
Original line number Diff line number Diff line
@@ -11582,7 +11582,7 @@ public class Notification implements Parcelable
     * </pre>
     */
    @FlaggedApi(Flags.FLAG_API_METRIC_STYLE)
    public static class MetricStyle extends Style {
    public static final class MetricStyle extends Style {
        private static final int MAX_METRICS = 3;
@@ -11778,7 +11778,7 @@ public class Notification implements Parcelable
     * default meaning based on the provided {@link MetricValue}.
     */
    @FlaggedApi(Flags.FLAG_API_METRIC_STYLE)
    public static class Metric {
    public static final class Metric {
        /**
         * The default meaning. As this provides no semantic information to the system, it makes
@@ -11989,7 +11989,7 @@ public class Notification implements Parcelable
        /** Travel port, such as airport, train station, or harbor. */
        public static final int MEANING_TRAVEL_PORT = MEANING_TRAVEL + 1;
        /** Terminal within the port, e.g. aiport terminal, wharf. */
        /** Terminal within the port, e.g. airport terminal, wharf. */
        public static final int MEANING_TRAVEL_TERMINAL = MEANING_TRAVEL + 2;
        /** Boarding location within a port of terminal, e.g. gate, track, or dock. */