Loading api/current.xml +11 −0 Original line number Diff line number Diff line Loading @@ -206019,6 +206019,17 @@ visibility="public" > </field> <field name="DENSITY_TV" type="int" transient="false" volatile="false" value="213" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="DENSITY_XHIGH" type="int" transient="false" core/java/android/util/DisplayMetrics.java +9 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,15 @@ public class DisplayMetrics { */ public static final int DENSITY_MEDIUM = 160; /** * Standard quantized DPI for 720p TV screens. Applications should * generally not worry about this density, instead targeting * {@link #DENSITY_XHIGH} for 1080p TV screens. For situations where * output is needed for a 720p screen, the UI elements can be scaled * automatically by the platform. */ public static final int DENSITY_TV = 213; /** * Standard quantized DPI for high-density screens. */ Loading include/utils/ResourceTypes.h +1 −0 Original line number Diff line number Diff line Loading @@ -841,6 +841,7 @@ struct ResTable_config DENSITY_DEFAULT = ACONFIGURATION_DENSITY_DEFAULT, DENSITY_LOW = ACONFIGURATION_DENSITY_LOW, DENSITY_MEDIUM = ACONFIGURATION_DENSITY_MEDIUM, DENSITY_TV = ACONFIGURATION_DENSITY_TV, DENSITY_HIGH = ACONFIGURATION_DENSITY_HIGH, DENSITY_NONE = ACONFIGURATION_DENSITY_NONE }; Loading native/include/android/configuration.h +1 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ enum { ACONFIGURATION_DENSITY_DEFAULT = 0, ACONFIGURATION_DENSITY_LOW = 120, ACONFIGURATION_DENSITY_MEDIUM = 160, ACONFIGURATION_DENSITY_TV = 213, ACONFIGURATION_DENSITY_HIGH = 240, ACONFIGURATION_DENSITY_NONE = 0xffff, Loading tools/aapt/AaptAssets.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -969,6 +969,11 @@ bool AaptGroupEntry::getDensityName(const char* name, return true; } if (strcmp(name, "tvdpi") == 0) { if (out) out->density = ResTable_config::DENSITY_TV; return true; } if (strcmp(name, "hdpi") == 0) { if (out) out->density = ResTable_config::DENSITY_HIGH; return true; Loading Loading
api/current.xml +11 −0 Original line number Diff line number Diff line Loading @@ -206019,6 +206019,17 @@ visibility="public" > </field> <field name="DENSITY_TV" type="int" transient="false" volatile="false" value="213" static="true" final="true" deprecated="not deprecated" visibility="public" > </field> <field name="DENSITY_XHIGH" type="int" transient="false"
core/java/android/util/DisplayMetrics.java +9 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,15 @@ public class DisplayMetrics { */ public static final int DENSITY_MEDIUM = 160; /** * Standard quantized DPI for 720p TV screens. Applications should * generally not worry about this density, instead targeting * {@link #DENSITY_XHIGH} for 1080p TV screens. For situations where * output is needed for a 720p screen, the UI elements can be scaled * automatically by the platform. */ public static final int DENSITY_TV = 213; /** * Standard quantized DPI for high-density screens. */ Loading
include/utils/ResourceTypes.h +1 −0 Original line number Diff line number Diff line Loading @@ -841,6 +841,7 @@ struct ResTable_config DENSITY_DEFAULT = ACONFIGURATION_DENSITY_DEFAULT, DENSITY_LOW = ACONFIGURATION_DENSITY_LOW, DENSITY_MEDIUM = ACONFIGURATION_DENSITY_MEDIUM, DENSITY_TV = ACONFIGURATION_DENSITY_TV, DENSITY_HIGH = ACONFIGURATION_DENSITY_HIGH, DENSITY_NONE = ACONFIGURATION_DENSITY_NONE }; Loading
native/include/android/configuration.h +1 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,7 @@ enum { ACONFIGURATION_DENSITY_DEFAULT = 0, ACONFIGURATION_DENSITY_LOW = 120, ACONFIGURATION_DENSITY_MEDIUM = 160, ACONFIGURATION_DENSITY_TV = 213, ACONFIGURATION_DENSITY_HIGH = 240, ACONFIGURATION_DENSITY_NONE = 0xffff, Loading
tools/aapt/AaptAssets.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -969,6 +969,11 @@ bool AaptGroupEntry::getDensityName(const char* name, return true; } if (strcmp(name, "tvdpi") == 0) { if (out) out->density = ResTable_config::DENSITY_TV; return true; } if (strcmp(name, "hdpi") == 0) { if (out) out->density = ResTable_config::DENSITY_HIGH; return true; Loading