Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DUserAvatarView.java137 int dwidth; in configureBounds() local
140 dwidth = mBitmap.getWidth(); in configureBounds()
145 dwidth = vwidth; in configureBounds()
147 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds()
156 scale = Math.min((float) vwidth / (float) dwidth, in configureBounds()
159 dx = (int) ((vwidth - dwidth * scale) * 0.5f + 0.5f); in configureBounds()
/frameworks/base/core/java/android/widget/
DImageView.java1023 int dwidth = mDrawableWidth; in configureBounds() local
1029 boolean fits = (dwidth < 0 || vwidth == dwidth) && in configureBounds()
1032 if (dwidth <= 0 || dheight <= 0 || ScaleType.FIT_XY == mScaleType) { in configureBounds()
1041 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds()
1056 mDrawMatrix.setTranslate((int) ((vwidth - dwidth) * 0.5f + 0.5f), in configureBounds()
1064 if (dwidth * vheight > vwidth * dheight) { in configureBounds()
1066 dx = (vwidth - dwidth * scale) * 0.5f; in configureBounds()
1068 scale = (float) vwidth / (float) dwidth; in configureBounds()
1080 if (dwidth <= vwidth && dheight <= vheight) { in configureBounds()
1083 scale = Math.min((float) vwidth / (float) dwidth, in configureBounds()
[all …]
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java834 final int dwidth = mDrawable.getIntrinsicWidth(); in configureBounds() local
840 final boolean fits = (dwidth < 0 || vwidth == dwidth) && in configureBounds()
844 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds()
865 final int dwidth = mDrawable.getIntrinsicWidth(); in generateMatrix() local
871 final boolean fits = (dwidth < 0 || vwidth == dwidth) && in generateMatrix()
878 mTempSrc.set(0, 0, dwidth, dheight); in generateMatrix()
885 (vwidth / 2) - (dwidth * mMaxInitialScaleFactor / 2), in generateMatrix()
887 (vwidth / 2) + (dwidth * mMaxInitialScaleFactor / 2), in generateMatrix()
899 final int dwidth = mDrawable.getIntrinsicWidth(); in generateScale() local
905 if (dwidth < vwidth && dheight < vheight && !mAllowCrop) { in generateScale()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DBackgroundManager.java633 int dwidth = bitmap.getWidth(); in setBitmap() local
638 if (dwidth * mHeightPx > mWidthPx * dheight) { in setBitmap()
641 scale = (float) mWidthPx / (float) dwidth; in setBitmap()
644 int subX = Math.min((int) (mWidthPx / scale), dwidth); in setBitmap()
645 int dx = Math.max(0, (dwidth - subX) / 2); in setBitmap()