Home
last modified time | relevance | path

Searched refs:mTargetDensity (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/
DBitmapDrawable.java91 private int mTargetDensity = DisplayMetrics.DENSITY_DEFAULT; field in BitmapDrawable
127 mBitmapState.mTargetDensity = mTargetDensity; in BitmapDrawable()
146 mBitmapState.mTargetDensity = mTargetDensity; in BitmapDrawable()
168 mBitmapState.mTargetDensity = mTargetDensity; in BitmapDrawable()
193 mBitmapState.mTargetDensity = mTargetDensity; in BitmapDrawable()
216 mBitmapWidth = bitmap.getScaledWidth(mTargetDensity); in computeBitmapSize()
217 mBitmapHeight = bitmap.getScaledHeight(mTargetDensity); in computeBitmapSize()
267 if (mTargetDensity != density) { in setTargetDensity()
268 mTargetDensity = density == 0 ? DisplayMetrics.DENSITY_DEFAULT : density; in setTargetDensity()
778 state.mTargetDensity = r.getDisplayMetrics().densityDpi; in updateStateFromTypedArray()
[all …]
DNinePatchDrawable.java83 private int mTargetDensity = DisplayMetrics.DENSITY_DEFAULT; field in NinePatchDrawable
184 if (mTargetDensity != density) { in setTargetDensity()
185 mTargetDensity = density; in setTargetDensity()
220 final float scale = mTargetDensity / (float) state.mNinePatch.getDensity(); in draw()
668 final int targetDensity = mTargetDensity; in computeBitmapSize()
746 mTargetDensity = state.mNinePatch.getDensity(); in updateLocalState()
748 mTargetDensity = Drawable.resolveDensity(res, mTargetDensity); in updateLocalState()
DVectorDrawable.java220 private int mTargetDensity; field in VectorDrawable
257 if (mTargetDensity != density) { in updateLocalState()
258 mTargetDensity = density; in updateLocalState()
447 final int targetDensity = mTargetDensity; in computeVectorSize()
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable.java47 private int mTargetDensity = DisplayMetrics.DENSITY_DEFAULT; field in RoundedBitmapDrawable
79 mBitmapWidth = mBitmap.getScaledWidth(mTargetDensity); in computeBitmapSize()
80 mBitmapHeight = mBitmap.getScaledHeight(mTargetDensity); in computeBitmapSize()
118 if (mTargetDensity != density) { in setTargetDensity()
119 mTargetDensity = density == 0 ? DisplayMetrics.DENSITY_DEFAULT : density; in setTargetDensity()
377 mTargetDensity = res.getDisplayMetrics().densityDpi; in RoundedBitmapDrawable()