Home
last modified time | relevance | path

Searched refs:vheight (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/widget/
DImageView.java1280 final int vheight = getHeight() - mPaddingTop - mPaddingBottom; in configureBounds() local
1283 && (dheight < 0 || vheight == dheight); in configureBounds()
1289 mDrawable.setBounds(0, 0, vwidth, vheight); in configureBounds()
1310 Math.round((vheight - dheight) * 0.5f)); in configureBounds()
1317 if (dwidth * vheight > vwidth * dheight) { in configureBounds()
1318 scale = (float) vheight / (float) dheight; in configureBounds()
1322 dy = (vheight - dheight * scale) * 0.5f; in configureBounds()
1333 if (dwidth <= vwidth && dheight <= vheight) { in configureBounds()
1337 (float) vheight / (float) dheight); in configureBounds()
1341 dy = Math.round((vheight - dheight * scale) * 0.5f); in configureBounds()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenWallpaper.java298 int vheight = getBounds().height(); in onBoundsChange() local
304 if (dwidth * vheight > vwidth * dheight) { in onBoundsChange()
305 scale = (float) vheight / (float) dheight; in onBoundsChange()
313 dy = (vheight - dheight * scale) * 0.5f; in onBoundsChange()
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java809 final int vheight = getHeight(); in configureBounds() local
812 (dheight < 0 || vheight == dheight); in configureBounds()
840 final int vheight = mAllowCrop ? sCropSize : getHeight(); in generateMatrix() local
843 (dheight < 0 || vheight == dheight); in generateMatrix()
853 mTempDst.set(0, 0, vwidth, vheight); in generateMatrix()
857 (vheight / 2) - (dheight * mMaxInitialScaleFactor / 2), in generateMatrix()
859 (vheight / 2) + (dheight * mMaxInitialScaleFactor / 2)); in generateMatrix()
874 final int vheight = mAllowCrop ? getCropSize() : getHeight(); in generateScale() local
876 if (dwidth < vwidth && dheight < vheight && !mAllowCrop) { in generateScale()