Searched refs:dheight (Results 1 – 4 of 4) sorted by relevance
103 float dheight; in updateDrawMatrix() local110 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()
131 int dheight = mBitmap.getHeight(); in updateDrawMatrixLocked() local136 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() argument160 if (dwidth * vheight > vwidth * dheight) { in calculateSampleSizeLocked()161 scale = (float) dheight / (float) vheight; in calculateSampleSizeLocked()
48 int dheight = getDrawable().getIntrinsicHeight(); in onDraw() local55 if (dwidth * vheight > vwidth * dheight) { in onDraw()56 scale = (float) vheight / (float) dheight; in onDraw()60 dy = (vheight - dheight * scale) * 0.5f; in onDraw()
110 int dheight = mBitmap.getHeight(); in updateDrawMatrix() local115 if (dwidth * vheight > vwidth * dheight) { in updateDrawMatrix()116 scale = (float) vheight / (float) dheight; in updateDrawMatrix()120 dy = (vheight - dheight * scale) * 0.5f; in updateDrawMatrix()