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

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java61 final int targetDensity = opts.inTargetDensity;
62 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) {
70 float scale = targetDensity / (float)density;
81 bm.setDensity(targetDensity);
/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java535 final int targetDensity = opts.inTargetDensity;
536 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) {
543 outputBitmap.setDensity(targetDensity);
H A DBitmap.java1097 * @param targetDensity The density of the target canvas of the bitmap.
1100 public int getScaledWidth(int targetDensity) { argument
1101 return scaleFromDensity(getWidth(), mDensity, targetDensity);
1108 * @param targetDensity The density of the target canvas of the bitmap.
1111 public int getScaledHeight(int targetDensity) { argument
1112 return scaleFromDensity(getHeight(), mDensity, targetDensity);
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp251 const int targetDensity = env->GetIntField(options, gOptions_targetDensityFieldID); local
253 if (density != 0 && targetDensity != 0 && density != screenDensity) {
254 scale = (float) targetDensity / density;

Completed in 80 milliseconds