Lines Matching defs:density
35 * Utility methods for working with display density.
40 /** Minimum increment between density scales. */
43 /** Minimum density scale. This is available on all devices. */
46 /** Maximum density scale. The actual scale used depends on the device. */
120 final int density = ((int) (defaultDensity * (1 - (i + 1) * interval))) & ~1;
121 if (currentDensity == density) {
125 values[curIndex] = density;
141 final int density = ((int) (defaultDensity * (1 + (i + 1) * interval))) & ~1;
142 if (currentDensity == density) {
145 values[curIndex] = density;
155 // We don't understand the current density. Must have been set by
190 * Returns the default density for the specified display.
193 * @return the default density of the specified display, or {@code -1} if
194 * the display does not exist or the density could not be obtained
206 * Asynchronously applies display density changes to the specified display.
218 Log.w(LOG_TAG, "Unable to clear forced display density setting");
225 * Asynchronously applies display density changes to the specified display.
228 * @param density the density to force for the specified display
230 public static void setForcedDisplayDensity(final int displayId, final int density) {
236 wm.setForcedDisplayDensity(displayId, density);
238 Log.w(LOG_TAG, "Unable to save forced display density setting");