Searched refs:vwidth (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/java/android/widget/ |
D | ImageView.java | 1141 final int vwidth = getWidth() - mPaddingLeft - mPaddingRight; in configureBounds() local 1144 final boolean fits = (dwidth < 0 || vwidth == dwidth) in configureBounds() 1151 mDrawable.setBounds(0, 0, vwidth, vheight); 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() 1202 dx = Math.round((vwidth - dwidth * scale) * 0.5f); in configureBounds() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LockscreenWallpaper.java | 238 int vwidth = getBounds().width(); in onBoundsChange() local 245 if (dwidth * vheight > vwidth * dheight) { in onBoundsChange() 248 scale = (float) vwidth / (float) dwidth; in onBoundsChange()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
D | PhotoView.java | 808 final int vwidth = getWidth(); in configureBounds() local 811 final boolean fits = (dwidth < 0 || vwidth == dwidth) && in configureBounds() 839 final int vwidth = mAllowCrop ? sCropSize : getWidth(); in generateMatrix() local 842 final boolean fits = (dwidth < 0 || vwidth == dwidth) && in generateMatrix() 853 mTempDst.set(0, 0, vwidth, vheight); in generateMatrix() 856 (vwidth / 2) - (dwidth * mMaxInitialScaleFactor / 2), in generateMatrix() 858 (vwidth / 2) + (dwidth * mMaxInitialScaleFactor / 2), in generateMatrix() 873 final int vwidth = mAllowCrop ? getCropSize() : getWidth(); in generateScale() local 876 if (dwidth < vwidth && dheight < vheight && !mAllowCrop) { in generateScale()
|