Searched refs:targetDensity (Results 1 – 3 of 3) sorted by relevance
557 final int targetDensity = opts.inTargetDensity; in setDensityFromOptions() local558 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) { in setDensityFromOptions()565 outputBitmap.setDensity(targetDensity); in setDensityFromOptions()
1126 public int getScaledWidth(int targetDensity) { in getScaledWidth() argument1127 return scaleFromDensity(getWidth(), mDensity, targetDensity); in getScaledWidth()1137 public int getScaledHeight(int targetDensity) { in getScaledHeight() argument1138 return scaleFromDensity(getHeight(), mDensity, targetDensity); in getScaledHeight()
248 const int targetDensity = env->GetIntField(options, gOptions_targetDensityFieldID); in doDecode() local250 if (density != 0 && targetDensity != 0 && density != screenDensity) { in doDecode()251 scale = (float) targetDensity / density; in doDecode()