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.java129 float vwidth = getWidth(); in updateDrawMatrix() local
139 if (dwidth <= vwidth && dheight <= vheight) { in updateDrawMatrix()
142 scale = Math.min(vwidth / dwidth, vheight / dheight); in updateDrawMatrix()
152 mDrawMatrix.postTranslate((vwidth - dwidth * scale) * 0.5f, in updateDrawMatrix()
156 mDrawMatrix.postRotate(mLastRotationDegrees, vwidth / 2, vheight / 2); in updateDrawMatrix()
167 int vwidth = getWidth(); in updateOverlayIconBounds() local
169 float scaleWidth = ((float) vwidth) / (iwidth * OVERLAY_ICON_SIZE_DENOMINATOR); in updateOverlayIconBounds()
171 mOverlayIcon.setBounds((vwidth - iwidth) / 2, in updateOverlayIconBounds()
173 (vwidth + iwidth) / 2, in updateOverlayIconBounds()
177 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/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/Launcher2/src/com/android/launcher2/
DWallpaperChooserDialogFragment.java339 final int vwidth = canvas.getWidth(); in draw() local
346 if (dwidth < vwidth || dheight < vheight) { in draw()
347 scale = Math.max((float) vwidth / (float) dwidth, in draw()
351 float dx = (vwidth - dwidth * scale) * 0.5f + 0.5f; in draw()
/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()