Home
last modified time | relevance | path

Searched refs:dheight (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/widget/
DImageView.java906 int dheight = mDrawableHeight; in configureBounds() local
912 (dheight < 0 || vheight == dheight); in configureBounds()
914 if (dwidth <= 0 || dheight <= 0 || ScaleType.FIT_XY == mScaleType) { in configureBounds()
923 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds()
939 (int) ((vheight - dheight) * 0.5f + 0.5f)); in configureBounds()
946 if (dwidth * vheight > vwidth * dheight) { in configureBounds()
947 scale = (float) vheight / (float) dheight; in configureBounds()
951 dy = (vheight - dheight * scale) * 0.5f; in configureBounds()
962 if (dwidth <= vwidth && dheight <= vheight) { in configureBounds()
966 (float) vheight / (float) dheight); in configureBounds()
[all …]
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java651 final int dheight = mDrawable.getIntrinsicHeight(); in configureBounds() local
657 (dheight < 0 || vheight == dheight); in configureBounds()
660 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds()
682 final int dheight = mDrawable.getIntrinsicHeight(); in generateMatrix() local
688 (dheight < 0 || vheight == dheight); in generateMatrix()
694 mTempSrc.set(0, 0, dwidth, dheight); in generateMatrix()
702 (vheight / 2) - (dheight * mMaxInitialScaleFactor / 2), in generateMatrix()
704 (vheight / 2) + (dheight * mMaxInitialScaleFactor / 2)); in generateMatrix()
716 final int dheight = mDrawable.getIntrinsicHeight(); in generateScale() local
721 if (dwidth < vwidth && dheight < vheight && !mAllowCrop) { in generateScale()