Searched refs:vheight (Results 1 – 5 of 5) sorted by relevance
128 float vheight = getHeight(); in updateDrawMatrix() local139 if (dwidth <= vwidth && dheight <= vheight) { in updateDrawMatrix()142 scale = Math.min(vwidth / dwidth, vheight / dheight); in updateDrawMatrix()153 (vheight - dheight * scale) * 0.5f); in updateDrawMatrix()156 mDrawMatrix.postRotate(mLastRotationDegrees, vwidth / 2, vheight / 2); in updateDrawMatrix()166 int vheight = getHeight(); in updateOverlayIconBounds() local168 float scaleHeight = ((float) vheight) / (iheight * OVERLAY_ICON_SIZE_DENOMINATOR); in updateOverlayIconBounds()172 (vheight - iheight) / 2, in updateOverlayIconBounds()174 (vheight + iheight) / 2); in updateOverlayIconBounds()178 (int) (vheight - scale * iheight) / 2, in updateOverlayIconBounds()[all …]
133 int vheight = mBounds.height(); 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()157 int vheight = mBounds.height(); in calculateSampleSizeLocked() local160 if (dwidth * vheight > vwidth * dheight) { in calculateSampleSizeLocked()161 scale = (float) dheight / (float) vheight; in calculateSampleSizeLocked()
112 int vheight = bounds.height(); 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()
340 final int vheight = canvas.getHeight(); in draw() local346 if (dwidth < vwidth || dheight < vheight) { in draw()348 (float) vheight / (float) dheight); in draw()352 float dy = (vheight - dheight * scale) * 0.5f + 0.5f; in draw()
1278 int vheight = v.getHeight(); in setBackground() local1282 float scaley = (float) vheight / bheight; 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()