Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DMtpImageView.java127 float dheight; in updateDrawMatrix() local
134 dheight = mLastBitmapWidth; in updateDrawMatrix()
137 dheight = mLastBitmapHeight; in updateDrawMatrix()
139 if (dwidth <= vwidth && dheight <= vheight) { in updateDrawMatrix()
142 scale = Math.min(vwidth / dwidth, vheight / dheight); in updateDrawMatrix()
146 mDrawMatrix.postTranslate(-dheight * scale * 0.5f, in updateDrawMatrix()
150 dheight * scale * 0.5f); in updateDrawMatrix()
153 (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.java51 int dheight = getDrawable().getIntrinsicHeight(); in onDraw() local
58 if (dwidth * vheight > vwidth * dheight) { in onDraw()
59 scale = (float) vheight / (float) dheight; in onDraw()
63 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()
/packages/apps/Launcher2/src/com/android/launcher2/
DWallpaperChooserDialogFragment.java339 final int dheight = mIntrinsicHeight; in draw() local
343 if (dwidth < vwidth || dheight < vheight) { in draw()
345 (float) vheight / (float) dheight); in draw()
349 float dy = (vheight - dheight * scale) * 0.5f + 0.5f; in draw()