Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenWallpaper.java273 int dheight = mState.mBackground.getHeight(); in onBoundsChange() local
277 if (dwidth * vheight > vwidth * dheight) { in onBoundsChange()
278 scale = (float) vheight / (float) dheight; in onBoundsChange()
286 dy = (vheight - dheight * scale) * 0.5f; in onBoundsChange()
292 bounds.top + Math.round(dheight * scale + dy)); in onBoundsChange()
/frameworks/base/core/java/android/widget/
DImageView.java1277 final int dheight = mDrawableHeight; in configureBounds() local
1283 && (dheight < 0 || vheight == dheight); in configureBounds()
1285 if (dwidth <= 0 || dheight <= 0 || ScaleType.FIT_XY == mScaleType) { in configureBounds()
1294 mDrawable.setBounds(0, 0, dwidth, dheight); 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()
[all …]
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java806 final int dheight = mDrawable.getIntrinsicHeight(); in configureBounds() local
812 (dheight < 0 || vheight == dheight); in configureBounds()
815 mDrawable.setBounds(0, 0, dwidth, dheight); in configureBounds()
837 final int dheight = mDrawable.getIntrinsicHeight(); in generateMatrix() local
843 (dheight < 0 || vheight == dheight); in generateMatrix()
849 mTempSrc.set(0, 0, dwidth, dheight); in generateMatrix()
857 (vheight / 2) - (dheight * mMaxInitialScaleFactor / 2), in generateMatrix()
859 (vheight / 2) + (dheight * mMaxInitialScaleFactor / 2)); in generateMatrix()
871 final int dheight = mDrawable.getIntrinsicHeight(); in generateScale() local
876 if (dwidth < vwidth && dheight < vheight && !mAllowCrop) { in generateScale()