Searched refs:dheight (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/java/android/widget/ |
D | ImageView.java | 1287 final int dheight = mDrawableHeight; in configureBounds() local 1293 && (dheight < 0 || vheight == dheight); in configureBounds() 1295 if (dwidth <= 0 || dheight <= 0 || ScaleType.FIT_XY == mScaleType) { in configureBounds() 1304 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds() 1320 Math.round((vheight - dheight) * 0.5f)); in configureBounds() 1327 if (dwidth * vheight > vwidth * dheight) { in configureBounds() 1328 scale = (float) vheight / (float) dheight; in configureBounds() 1332 dy = (vheight - dheight * scale) * 0.5f; in configureBounds() 1343 if (dwidth <= vwidth && dheight <= vheight) { in configureBounds() 1347 (float) vheight / (float) dheight); in configureBounds() [all …]
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
D | PhotoView.java | 806 final int dheight = mDrawable.getIntrinsicHeight(); in configureBounds() local 812 (dheight < 0 || vheight == dheight); in configureBounds() 815 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds() 837 final int dheight = mDrawable.getIntrinsicHeight(); in generateMatrix() local 843 (dheight < 0 || vheight == dheight); in generateMatrix() 849 mTempSrc.set(0, 0, dwidth, dheight); in generateMatrix() 857 (vheight / 2) - (dheight * mMaxInitialScaleFactor / 2), in generateMatrix() 859 (vheight / 2) + (dheight * mMaxInitialScaleFactor / 2)); in generateMatrix() 871 final int dheight = mDrawable.getIntrinsicHeight(); in generateScale() local 876 if (dwidth < vwidth && dheight < vheight && !mAllowCrop) { in generateScale()
|