Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DImageView.java1138 final int dwidth = mDrawableWidth; in configureBounds() local
1144 final boolean fits = (dwidth < 0 || vwidth == dwidth) in configureBounds()
1147 if (dwidth <= 0 || dheight <= 0 || ScaleType.FIT_XY == mScaleType) { in configureBounds()
1156 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds()
1171 mDrawMatrix.setTranslate(Math.round((vwidth - dwidth) * 0.5f), in configureBounds()
1179 if (dwidth * vheight > vwidth * dheight) { in configureBounds()
1181 dx = (vwidth - dwidth * scale) * 0.5f; in configureBounds()
1183 scale = (float) vwidth / (float) dwidth; in configureBounds()
1195 if (dwidth <= vwidth && dheight <= vheight) { in configureBounds()
1198 scale = Math.min((float) vwidth / (float) dwidth, in configureBounds()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenWallpaper.java240 int dwidth = mState.mBackground.getWidth(); in onBoundsChange() local
245 if (dwidth * vheight > vwidth * dheight) { in onBoundsChange()
248 scale = (float) vwidth / (float) dwidth; in onBoundsChange()
259 bounds.left + Math.round(dwidth * scale), in onBoundsChange()
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java805 final int dwidth = mDrawable.getIntrinsicWidth(); in configureBounds() local
811 final boolean fits = (dwidth < 0 || vwidth == dwidth) && in configureBounds()
815 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds()
836 final int dwidth = mDrawable.getIntrinsicWidth(); in generateMatrix() local
842 final boolean fits = (dwidth < 0 || vwidth == dwidth) && in generateMatrix()
849 mTempSrc.set(0, 0, dwidth, dheight); in generateMatrix()
856 (vwidth / 2) - (dwidth * mMaxInitialScaleFactor / 2), in generateMatrix()
858 (vwidth / 2) + (dwidth * mMaxInitialScaleFactor / 2), in generateMatrix()
870 final int dwidth = mDrawable.getIntrinsicWidth(); in generateScale() local
876 if (dwidth < vwidth && dheight < vheight && !mAllowCrop) { in generateScale()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DBackgroundManager.java1052 int dwidth = bitmap.getWidth(); in setBitmap() local
1057 if (dwidth * mHeightPx > mWidthPx * dheight) { in setBitmap()
1060 scale = (float) mWidthPx / (float) dwidth; in setBitmap()
1063 int subX = Math.min((int) (mWidthPx / scale), dwidth); in setBitmap()
1064 int dx = Math.max(0, (dwidth - subX) / 2); in setBitmap()