Loading core/api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -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 core/java/android/util/DisplayMetrics.java +13 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -59,6 +62,7 @@ public class DisplayMetrics { DENSITY_XHIGH, DENSITY_340, DENSITY_360, DENSITY_390, DENSITY_400, DENSITY_420, DENSITY_440, Loading Loading @@ -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). Loading Loading
core/api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -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
core/java/android/util/DisplayMetrics.java +13 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -59,6 +62,7 @@ public class DisplayMetrics { DENSITY_XHIGH, DENSITY_340, DENSITY_360, DENSITY_390, DENSITY_400, DENSITY_420, DENSITY_440, Loading Loading @@ -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). Loading