From b38f1683972c91e93dcbc84202f794eb839f0109 Mon Sep 17 00:00:00 2001 From: bj1211jeon Date: Tue, 11 Jun 2019 14:52:28 +0900 Subject: DO NOT MERGE: Add DENSITY_450 Add 450dpi as a supported screen density. This change follows up below change Id : Iac673eae2d82c27d96e279c076454af2f5933208 Originally 600dpi was added to support sw384 with WQHD resolution, though it was lack of for the cases when resolution is FHD resolution. (In case of other resolutions, there already exist 300 and 200 for HD and WVGA resolutions). Bug: 78283907 Test: run android.dpi.cts.ConfigurationTest#testScreenConfiguration and android.app.cts.ActivityManagerMemoryClassTest#testGetMemoryClass (cherry picked from commit 13ca0450ede3eedf7d34bbd0b69525cb6ebc63f1) Change-Id: Ide0baba183c7dea962610d16f18fecbd0dc62567 --- api/current.txt | 1 + core/java/android/util/DisplayMetrics.java | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/api/current.txt b/api/current.txt index 3ec7f447e8b9..9c90ee67cdf7 100644 --- a/api/current.txt +++ b/api/current.txt @@ -47843,6 +47843,7 @@ package android.util { 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 + field public static final int DENSITY_450 = 450; // 0x1c2 field public static final int DENSITY_560 = 560; // 0x230 field public static final int DENSITY_600 = 600; // 0x258 field public static final int DENSITY_DEFAULT = 160; // 0xa0 diff --git a/core/java/android/util/DisplayMetrics.java b/core/java/android/util/DisplayMetrics.java index 1bcfc05224ca..7c7223c04b59 100755 --- a/core/java/android/util/DisplayMetrics.java +++ b/core/java/android/util/DisplayMetrics.java @@ -156,6 +156,14 @@ public class DisplayMetrics { */ public static final int DENSITY_440 = 440; + /** + * 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. + */ + public static final int DENSITY_450 = 450; + /** * Standard quantized DPI for extra-extra-high-density screens. */ -- cgit v1.2.3-59-g8ed1b