Lines Matching refs:density
37 * Utility methods for working with display density.
42 /** Minimum increment between density scales. */
45 /** Minimum density scale. This is available on all devices. */
48 /** Maximum density scale. The actual scale used depends on the device. */
124 final int density = ((int) (defaultDensity * (1 - (i + 1) * interval))) & ~1;
125 if (currentDensity == density) {
129 values[curIndex] = density;
145 final int density = ((int) (defaultDensity * (1 + (i + 1) * interval))) & ~1;
146 if (currentDensity == density) {
149 values[curIndex] = density;
159 // We don't understand the current density. Must have been set by
194 * Returns the default density for the specified display.
197 * @return the default density of the specified display, or {@code -1} if
198 * the display does not exist or the density could not be obtained
210 * Asynchronously applies display density changes to the specified display.
224 Log.w(LOG_TAG, "Unable to clear forced display density setting");
230 * Asynchronously applies display density changes to the specified display.
236 * @param density the density to force for the specified display
238 public static void setForcedDisplayDensity(final int displayId, final int density) {
243 wm.setForcedDisplayDensityForUser(displayId, density, userId);
245 Log.w(LOG_TAG, "Unable to save forced display density setting");