Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java557 final int targetDensity = opts.inTargetDensity; in setDensityFromOptions() local
558 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) { in setDensityFromOptions()
565 outputBitmap.setDensity(targetDensity); in setDensityFromOptions()
DBitmap.java1126 public int getScaledWidth(int targetDensity) { in getScaledWidth() argument
1127 return scaleFromDensity(getWidth(), mDensity, targetDensity); in getScaledWidth()
1137 public int getScaledHeight(int targetDensity) { in getScaledHeight() argument
1138 return scaleFromDensity(getHeight(), mDensity, targetDensity); in getScaledHeight()
/frameworks/base/core/jni/android/graphics/
DBitmapFactory.cpp248 const int targetDensity = env->GetIntField(options, gOptions_targetDensityFieldID); in doDecode() local
250 if (density != 0 && targetDensity != 0 && density != screenDensity) { in doDecode()
251 scale = (float) targetDensity / density; in doDecode()