Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DMtpImageView.java103 float dheight; in updateDrawMatrix() local
110 dheight = mLastBitmapWidth; in updateDrawMatrix()
113 dheight = mLastBitmapHeight; in updateDrawMatrix()
115 if (dwidth <= vwidth && dheight <= vheight) { in updateDrawMatrix()
118 scale = Math.min(vwidth / dwidth, vheight / dheight); in updateDrawMatrix()
122 mDrawMatrix.postTranslate(-dheight * scale * 0.5f, in updateDrawMatrix()
126 dheight * scale * 0.5f); in updateDrawMatrix()
129 (vheight - dheight * scale) * 0.5f); in updateDrawMatrix()
/packages/apps/Gallery2/src/com/android/photos/drawables/
DAutoThumbnailDrawable.java131 int dheight = mBitmap.getHeight(); in updateDrawMatrixLocked() local
136 if (dwidth * vheight > vwidth * dheight) { in updateDrawMatrixLocked()
137 scale = (float) vheight / (float) dheight; in updateDrawMatrixLocked()
141 dy = (vheight - dheight * scale) * 0.5f; in updateDrawMatrixLocked()
153 private int calculateSampleSizeLocked(int dwidth, int dheight) { in calculateSampleSizeLocked() argument
160 if (dwidth * vheight > vwidth * dheight) { in calculateSampleSizeLocked()
161 scale = (float) dheight / (float) vheight; in calculateSampleSizeLocked()
/packages/apps/Contacts/src/com/android/contacts/detail/
DTransformableImageView.java48 int dheight = getDrawable().getIntrinsicHeight(); in onDraw() local
55 if (dwidth * vheight > vwidth * dheight) { in onDraw()
56 scale = (float) vheight / (float) dheight; in onDraw()
60 dy = (vheight - dheight * scale) * 0.5f; in onDraw()
/packages/apps/Gallery2/src/com/android/photos/shims/
DBitmapJobDrawable.java110 int dheight = mBitmap.getHeight(); in updateDrawMatrix() local
115 if (dwidth * vheight > vwidth * dheight) { in updateDrawMatrix()
116 scale = (float) vheight / (float) dheight; in updateDrawMatrix()
120 dy = (vheight - dheight * scale) * 0.5f; in updateDrawMatrix()