Searched refs:dheight (Results 1 – 5 of 5) sorted by relevance
127 float dheight; in updateDrawMatrix() local134 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()
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()
51 int dheight = getDrawable().getIntrinsicHeight(); in onDraw() local58 if (dwidth * vheight > vwidth * dheight) { in onDraw()59 scale = (float) vheight / (float) dheight; in onDraw()63 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()
339 final int dheight = mIntrinsicHeight; in draw() local343 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()