Searched refs:dwidth (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/java/android/widget/ |
D | ImageView.java | 1276 final int dwidth = mDrawableWidth; in configureBounds() local 1282 final boolean fits = (dwidth < 0 || vwidth == dwidth) in configureBounds() 1285 if (dwidth <= 0 || dheight <= 0 || ScaleType.FIT_XY == mScaleType) { in configureBounds() 1294 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds() 1309 mDrawMatrix.setTranslate(Math.round((vwidth - dwidth) * 0.5f), in configureBounds() 1317 if (dwidth * vheight > vwidth * dheight) { in configureBounds() 1319 dx = (vwidth - dwidth * scale) * 0.5f; in configureBounds() 1321 scale = (float) vwidth / (float) dwidth; in configureBounds() 1333 if (dwidth <= vwidth && dheight <= vheight) { in configureBounds() 1336 scale = Math.min((float) vwidth / (float) dwidth, in configureBounds() [all …]
|
/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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LockscreenWallpaper.java | 272 int dwidth = mState.mBackground.getWidth(); in onBoundsChange() local 277 if (dwidth * vheight > vwidth * dheight) { in onBoundsChange() 280 scale = (float) vwidth / (float) dwidth; in onBoundsChange() 291 bounds.left + Math.round(dwidth * scale), in onBoundsChange()
|