Searched refs:targetDensity (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java542 final int targetDensity = opts.inTargetDensity;
543 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) {
550 outputBitmap.setDensity(targetDensity);
H A DBitmap.java1110 * @param targetDensity The density of the target canvas of the bitmap.
1113 public int getScaledWidth(int targetDensity) { argument
1114 return scaleFromDensity(getWidth(), mDensity, targetDensity);
1121 * @param targetDensity The density of the target canvas of the bitmap.
1124 public int getScaledHeight(int targetDensity) { argument
1125 return scaleFromDensity(getHeight(), mDensity, targetDensity);
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp265 const int targetDensity = env->GetIntField(options, gOptions_targetDensityFieldID); local
267 if (density != 0 && targetDensity != 0 && density != screenDensity) {
268 scale = (float) targetDensity / density;

Completed in 137 milliseconds