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

Commit 18849995 authored by Massimo Carli's avatar Massimo Carli
Browse files

[2/n] Add DisplayMetrics.DENSITY_390 API

Bug: 297550533
Test: ThemeHostTest, ConfigurationTest

Change-Id: Ide083ad78c78a0d034fec5f9965365ed4dea1714
parent 23cf3f1c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -49259,6 +49259,7 @@ package android.util {
    field public static final int DENSITY_300 = 300; // 0x12c
    field public static final int DENSITY_340 = 340; // 0x154
    field public static final int DENSITY_360 = 360; // 0x168
    field @FlaggedApi("com.android.window.flags.density_390_api") public static final int DENSITY_390 = 390; // 0x186
    field public static final int DENSITY_400 = 400; // 0x190
    field public static final int DENSITY_420 = 420; // 0x1a4
    field public static final int DENSITY_440 = 440; // 0x1b8
+13 −0
Original line number Diff line number Diff line
@@ -16,6 +16,9 @@

package android.util;

import static com.android.window.flags.Flags.FLAG_DENSITY_390_API;

import android.annotation.FlaggedApi;
import android.annotation.IntDef;
import android.annotation.Nullable;
import android.compat.annotation.UnsupportedAppUsage;
@@ -59,6 +62,7 @@ public class DisplayMetrics {
            DENSITY_XHIGH,
            DENSITY_340,
            DENSITY_360,
            DENSITY_390,
            DENSITY_400,
            DENSITY_420,
            DENSITY_440,
@@ -176,6 +180,15 @@ public class DisplayMetrics {
     */
    public static final int DENSITY_360 = 360;

    /**
     * Intermediate density for screens that sit somewhere between
     * {@link #DENSITY_XHIGH} (320 dpi) and {@link #DENSITY_XXHIGH} (480 dpi).
     * This is not a density that applications should target, instead relying
     * on the system to scale their {@link #DENSITY_XXHIGH} assets for them.
     */
    @FlaggedApi(FLAG_DENSITY_390_API)
    public static final int DENSITY_390 = 390;

    /**
     * Intermediate density for screens that sit somewhere between
     * {@link #DENSITY_XHIGH} (320 dpi) and {@link #DENSITY_XXHIGH} (480 dpi).