Lines Matching refs:density
62 // These are scaled to match the target density.
86 * Set the density scale at which this drawable will be rendered. This
87 * method assumes the drawable will be rendered at the same density as the
90 * @param canvas The Canvas from which the density scale must be obtained.
100 * Set the density scale at which this drawable will be rendered.
102 * @param metrics The DisplayMetrics indicating the density scale for this drawable.
112 * Set the density at which this drawable will be rendered.
114 * @param density The density scale for this drawable.
119 public void setTargetDensity(int density) {
120 if (mTargetDensity != density) {
121 mTargetDensity = density == 0 ? DisplayMetrics.DENSITY_DEFAULT : density;