diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-08-12 00:44:12 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-08-12 00:44:12 +0000 |
commit | e92b137407f0fc00ae26947a4a6bce32633617c2 (patch) | |
tree | d6736ae17961c36fbf3a315abf1174a54386227d | |
parent | b3a6244c814d0e5fc6c35875352610d3290a9825 (diff) | |
parent | ea5ce4080be58a8092df38a49d828e4281497dc4 (diff) | |
download | frameworks_base-e92b137407f0fc00ae26947a4a6bce32633617c2.zip frameworks_base-e92b137407f0fc00ae26947a4a6bce32633617c2.tar.gz frameworks_base-e92b137407f0fc00ae26947a4a6bce32633617c2.tar.bz2 |
am ea5ce408: am 15f704e7: Merge "Fix issue #23122445: Add 420 density" into mnc-dev
* commit 'ea5ce4080be58a8092df38a49d828e4281497dc4':
Fix issue #23122445: Add 420 density
-rw-r--r-- | api/current.txt | 1 | ||||
-rw-r--r-- | api/system-current.txt | 1 | ||||
-rw-r--r-- | core/java/android/util/DisplayMetrics.java | 8 |
3 files changed, 10 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index 4b36adc..cb63aaa 100644 --- a/api/current.txt +++ b/api/current.txt @@ -33958,6 +33958,7 @@ package android.util { field public static final int DENSITY_280 = 280; // 0x118 field public static final int DENSITY_360 = 360; // 0x168 field public static final int DENSITY_400 = 400; // 0x190 + field public static final int DENSITY_420 = 420; // 0x1a4 field public static final int DENSITY_560 = 560; // 0x230 field public static final int DENSITY_DEFAULT = 160; // 0xa0 field public static final int DENSITY_HIGH = 240; // 0xf0 diff --git a/api/system-current.txt b/api/system-current.txt index 14d4e3e..4b062f0 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -36260,6 +36260,7 @@ package android.util { field public static final int DENSITY_280 = 280; // 0x118 field public static final int DENSITY_360 = 360; // 0x168 field public static final int DENSITY_400 = 400; // 0x190 + field public static final int DENSITY_420 = 420; // 0x1a4 field public static final int DENSITY_560 = 560; // 0x230 field public static final int DENSITY_DEFAULT = 160; // 0xa0 field public static final int DENSITY_HIGH = 240; // 0xf0 diff --git a/core/java/android/util/DisplayMetrics.java b/core/java/android/util/DisplayMetrics.java index a36e66c..9a69600 100644 --- a/core/java/android/util/DisplayMetrics.java +++ b/core/java/android/util/DisplayMetrics.java @@ -90,6 +90,14 @@ public class DisplayMetrics { public static final int DENSITY_400 = 400; /** + * 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_420 = 420; + + /** * Standard quantized DPI for extra-extra-high-density screens. */ public static final int DENSITY_XXHIGH = 480; |