Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DUserAvatarView.java138 int dheight; in configureBounds() local
141 dheight = mBitmap.getHeight(); in configureBounds()
146 dheight = vheight; in configureBounds()
147 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds()
157 (float) vheight / (float) dheight); in configureBounds()
160 dy = (int) ((vheight - dheight * scale) * 0.5f + 0.5f); in configureBounds()
/frameworks/base/core/java/android/widget/
DImageView.java1031 int dheight = mDrawableHeight; in configureBounds() local
1037 (dheight < 0 || vheight == dheight); in configureBounds()
1039 if (dwidth <= 0 || dheight <= 0 || ScaleType.FIT_XY == mScaleType) { in configureBounds()
1048 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds()
1064 (int) ((vheight - dheight) * 0.5f + 0.5f)); in configureBounds()
1071 if (dwidth * vheight > vwidth * dheight) { in configureBounds()
1072 scale = (float) vheight / (float) dheight; in configureBounds()
1076 dy = (vheight - dheight * scale) * 0.5f; in configureBounds()
1087 if (dwidth <= vwidth && dheight <= vheight) { in configureBounds()
1091 (float) vheight / (float) dheight); in configureBounds()
[all …]
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java835 final int dheight = mDrawable.getIntrinsicHeight(); in configureBounds() local
841 (dheight < 0 || vheight == dheight); in configureBounds()
844 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds()
866 final int dheight = mDrawable.getIntrinsicHeight(); in generateMatrix() local
872 (dheight < 0 || vheight == dheight); in generateMatrix()
878 mTempSrc.set(0, 0, dwidth, dheight); in generateMatrix()
886 (vheight / 2) - (dheight * mMaxInitialScaleFactor / 2), in generateMatrix()
888 (vheight / 2) + (dheight * mMaxInitialScaleFactor / 2)); in generateMatrix()
900 final int dheight = mDrawable.getIntrinsicHeight(); in generateScale() local
905 if (dwidth < vwidth && dheight < vheight && !mAllowCrop) { in generateScale()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DBackgroundManager.java673 int dheight = bitmap.getHeight(); in setBitmap() local
677 if (dwidth * mHeightPx > mWidthPx * dheight) { in setBitmap()
678 scale = (float) mHeightPx / (float) dheight; in setBitmap()