Searched refs:vwidth (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | UserAvatarView.java | 134 int vwidth = getWidth() - mPaddingLeft - mPaddingRight; in configureBounds() local 143 vwidth -= 2 * (mFrameWidth - 1); in configureBounds() 145 dwidth = vwidth; 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/ |
D | ImageView.java | 1026 int vwidth = getWidth() - mPaddingLeft - mPaddingRight; in configureBounds() local 1029 boolean fits = (dwidth < 0 || vwidth == dwidth) && in configureBounds() 1036 mDrawable.setBounds(0, 0, vwidth, vheight); 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() 1087 dx = (int) ((vwidth - dwidth * scale) * 0.5f + 0.5f); in configureBounds() [all …]
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
D | PhotoView.java | 837 final int vwidth = getWidth(); in configureBounds() local 840 final boolean fits = (dwidth < 0 || vwidth == dwidth) && in configureBounds() 868 final int vwidth = mAllowCrop ? sCropSize : getWidth(); in generateMatrix() local 871 final boolean fits = (dwidth < 0 || vwidth == dwidth) && in generateMatrix() 882 mTempDst.set(0, 0, vwidth, vheight); in generateMatrix() 885 (vwidth / 2) - (dwidth * mMaxInitialScaleFactor / 2), in generateMatrix() 887 (vwidth / 2) + (dwidth * mMaxInitialScaleFactor / 2), in generateMatrix() 902 final int vwidth = mAllowCrop ? getCropSize() : getWidth(); in generateScale() local 905 if (dwidth < vwidth && dheight < vheight && !mAllowCrop) { in generateScale()
|