Searched refs:iconHeight (Results 1 - 4 of 4) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
H A DIconFactory.java31 * Builds an icon with the dimensions iconWidth:iconHeight. If scale is set
37 * @param iconHeight height of the icon bitmap.
39 * @return an icon bitmap with the dimensions iconWidth:iconHeight.
41 public static Bitmap createIcon(Bitmap sourceImage, int iconWidth, int iconHeight, argument
50 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) {
54 Bitmap icon = Bitmap.createBitmap(iconWidth, iconHeight,
77 int iconHeight = dest.getHeight();
79 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) {
83 Rect destRect = new Rect(0, 0, iconWidth, iconHeight);
91 // crop image to aspect ratio iconWidth:iconHeight
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DActivityPicker.java375 int iconHeight = icon.getIntrinsicHeight();
377 if (iconWidth > 0 && iconHeight > 0) {
378 if (width < iconWidth || height < iconHeight) {
379 final float ratio = (float) iconWidth / iconHeight;
381 if (iconWidth > iconHeight) {
383 } else if (iconHeight > iconWidth) {
407 } else if (iconWidth < width && iconHeight < height) {
414 final int y = (height - iconHeight) / 2;
415 icon.setBounds(x, y, x + iconWidth, y + iconHeight);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DKeyboardView.java417 final int iconHeight = icon.getIntrinsicHeight();
418 final int iconY = (keyHeight - iconHeight) / 2;
421 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight);
424 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight);
478 final int iconHeight = icon.getIntrinsicHeight();
480 final int iconY = (keyHeight - iconHeight) / 2;
491 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight);
496 drawRectangle(canvas, iconX, iconY, iconWidth, iconHeight, 0x80c00000, line);
H A DMainKeyboardView.java1427 final int iconHeight = mAutoCorrectionSpacebarLedIcon.getIntrinsicHeight();
1429 int y = height - iconHeight;
1430 drawIcon(canvas, mAutoCorrectionSpacebarLedIcon, x, y, iconWidth, iconHeight);
1433 final int iconHeight = mSpaceIcon.getIntrinsicHeight();
1435 int y = height - iconHeight;
1436 drawIcon(canvas, mSpaceIcon, x, y, iconWidth, iconHeight);

Completed in 4148 milliseconds