Lines Matching refs:height
69 static Bitmap centerToFit(Bitmap bitmap, int width, int height, Context context) { in centerToFit() argument
73 if (bitmapWidth < width || bitmapHeight < height) { in centerToFit()
77 bitmapHeight < height ? height : bitmapHeight, Bitmap.Config.RGB_565); in centerToFit()
81 canvas.drawBitmap(bitmap, (width - bitmapWidth) / 2.0f, (height - bitmapHeight) / 2.0f, in centerToFit()
108 int height = sIconHeight; in createIconThumbnail() local
113 painter.setIntrinsicHeight(height); in createIconThumbnail()
126 if (width < iconWidth || height < iconHeight) { in createIconThumbnail()
130 height = (int) (width / ratio); in createIconThumbnail()
132 width = (int) (height * ratio); in createIconThumbnail()
147 final int y = (sIconHeight - height) / 2; in createIconThumbnail()
148 icon.setBounds(x, y, x + width, y + height); in createIconThumbnail()
152 } else if (iconWidth < width && iconHeight < height) { in createIconThumbnail()
159 final int y = (height - iconHeight) / 2; in createIconThumbnail()
185 int height = sIconHeight; in createAllAppsBitmap() local
190 painter.setIntrinsicHeight(height); in createAllAppsBitmap()
204 if (width < sourceWidth || height < sourceHeight) { in createAllAppsBitmap()
208 height = (int) (width / ratio); in createAllAppsBitmap()
210 width = (int) (height * ratio); in createAllAppsBitmap()
212 } else if (sourceWidth < width && sourceHeight < height) { in createAllAppsBitmap()
215 height = sourceHeight; in createAllAppsBitmap()
229 final int top = (textureHeight-height) / 2; in createAllAppsBitmap()
237 canvas.drawRect(left, top, left+width, top+height, debugPaint); in createAllAppsBitmap()
241 icon.setBounds(left, top, left+width, top+height); in createAllAppsBitmap()
291 int height = sIconHeight; in createBitmapThumbnail() local
296 if (width > 0 && height > 0) { in createBitmapThumbnail()
297 if (width < bitmapWidth || height < bitmapHeight) { in createBitmapThumbnail()
301 height = (int) (width / ratio); in createBitmapThumbnail()
303 width = (int) (height * ratio); in createBitmapThumbnail()
306 final Bitmap.Config c = (width == sIconWidth && height == sIconHeight) ? in createBitmapThumbnail()
314 … sBounds.set((sIconWidth - width) / 2, (sIconHeight - height) / 2, width, height); in createBitmapThumbnail() local
318 } else if (bitmapWidth < width || bitmapHeight < height) { in createBitmapThumbnail()
445 private int height(int lineCount) { in height() method in Utilities.BubbleText
454 return height(MAX_LINES); in getMaxBubbleHeight()