Searched refs:targetDensity (Results 1 – 3 of 3) sorted by relevance
491 int targetDensity = 0; in decodeStream() local494 targetDensity = opts.inTargetDensity; in decodeStream()495 if (density != 0 && targetDensity != 0) { in decodeStream()496 scale = targetDensity / (float) density; in decodeStream()501 if (bm != null && targetDensity != 0) bm.setDensity(targetDensity); in decodeStream()518 int targetDensity = 0; in decodeStream() local521 targetDensity = opts.inTargetDensity; in decodeStream()522 if (density != 0 && targetDensity != 0) { in decodeStream()523 scale = targetDensity / (float) density; in decodeStream()528 if (bm != null && targetDensity != 0) bm.setDensity(targetDensity); in decodeStream()[all …]
832 public int getScaledWidth(int targetDensity) { in getScaledWidth() argument833 return scaleFromDensity(getWidth(), mDensity, targetDensity); in getScaledWidth()843 public int getScaledHeight(int targetDensity) { in getScaledHeight() argument844 return scaleFromDensity(getHeight(), mDensity, targetDensity); in getScaledHeight()
58 final int targetDensity = opts.inTargetDensity; in finishDecode() local59 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) { in finishDecode()67 float scale = targetDensity / (float)density; in finishDecode()78 bm.setDensity(targetDensity); in finishDecode()