Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DMtpImageView.java124 float vwidth = getWidth(); in updateDrawMatrix() local
134 if (dwidth <= vwidth && dheight <= vheight) { in updateDrawMatrix()
137 scale = Math.min(vwidth / dwidth, vheight / dheight); in updateDrawMatrix()
147 mDrawMatrix.postTranslate((vwidth - dwidth * scale) * 0.5f, in updateDrawMatrix()
151 mDrawMatrix.postRotate(mLastRotationDegrees, vwidth / 2, vheight / 2); in updateDrawMatrix()
162 int vwidth = getWidth(); in updateOverlayIconBounds() local
164 float scale_width = ((float) vwidth) / (iwidth * OVERLAY_ICON_SIZE_DENOMINATOR); in updateOverlayIconBounds()
166 mOverlayIcon.setBounds((vwidth - iwidth) / 2, in updateOverlayIconBounds()
168 (vwidth + iwidth) / 2, in updateOverlayIconBounds()
172 mOverlayIcon.setBounds((int) (vwidth - scale * iwidth) / 2, in updateOverlayIconBounds()
[all …]
/packages/apps/Gallery2/src/com/android/photos/drawables/
DAutoThumbnailDrawable.java132 int vwidth = mBounds.width(); in updateDrawMatrixLocked() local
136 if (dwidth * vheight > vwidth * dheight) { in updateDrawMatrixLocked()
138 dx = (vwidth - dwidth * scale) * 0.5f; in updateDrawMatrixLocked()
140 scale = (float) vwidth / (float) dwidth; in updateDrawMatrixLocked()
156 int vwidth = mBounds.width(); in calculateSampleSizeLocked() local
160 if (dwidth * vheight > vwidth * dheight) { in calculateSampleSizeLocked()
163 scale = (float) dwidth / (float) vwidth; in calculateSampleSizeLocked()
/packages/apps/Contacts/src/com/android/contacts/detail/
DTransformableImageView.java53 int vwidth = getWidth() - mPaddingLeft - mPaddingRight; in onDraw() local
58 if (dwidth * vheight > vwidth * dheight) { in onDraw()
60 dx = (vwidth - dwidth * scale) * 0.5f; in onDraw()
62 scale = (float) vwidth / (float) dwidth; in onDraw()
/packages/apps/Gallery2/src/com/android/photos/shims/
DBitmapJobDrawable.java111 int vwidth = bounds.width(); in updateDrawMatrix() local
115 if (dwidth * vheight > vwidth * dheight) { in updateDrawMatrix()
117 dx = (vwidth - dwidth * scale) * 0.5f; in updateDrawMatrix()
119 scale = (float) vwidth / (float) dwidth; in updateDrawMatrix()
/packages/apps/Music/src/com/android/music/
DMusicUtils.java1277 int vwidth = v.getWidth(); in setBackground() local
1281 float scalex = (float) vwidth / bwidth; in setBackground()
1286 Bitmap bg = Bitmap.createBitmap(vwidth, vheight, config); in setBackground()
1302 matrix.postTranslate(vwidth/2, vheight/2); // Move bitmap center to view center in setBackground()