Searched refs:dwidth (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/java/android/widget/ |
D | ImageView.java | 1219 final int dwidth = mDrawableWidth; 1225 final boolean fits = (dwidth < 0 || vwidth == dwidth) 1228 if (dwidth <= 0 || dheight <= 0 || ScaleType.FIT_XY == mScaleType) { 1237 mDrawable.setBounds(0, 0, dwidth, dheight); 1252 mDrawMatrix.setTranslate(Math.round((vwidth - dwidth) * 0.5f), 1260 if (dwidth * vheight > vwidth * dheight) { 1262 dx = (vwidth - dwidth * scale) * 0.5f; 1264 scale = (float) vwidth / (float) dwidth; 1276 if (dwidth <= vwidth && dheight <= vheight) { 1279 scale = Math.min((float) vwidth / (float) dwidth, [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LockscreenWallpaper.java | 253 int dwidth = mState.mBackground.getWidth(); in onBoundsChange() local 258 if (dwidth * vheight > vwidth * dheight) { in onBoundsChange() 261 scale = (float) vwidth / (float) dwidth; in onBoundsChange() 272 bounds.left + Math.round(dwidth * scale), in onBoundsChange()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
D | PhotoView.java | 805 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/ |
D | BackgroundManager.java | 913 int dwidth = bitmap.getWidth(); in setBitmap() local 918 if (dwidth * mHeightPx > mWidthPx * dheight) { in setBitmap() 921 scale = (float) mWidthPx / (float) dwidth; in setBitmap() 924 int subX = Math.min((int) (mWidthPx / scale), dwidth); in setBitmap() 925 int dx = Math.max(0, (dwidth - subX) / 2); in setBitmap()
|