Searched refs:dwidth (Results 1 – 4 of 4) sorted by relevance
126 float dwidth; in updateDrawMatrix() local133 dwidth = mLastBitmapHeight; in updateDrawMatrix()136 dwidth = mLastBitmapWidth; in updateDrawMatrix()139 if (dwidth <= vwidth && dheight <= vheight) { in updateDrawMatrix()142 scale = Math.min(vwidth / dwidth, vheight / dheight); in updateDrawMatrix()147 -dwidth * scale * 0.5f); in updateDrawMatrix()149 mDrawMatrix.postTranslate(dwidth * scale * 0.5f, in updateDrawMatrix()152 mDrawMatrix.postTranslate((vwidth - dwidth * scale) * 0.5f, in updateDrawMatrix()
130 int dwidth = mBitmap.getWidth(); in updateDrawMatrixLocked() local136 if (dwidth * vheight > vwidth * dheight) { in updateDrawMatrixLocked()138 dx = (vwidth - dwidth * scale) * 0.5f; in updateDrawMatrixLocked()140 scale = (float) vwidth / (float) dwidth; in updateDrawMatrixLocked()153 private int calculateSampleSizeLocked(int dwidth, int dheight) { in calculateSampleSizeLocked() argument160 if (dwidth * vheight > vwidth * dheight) { in calculateSampleSizeLocked()163 scale = (float) dwidth / (float) vwidth; in calculateSampleSizeLocked()
109 int dwidth = mBitmap.getWidth(); in updateDrawMatrix() local115 if (dwidth * vheight > vwidth * dheight) { in updateDrawMatrix()117 dx = (vwidth - dwidth * scale) * 0.5f; in updateDrawMatrix()119 scale = (float) vwidth / (float) dwidth; in updateDrawMatrix()
341 final int dwidth = mIntrinsicWidth; in draw() local346 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()