Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DImageView.java918 int dheight = mDrawableHeight; in configureBounds() local
924 (dheight < 0 || vheight == dheight); in configureBounds()
926 if (dwidth <= 0 || dheight <= 0 || ScaleType.FIT_XY == mScaleType) { in configureBounds()
935 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds()
951 (int) ((vheight - dheight) * 0.5f + 0.5f)); in configureBounds()
958 if (dwidth * vheight > vwidth * dheight) { in configureBounds()
959 scale = (float) vheight / (float) dheight; in configureBounds()
963 dy = (vheight - dheight * scale) * 0.5f; in configureBounds()
974 if (dwidth <= vwidth && dheight <= vheight) { in configureBounds()
978 (float) vheight / (float) dheight); in configureBounds()
[all …]
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java716 final int dheight = mDrawable.getIntrinsicHeight(); in configureBounds() local
722 (dheight < 0 || vheight == dheight); in configureBounds()
725 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds()
747 final int dheight = mDrawable.getIntrinsicHeight(); in generateMatrix() local
753 (dheight < 0 || vheight == dheight); in generateMatrix()
759 mTempSrc.set(0, 0, dwidth, dheight); in generateMatrix()
767 (vheight / 2) - (dheight * mMaxInitialScaleFactor / 2), in generateMatrix()
769 (vheight / 2) + (dheight * mMaxInitialScaleFactor / 2)); in generateMatrix()
781 final int dheight = mDrawable.getIntrinsicHeight(); in generateScale() local
786 if (dwidth < vwidth && dheight < vheight && !mAllowCrop) { in generateScale()