Home | History | Annotate | Download | only in util

Lines Matching refs:density

26  * size, density, and font scaling.
33 * Standard quantized DPI for low-density screens.
38 * Standard quantized DPI for medium-density screens.
43 * Standard quantized DPI for high-density screens.
48 * Standard quantized DPI for extra-high-density screens.
53 * The reference density used throughout the system.
58 * The device's density.
73 * The logical density of the display. This is a scaling factor for the
74 * Density Independent Pixel unit, where one DIP is one pixel on an
77 * this density value will be 1; on a 120 dpi screen it would be .75; etc.
82 * example, a 240x320 screen will have a density of 1 even if its width is
84 * 320x480 but the screen size remained 1.5"x2" then the density would be
89 public float density;
91 * The screen density expressed as dots-per-inch. May be either
97 * as {@link #density}, except that it may be adjusted in smaller
116 density = o.density;
126 density = DENSITY_DEVICE / (float) DENSITY_DEFAULT;
128 scaledDensity = density;
186 defaultWidth = (int)(CompatibilityInfo.DEFAULT_PORTRAIT_HEIGHT * density +
188 defaultHeight = (int)(CompatibilityInfo.DEFAULT_PORTRAIT_WIDTH * density +
195 defaultWidth = (int)(CompatibilityInfo.DEFAULT_PORTRAIT_WIDTH * density +
197 defaultHeight = (int)(CompatibilityInfo.DEFAULT_PORTRAIT_HEIGHT * density +
218 density *= invertedRatio;
219 densityDpi = (int)((density*DisplayMetrics.DENSITY_DEFAULT)+.5f);
230 return "DisplayMetrics{density=" + density + ", width=" + widthPixels +