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

Commit 67f21272 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 14032571 from 31857cce to 25Q4-release

Change-Id: I1b8648f1bb75aa90bc1d155697cc9f2d14f25ad1
parents 7b461fb9 31857cce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
               tools/
bpfmt = -d
ktfmt = --kotlinlang-style --include-dirs=services/permission,packages/SystemUI,libs/WindowManager/Shell/src/com/android/wm/shell/freeform,libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode,libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode,libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor,libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor,libs/WindowManager/Shell/multivalentTests/src/com/android/wm/shell/desktopmode,apct-tests,tests/Input,tests/StructuredConcurrencyPerfTests,services/tests/servicestests/src/com/android/server/supervision,libs/WindowManager/Shell/src/com/android/wm/shell/compatui
google_java_format = --include-dirs=services/core/java/com/android/server/adb
google_java_format = --include-dirs=services/core/java/com/android/server/adb,tests/AppJankTest

[Hook Scripts]
checkstyle_hook = ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT} --config_xml checkstyle.xml
+4 −4
Original line number Diff line number Diff line
@@ -2,14 +2,14 @@
<!DOCTYPE suppressions PUBLIC "-//Puppy Crawl//DTD Suppressions 1.1//EN" "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
<suppressions>
    <!-- Let google-java-format handle the ImportOrder. -->
    <suppress files="services/core/java/com/android/server/adb/*" checks="ImportOrder" />
    <suppress files="services/core/java/com/android/server/adb/*,tests/AppJankTest" checks="ImportOrder" />

    <!-- Let google-java-format handle the indentation. -->
    <suppress files="services/core/java/com/android/server/adb/*" checks="Indentation" />
    <suppress files="services/core/java/com/android/server/adb/*,tests/AppJankTest" checks="Indentation" />

    <!-- Let google-java-format handle the line length. -->
    <suppress files="services/core/java/com/android/server/adb/*" checks="LineLength" />
    <suppress files="services/core/java/com/android/server/adb/*,tests/AppJankTest" checks="LineLength" />

    <!-- Let google-java-format handle the { placement. -->
    <suppress files="services/core/java/com/android/server/adb/*" checks="LeftCurly" />
    <suppress files="services/core/java/com/android/server/adb/*,tests/AppJankTest" checks="LeftCurly" />
</suppressions>
+11 −11
Original line number Diff line number Diff line
@@ -6994,8 +6994,8 @@ package android.app {
  }
  @FlaggedApi("android.app.api_metric_style") public static final class Notification.Metric {
    ctor public Notification.Metric(@NonNull android.app.Notification.Metric.MetricValue, @NonNull String);
    method @NonNull public String getLabel();
    ctor public Notification.Metric(@NonNull android.app.Notification.Metric.MetricValue, @NonNull CharSequence);
    method @NonNull public CharSequence getLabel();
    method @NonNull public android.app.Notification.Metric.MetricValue getValue();
  }
@@ -7011,26 +7011,26 @@ package android.app {
  public static final class Notification.Metric.FixedFloat extends android.app.Notification.Metric.MetricValue {
    ctor public Notification.Metric.FixedFloat(float);
    ctor public Notification.Metric.FixedFloat(float, @Nullable String);
    ctor public Notification.Metric.FixedFloat(float, @Nullable String, @IntRange(from=0x0, to=0x6) int, @IntRange(from=0x0, to=0x6) int);
    ctor public Notification.Metric.FixedFloat(float, @Nullable CharSequence);
    ctor public Notification.Metric.FixedFloat(float, @Nullable CharSequence, @IntRange(from=0x0, to=0x6) int, @IntRange(from=0x0, to=0x6) int);
    method @IntRange(from=0x0, to=0x6) public int getMaxFractionDigits();
    method @IntRange(from=0x0, to=0x6) public int getMinFractionDigits();
    method @Nullable public String getUnit();
    method @Nullable public CharSequence getUnit();
    method public float getValue();
  }
  public static final class Notification.Metric.FixedInt extends android.app.Notification.Metric.MetricValue {
    ctor public Notification.Metric.FixedInt(int);
    ctor public Notification.Metric.FixedInt(int, @Nullable String);
    method @Nullable public String getUnit();
    ctor public Notification.Metric.FixedInt(int, @Nullable CharSequence);
    method @Nullable public CharSequence getUnit();
    method public int getValue();
  }
  public static final class Notification.Metric.FixedString extends android.app.Notification.Metric.MetricValue {
    ctor public Notification.Metric.FixedString(@NonNull String);
    ctor public Notification.Metric.FixedString(@NonNull String, @Nullable String);
    method @Nullable public String getUnit();
    method @NonNull public String getValue();
    ctor public Notification.Metric.FixedString(@NonNull CharSequence);
    ctor public Notification.Metric.FixedString(@NonNull CharSequence, @Nullable CharSequence);
    method @Nullable public CharSequence getUnit();
    method @NonNull public CharSequence getValue();
  }
  public static final class Notification.Metric.FixedTime extends android.app.Notification.Metric.MetricValue {
+21 −0
Original line number Diff line number Diff line
@@ -1361,6 +1361,27 @@ package android.content.rollback {

}

package android.content.theming {

  @FlaggedApi("android.server.enable_theme_service") public final class ThemeStyle {
    method @NonNull public static String name(int);
    method @NonNull public static String toString(int);
    method public static int valueOf(@NonNull String);
    method @NonNull public static int[] values();
    field public static final int CLOCK = 8; // 0x8
    field public static final int CLOCK_VIBRANT = 9; // 0x9
    field public static final int CONTENT = 6; // 0x6
    field public static final int EXPRESSIVE = 3; // 0x3
    field public static final int FRUIT_SALAD = 5; // 0x5
    field public static final int MONOCHROMATIC = 7; // 0x7
    field public static final int RAINBOW = 4; // 0x4
    field public static final int SPRITZ = 0; // 0x0
    field public static final int TONAL_SPOT = 1; // 0x1
    field public static final int VIBRANT = 2; // 0x2
  }

}

package android.credentials {

  public final class CredentialManager {
+27 −18
Original line number Diff line number Diff line
@@ -3510,6 +3510,15 @@ public class Notification implements Parcelable
        return str;
    }
    /**
     * Convert the CharSequence to a string and meke it is safe to put into a bundle.
     * @hide
     */
    public static String safeCharSequenceToString(CharSequence cs) {
        if (cs == null) return null;
        return safeString(cs.toString());
    }
    /**
     * Make sure this CharSequence is safe to put into a bundle, which basically
     * means it had better not be some custom Parcelable implementation.
@@ -11821,7 +11830,7 @@ public class Notification implements Parcelable
                    final Metric.MetricValue.ValueString valueString = metricValue.toValueString(
                            mBuilder.mContext);
                    final String metricLabel;
                    final CharSequence metricLabel;
                    if (isExpandedView) {
                        if (Flags.metricStyleUnitInLabel()
                                && !TextUtils.isEmpty(valueString.subtext())) {
@@ -11933,9 +11942,9 @@ public class Notification implements Parcelable
         * @param value one of the subclasses of {@link MetricValue}, such as {@link FixedInt}
         * @param label metric label -- should be 10 characters or fewer
         */
        public Metric(@NonNull MetricValue value, @NonNull String label) {
        public Metric(@NonNull MetricValue value, @NonNull CharSequence label) {
            mValue = requireNonNull(value);
            mLabel = safeString(requireNonNull(label));
            mLabel = safeCharSequenceToString(requireNonNull(label));
            checkArgument(!mLabel.isBlank(), "Metric label is required");
        }
@@ -11995,7 +12004,7 @@ public class Notification implements Parcelable
         * notification, but it's recommended to keep this to 10 characters or fewer.
         */
        @NonNull
        public String getLabel() {
        public CharSequence getLabel() {
            return mLabel;
        }
@@ -12621,9 +12630,9 @@ public class Notification implements Parcelable
             *
             * @param unit optional unit for the value. Limit this to a few characters.
             */
            public FixedInt(int value, @Nullable String unit) {
            public FixedInt(int value, @Nullable CharSequence unit) {
                mValue = value;
                mUnit = safeString(unit);
                mUnit = safeCharSequenceToString(unit);
            }
            @NonNull
@@ -12673,7 +12682,7 @@ public class Notification implements Parcelable
             * this to just a few characters.
             */
            @Nullable
            public String getUnit() {
            public CharSequence getUnit() {
                return mUnit;
            }
@@ -12716,7 +12725,7 @@ public class Notification implements Parcelable
             * Creates a {@link FixedFloat} instance with 0 minimum and 2 maximum fractional digits.
             * @param unit optional unit for the value. Limit this to a few characters.
             */
            public FixedFloat(float value, @Nullable String unit) {
            public FixedFloat(float value, @Nullable CharSequence unit) {
                this(value, unit, DEFAULT_MIN_FRACTION_DIGITS, DEFAULT_MAX_FRACTION_DIGITS);
            }
@@ -12729,13 +12738,13 @@ public class Notification implements Parcelable
             * @throws IllegalArgumentException if {@code minFractionDigits} or {@code
             *     maxFractionDigits} do not respect the specified constraints
             */
            public FixedFloat(float value, @Nullable String unit,
            public FixedFloat(float value, @Nullable CharSequence unit,
                    @IntRange(from = LOWER_BOUND_FRACTION_DIGITS, to =
                            UPPER_BOUND_FRACTION_DIGITS) int minFractionDigits,
                    @IntRange(from = LOWER_BOUND_FRACTION_DIGITS, to =
                            UPPER_BOUND_FRACTION_DIGITS) int maxFractionDigits) {
                mValue = value;
                mUnit = safeString(unit);
                mUnit = safeCharSequenceToString(unit);
                checkArgument(minFractionDigits >= LOWER_BOUND_FRACTION_DIGITS
                                && minFractionDigits <= UPPER_BOUND_FRACTION_DIGITS,
@@ -12807,7 +12816,7 @@ public class Notification implements Parcelable
             * just a few characters.
             */
            @Nullable
            public String getUnit() {
            public CharSequence getUnit() {
                return mUnit;
            }
@@ -12848,7 +12857,7 @@ public class Notification implements Parcelable
            /**
             * Creates a {@link FixedString} instance with the specified String.
             */
            public FixedString(@NonNull String value) {
            public FixedString(@NonNull CharSequence value) {
                this(value, null);
            }
@@ -12857,9 +12866,9 @@ public class Notification implements Parcelable
             *
             * @param unit optional unit for the value. Limit this to a few characters.
             */
            public FixedString(@NonNull String value, @Nullable String unit) {
                mValue = safeString(requireNonNull(value));
                mUnit = safeString(unit);
            public FixedString(@NonNull CharSequence value, @Nullable CharSequence unit) {
                mValue = safeCharSequenceToString(requireNonNull(value));
                mUnit = safeCharSequenceToString(unit);
            }
            @NonNull
@@ -12899,7 +12908,7 @@ public class Notification implements Parcelable
            /** The string value. */
            @NonNull
            public String getValue() {
            public CharSequence getValue() {
                return mValue;
            }
@@ -12912,7 +12921,7 @@ public class Notification implements Parcelable
             * this to just a few characters.
             */
            @Nullable
            public String getUnit() {
            public CharSequence getUnit() {
                return mUnit;
            }
@@ -16811,7 +16820,7 @@ public class Notification implements Parcelable
                }
            }
            // make sure every color has a valid value
            mProtectionColor = ColorUtils.blendARGB(mPrimaryTextColor, mBackgroundColor, 0.9f);
            mProtectionColor = ctx.getColor(R.color.surface_effect_3);
            mSemanticRedContainerHighColor =
                    ctx.getColor(R.color.materialColorSemanticRedContainerHigh);
        }
Loading