Lines Matching refs:density

117          * The pixel density to use for the bitmap.  This will always result
118 * in the returned bitmap having a density set for it (see
121 * density does not match {@link #inTargetDensity}, then the bitmap
122 * will be scaled to the target density before being returned.
128 * will fill in the density associated with the resource. The other
129 * functions will leave it as-is and no density will be applied.
140 * The pixel density of the destination this bitmap will be drawn to.
149 * will fill in the density associated the Resources object's
151 * functions will leave it as-is and no scaling for density will be
162 * The pixel density of the actual screen that is being used. This is
163 * purely for applications running in density compatibility code, where
164 * {@link #inTargetDensity} is actually the density the application
165 * sees rather than the real screen density.
169 * in the screen density up/down to the compatibility density. Instead,
175 * bitmap's density and the target's density.
179 * caller must deal with the resulting bitmap in a density-aware way.
344 final int density = value.density;
345 if (density == TypedValue.DENSITY_DEFAULT) {
347 } else if (density != TypedValue.DENSITY_NONE) {
348 opts.inDensity = density;
496 final int density = opts.inDensity;
498 if (density != 0 && targetDensity != 0) {
499 scale = targetDensity / (float) density;
523 final int density = opts.inDensity;
525 if (density != 0 && targetDensity != 0) {
526 scale = targetDensity / (float) density;
551 final int density = opts.inDensity;
552 if (density == 0) {
556 bm.setDensity(density);
558 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) {
565 float scale = targetDensity / (float) density;